方法一、cmd输入lsnrctl status
方法二、运行“服务”,查看是否有Oracle监听服务,该服务是否启动。
方法三、检查listener.ora文件。
# listener.ora Network Configuration File: D:APP_oracle12cproduct12.1.0dbhome_1NETWORKADMINlistener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = AML)
(ORACLE_HOME = D:APP_oracle12cproduct12.1.0dbhome_1)
(SID_NAME = AML)
)
)
LISTENER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
)
ADR_BASE_LISTENER = D:APP_oracle12cproduct12.1.0dbhome_1log