1.查询系统使用的是哪一组日志文件:
select * from v$log;
2.查询正在使用的组所对应的日志文件:
select * from v$logfile;
3.强制日志切换:
alter system switch logfile;
4.查询历史日志:
select * from v$log_history;
5.查询日志的归档模式:
select dbid,name,created,log_mode from v$database;
6.查询归档日志的信息:
select recid,stamp,thread#,sequence#,name from v$archived_log;
7.增加与删除日志文件组
alter database add logfile group 1 ('/oradata/ora11g/redo01.log' ) size 100M;
alter database drop logfile group 1;
8.增加与删除日志成员
alter database add logfile member '/oradata/ora11g/redo02.log' to group 1,'/oradata/ora11g/redo05.log ' to group 2;
alter database drop logfile member ' /oradata/ora11g/redo02.log ' ;
9.日志文件移动
alter database rename file ' /oradata/ora11g/redo01.log ' to ' /oradata1/ora11g/redo01.log ';
执行该命令之前必须保证该日志文件物理上已经移动到新目录
10.清除日志文件
alter database clear logfile ' /oradata/ora11g/redo01.log ';
该命令用于不能用删除组及组成员命令删除日志时使用