Пользователи не могут подключиться к базе. Обычно при этом они получают ошибки: ORA-12547: TNS:lost contact или ORA-12637: Packet receive failed.
В sqlnet.log на сервере сообщения об ошибке ORA-12170: TNS:Connect timeout. Еще для версий 10g и выше, в alert.log могут быть сообщения WARNING: inbound connection timed out (ORA-3136).
Для разных ОС, параметр ‘nt secondary err code‘ может быть разным
For the Solaris system: nt secondary err code: 145: ETIMEDOUT 145 /* Connection timed out */ For the Linux operating system: nt secondary err code: 110 ETIMEDOUT 110 Connection timed out For the HP-UX system: nt secondary err code: 238: ETIMEDOUT 238 /* Connection timed out */ For AIX: nt secondary err code: 78: ETIMEDOUT 78 /* Connection timed out */ For Windows based platforms: nt secondary err code: 60 (which translates to Winsock Error: 10060)
Выдержка из документации
ORA-12170: TNS:Connect timeout occurred Cause: The server shut down because connection establishment or communication with a client failed to complete within the allotted time interval. This may be a result of network or system delays; or this may indicate that a malicious client is trying to cause a Denial of Service attack on the server. Action: If the error occurred because of a slow network or system, reconfigure one or all of the parameters SQLNET.INBOUND_CONNECT_TIMEOUT, SQLNET.SEND_TIMEOUT, SQLNET.RECV_TIMEOUT in sqlnet.ora to larger values. If a malicious client is suspected, use the address in sqlnet.log to identify the source and restrict access. Note that logged addresses may not be reliable as they can be forged (e.g. in TCP/IP).
Смысл этой ошибки в том что соединение не может быть установлено в течение отведенного интервала времени. А вот причин по которым это происходит может быть великое множество.
Как видно, основная рекомендация — увеличить параметры SQLNET.INBOUND_CONNECT_TIMEOUT, SQLNET.SEND_TIMEOUT и SQLNET.RECV_TIMEOUT. Можно попробовать сделать это, но это может не помочь. Поэтому лучше попробовать разобраться в корне проблемы.
Несколько основных причин ошибки и способы их решения
Проверить что сама база данных и Listener запущены и работают нормально, что к ним можно подключиться локально или с других компьютеров сети. Dmitry Bobrovsky 4) Проблемы из-за антивируса или firewall. Dmitry Bobrovsky Отключить или даже полностью деинсталировать антивирус или firewall.
5) Проблемы с DNS.
Либо прописать соответствующие записи в файл host либо во всех конфигурационных файлах oracle net использовать вместо имен — ip-адреса. Запись fatal ni connect error 12170 ns main err code 12535 впервые появилась Dmitry Bobrovsky Blog
Fatal ni connect error 12170 oracle что это
Copyright (c) 1982, 2008, Oracle. All rights reserved.
Enter password: ERROR: ORA-01017: invalid username/password; logon denied
Enter user-name: sys as sysdba ��� ����� �����
Enter password: ERROR: ORA-12560: TNS:protocol adapter error
Enter user-name: sys as sysdba Enter password: ERROR: ORA-12560: TNS:protocol adapter error
SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus
�����
Fatal NI connect error 12170.
TNS-12535: TNS:operation timed out ns secondary err code: 12606 nt main err code: 0 nt secondary err code: 0 nt OS err code: 0 Client address: (ADDRESS=(PROTOCOL=tcp)(HOST=172.21.11.127)(PORT=57070)) WARNING: inbound connection timed out (ORA-3136)
Wed Apr 04 06:10:31 2012 ALTER SYSTEM ARCHIVE LOG Wed Apr 04 06:10:31 2012 Thread 1 advanced to log sequence 18172 (LGWR switch) Current log# 5 seq# 18172 mem# 0: O:\DB\ABRA03\REDO05.LOG Current log# 5 seq# 18172 mem# 1: R:\DB\ABRA03\REDO05B.LOG Archived Log entry 18102 added for thread 1 sequence 18171 ID 0xc6348cfa dest 1: Wed Apr 04 06:15:20 2012 Suspending MMON slave action kewrmapsa_ for 82800 seconds Wed Apr 04 07:10:09 2012 Thread 1 advanced to log sequence 18173 (LGWR switch) Current log# 6 seq# 18173 mem# 0: O:\DB\ABRA03\REDO06.LOG Current log# 6 seq# 18173 mem# 1: R:\DB\ABRA03\REDO06B.LOG Wed Apr 04 07:10:27 2012 Archived Log entry 18103 added for thread 1 sequence 18172 ID 0xc6348cfa dest 1: Wed Apr 04 08:03:02 2012 Thread 1 advanced to log sequence 18174 (LGWR switch) Current log# 7 seq# 18174 mem# 0: O:\DB\ABRA03\REDO07.LOG Current log# 7 seq# 18174 mem# 1: R:\DB\ABRA03\REDO07B.LOG Wed Apr 04 08:03:22 2012 Archived Log entry 18104 added for thread 1 sequence 18173 ID 0xc6348cfa dest 1: Wed Apr 04 08:17:37 2012 ORA-00060: Deadlock detected. More info in file O:\DB\ABRA03\diag\rdbms\ABRA03\ABRA03\trace\ABRA03_ora_11568.trc. Wed Apr 04 08:42:51 2012 Thread 1 advanced to log sequence 18175 (LGWR switch) Current log# 8 seq# 18175 mem# 0: O:\DB\ABRA03\REDO08.LOG Current log# 8 seq# 18175 mem# 1: R:\DB\ABRA03\REDO08B.LOG Wed Apr 04 08:43:08 2012 Archived Log entry 18105 added for thread 1 sequence 18174 ID 0xc6348cfa dest 1: Wed Apr 04 09:18:40 2012 Thread 1 advanced to log sequence 18176 (LGWR switch) Current log# 9 seq# 18176 mem# 0: O:\DB\ABRA03\REDO09.LOG Current log# 9 seq# 18176 mem# 1: R:\DB\ABRA03\REDO09B.LOG Wed Apr 04 09:19:02 2012 Archived Log entry 18106 added for thread 1 sequence 18175 ID 0xc6348cfa dest 1: Wed Apr 04 09:58:38 2012 Thread 1 advanced to log sequence 18177 (LGWR switch) Current log# 10 seq# 18177 mem# 0: O:\DB\ABRA03\REDO10.LOG Current log# 10 seq# 18177 mem# 1: R:\DB\ABRA03\REDO10B.LOG Wed Apr 04 09:59:00 2012 Archived Log entry 18107 added for thread 1 sequence 18176 ID 0xc6348cfa dest 1: Wed Apr 04 09:59:09 2012
Fatal NI connect error 12170.
TNS-12535: TNS:operation timed out ns secondary err code: 12606 nt main err code: 0 nt secondary err code: 0 nt OS err code: 0 Client address: (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.11.34)(PORT=2679)) WARNING: inbound connection timed out (ORA-3136) Wed Apr 04 10:05:02 2012
Fatal NI connect error 12170.
TNS-12535: TNS:operation timed out ns secondary err code: 12606 nt main err code: 0 nt secondary err code: 0 nt OS err code: 0 Client address: (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.11.33)(PORT=3125)) WARNING: inbound connection timed out (ORA-3136) Wed Apr 04 10:07:23 2012
Fatal NI connect error 12170.
Fatal NI connect error 12547/12170
I am stakk with connection problem on customer Oracle server. Oracle database is installed on Microsoft Windows Server 2012 Standard. Version of Oracle DB is 11.2.0.4 Standard One Edition.
Oracle database works fine on server. I had no problems/errors while installing (as admin). My user is memer of Local Admin Group. I am also able to connect to it with sqlplus (sqlplus username/ [email protected] _alias) and SQL Developer.
Content of tnsnames, listener og sqlnet files are following:
I am using VPN tunnel to connect to database from my client. I can ping server successfully. TNSPING to database works fine, but I am not able to connect to database. I get an error on client:
ORA-12537 connection closed error.
Alert log content is following:
Fatal NI connect error 12547, connecting to: (LOCAL=NO)
TNS-12547: TNS:lost contact ns secondary err code: 12560 nt main err code: 0 nt secondary err code: 0 nt OS err code: 0 opiodr aborting process unknown ospid (88) as a result of ORA-609 2013-12-19 13:05:28.990000 +01:00
Fatal NI connect error 12170.
TNS-12535: TNS:operation timed out ns secondary err code: 12606 nt main err code: 0 nt secondary err code: 0 nt OS err code: 0 Client address: opiodr aborting process unknown ospid (2384) as a result of ORA-609 2013-12-19 13:44:44.855000 +01:00 opiodr aborting process unknown ospid (1292) as a result of ORA-609 2013-12-19 14:30:34.351000 +01:00
I supposed that connection could use some more time so I set inbound_connection to 180 (3 minutes). Same error.
Then I turn on support trace. Here is analyzed content:
Trying to get IP client address results in error. Host IP is not correct.
Handshake never succeded. Client was trying to read from transport but never succeeded. I assume it is because of wrong or non Client address: «(ADDRESS=(PROTOCOL=tcp)(HOST=::1)(PORT=53749))»
Firewall is off on Server. Network administrator says that there is no rules which could compromise communication/traffic on port 1521. I tried trcroute too and I get following conntent
1 27ms 22 ms 17ms 192.168.97.1
2 * * * request aborted
3 20 ms 18 ms 18 ms server.company.se (192.168.1.9)
Any suggestion, help or comments would be appriciated. I am running out of ideas.
fatal ni connect error 12170
ENG:
fatal ni connect error 12170 ns main err code 12535
Пользователи не могут подключиться к базе. Обычно при этом они получают ошибки: ORA-12547: TNS:lost contact или ORA-12637: Packet receive failed.
В sqlnet.log на сервере сообщения об ошибке ORA-12170: TNS:Connect timeout. Еще для версий 10g и выше, в alert.log могут быть сообщения WARNING: inbound connection timed out (ORA-3136).
VERSION INFORMATION: TNS for 64-bit Windows: Version 10.2.0.4.0 — Production Oracle Bequeath NT Protocol Adapter for 64-bit Windows: Version 10.2.0.4.0 — Production Windows NT TCP/IP NT Protocol Adapter for 64-bit Windows: Version 10.2.0.4.0 — Production Time: 13-FEB-2013 13:47:12 Tracing not turned on. Tns error struct: ns main err code: 12535 TNS-12535: TNS:operation timed out ns secondary err code: 12560 nt main err code: 505 TNS-00505: Operation timed out nt secondary err code: 60 nt OS err code: 0 Client address: (ADDRESS=(PROTOCOL=tcp)(HOST=10.77.116.47)(PORT=2971)) ***********************************************************************
Для разных ОС, параметр ‘nt secondary err code‘ может быть разным
For the Solaris system: nt secondary err code: 145: ETIMEDOUT 145 /* Connection timed out */ For the Linux operating system: nt secondary err code: 110 ETIMEDOUT 110 Connection timed out For the HP-UX system: nt secondary err code: 238: ETIMEDOUT 238 /* Connection timed out */ For AIX: nt secondary err code: 78: ETIMEDOUT 78 /* Connection timed out */ For Windows based platforms: nt secondary err code: 60 (which translates to Winsock Error: 10060)
Выдержка из документации
ORA-12170: TNS:Connect timeout occurred Cause: The server shut down because connection establishment or communication with a client failed to complete within the allotted time interval. This may be a result of network or system delays; or this may indicate that a malicious client is trying to cause a Denial of Service attack on the server. Action: If the error occurred because of a slow network or system, reconfigure one or all of the parameters SQLNET.INBOUND_CONNECT_TIMEOUT, SQLNET.SEND_TIMEOUT, SQLNET.RECV_TIMEOUT in sqlnet.ora to larger values. If a malicious client is suspected, use the address in sqlnet.log to identify the source and restrict access. Note that logged addresses may not be reliable as they can be forged (e.g. in TCP/IP).
Смысл этой ошибки в том что соединение не может быть установлено в течение отведенного интервала времени. А вот причин по которым это происходит может быть великое множество.
Как видно, основная рекомендация — увеличить параметры SQLNET.INBOUND_CONNECT_TIMEOUT, SQLNET.SEND_TIMEOUT и SQLNET.RECV_TIMEOUT. Можно попробовать сделать это, но это может не помочь. Поэтому лучше попробовать разобраться в корне проблемы.
Несколько основных причин ошибки и способы их решения
Проверить что сама база данных и Listener запущены и работают нормально, что к ним можно подключиться локально или с других компьютеров сети. Dmitry Bobrovsky 4) Проблемы из-за антивируса или firewall. Dmitry Bobrovsky Отключить или даже полностью деинсталировать антивирус или firewall.
5) Проблемы с DNS.
Либо прописать соответствующие записи в файл host либо во всех конфигурационных файлах oracle net использовать вместо имен — ip-адреса. Запись fatal ni connect error 12170 ns main err code 12535 впервые появилась Dmitry Bobrovsky Blog
I am getting error ORA-12170 while connecting from C# application to Oracle database. I searched and found somewhere that the error description can be found in sqlnet.log file. What I am pasting is the sqlnet.log content. How can I overcome this problem?
Fatal NI connect error 12170.
VERSION INFORMATION: TNS for 32-bit Windows: Version 10.2.0.1.0 — Production Windows NT TCP/IP NT Protocol Adapter for 32-bit Windows: Version 10.2.0.1.0 — Production Time: 08-JUN-2016 18:49:09 Tracing not turned on. Tns error struct: ns main err code: 12535 TNS-12535: TNS:operation timed out ns secondary err code: 12560 nt main err code: 505 TNS-00505: Operation timed out nt secondary err code: 60 nt OS err code: 0 Client address:
Question: Below error getting in alert log file every day, but database is working fine What are the reason for this Fatal ni connect error 12170?
Fatal NI connect error 12170.
VERSION INFORMATION: TNS for 64-bit Windows: Version 11.2.0.1.0 — Production Oracle Bequeath NT Protocol Adapter for 64-bit Windows: Version 11.2.0.1.0 — Production Windows NT TCP/IP NT Protocol Adapter for 64-bit Windows: Version 11.2.0.1.0 — Production Time: 28-MAY-2012 19:20:02 Tracing not turned on. Tns error struct: ns main err code: 12535
TNS-12535: TNS:operation timed out ns secondary err code: 12560
Answer: The fatal ni connect error 12170 is related to the ORA-12170 error:
ORA-12170: TNS:Connect timeout occurred
Cause: The client failed to establish a connection and complete authentication in the time specified by the SQLNET.INBOUND_CONNECT_TIMEOUT parameter in the sqlnet.ora file. This error may be a result of network or system delays, or it may indicate that a malicious client is trying to cause a denial-of-service attack on the database server.
The server shut down because connection establishment or communication with a client failed to complete within the allotted time interval. This may be a result of network or system delays; or this may indicate that a malicious client is trying to cause a Denial of Service attack on the server.
Action: If the error occurred because of a slow network or system, reconfigure one or all of the parameters SQLNET.INBOUND_CONNECT_TIMEOUT, SQLNET.SEND_TIMEOUT, SQLNET.RECV_TIMEOUT in sqlnet.ora to larger values. If a malicious client is suspected, use the address in sqlnet.log to identify the source and restrict access. Note that logged addresses may not be reliable as they can be forged (e.g. in TCP/IP).
See Also: «Configuring the Listener and the Oracle Database To Limit Resource Consumption By Unauthorized Users» for further information about setting the SQLNET.INBOUND_CONNECT_TIMEOUT parameter
Action: If the error occurred due to system or network delays that are normal for the particular environment, then perform this steps:
Turn on tracing to determine where clients are timing out.
Burleson is the American Team
Verifyexperience!Anyone considering using the services of an Oracle support expert should independently investigate their credentials and experience, and not rely on advertisements and self-proclaimed expertise. All legitimate Oracle experts publish their Oracle qualifications.
Errata? Oracle technology is changing and we strive to update our BC Oracle support information. If you find an error or have a suggestion for improving our content, we would appreciate your feedback. Just e-mail: