Archive for 一月 10th, 2008

sql_trace(eygle)

星期四, 一月 10th, 2008

1.检查并跟踪数据库进程

诊断时是晚上,无用户访问
在前台点击相关页面,同时进行进程跟踪

查询v$session视图,获取进程信息
PHP code:——————————————————————————–
SQL> select sid,serial#,username from v$session;

       SID    SERIAL# USERNAME
———- ———- ——————————
         1          1
         2          1
         3          1
         4          1
         5          1
         6          1
         7        284 IFLOW
        11        214 IFLOW
        12        164 SYS
        16       1042 IFLOW

10 rows selected.——————————————————————————–
启用相关进程sql_trace

(全文…)