Oracle 11G数据库报错 :ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
2013-02-26 10:27
686 查看
本人在做Oracle11G的数据库迁移的时候,报错如下:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
The Connection descriptor used by the client was:
172.1.3.111:1521:eq_test……
我的数据库net manager 配置如下:
,
在数据库服务器上,该数据库的服务名如下:
而在配置jdbc.properties 文件里我是这样写的:
datasource.url_meta_rw_0=jdbc:oracle:thin:@172.16.113.13:1522:eq_test
datasource.username_meta_rw_0=earth_meta
datasource.password_meta_rw_0=123456
然后在启动项目的时候就报出上述错误。
把jdbc.properties的配置文件修改如下:
datasource.url_meta_rw_0=jdbc:oracle:thin:@172.16.113.13:1522:earthtest
datasource.username_meta_rw_0=earth_meta
datasource.password_meta_rw_0=123456
重启TNSListener后,问题解决了。
故:这里面的数据库名,应该和服务名称一致的,这个服务是指“我的电脑”里的“服务”,不是数据库里配置的服务名。
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
The Connection descriptor used by the client was:
172.1.3.111:1521:eq_test……
我的数据库net manager 配置如下:
,
在数据库服务器上,该数据库的服务名如下:
而在配置jdbc.properties 文件里我是这样写的:
datasource.url_meta_rw_0=jdbc:oracle:thin:@172.16.113.13:1522:eq_test
datasource.username_meta_rw_0=earth_meta
datasource.password_meta_rw_0=123456
然后在启动项目的时候就报出上述错误。
把jdbc.properties的配置文件修改如下:
datasource.url_meta_rw_0=jdbc:oracle:thin:@172.16.113.13:1522:earthtest
datasource.username_meta_rw_0=earth_meta
datasource.password_meta_rw_0=123456
重启TNSListener后,问题解决了。
故:这里面的数据库名,应该和服务名称一致的,这个服务是指“我的电脑”里的“服务”,不是数据库里配置的服务名。
相关文章推荐
- Oracle - ORA-12505, TNS:listener does not currently know of SID given in connect descriptor 解决
- oraclejdbc连接数据库的问题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 解决
- Oracle连接报错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 解决
- eclipse连接数据库时出现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
- oracle11中ORA-12505, TNS:listener does not currently know of SID given in connect desc
- 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
- 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’
- java中的使用JDBC出错: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 (二)
- activiti 数据库配置错误:ORA-12505, TNS:listener does not currently know of SID given in connect desc
- ORA-12505 TNS:listener does not currently know of SID given in connect descriptor