docker exec -it oracle11g bash
source /home/oracle/.bash_profile
lsnrctl stat
举例:注意标红字体
[oracle@e7ecd438053b /]$ lsnrctl stat
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 25-FEB-2023 11:29:08
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 23-FEB-2023 16:49:09
Uptime 1 days 18 hr. 39 min. 59 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File
/home/oracle/app/oracle/product/11.2.0/dbhome_2/network/admin/listener.ora
Listener Log File
/home/oracle/app/oracle/diag/tnslsnr/e7ecd438053b/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=e7ecd438053b)(PORT=1521)))
Services Summary...
Service "helowin" has 1 instance(s).
Instance "helowin", status READY, has 1 handler(s) for this service...
Service "helowinXDB" has 1 instance(s).
Instance "helowin", status READY, has 1 handler(s) for this service...
The command completed successfully
评论