# listener.ora Network Configuration File: D:\oracle\product\10.1.0\Db_1\network\admin\listener.ora # Generated by Oracle configuration tools. SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (SID_NAME = PLSExtProc) (ORACLE_HOME = D:\oracle\product\10.1.0\Db_1) (PROGRAM = extproc) ) ) ) LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = cust-e44050fe71)(PORT = 1521)) ) (ADDRESS_LIST = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC)) ) ) )
如果你listener.ora配置文件是这样的 说明少了一些配置信息应指出监听那个数据库应加上
(SID_DESC = (GLOBAL_DBNAME = GKBM2015) //为数据库服务名 (ORACLE_HOME = D:\oracle\product\10.1.0\Db_1) (SID_NAME = GKBM2015) //为数据库服务名 ) (SID_DESC = (GLOBAL_DBNAME = ZYXX2015) //为数据库服务名 (ORACLE_HOME = D:\oracle\product\10.1.0\Db_1) (SID_NAME = ZYXX2015) //为数据库服务名 )
之后的文件是这样的
# listener.ora Network Configuration File: D:\oracle\product\10.1.0\Db_1\network\admin\listener.ora # Generated by Oracle configuration tools. SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (SID_NAME = PLSExtProc) (ORACLE_HOME = D:\oracle\product\10.1.0\Db_1) (PROGRAM = extproc) ) (SID_DESC = (GLOBAL_DBNAME = GKBM2015) (ORACLE_HOME = D:\oracle\product\10.1.0\Db_1) (SID_NAME = GKBM2015) ) (SID_DESC = (GLOBAL_DBNAME = ZYXX2015) (ORACLE_HOME = D:\oracle\product\10.1.0\Db_1) (SID_NAME = ZYXX2015) ) ) ) LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = cust-e44050fe71)(PORT = 1521)) ) (ADDRESS_LIST = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC)) ) ) )
之后重启监听程序
cmd命令中输入 lsnrctl
stop
start
时间: 2024-10-27 07:46:21