1.rman备份源库
mkdir /opt/oracle/backup
backup database include current controlfile for standby format '/opt/oracle/backup/%U' ;
2.移动文件
3.解压spfile 文件
startup nomount;
restore spfile from '/opt/oracle/backup/08up46d2_1_1';
shutdown abort;
4.解压控制文件
startup nomount;
restore controlfile from '/opt/oracle/backup/08up46d2_1_1';
5.修改数据库为mount
alter database mount;
6注册备份集
catalog start with '/opt/oracle/backup/';
7.查看备份集信息
list backup;
report schema;
8.还原数据文件
run{
set newname for database to '/opt/oracle/oradata/orcl/%U';
restore database;
switch datafile all;
}
9.添加standby 日志文件
select group#,status,members,archived from v$log;
select * from v$logfile;
alter database add standby logfile group 5;
alter database add standby logfile group 6;
alter database add standby logfile group 7;
alter database add standby logfile group 8;
alter database add standby logfile group 9;
10.dbua 升级
shutdown immediate;
startup upgrade;
执行@?/rdbms/admin/catupgrd.sql 升级
12.1以上版本执行下列语句
quit
cd $ORACLE_HOME/rdbms/admin
$ORACLE_HOME/perl/bin/perl catctl.pl -n 4 catupgrd.sql
alter database open;
@?/rdbms/admin/utlrp.sql编译无效对象
11.修改compatible