Databases Reference
In-Depth Information
Back up the source database by specifying the to platform clause of the backup
command.
3.
RMAN> backup to platform
2> = 'Microsoft Windows IA (64-bit)'
3> format '/u01/app/oracle/oradata/backups/special/transport_db%U'
4> database;
Starting backup at 11-NOV-12
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=29 device type=DISK
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00001 name=/u01/app/oracle/oradata/orcl/system01.dbf
input datafile file number=00003 name=/u01/app/oracle/oradata/orcl/sysaux01.dbf
input datafile file number=00005 name=/u01/app/oracle/oradata/orcl/cattbs_01.dbf
input datafile file number=00002 name=/u01/app/oracle/oradata/orcl/example01.dbf
input datafile file number=00007 name=/u01/app/oracle/oradata/orcl/virt_catalog_01.dbf
input datafile file number=00004 name=/u01/app/oracle/oradata/orcl/undotbs01.dbf
input datafile file number=00006 name=/u01/app/oracle/oradata/orcl/users01.dbf
channel ORA_DISK_1: starting piece 1 at 11-NOV-12
channel ORA_DISK_1: finished piece 1 at 11-NOV-12
piece handle=/u01/app/oracle/oradata/backups/special/transport_db87nng24s_1_1
tag=TAG20121011T130116 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:03:46
Finished backup at 11-NOV-12
RMAN>
4.
At this point, you can disconnect from the source database.
5.
Move the backup sets produced by step 3 to the destination host using OS commands such
as scp .
6.
Go the destination server and start up RMAN, and connect to the destination database as
the target:
$ rman
RMAN> connect target sys@orcl
7.
In this example, orcl is the name of the destination database where you want to transport
the database.
Restore the backup sets from the source database by executing the following restore command:
8.
RMAN> restore foreign database to new from backupset
'/u01/app/oracle/backup/db_transport_01';
The example shown here will restore the cross-platform backup contained in the backup set db_transport_01 ,
which is saved in the directory /u01/app/oracle/backup .
 
Search WWH ::




Custom Search