[oracle@orahost ~]$ lsnrctl status
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 04-DEC-2012 12:12:18
Copyright (c) 1991, 2005, Oracle.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.56.2)(PORT=1521)))
TNS-12541: TNS:no listener Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC0))) TNS-12541: TNS:no listener [oracle@orahost ~]$ reload bash: reload: command not found [oracle@orahost ~]$ lsnrctl
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 04-DEC-2012 12:12:39
Copyright (c) 1991, 2005, Oracle.
Welcome to LSNRCTL, type "help" for information.
LSNRCTL> status
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.56.2)(PORT=1521))) TNS-12541: TNS:no listener Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC0))) TNS-12541: TNS:no listener LSNRCTL> stop Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.56.2)(PORT=1521))) TNS-12541: TNS:no listener Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC0))) TNS-12541: TNS:no listener LSNRCTL> start Starting /oracle/product/10.2.0/db_1/bin/tnslsnr: please wait...
TNS-12537: TNS:connection closed
LSNRCTL> reload Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.56.2)(PORT=1521))) TNS-12541: TNS:no listener Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC0))) TNS-12541: TNS:no listener [root@orahost etc]# vi hosts
# Do not remove the following line, or various programs
# that require network functionality will fail. #127.0.0.1
192.168.56.2
127.0.0.1
LSNRCTL> start Starting /oracle/product/10.2.0/db_1/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 10.2.0.1.0 - Production
System parameter file is /oracle/product/10.2.0/db_1/network/admin/listener.ora Log messages written to /oracle/product/10.2.0/db_1/network/log/listener.log Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.56.2)(PORT=1521))) Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC0)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.56.2)(PORT=1521)))
STATUS of the LISTENER ------------------------ Alias Version Start Date Uptime Trace Level Security SNMP Listener Parameter File Listener Log File Listening Endpoints Summary... Services Summary... Service "PLSExtProc" has 1 instance(s). The command completed successfully |
TNS:no listener: TNS:protocol adapter error: Connection refused
最新推荐文章于 2021-04-03 05:53:10 发布