ERROR - ORA-12514 监听程序当前无法识别连接描述符中请求的服务(来自于xuleicsu)

来源:互联网 发布:怎样自己制作软件 编辑:程序博客网 时间:2024/06/05 06:06

说明:本文来自于xulei.cnblogs.com, 谢谢xulei同意转载此文.

I installed Oracle10g today.I tested the database system when the installation process was finished. I found that I could not connect the database by
using iSQL*Plus. It showed that "ERROR - ORA-12514: TNS: 监听程序当前无法识别连接描述符中请求的服务".

 

解决办法:

1. Open the ""<OracleHome>/network/admin/listener.ora" file in the host,and you will see:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = D:/oracle/product/10.2.0/db_1)
(PROGRAM = extproc)
)
)
2. Add the following lines after the 7th line in the above
(SID_DESC =
(GLOBAL_DBNAME = ORACLE)
(ORACLE_HOME = D:/oracle/product/10.2.0/db_1)
(SID_NAME = ORACLE)
)
3. At last the content of the file become to the following section:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = D:/oracle/product/10.2.0/db_1)
(PROGRAM = extproc)
)
(SID_DESC =
(GLOBAL_DBNAME = ORACLE)
(ORACLE_HOME = D:/oracle/product/10.2.0/db_1)
(SID_NAME = ORACLE)
)
)
4. Save the file and restart the TNSListener service in the host. That's OK!