Tag: Use Oradebug in Sqlplus to locate the trace file generated by alter session 10046 event
[[email protected] ~]# su - oracle[[email protected] ~]$ sqlplus / as sysdbasql> select * from v$ Versionbanner-------------------------------------------------------------------------------------------Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit productionpl/sql release 11.2.0.3.0 - productioncore 11.2.0.3.0 productiontns for linux: version 11.2.0.3.0 - productionnlsrtl version 11.2.0.3.0 - production now produces a 10046 event and we'll look at the trace file sql > alter session set events ' 10046 trace name context forever, level 12 '; Session altered. Sql> oradebug setmypidstatement processed. Sql> oradebug tracefile_name/u01/app/oracle/diaG/rdbms/hxzgsjqy/hxzgsjqy/trace/hxzgsjqy_ora_15039.trcoradebug to locate the 10046 event generated by the trace file as Hxzgsjqy_ora_15039[[email protected] ~]$ cd /u01/app/oracle/diag/rdbms/hxzgsjqy/HXZGSJQY/trace/[[email Protected] trace]$ lltotal 100-rw-r----- 1 oracle oinstall 2458 nov 16 02:00 alert_hxzgsjqy.log-rw-r--r-- 1 oracle oinstall 0 nov 16 21:31 cd-rw-r----- 1 oracle oinstall 1012 nov 16 02:00 hxzgsjqy_cjq0_6039.trc-rw-r----- 1 oracle oinstall 63 nov 16 02:00 hxzgsjqy_cjq0_6039.trm-rw-r----- 1 oracle oinstall 21287 nov 16 02:00 hxzgsjqy_dbrm_5983.trc-rw-r----- 1 oracle oinstall 1387 nov 16 02:00 hxzgsjqy_dbrm_5983.trm-rw-r----- 1 Oracle oinstall &nbSp;953 nov 16 19:00 hxzgsjqy_j000_14503.trc-rw-r----- 1 oracle oinstall 73 nov 16 19:00 hxzgsjqy_j000_14503.trm-rw-r----- 1 Oracle oinstall 32035 nov 16 21:31 hxzgsjqy_mmon_5999.trc-rw-r----- 1 Oracle oinstall 3136 nov 16 21:31 hxzgsjqy_mmon_5999.trm-rw-r----- 1 oracle oinstall 2428 nov 16 21:31 hxzgsjqy_ora_15039.trc-rw-r----- 1 oracle oinstall 121 nov 16 21:31 hxzgsjqy_ora_15039. Trm-rw-r----- 1 oracle oinstall 1267 nov 16 02:13 hxzgsjqy_ora_ 9981.trc-rw-r----- 1 oracle oinstall 85 nov 16 02:13 hxzgsjqy_ora_9981.trm
This article is from the "O Record" blog, so be sure to keep this source http://evils798.blog.51cto.com/8983296/1420902