
oracle数据库
secureCRT或其他类似工具
方法/步骤
打开secureCRT,连接到数据库所在的linux机器。若用户为root,请输入命令“su - oracle”并回车,若要密码,输入密码后并回车,就切换到了oracle用户下。(图为已切换到oracle用户下了)
关掉oracle的监听进程:命令为“lsnrctl stop”并回车,这时外部没法连接到数据库了。如图有提示关闭成功信息。
先杀掉所有session,小编用的是命令:“ps -ef|grep $ORACLE_SID|grep -v ora_|grep LOCAL=NO|awk '{print $2}'|xargs kill”也可以用其他办法。然后用sqlplus登录到数据库。命令依次为:“sqlplus /nolog”-“connect / as sysdba” ,最后用命令关闭oracle数据库"shutdown immediate" 。关闭命令的时候需要等待点时间,成功后会有如图的提示。
用命令"exit"退出sqlplus。然后用命令“lsnrctl start”启动数据库的监听进程。如图
提示语句表明启动成功。
和第三步一样,先用sqlplus登录到数据库。命令依次为:“sqlplus /nolog”-“connect / as sysdba”。然后输入命令“startup”并回车。等待几分钟会出现如图提示信息。最后用命令“exit”退出sqlplus。服务器上的mysql数据库怎么重启
windows:
开始->运行->cmd
停止:net
stop
mysql
启动:net
start
mysql
linux:
启动:/etc/initd/mysqld
start
停止:/etc/initd/mysqld
stop
重启:/etc/initd/mysqld
restartwindows:
开始->运行->cmd
停止:net stop mysql
启动:net start mysql
linux:
启动:/etc/initd/mysqld start
停止:/etc/initd/mysqld stop
重启:/etc/initd/mysqld restart在SQL Server 配置管理器中,展开SQL Server 2005的网络配置,然后点击服务器实例如:MSSQLSERVER 的协议。
在右窗格中,双击TCP/IP协议。
在TCP/IP属性对话框中,单击IP地址选项卡。
在TCP端口框中的IPAll节,输入一个可用的端口号。对于本教程中,我们将使用1500。
单击确定以关闭该对话框,然后单击确定的警告说,必须重新启动服务。
在左窗格中,单击SQL Server 2005的服务。
在右窗格中,右键单击SQL Server实例如:SQL Server (MSSQLSERVER),然后单击重新启动。当数据库引擎重新启动时,它将侦听端口1500 。
--------------------------------------------------------------------------------
In SQL Server Configuration Manager, expand SQL Server 2005 Network Configuration, and then click on the server instance you want to configure
In the right pane, double-click TCP/IP
In the TCP/IP Properties dialog box, click the IP Addresses tab
In the TCP Port box of the IPAll section, type an available port number For this tutorial, we will use 1500
Click OK to close the dialog box, and click OK to the warning that the service must be restarted
In the left pane, click SQL Server 2005 Services
In the right pane, right-click the instance of SQL Server, and then click Restart When the Database Engine restarts, it will listen on port 1500
本文来自: 脚本之家() 详细出处参考:>
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)