ORACLE/ADMIN
TECH: SQL*Net V2 on Unix - A Quick Guide to Setting Up Client Side Tracing [ID 16564.1]
[PineTree]
2011. 5. 2. 21:38
반응형
TECH: SQL*Net V2 on Unix - A Quick Guide to Setting Up Client Side Tracing [ID 16564.1] | |
||||
|
Modified 20-OCT-2005 Type REFERENCE Status PUBLISHED | |
( For a more detailed discussion of SQL*Net V2 tracing see Note:16658.1 ) Client Tracing ~~~~~~~~~~~~~~ 1) Set the environment variable TNS_ADMIN to the directory where the tnsnames.ora and listener.ora files exist. The default location is $ORACLE_HOME/network/admin. Set $TNS_ADMIN to this if it is not set. This ENSURES you know which files you are using. 2) Start the listener: lsnrctl > set password <password> > start Note any errors. If you do not have a password set then ignore the set password command. 3) If the listener started, start the database. 4) Create a file in $HOME called .sqlnet.ora and add the lines: trace_level_client= 16 trace_file_client=client trace_directory_client= /tmp (or similar) trace_unique_client=true 5) Try to connect from SQL*Plus thus: sqlplus username/password@alias or sqlplus username/password substituting a suitable alias. 6) If you get an error we may need to see the client trace file /tmp/client_<PID>.trc where <PID> is the process ID of the client process (*1). This will be quite large so it is best to FAX or EMAIL it. *1 Note: On earlier versions of SQL*Net the filename may NOT have the process ID appended to it. Listener Tracing: ~~~~~~~~~~~~~~~~~ 1) Edit your $TNS_ADMIN/listener.ora file and add the lines: TRACE_LEVEL_LISTENER = 16 TRACE_DIRECTORY_LISTENER = /tmp TRACE_FILE_LISTENER = "listener" 2) Stop and restart the listener: lsnrctl stop lsnrctl start Output should go to /tmp/listener.trc
반응형