从命令行重启Oracle监听器
请Infra的同事重启Oracle主进程之后,从客户端一直没能连接得上去。
于是我就纳闷了。我想:是否Oracle服务器上的监听器没有启动成功。
通过 PUTTY 远程登录 Linux 服务器,
su - oracle
从 root 用户 转为 oracle 用户。
以system用户登入sqlplus,然后执行命令
startup
被告知服务主程序已经启动。
lsnrctl start
重启监听器之后,从客户端顺利地连接上Oracle服务器了。
参考文章:http://download.oracle.com/docs/cd/B19306_01/server.102/b14196/network004.htm
关键字: Oracle listener start
Starting and Shutting Down the Listener
The Oracle listener is set up to start automatically whenever your server machine is restarted. However, when your system encounters unforeseen circumstances, or when you have manually stopped the listener, you can restart it at the command line. To do so, use the following:
lsnrctl start
You can use Enterprise Manager to stop the listener. To do so, navigate to the Listener: listener_name page by clicking Listener on the Home page. To shut down the listener, click Stop.
You can also stop it at the command line using the following:
lsnrctl stop