jinfeng_wang

          G-G-S,D-D-U!

          BlogJava 首頁 新隨筆 聯系 聚合 管理
            400 Posts :: 0 Stories :: 296 Comments :: 0 Trackbacks
          session1  (sysdba)
              1) : alter session set timed_statistics=true;

              2 ) select * from v$session where v$session.USERNAME='SCOTT'; //find the trace session

              3)  exec dbms_system.set_sql_trace_in_session(25,6,true);  //open the sql_trace for the session

          session2  (scott)
              4) select * from t;

          session 1(sysbda)
              5) exec dbms_system.set_sql_trace_in_session(25,6,false); //close the sql_trace
             
              6) show parameter user_dump;  //get the trace file path

          session 3: OS,
              7)  cd /opt/oracle/diag/rdbms/orcl/orcl/trace
              8) ll -t  *.trc   //get the last trc file

              9) /opt/oracle/product/11.1.x/bin/tkprof /opt/oracle/diag/rdbms/orcl/orcl/trace/orcl_ora_7688.trc /opt/oracle/diag/rdbms/orcl/orcl/trace/
          orcl_ora_7688.trc.txt

             
             
          posted on 2009-10-25 14:29 jinfeng_wang 閱讀(903) 評論(0)  編輯  收藏 所屬分類: oracle
          主站蜘蛛池模板: 明水县| 安陆市| 疏附县| 刚察县| 黄冈市| 旺苍县| 桐梓县| 福泉市| 徐水县| 黔东| 自贡市| 东乌珠穆沁旗| 安徽省| 永年县| 威宁| 洪雅县| 勃利县| 边坝县| 肇东市| 博爱县| 阿拉尔市| 太仆寺旗| 治县。| 太保市| 松桃| 肃北| 阿尔山市| 水城县| 紫云| 屯门区| 阿克苏市| 沁水县| 平乡县| 青龙| 尼勒克县| 武定县| 偃师市| 富锦市| 昌都县| 通山县| 阿鲁科尔沁旗|