查看系统当前RedoLog的模式:
SELECT LOG_MODE FROM SYS.V$DATABASE;
查看Archive日志组:
SELECT GROUP#, ARCHIVED FROM SYS.V$LOG;
修改Archive进程数:
ALTER SYSTEM SET LOG_ARCHIVE_MAX_PROCESSES=3;
查看archive LOG 列表:
ARCHIVE LOG LIST;
show parameter db_recovery_file_dest;
强制日志切换:
alter system switch logfile;
查看归档日志:
select name from v$archived_log;
将数据库从NOARCHIVED修改成ARCHIVED模式:
1、创建归档日志保存目录:
mkdir -p /u01/app/oracle/backup/archivelog1
mkdir -p /u01/app/oracle/backup/archivelog2
2、修改ArchiveLog保存目录:
alter system set log_archive_dest_1='location=/u01/app/oracle/backup/archivelog1' scope=spfile;
alter system set log_archive_dest_2='location=/u01/app/oracle/backup/archivelog2' scope=spfile;
3、修改ArchiveLOG的格式:
alter system set log_archive_format = "archive_%t_%s_%r.arc" scope=spfile;
4、关闭数据库、备份;
SHUTDOWN IMMEDIATE;
5、启动MOUNT;
STARTUP MOUNT
6、修改系统日志模式:
ALTER DATABASE ARCHIVELOG;
ALTER DATABASE OPEN;
7、关闭数据库、备份;
SHUTDOWN IMMEDIATE
阅读(918) | 评论(0) | 转发(1) |