Oracle跟蹤會話
1.客戶端跟蹤:
PERFORMING A CLIENT-SIDE SQL*NET TRACE
(1) Open the SQLNET.ORA file typically found in the following location:
ORACLE_BASE\ORACLE_HOME\Network\Admin (7.3.x, 8.1.x or later)
ORACLE_BASE\ORACLE_HOME\Net80\Admin (8.0.x)
(2) Add the following parameters at the end of the file:
#CLIENT-SIDE SQL*NET TRACE PARAMETERS
#====================================
TRACE_UNIQUE_CLIENT = ON
TRACE_LEVEL_CLIENT = 16
TRACE_DIRECTORY_CLIENT = C:\temp
TRACE_FILE_CLIENT = SQLNetTrace
TRACE_TIMESTAMP_CLIENT = ON
#TRACE_FILELEN_CLIENT = 2048
#TRACE_FILENO_CLIENT = 2
Parameters prefixed with a “#” are interpreted as comments and will not
affect tracing.
If you want to change the location where the trace file will be saved
modify the following two parameters:
(a) TRACE_DIRECTORY_CLIENT
Set this parameter to the folder where you want the trace file to be
saved.
WARNING: Do not end the path with a “\”. This is not necessary and may
prevent the trace file from being generated.
(b) TRACE_FILE_CLIENT
Set this parameter to the filename of the trace file that will be
created. The actual trace filename may contain additional information
appended to the end of the filename such as
SQLNetTrace_ _.trc
where is the application’s process id while it was running and
distinguishes different client connections established from the
same process id (or session) to the database. This occurs since the
parameter TRACE_UNIQUE_CLIENT is set to ON.
The parameter TRACE_LEVEL_CLIENT=16 ensures that maximum trace
information is logged.
NOTE: If you think the size of the trace file will exceed the free space
on the drive where TRACE_DIRECTORY_CLIENT is saving the file, then
uncomment the last two parameters which will have the following
affect:
(a) TRACE_FILELEN_CLIENT - will create trace files of the size
specified in kilobytes (KB)
(b) TRACE_FILENO_CLIENT - will write to multiple trace files up
to the maximum size specified by
TRACE_FILELEN_CLIENT and then cycle
through the files again overwriting
previously written trace information
The default values specified above for these two paramters will
cycle the trace output between two trace files with a maximum size
of 2MB each.
Once you have made the appropriate changes to the SQLNET.ORA file be
sure to SAVE the file.
NOTE: If the application you are tracing is running from inside a web
server environment, such as Microsoft’s Internet Information
Server (IIS), you will need to RESTART THE WEB SERVER at this
point in order for these changes to be seen by the web server.
This is due to the fact that web servers may cache the SQLNET.ORA
file.
(3) Immediately run the application that uses one of the programmatic
interfaces and generate the error.
(4) Immediately go back to the SQLNET.ORA file and turn tracing off by using
any of the following methods:
(a) Modify the following parameter:
TRACE_LEVEL_CLIENT = OFF
(b) Remove all the tracing parameters you added to this file or
(c) Comment all the tracing parameters out by placing the “#”
character before each one.
Save the changes to the SQLNET.ORA file.
(5) Retrieve the “.trc” file(s) from the location “C:\temp\SQLNetTrace\” or
wherever you have saved the file(s) based on what was specified in the
parameters TRACE_DIRECTORY_CLIENT and TRACE_FILE_CLIENT. If you did not
specify a location please check the location of the directory where the
application was run from or search your hard drive for all “.trc” files.
Check the size of the “.trc” file(s) and make sure they do not have a
size of 0 bytes but do have the current time and date. Zip the file up
and upload it to support.
2.伺服器跟蹤:
$lsnrctl
LSNRCTL> status
LSNRCTL> trace user
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/23135684/viewspace-665383/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- oracle session(會話) 跟蹤OracleSession會話
- 會話跟蹤技術會話
- 給會話開跟蹤會話
- 會話級SQL跟蹤會話SQL
- oracle 跟蹤當前使用者會話Oracle會話
- oracle10g會話跟蹤處理Oracle會話
- 用Oracle跟蹤診斷掛起的會話Oracle會話
- 會話跟蹤技術Cookieless會話Cookie
- 10046 跟蹤其他會話會話
- -t【Oracle-故障管理】-Trace跟蹤會話和會話執行慢故障分析Oracle會話
- 10046事件跟蹤會話sql事件會話SQL
- web前端學習教程:Cookie會話跟蹤技術Web前端Cookie會話
- ORACLE 跟蹤工具Oracle
- [zt] oracle跟蹤檔案與跟蹤事件Oracle事件
- oracle跟蹤檔案與跟蹤事件(zt)Oracle事件
- oracle跟蹤檔案和跟蹤事件(zt)Oracle事件
- HTML5入門教程 :Cookie會話跟蹤技術HTMLCookie會話
- 使用dbms_monitor.session_trace_enable跟蹤一個會話Session會話
- 利用sql_trace跟蹤一個指定會話的操作SQL會話
- 會話的跟蹤以及執行計劃的獲取會話
- 【TRACE】Oracle跟蹤事件Oracle事件
- Oracle 跟蹤事件【轉】Oracle事件
- Oracle跟蹤檔案Oracle
- Oracle 11g 通過登入觸發器跟蹤會話產生trace檔案Oracle觸發器會話
- SQL效能的度量 - 會話級別的SQL跟蹤sql_traceSQL會話
- Oracle跟蹤事件 -- set eventsOracle事件
- Oracle 10G 跟蹤Oracle 10g
- Oracle 跟蹤事件 set eventOracle事件
- Oracle跟蹤事件和dumpOracle事件
- oracle跟蹤事件(轉載)Oracle事件
- 跟蹤某一會話發出的 sql 的方法來優化SQL會話SQL優化
- ORACLE 10046 設定跟蹤事件後無跟蹤檔案Oracle事件
- Oracle資料庫跟蹤SQLOracle資料庫SQL
- 用oracle trace 來跟蹤sessionOracleSession
- oracle跟蹤事件(dump)總結Oracle事件
- Oracle 跟蹤全部使用者Oracle
- oracle 跟蹤其他使用者Oracle
- alter session set events /Oracle跟蹤SessionOracle