Академический Документы
Профессиональный Документы
Культура Документы
Oracle@#./rman
RMAN>connect target /
RMAN>show all;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO ‘%F’; # default
run
backup database;
Which contain two pieces one is for full backup and another is for controlfile (where autobackup was on)
5.Check the DBID
DBID
———-
3386862614
Copy dbid
6.Now moving this two backup pieces to new machine at tmp directory
#scp -r …
NEWMACHINE
1.First change the permission for tmp (ex:- oracle@#chown oracle tmp
2.export ORACLE_SID=dbase1
oracle@./rman
RMAN>connect target /
3.Set DBID
Go to oracle@#cd /home/oracle/app/oracle/admin
oracle@#cd dbase1
oracle@#mkdir adump
oracle@#vi initdbase1.ora
database mounted
===================
—- — —- ———- ——— —-
11)Make a script by issuing SET NEWNAME if you want different file name other than source.
In the script issue SET UNTIL clause and restore and recover database.
RMAN> run{
16> }
Mandatory
RAM>run{
>}