3 1 594 52428800 512 1 NO CURRENT 10460698 23-6月 -15 2.8147E+14
SQL> select * from v$logfile;
GROUP# STATUS TYPE ---------- ------- ------- MEMBER ------------------------------------------------------------------------------------------------------------------------ IS_ --- 3 ONLINE /u01/app/oracle/oradata/orcl3939/redo03.log NO
2 ONLINE /u01/app/oracle/oradata/orcl3939/redo02.log NO
1 ONLINE /u01/app/oracle/oradata/orcl3939/redo01.log NO
SQL> select sid,serial#,username from v$session where username=‘HR‘;
SID SERIAL# USERNAME ---------- ---------- ------------------------------ 147 38 HR SQL> update tt set id=1 where id=0;
已更新1行。
SQL> commit;
提交完成。
SQL> alter system dump logfile ‘/u01/app/oracle/oradata/orcl3939/redo03.log‘;
系统已更改。
SQL> select value from v$diag_info where name=‘Default Trace File‘;
VALUE -------------------------------------------------------------------------------- /u01/app/oracle/diag/rdbms/orcl3939/orcl3939/trace/orcl3939_ora_7209.trc