物理备库的升级
物理备库的升级(9.2–10.2 或者10.1-10.2)
步骤如下:
一、看下oracle数据的升级向导,看是否满足相关规定
二、On the primary and standby systems, log in to each system as the owner of the Oracle software directory,
and set the environment to the existing (9.2 or 10.1) installation
三、在主库停止所有的用户活动
四、如果使用RAC,停止除了主数据库实例的其他节点
shutdonw immediate
alter system archive log current
五、记录主库的LOG THEEAD和SEQUENCE,归档当前LOG
select thread#,sequence# from v$log where status=’current’;
alter system archive log current
六、关闭主库 监听 agents和其他进程
shutdown immediate
angentctl stop
lsnrctl stop
七、在备库系统上,加入你使用了RAC,关闭其他备库节点,保留一个,置于恢复模式
八、检查备库的日志应用,
select max(sequence#) from v$log_history;
九、当最后一个日志备应用后,停止备库 监听 agents
alter database recover managed standby database cancel;
shutdown immediate
agentctl stop
lsnrctl stop
十、在备库系统,安装 10.2
十一、复制参数文件、密码文件、网络设置 从0LD ORACLE_HOME 到10.2ORACLE_HOME
十二、在主库系统上,安装10.2,
十三、在TNSNAME.ORA添加10.2的ORACLE_HOME
十四、安装完10.2以后,你的环境变量仍为OLD,启动主库startup upgrade
十五、在10.2的ORACLE_HOME里,启动dbua
十六、主库升级玩后,启动备库监听在新的10.2
十七、启动备库到NO MOUNT,确认 standby_file_management 为auto fal_server,fal_client设置正确
十八、启动备库到MOUNT状态,并且打开恢复模式
十九、主库dbua升级完成后,配置新的环境变量,记录当前的THREAD和SEQUENCE
select thread#,sequence# from v$log wherer status=’current’;
alter system archive log current
二十、在备库查询每一个日志是否不应用
select max(sequenece#) from v$log_history
