oracle sql을 튜닝하거나, 문제가 발생했을때, 세션에 대해 좀 더 세밀하게 trace 할 필요가 있을때가 있다. 이때는 oradebug을 이용해서 하도록 한다.
참고문서: http://www.oracleutilities.com/wiki/index.php?title=Oradebug
1. os pid 얻기
참고문서: http://www.oracleutilities.com/wiki/index.php?title=Oradebug
1. os pid 얻기
SQL> select username, spid from v$process;2. trace할 pid 설정하기SQL> oradebug setospid 22803. trace 파일 설정하기
oradebug tracefile_name c:\oratrace_file\mooracle_ora_2280.trc4. trace level 설정
SQL> oradebug event 10046 trace name context forever, level 12
## trace level
5. trace 종료Level 1 - provides "base set" tracing information. Bind variables are displayed as variables (:b1).
Level 4 - provides Level 1 data and the actual data values of bind variables.
Level 8 - provides Level 1 data and information on wait events when the elapsed time is greater than the CPU time.
Level 12 - combines levels 1, 4 and 8 tracing information. A Level 12 trace contains base set, bind variable values and wait events.
SQL> oradebug event 10046 trace name context off
'IT > ORACLE' 카테고리의 다른 글
| ORA-22856: cannot add columns to object tables (0) | 2009/11/18 |
|---|---|
| code syntax 적용 테스트 (0) | 2009/08/28 |
| [Oracle] oradebug session trace 뜨기 (2) | 2009/04/27 |
| 최근에 DML 문이 수행된 시간을 알아내기 (0) | 2009/04/14 |
| [ORACLE] Oracle과 통계정보 (0) | 2009/04/07 |
| [ORACLE] Lock에 관련된 몇가지 쿼리 (1) | 2009/03/13 |
Trackback 0 And
Comment 2
이올린에 북마크하기
이올린에 추천하기


