본문 바로가기

oracle10R2

Migrate from 32 bit to 64 bit using RMAN ( 32bit에서 64bit로 Rman을 사용하여 이전 )

I have Checked it on 10g and confirmed it is working. You can use it from 9i to 11g.

작업하기 전에 10g인지 확일을 해야 하고 9i에서 11g로 이전 할 수 있다.

 

Step 1 : Take a Backup on Source 32 Bit Server
단계 1 : 32bit 서버로 부터 백업을 받는다.

 

Create a full backup of the database including all archivelogs
모든 아카이브 로그파일을 포함한 DB를 백업 받는다.

RMAN> run {
allocate channel c1 type disk;
allocate channel c2 type disk;
backup database plus archivelog;
backup current controlfile;}

 

Step 2 : Preparing target 64 bit server
Install the OS and Oracle Software
단계 2 : 64bit 서버를 준비하고 OS와 oracle을 설치한다.

 

Step 3 : Copy RMAN backup files from Source Server
Use simple copy command to copy the rman backup files from source server to target server.
단계 3 : 본 서버에서 Rman으로 백업한 파일을 복사하고, 간단한 복사 명령을 이용해서 이전할 서버에 복사해둔다.

 

Step 4 : Create the pfile or copy the pfile from source server
Create the pfile or copy the pfile from source server
단계 4: 본 서버에 pfile을 복사하거나 생성한 후 이전할 서버에 복사한다.

 

Step 5 : Bring up the database
Startup nomount the new instance.
단계 5 : DB를 기동하여 새 instance를 nomount단계로 올린다.

 

Connect to rman and set the dbid
$ rman target / nocatalog

RMAN> set dbid=;
Restore the controlfile
RMAN> restore controlfile from /u01/backup_32bit/;
RMAN> alter database mount;
RMAN> restore database;
Identify the archivelog till you want to do the recovery and check if you have all the backups you need to do it and run
(                                                                          ???                                                                                   )

RMAN> run {
set until sequence xxxx;
recover database;}
RMAN> exit

 

Step 6 : Migrate to 64Bit

단계 6 : 64bit로 이전한다.
SQL> recover database until cancel using backup controlfile;
cancel
SQL> alter database open resetlogs migrate;
SQL> @$ORACLE_HOME/rdbms/admin/utlirp.sql
SQL> @$ORACLE_HOME/rdbms/admin/utlrp.sql
SQL> shutdown immediate;
SQL> startup