日期:2014-05-17  浏览次数:20856 次

oracle用plsql develper登陆出错
我的数据库是oracle 10g服务器端,用sqlplus可以正常登陆。但是,用plsql develper登陆的时候报错,报错如下:
ORA-12514:TNS:listener does not currently know of service requested in connect descriptor

在控制面板中,
启动OracleCSService服务正常;启动OracleDBConsoleorcl服务出现如下提示信息,不能启动:

Windows 不能在本地计算机启动OracleDBConsoleorcl。有关更多信息,查阅系统事件日志。如果这是非Microsoft服务,请与服务厂商联系。
OracleOraDb10g_home1iSQL*Plus服务,OracleOraDb10g_home1Db10g_home1SNMPPeerEncapsulator服务,OracleOraDb10g_home1SNMPPeerMasterAgent服务,OracleOraDb10g_home1TNSListener服务,OracleServiceORCL服务,可以正常启动。OracleJobSchedulerORCL服务,按照安装时候的默认,设置为禁用。

在Java程序中连接数据库的时候,出现如下的错误:
java.sql.SQLException: Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
The Connection descriptor used by the client was:
127.0.0.1:1521:orcl


------解决方案--------------------
我还以为是连接串配错了。。
------解决方案--------------------
出现这种情况时,需要把服务关闭,然后把监听关闭,在开启监听和服务,就可以了,需要记住顺序
------解决方案--------------------
http://blog.csdn.net/smh821025/archive/2009/01/17/3819179.aspx
------解决方案--------------------
探讨
出现这种情况时,需要把服务关闭,然后把监听关闭,在开启监听和服务,就可以了,需要记住顺序