| main - Oracle Net Troubleshooting Wizard | |
The Diagnostic Assistant Menu enables troubleshooting and gathering
of relevant diagnostics for Oracle Net and Sqlnet issues.
Choose option "1" to begin your diagnosis:
(1) Verify Sqlnet Connectivity via Tnsname Service Name
(2) Verify the Database is Running
(3) Verify Oracle Listner Status
(4) Perform a Loopback Tests (ping, tnsping, trcroute)
(5) Validate Localized Configuration Files
(6) Validate OS Network settings
(7) Perform Diagnostic Collection using RDA
(8) Check All of the Above
(H)elp (E)xit
Showing Menu Help:
Oracle Diagnostic Assistant Oracle Net Menu
This menu helps resolve Possible TNS network connectivity-related errors:
TNS-12545: Connect failed because target host or object does not exist
ORA-12154: TNS: Could not resolve service name
ORA-12157: TNS Internal network communication error
Explanation of available options:
(1) Verify Sqlnet Connectivity via Tnsname Service Name :
Invoke SQL*Plus from the OS command line "sqlplus scott/tiger@ORCL11G".
If this fails, check to ensure that your listener is the ORCL11G
service defined.
(2) Verify the Database is Running:
sqlplus / as sysdba;
A message appears, confirming that you are connected with the database
If you receive the following errors, ask your Database Administrator to
assist you:
ORA-1017: invalid U/P
ORA-1034: Oracle not available
(3) Verify Oracle Listner Status:
lsnrctl status
(4) Perform a Loopback Tests[tnsping and trcroute]
Check with "tnsping" using TNS service name
tnsping V1121
trcroute V1121 5
(5) Validate Localized Configuration Files
Check if TNS_ADMIN and ORACLE_SID are set
env|grep TNS_ADMIN
env|grep ORACLE_SID
Ensure that the listener.ora, tnsnames.ora, and sqlnet.ora files
exist in the correct locations:
cat $ORACLE_HOME/network/admin/listener.ora
cat $ORACLE_HOME/network/admin/tnsnames.ora
cat $ORACLE_HOME/network/admin/sqlnet.ora
Example TNSNAMES.ORA
DEV1.WORLD =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(PROTOCOL = TCP)
(Host = 145.45.78.56)
(Port = 1521)
)
)
(CONNECT_DATA = (SID = ORCL)
)
)
Example SQLNET.ORA
TRACE_LEVEL_CLIENT = OFF
SQLNET.AUTHENTICATION_SERVICES = (NONE)
NAMES.DIRECTORY_PATH = (TNSNAMES)
AUTOMATIC_IPC = OFF
(6) Validate OS Network settings
Ping and traceroute Database Server
ping dmorldb02 -c 5
The /etc/host file is used to isolate the IP address from the
tnsnames.ora file.
cat /etc/hosts
Active Internet connections (servers and established)
netstat -a
(7) Perform Diagnostic Collection using RDA
Calling RDA with Moduules OS, NET, ONET
S100OS - Collects the Operating System Information
S122ONET - Collects Oracle Net Information
S120NET - Collects Network Information
(8) Check All of the Above
|
|
| Menu Option: 1 - [+] Show Command Details | |
| Menu Option: 2 - [+] Show Command Details | |
| Menu Option: 3 - [+] Show Command Details | |
| Menu Option: 4 - [+] Show Command Details | |
| Menu Option: 5 - [+] Show Command Details | |
| Menu Option: 6 - [+] Show Command Details | |
| Menu Option: 7 - [+] Show Command Details | |
| Menu Option: 8 - [+] Show Command Details | |
| Menu Option: M - [+] Show Menu Details | |