Oracle数据库连接异常:ORA-12505 TNS:listener does not currently know of SID 。。。。
2014-11-19 09:11
405 查看
ORA-12505, TNS:listener does not currently know of SID given in connect desc .
一、正确的链接字符串
--HOST=服务器IP地址, 如192.16.1.100
--SID= .Net Configuration Assistance-->本地Net服务器名配置-->添加-->服务名(即为该服务名,并非pl/sql登陆时的DataBase属性值)
--User Id=用户名, 如User Id=system
--Password=登录密码,如Password=sa
二、是否启动监听
启动服务中的OracleOraDb10g_home1TNSListener,但是有时候不启动也行,不知道原因
三、修改listener.ora(不修改貌似也行,二、三方法我都试过,试过后可以链接成功,但是停止二中的服务以及三种的红色部分后,也可链接,暂时不知道原因)
1.找到以下目录,/opt/oracle/product/10.2.0/db_1/network/admin,修改listener.ora,(find -name listener.ora即可找到该文件)为:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /opt/oracle/product/10.2.0/db_1)
(PROGRAM = extproc)
)
(SID_DESC =
(GLOBAL_DBNAME = NIE)
(ORACLE_HOME = /opt/oracle/product/10.2.0/db_1)
(SID_NAME = NIE)
)
)
红色为新增
ORA-12505, TNS:listener does not currently know of SID given in connect desc .
一、正确的链接字符串
"Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.100)(PORT=1521))(CONNECT_DATA=(SID=ORACLE)));User Id=system;Password=sa;"
--HOST=服务器IP地址, 如192.16.1.100
--SID= .Net Configuration Assistance-->本地Net服务器名配置-->添加-->服务名(即为该服务名,并非pl/sql登陆时的DataBase属性值)
--User Id=用户名, 如User Id=system
--Password=登录密码,如Password=sa
二、是否启动监听
启动服务中的OracleOraDb10g_home1TNSListener,但是有时候不启动也行,不知道原因
三、修改listener.ora(不修改貌似也行,二、三方法我都试过,试过后可以链接成功,但是停止二中的服务以及三种的红色部分后,也可链接,暂时不知道原因)
1.找到以下目录,/opt/oracle/product/10.2.0/db_1/network/admin,修改listener.ora,(find -name listener.ora即可找到该文件)为:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /opt/oracle/product/10.2.0/db_1)
(PROGRAM = extproc)
)
(SID_DESC =
(GLOBAL_DBNAME = NIE)
(ORACLE_HOME = /opt/oracle/product/10.2.0/db_1)
(SID_NAME = NIE)
)
)
红色为新增
相关文章推荐
- eclipse连接数据库时出现ORA-12505, TNS:listener does not currently know of SID given in connect descriptor的解决
- Oracle连接报错ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
- ORA-12505, TNS:listener does not currently know of SID given in connect descriptor异常
- navicat 连接 oracle 的时出现:ORA-12505, TNS:listener does not currently know of SID given in connect descr
- oraclejdbc连接数据库的问题ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
- 力所能及之ORA-12505,TNS:listener does not currently know of SID given in connect descriptor
- ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
- ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
- 连接数据库时的异常:TNS:listener does not currently know of SID given in connect descriptor The Connection descriptor used by the client was: localhost:1521:orc
- Oracle 11G数据库报错 :ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
- ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
- Oralce监听服务出现问题解决方案 (ORA-12505, TNS:listener does not currently know of SID given in connect)
- ORA-12505, TNS:listener does not currently know of SID given 错误
- ORA-12505 TNS:listener does not currently know of SID given in connect descriptor
- ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
- ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
- 解决‘ORA-12505, TNS:listener does not currently know of SID given in connect descriptor’
- Oracle - ORA-12505, TNS:listener does not currently know of SID given in connect descriptor 解决
- ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
- ORA-12505, TNS:listener does not currently know of SID given in connect desc .