Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1101481
  • 博文数量: 276
  • 博客积分: 10077
  • 博客等级: 上将
  • 技术积分: 2513
  • 用 户 组: 普通用户
  • 注册时间: 2007-08-24 20:31
文章分类

全部博文(276)

文章存档

2020年(1)

2015年(5)

2012年(2)

2011年(6)

2010年(7)

2009年(224)

2008年(31)

我的朋友

分类: Oracle

2009-01-12 16:43:02

1.设置归档路径
SQL> show parameter dest_1
NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
db_create_online_log_dest_1          string
log_archive_dest_1                   string
log_archive_dest_10                  string
 
SQL> alter system set log_archive_dest_1='location=+DATA/lgx' scope=both;
System altered.
 
2.shutdown两个节点. 在1节点设置为归档模式.
 
SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
 
SQL> conn / as sysdba
Connected to an idle instance.
SQL> startup mount
ORACLE instance started.
Total System Global Area  167772160 bytes
Fixed Size                  1247900 bytes
Variable Size             100664676 bytes
Database Buffers           62914560 bytes
Redo Buffers                2945024 bytes
Database mounted.
SQL> select host_name,status from v$instance;
HOST_NAME                                                        STATUS
---------------------------------------------------------------- ------------
NODE1                                                            MOUNTED
SQL> alter database archivelog;
Database altered.
SQL> alter database open;
Database altered.
3.shutdown 1 节点, 在2节点设置归档模式, 最后打开1节点, 完成cluster的启动归档模式.
阅读(766) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~