ORA-12514: TNS:listener does not currently know of service

用PL\SQL打开oracle数据库时出现了这种错误:ORA-12514: TNS:listener does not currently know of service requested in connect descriptor。

解决方法如下:

在安装目录下: /home/oracle/oracle/product/10.2.0/db_1/network/admin/listener.ora
将:SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = E:\oracle\product\10.1.0\Db_1)
(PROGRAM = extproc)
)
)

改为:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = E:\oracle\product\10.1.0\Db_1)
(PROGRAM = extproc)
)
(SID_DESC =
(GOLBAL_DBNAME= orcl)
(ORACLE_HOME = E:\oracle\product\10.1.0\Db_1)
(SID_NAME=orcl)
)
)

然后重启服务和监听以后,登陆正常。

你可能感兴趣的:(ORACLE)