ORA-12514:TNS:listener does not currently know of service requested in connect descriptor
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/20 06:13:33
ORA-12514:TNS:listener does not currently know of service requested in connect descriptor
ORA-12514:TNS:listener does not currently know of service requested in connect descriptor
ORA-12514:TNS:listener does not currently know of service requested in connect descriptor
建了个数据库(名:d0647073 sid:d0647073)
在用户登录的过程中出现如下错误:
Listener refused the connection with the following error:ORA-12514,TNS:listener does not currently know of service requested in connect descriptor The Connection descriptor used by the client was:(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=zsl)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=d0647073)))
解决方式:把注册表的ORA_D0647073_AUTOSTART值改为true,然后重新启动数据库的服务.(此问题可能有其他原因引起,但是这是一种原因)
在学习的过程中对这个问题有了进一步的认识:
其实它是数据库启动时,数据库的例程没有加载,也就说在注册表的ORA_D0647073_AUTOSTART值为FALSE在数据库启动时不自动加载例程.
另一种解决方法:
进入命令行,以sys用户登录
然后执行以下命令:
startup nomount;
alter database mount;
alter database open
修改\oracle\product\11.1.0\db_1\network\admin\listener.ora文件
加上
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = 你的数据库名称)
(ORACLE_HOME = D:\oracle\product\10.1.0\db_1)
)
)
然后重启lisener服务,就ok了