Sqlplus using Oradebug to locate the trace file generated by the ALTER session 10046 event

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.