jinfeng_wang

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

          BlogJava 首頁 新隨筆 聯(lián)系 聚合 管理
            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 閱讀(907) 評論(0)  編輯  收藏 所屬分類: oracle
          主站蜘蛛池模板: 南澳县| 二连浩特市| 自治县| 望都县| 银川市| 青州市| 尼木县| 德庆县| 甘泉县| 贵德县| 赤城县| 白沙| 峨边| 海门市| 乌审旗| 望都县| 子洲县| 弥渡县| 鹤峰县| 土默特右旗| 永平县| 周至县| 上杭县| 凤城市| 思茅市| 新丰县| 杭锦旗| 大竹县| 绥中县| 隆安县| 焉耆| 马边| 天峨县| 扎囊县| 右玉县| 邵阳县| 楚雄市| 哈巴河县| 永嘉县| 梁山县| 清镇市|