Oracle LSNRCTL------監聽器的啟動和關閉
阿新 • • 發佈:2018-12-24
如果oracle監聽器正在執行,你將得到如下資訊
- $ lsnrctl status
- LSNRCTL for Linux: Version 11.1.0.6.0 - Production on 04-APR-2009 16:27:02
- Copyright (c) 1991, 2007, Oracle. All rights reserved.
- Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.2)(PORT=1521)))
- STATUS of the LISTENER
- ————————
- Alias LISTENER
- Version TNSLSNR for Linux: Version 11.1.0.6.0 - Production
- Start Date 29-APR-2009 18:43:13
- Uptime 6 days 21 hr. 43 min. 49 sec
- Trace Level off
- Security ON: Local OS Authentication
- SNMP OFF
- Listener Parameter File /u01/app/oracle/product/11.1.0/network/admin/listener.ora
- Listener Log File /u01/app/oracle/diag/tnslsnr/devdb/listener/alert/log.xml
- Listening Endpoints Summary…
- (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.2)(PORT=1521)))
- (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC)))
- Services Summary…
- Service “devdb” has 1 instance(s).
- Instance “devdb”, status UNKNOWN, has 1 handler(s) for
- Service “devdb.thegeekstuff.com” has 1 instance(s).
- Instance “devdb”, status READY, has 1 handler(s) forthis service…
- Service “devdbXDB.thegeekstuff.com” has 1 instance(s).
- Instance “devdb”, status READY, has 1 handler(s) forthis service…
- Service “devdb_XPT.thegeekstuff.com” has 1 instance(s).
- Instance “devdb”, status READY, has 1 handler(s) forthis service…
- The command completed successfully
2.啟動oracle監聽器
如果oracle監聽器沒用執行,你可以用lsnrctl start命令啟動oracle監聽器,該命令將啟動所有的監聽器,如果你只想啟動特定的監聽器,可以再start後面指定監聽器的名字,例如:lsnrctl start [listener-name]。
- $ lsnrctl start
- LSNRCTL for Linux: Version 11.1.0.6.0 - Production on 04-APR-2009 16:27:42
- Copyright (c) 1991, 2007, Oracle. All rights reserved.
- Starting /u01/app/oracle/product/11.1.0/bin/tnslsnr: please wait…
- TNSLSNR for Linux: Version 11.1.0.6.0 - Production
- System parameter file is /u01/app/oracle/product/11.1.0/network/admin/listener.ora
- Log messages written to /u01/app/oracle/diag/tnslsnr/devdb/listener/alert/log.xml
- Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.2)(PORT=1521)))
- Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC)))
- Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.2)(PORT=1521)))
- STATUS of the LISTENER
- ————————
- Alias LISTENER
- Version TNSLSNR