逐个节点改动
关闭全部节点,启动单节点(rac1)到mount状态
SQL> startup mount;改动server參数配置
SQL> alter system set cluster_database=false scope=spfile; SQL> shutdown immediate改动归档路径
接上一步关闭库的操作,都在rac1节点上进行 SQL> startup mount SQL> alter system set log_archive_dest_1=’location=/oradata/arch1/’ scope=spfile;开启归档日志(rac1节点)
假设归档已经开启。仅仅是改动其路径该步骤可跳过 SQL> alter database archivelog; SQL> alter database open;恢复数据库參数配置
SQL> alter system set cluster_database=true scope=spfile; SQL> shutdown immediate到下一个节点继续以上操作,最后启动库
从11g后可由集群统一改动启动
由集群将库启动至mount状态。然后通过sid指定某个节点所在库的sid(不是主机名称)来改动归档路径,然后重新启动就可以。[oracle@rac1 arch]$ srvctl stop database -d orcl[oracle@rac1 arch]$ srvctl start database -d orcl -o mount;[oracle@rac1 arch]$ sqlplus / as sysdbaSQL> alter system set log_archive_dest_1='location=/oradata/arch1' scope=spfile sid='orcl1';SQL> alter system set log_archive_dest_1='location=/oradata/arch2' scope=spfile sid='orcl2';[oracle@rac1 arch]$ srvctl stop database -d orcl[oracle@rac1 arch]$ srvctl start database -d orcl