分类:
2012-06-13 22:11:00
原文地址:RAC设置不同的归档路径 作者:zrp999
1.先设置好每个节点的归档路径,再开启归档。
alter system set log_archive_dest_1='LOCATION=+FRA/demo/arch1' sid='demo1';
System altered.
alter system set log_archive_dest_1='LOCATION=+FRA/demo/arch2' sid='demo2';
System altered.
2.开启归档
SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount;
ORACLE instance started.
Total System Global Area 218103808 bytes
Fixed Size 1260032 bytes
Variable Size 75499008 bytes
Database Buffers 138412032 bytes
Redo Buffers 2932736 bytes
Database mounted.
SQL> alter database archivelog;
Database altered.
SQL> alter database open;
Database altered.
SQL> archive log list;
Database log mode Archive Mode
Automatic archival Enabled
Archive destination +FRA/demo/arch1
Oldest online log sequence 3
Next log sequence to archive 4
Current log sequence 4