甲骨文 12c:TNS-12535:TNS:operation 超时

Oracle 12c: TNS-12535: TNS:operation timed out

我们在 RHEL 7 和 Oracle 12c 上有一个新的数据库服务器。旧的数据库服务器是 RHEL 4 和 Oracle 10g。我需要使用12c客户端将数据从新服务器转储到旧服务器。

我配置了 tnsnames - 但是,在测试 tnsping 时,我得到 TNS-12535: TNS:operation timed out。我仔细检查了所有内容,所有参数看起来都不错。我尝试检查旧服务器防火墙,它被禁用并且没有任何限制。我尝试将 tnsping 数据库实例连接到我们的旧登台和开发服务器,我在不到 10 毫秒的时间内得到了响应。

下面是我们旧服务器的 tnsnames 条目:

RPROD_1 =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.102.139)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = RPROD.GET2HAWAII.COM)
    )
  )

这是来自`tnsping 的跟踪文件:

[09-JAN-2018 20:26:50:179] nlstdipi: entry
[09-JAN-2018 20:26:50:179] nlstdipi: exit
[09-JAN-2018 20:26:50:179] nnfun2awanm: entry
[09-JAN-2018 20:26:50:179] nnfgiinit: entry
[09-JAN-2018 20:26:50:179] nncpcin_maybe_init: default name server domain is [root]
[09-JAN-2018 20:26:50:179] nnfgiinit: Installing read path
[09-JAN-2018 20:26:50:179] nnfgsrsp: entry
[09-JAN-2018 20:26:50:179] nnfgsrsp: Obtaining path parameter from names.directory_path or native_names.directory_path
[09-JAN-2018 20:26:50:179] nnfgsrdp: entry
[09-JAN-2018 20:26:50:179] nnfgsrdp: Setting path:
[09-JAN-2018 20:26:50:179] nnfgsrdp: checking element TNSNAMES
[09-JAN-2018 20:26:50:179] nnfgsrdp: checking element EZCONNECT
[09-JAN-2018 20:26:50:179] nnfgsrdp: Path set
[09-JAN-2018 20:26:50:179] nnfun2a: entry
[09-JAN-2018 20:26:50:179] nlolgobj: entry
[09-JAN-2018 20:26:50:179] nnfgrne: entry
[09-JAN-2018 20:26:50:179] nnfgrne: Going though read path adapters
[09-JAN-2018 20:26:50:179] nnfgrne: Switching to TNSNAMES adapter
[09-JAN-2018 20:26:50:179] nnftboot: entry
[09-JAN-2018 20:26:50:179] nlpaxini: entry
[09-JAN-2018 20:26:50:179] nlpaxini: exit
[09-JAN-2018 20:26:50:179] nnftmlf_make_local_addrfile: entry
[09-JAN-2018 20:26:50:179] nnftmlf_make_local_addrfile: construction of local names file failed
[09-JAN-2018 20:26:50:179] nnftmlf_make_local_addrfile: exit
[09-JAN-2018 20:26:50:179] nlpaxini: entry
[09-JAN-2018 20:26:50:179] nlpaxini: exit
[09-JAN-2018 20:26:50:179] nnftmlf_make_system_addrfile: entry
[09-JAN-2018 20:26:50:179] nnftmlf_make_system_addrfile: system names file is /u01/app/oracle/product/12.2.0.1/db_1/network/admin/tnsnames.ora
[09-JAN-2018 20:26:50:179] nnftmlf_make_system_addrfile: exit
[09-JAN-2018 20:26:50:179] nnftboot: exit
[09-JAN-2018 20:26:50:179] nnftrne: entry
[09-JAN-2018 20:26:50:179] nnftrne: Original name: rprod_1
[09-JAN-2018 20:26:50:179] nnfttran: entry
[09-JAN-2018 20:26:50:179] nnfttran: exit
[09-JAN-2018 20:26:50:179] nnftrne: Using tnsnames.ora address (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.102.139)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = RPROD.GET2HAWAII.COM))) for name rprod_1
[09-JAN-2018 20:26:50:179] nnftrne: exit
[09-JAN-2018 20:26:50:179] nnfgrne: exit
[09-JAN-2018 20:26:50:179] nlolgserv: entry
[09-JAN-2018 20:26:50:179] nnfggav: entry
[09-JAN-2018 20:26:50:179] nnftgav: entry
[09-JAN-2018 20:26:50:179] nnftgav: exit
[09-JAN-2018 20:26:50:179] nnftfrm: exit
[09-JAN-2018 20:26:50:179] nnfgfrm: exit
[09-JAN-2018 20:26:50:179] nlolgserv: exit
[09-JAN-2018 20:26:50:179] nlolgobj: exit
[09-JAN-2018 20:26:50:179] nlolfmem: entry
[09-JAN-2018 20:26:50:179] nlolfmem: exit
[09-JAN-2018 20:26:50:179] nnfun2awanm: Getting the path of sqlnet.ora
[09-JAN-2018 20:26:50:179] nnfun2awanm: Getting the adapter name
[09-JAN-2018 20:26:50:179] nnfun2awanm: exit
[09-JAN-2018 20:26:50:179] snsgblini: exit
[09-JAN-2018 20:26:50:180] nsmal: 288 bytes at 0x1afe400
[09-JAN-2018 20:26:50:180] nscall: connecting...
[09-JAN-2018 20:26:50:180] snlinGetAddrInfo: entry
[09-JAN-2018 20:26:50:180] snlinGetAddrInfo: exit
[09-JAN-2018 20:26:50:180] snlinFreeAddrInfo: entry
[09-JAN-2018 20:26:50:180] snlinFreeAddrInfo: exit
[09-JAN-2018 20:26:50:180] nlad_pr: entry
[09-JAN-2018 20:26:50:180] nlad_pr: entry
[09-JAN-2018 20:26:50:180] snlinGetAddrInfo: entry
[09-JAN-2018 20:26:50:180] snlinGetAddrInfo: exit
[09-JAN-2018 20:26:50:180] snlinFreeAddrInfo: entry
[09-JAN-2018 20:26:50:180] snlinFreeAddrInfo: exit
[09-JAN-2018 20:26:50:180] nlad_pr: entry
[09-JAN-2018 20:26:50:180] nlad_aand: entry
[09-JAN-2018 20:26:50:180] nlad_ind: entry
[09-JAN-2018 20:26:50:180] snlinGetAddrInfo: entry
[09-JAN-2018 20:26:50:180] snlinGetAddrInfo: exit
[09-JAN-2018 20:26:50:180] snlinFreeAddrInfo: entry
[09-JAN-2018 20:26:50:180] snlinFreeAddrInfo: exit
[09-JAN-2018 20:26:50:180] nlad_ind: exit
[09-JAN-2018 20:26:50:180] nlad_aand: entry
[09-JAN-2018 20:26:50:180] nladini: entry
[09-JAN-2018 20:26:50:180] nladini: exit
[09-JAN-2018 20:26:50:180] nladget: entry
[09-JAN-2018 20:26:50:180] nladget: exit
[09-JAN-2018 20:26:50:180] nsmal: 122 bytes at 0x1b00090
[09-JAN-2018 20:26:50:180] nsc2addr: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.102.139)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=RPROD.GET2HAWAII.COM)))
[09-JAN-2018 20:26:50:180] nttbnd2addr: entry
[09-JAN-2018 20:26:50:180] snlinGetAddrInfo: entry
[09-JAN-2018 20:26:50:180] snlinGetAddrInfo: exit
[09-JAN-2018 20:26:50:180] nttbnd2addr: using host IP address: 192.168.102.139
[09-JAN-2018 20:26:50:180] snlinFreeAddrInfo: entry
[09-JAN-2018 20:26:50:180] snlinFreeAddrInfo: exit
[09-JAN-2018 20:26:50:180] nttbnd2addr: exit
[09-JAN-2018 20:26:50:180] nsmal: 1912 bytes at 0x1b00120
[09-JAN-2018 20:26:50:180] nsmal: 3352 bytes at 0x1b008a0
[09-JAN-2018 20:26:50:180] nsmal: 168 bytes at 0x1b017d0
[09-JAN-2018 20:26:50:180] nsopen: opening transport...
[09-JAN-2018 20:26:50:180] nttcon: entry
[09-JAN-2018 20:26:50:180] nttcon: toc = 1
[09-JAN-2018 20:26:50:180] nttcnp: entry
[09-JAN-2018 20:26:50:180] nttcnp: exit
[09-JAN-2018 20:26:50:180] nttcni: entry
[09-JAN-2018 20:26:50:180] nttcni: Tcp conn timeout = 60000 (ms)
[09-JAN-2018 20:26:50:180] nttctl: entry
[09-JAN-2018 20:26:50:180] nttctl: Setting connection into non-blocking mode
[09-JAN-2018 20:26:50:180] nttcni: trying to connect to socket 5.
[09-JAN-2018 20:26:50:180] ntt2err: entry
[09-JAN-2018 20:26:50:180] ntt2err: exit
[09-JAN-2018 20:26:50:180] ntctst: size of NTTEST list is 1 - not calling poll
[09-JAN-2018 20:27:50:240] sntpoltst: exit
[09-JAN-2018 20:27:50:240] nttcni: TImeout or Error on this socket
[09-JAN-2018 20:27:50:241] nttcni: exit
[09-JAN-2018 20:27:50:241] nttcon: exit
[09-JAN-2018 20:27:50:241] nserror: nsres: id=0, op=65, ns=12535, ns2=12560; nt[0]=505, nt[1]=0, nt[2]=0; ora[0]=0, ora[1]=0, ora[2]=0
[09-JAN-2018 20:27:50:241] nsopen: unable to open transport
[09-JAN-2018 20:27:50:241] nsvntx_dei: entry
[09-JAN-2018 20:27:50:241] nsvntx_dei: exit
[09-JAN-2018 20:27:50:241] nsmfr: 3352 bytes at 0x1b008a0
[09-JAN-2018 20:27:50:241] nsmfr: 1912 bytes at 0x1b00120
[09-JAN-2018 20:27:50:241] nldntUpdateNodeTable: entry
[09-JAN-2018 20:27:50:241] snlinGetAddrInfo: entry
[09-JAN-2018 20:27:50:241] snlinGetAddrInfo: exit
[09-JAN-2018 20:27:50:241] snlinFreeAddrInfo: entry
[09-JAN-2018 20:27:50:241] snlinFreeAddrInfo: exit
[09-JAN-2018 20:27:50:241] nsmfr: 122 bytes at 0x1b00090
[09-JAN-2018 20:27:50:241] nscall: connecting...
[09-JAN-2018 20:27:50:241] nladget: entry
[09-JAN-2018 20:27:50:241] nladget: exit
[09-JAN-2018 20:27:50:241] nsmfr: 288 bytes at 0x1afe400
[09-JAN-2018 20:27:50:241] nladtrm: entry
[09-JAN-2018 20:27:50:241] nladtrm: exit
[09-JAN-2018 20:27:50:241] nlse_term_audit: entry
[09-JAN-2018 20:27:50:241] nlse_term_audit: exit

这确实是一个网络问题,涉及两台服务器的网络掩码,而另一台服务器的网络掩码不正确。