1. 查询系统使用的是哪一组日志文件:
select * from v$log;
2. 所使用的日志文件组所对应的日志文件:
select * from v$logfile;
3. 强制切换日志:
alter system switch logfile;
4. 查询历史日志
select * from v$log_history;
5. 查询日志的归档模式:
SQL> select dbid,name,created,log_mode from v$database;
DBID NAME CREATED LOG_MODE
---------- --------- ------------------- ------------
1192910535 CBA 2010-02-27 16:23:35 ARCHIVELOG
6. 查询归档日志的信息:
select recid,stamp,thread#,sequence#,name from v$archived_log;
7. 查看警告日志:
cat %ORACLE_BASE%\admin\%ORACLE_SID%\bdump
8. 查看联机重做日志的路径:(Oracle10g联机日志默认存放在闪存里)
SQL> show parameter db_recovery_file_dest;
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_recovery_file_dest string /orainst/flash_recovery_area
db_recovery_file_dest_size big integer 6G
阅读(2194) | 评论(0) | 转发(1) |