admin管理员组

文章数量:1530013

sqlplus报错ORA-12547: TNS:lost contact解决

  • 1. 报错
  • 2. strace定位
  • 3. 解决

Oracle 19c RAC for Linux二节点sqlplus登录数据库报错ORA-12547: TNS:lost contact

1. 报错

[oracle@rac02 ~]$ sqlplus / as sysdba
SQL*Plus: Release 19.0.0.0.0 - Production on Sun Jul 31 22:27:49 2022
Version 19.3.0.0.0

Copyright (c) 1982, 2019, Oracle.  All rights reserved.

ERROR:
ORA-12547: TNS:lost contact

Enter user-name: 
ERROR:
ORA-12547: TNS:lost contact

Enter user-name: 
ERROR:
ORA-12547: TNS:lost contact

SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus

2. strace定位

[oracle@rac02 ~]$ strace -T -f sqlplus / as sysdba

execve("/u01/app/oracle/product/19.0.0/dbhome_1/bin/sqlplus", ["sqlplus", "/", "as", "sysdba"], 0x7fffabe7fc98 /* 21 vars */) = 0 <0.000209>
brk(NULL)                               = 0x81c000 <0.000013>
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5895224000 <0.000069>
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory) <0.000127>

...省略部分

[pid  7656] close(5)                    = 0

本文标签: 报错ORAsqlplusContactLost