Fatal NI connect error 12170
VERSION INFORMATION:
TNS for Linux: VERSION 11.2.0.1.0 – Production
Oracle Bequeath NT Protocol Adapter for Linux: VERSION 11.2.0.1.0 – Production
TCP/IP NT Protocol Adapter for Linux: VERSION 11.2.0.1.0 – Production
TCP/IP NT Adapter for Linux:
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: 110
nt OS err code: 0
Client address: (ADDRESS=(PROTOCOL=tcp)(HOST=xxx.xxx.xxx.xxx)(PORT=33358))
The reason:
According to the online search, the session is in idle state because the client has not executed a statement for a period of time after connecting to Oracle, which is easy to be cut off by the network layer device. In Oracle 11GR2, due to the opening of ADR (Automatic Diagnostic Repository), this error is written into the alert log.
Solutions:
1. Close the ADR
在sqlnet.ora Added parameters.
DIAG_ADR_ENABLED=OFF
在listener.oraAdd an argument to the following (where <listenername> is replaced with your own listener name).
DIAG_ADR_ENABLED_<listenername>=OFF
2. Oracle actively sends the probe package to the client
在sqlnet.ora Added parameters.
sqlnet.expire_time=10 ## Probe packets are sent to clients every 10 minutes, with a slight impact on network performance
3. Restart listening after adding parameters
lsnrctl stop
lsnrctl start
or
lsnrctl reload
Read More:
- Oracle database file is damaged, Error:ORA-01033 :ORACLE initialization or shutdown in progress
- An error is reported when kettle connects Oracle database and MySQL database
- Oracle11gr2 database suddenly “TNS no listener” protocol adapter error
- The solution of PL / SQL can’t connect to the remote server after installing Oracle locally
- A series of errors encountered in connecting to the database using Oracle SQL developer
- The problem of [connection lost contact] after C # code connecting Oracle database for a period of time
- Oracle database missing init.ora Solutions
- Solve the error of ora-12514 when Navicat connects to Oracle Database
- JDBC connect to Sql Server to connect to the database–The TCP/IP connection to the host localhost, port 1433 has failed
- Failed to create Oracle Oracle home user solution appears in oracle12c installation
- Oracle can’t start the database due to deleting DBF file by mistake
- Deployment project error: Oracle 11g ora-12505, TNS:listener does not currently know of SID given in connect descriptor
- How to Solve mybatis returns null when querying Oracle database with char type field
- 【Oracle】 ORA-00257: archiver error. Connect internal only, until freed
- Oracle Data Guard Ping [arc2]: heartbeat failed to connect to standby “. Error is 12514 fault analysis
- Solution of invalid username / password; login denied error in Oracle Database Foundation
- [Solved] SpringBoot Integrating Oracle reports errors: ORA-12504, TNS:listener was not given the SID in CONNECT_DATA
- Oracle12c client32 bit installation error: [ins-20802] Oracle net configuration assistant failed
- How to Fix “Oracle sp2-0640 unable to connect” Error
- Connect to the repository by using the database resource library!