C:\Users\Administrator>sqlplus "/as sysdba"
SQL*Plus: Release 11.2.0.1.0 Production on 星期日 4月 12 10:42:35 2015
Copyright (c) 1982, 2010, Oracle. All rights reserved.
连接到:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
select GROUP#,SEQUENCE#,MEMBERS,STATUS from v$log;--查看归档日志情况
2.关闭数据库,在Mount模式下修改存档模式
SQL> shutdown immediate;
数据库已经关闭。
已经卸载数据库。
ORACLE 例程已经关闭。
SQL> startup mount;
ORACLE 例程已经启动。
Total System Global Area 770019328 bytes
Fixed Size 1374780 bytes
Variable Size 234882500 bytes
Database Buffers 528482304 bytes
Redo Buffers 5279744 bytes
数据库装载完毕。
SQL> alter database archivelog;
3.设置多路复用重做日志的目录
SQL> alter system set log_archive_dest_1='location=D:\app\archive_orcl1' scope=spfile;
系统已更改。
SQL> alter system set log_archive_dest_2='location=D:\app\archive_orcl2' scope=spfile;
系统已更改。
4.设置归档日志文件命名格式