🧄Migrate Oracle Database with RMAN
Requirement
Create Database with DBCA
Enable Archive Log
SCP File Backup
Get Started
ทำการ Connect Database ด้วย RMAN
rman target /
ทำการ Start Database ในโหมด Mount
startup pfile='/u02/ORCL/pfile-ORCL-20190723.ora' nomount ;
ทำการ Restore Control File
restore controlfile from '/u02/ORCL/cntrl_ORCL_79_1_1014382564' ;
ทำการ Mount Database
alter database mount ;
ทำการ Catalog RMAN Backup Set
catalog start with '/u02/ORCL' ;
ทำการ Recovery Database แบบ Full Backup
restore database ;
recover database ;
ทำการ Open Database
alter database open resetlogs ;
ทำการตรวจสอบ SCN
select current_scn from v$database ;
ทำการ Create SPFILE จาก PFILE
create spfile from pfile='/u02/ORCL/pfile-ORCL-20190723.ora' ;
Last updated
Was this helpful?