日期:2014-05-16 浏览次数:20348 次
检查系统空间查看系统是否有充足的空间: df 创建归档目标目录: mkdir /arch1 /arch2 检查oracle 安装用户并改变归档目录所有权: chown oracle:oinstall /arch1 /arch2 开启nfs服务: touch /etc/exports mknfs –N mkfs –l lssrc –g nfs 导出nfs共享 smit mknfsexp exportfs –a showmount –e localhost 添加nfs的预定义挂载 smit mknfsmnt #vi /etc/filesystems 应该对应为 /arch2: dev = /arch2 vfs = nfs log = /tmp/nfslog node=racnode2 mount = true options = rw,soft,bg account = false 测试挂载nfs mount /arch1或mount /arch2 做冷备: 两个节点 shutdown immediate 一个节点startup mount exclusive ORACLE_SID=racdb1 rman target / configure backup optimization on; configure controlfile autobackup on; backup as copy database; 然后打开两个数据库 在两个系统上做 alter system set log_archive_dest_1='LOCATION=/arch1' scope=spfile sid='racdb1'; alter system set log_archive_dest_1='LOCATION=/arch2' scope=spfile sid='racdb2'; 切换rac archivelog alter system set cluster_database=false scope=spfile sid='*'; shutdown immediate startup mount exclusive archive log listalter database archivelog; archive log listalter system set cluster_database=true scope=spfile sid='*'; shutdown immediate startup alter system switch logfile;几次做验证,结束