同一个服务器,首先安装了Oracle 10g SES,后来又安装了Oracle 10G,刚安装好时前者企业安全搜索和后者的数据库都能正在登陆,后来重启电脑后,前者不能搜索,在服务中发现OracleServiceSES停止了,启动后,前者可以正常使用,可是后者无论怎样登陆,都报错为ORA-12505: TNS: 监听器无法处理连接描述符中所给出的 SID。服务中两个监听服务都正常运行啊:
这是Oracle 10g 的tnsnames文档内容:
# tnsnames.ora Network Configuration File: D:\oracle\product\10.2.0\db_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
LISTENER_ORCL =
(ADDRESS = (PROTOCOL = TCP)(HOST = jiaoda)(PORT = 1522))
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = jiaoda)(PORT = 1522))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)
下面是listener
# listener.ora Network Configuration File: D:\oracle\product\10.2.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.2.0\db_1)
(PROGRAM = extproc)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = jiaoda)(PORT = 1522))
)
)
如果把SES的监听器关闭后,登陆Oracle 10g,提示ora-12541:TNS;无监听程序。
是不是因为监听安装端口设置有问题?SES先安装的是1521,后者是1522。
SES安装的listener文件如下;
# listener.ora Network Configuration File: D:\oracle\product\10.1.8\ses1\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.8\ses1)
(PROGRAM = extproc)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = jiaoda)(PORT = 1521))
)
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
)
)
请大牛们帮帮忙。