TNS-12564: TNS:connection refused
来源:互联网 发布:十大元帅 知乎 编辑:程序博客网 时间:2024/05/19 02:26
今天搭建DG的时候,一直报下面的错误:
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=oradevdb1.800best.com)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SID_NAME=orauat1s)(CID=(PROGRAM=oracle)(HOST=oradevdb2.800best.com)(USER=oracle)))) VERSION INFORMATION: TNS for Linux: Version 11.2.0.3.0 - Production TCP/IP NT Protocol Adapter for Linux: Version 11.2.0.3.0 - Production Time: 26-JUN-2015 14:12:35 Tracing not turned on. Tns error struct: ns main err code: 12564 TNS-12564: TNS:connection refused ns secondary err code: 0 nt main err code: 0 nt secondary err code: 0 nt OS err code: 0
orauat1s = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = oradevdb2.800best.com)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SID_NAME = orauat1s) ) )
查来查去原来是 tns 连接 里面的HOST指向 本机(oradevdb2.800best.com),并且我在/etc/hosts里面做了域名解析,这样tnsping的时候肯定能通,但是并不能保证tnsnames.ora 里面的service_name 和 sid 是正确 。将主机名改成oradevdb1.800best.com ,问题解决了
[oracle@oradevdb2 admin]$ cat /etc/hosts127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4::1 localhost localhost.localdomain localhost6 localhost6.localdomain610.45.26.103 oradevdb1.800best.com10.45.26.104 oradevdb2.800best.com
出现这种情况,网上有很多说法,有人说密码文件的问题,如果是密码文件的问题,一般会报 权限的错误。
0 0
- TNS-12564: TNS:connection refused
- TNS:no listener: TNS:protocol adapter error: Connection refused
- TNS-12541 TNS-12560 TNS-00511 Linux Error: 111: Connection refused
- TNS-12560: TNS:protocol adapter error and Linux Error: 111: Connection refused
- TNS-12537: TNS:connection closed
- TNS-12537: TNS:connection closed TNS-12560: TNS:protocol adapter error TNS-00507: Connection clos
- TNS:connection closed
- tns
- java.sql.SQLException: Listener refused the connection with the following error: ORA-12505, TNS:list
- java.sql.SQLException: Listener refused the connection with the following error: ORA-12505, TNS:lis
- Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently
- java.sql.SQLException: Listener refused the connection with the following error: ORA-12505, TNS:list
- Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently
- Listener refused the connection with the following error:ORA-12505, TNS:listener does not currently
- Listener refused the connection(ORA-12519, TNS:no appropriate service handler found)
- ORA-12537: TNS:connection closed
- ORA-12537: TNS: connection closed
- ORA-12537: TNS:connection closed
- Spring IO 平台参考指南
- CCNotificationCenter事件监听器
- mysql的有序插入研究
- LabVIEW之生产者/消费者模式--队列操作
- openssl之BIO系列之5---CallBack函数及其控制
- TNS-12564: TNS:connection refused
- Hadoop的hdfs的配置参数详解
- openssl之BIO系列之6---BIO的IO操作函数
- 学习日记-C语言数据类型
- Redis 事务
- C#高级编程二十七天----创建泛型类
- openssl之:BIO系列之7---BIO链的操作
- Algorithms—134.Gas Station
- enum Qt::AspetRatioMode