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