Chinaunix首页 | 论坛 | 博客
  • 博客访问: 825827
  • 博文数量: 101
  • 博客积分: 1311
  • 博客等级: 中尉
  • 技术积分: 1191
  • 用 户 组: 普通用户
  • 注册时间: 2009-07-25 12:15
文章分类

全部博文(101)

文章存档

2012年(101)

分类: Oracle

2012-06-12 21:31:37

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

阅读(3685) | 评论(0) | 转发(2) |
给主人留下些什么吧!~~