- [email protected]> oradebug setmypid
- Statement processed.
- [email protected]> oradebug unlimit
- Statement processed.
- [email protected]> oradebug event 10046 trace name context forever,level 8
- Statement processed.
- [email protected]> select * from hr.departments where department_id=10;
- DEPARTMENT_ID DEPARTMENT_NAME MANAGER_ID LOCATION_ID
- ------------- ------------------------------ ---------- -----------
- 10 Administration 200 1700
- [email protected]> oradebug tracefile_name
- /u01/app/oracle/admin/orcl/udump/orcl_ora_5234.trc
- [email protected]> oradebug event 10046 trace name context off
- Statement processed.
轉載自http://blog.csdn.net/miyatang/article/details/8075785