公司RMAN备份所用语句

[oracle@racdb6 ~]$ rman target / catalog rman/rman;

Recovery Manager: Release 10.2.0.4.0 - Production on Tue Mar 2 17:46:26 2010

Copyright (c) 1982, 2007, Oracle.  All rights reserved.

connected to target database: RACWEB (DBID=94500565)
connected to recovery catalog database

run {
allocate channel cha1 type disk;
backup
incremental level 0
format '/orabak/full_%t'
tag fullbak
database;
release channel cha1;
}


run {
allocate channel cha1 type disk;
backup
incremental level 1
format '/orabak/fullzengliangbak_%t'
tag fullzengbak
database;
release channel cha1;
}


run {
allocate channel cha11 type disk;
backup
incremental level 0
format '/orabak/ts/tsfullbak_%t'
tag tsfullbak
tablespace ticket;
release channel cha11;
}


run {
allocate channel cha12 type disk;
backup
incremental level 1
format '/orabak/ts/tszengbak_%t'
tag tszengbak
tablespace ticket;
release channel cha12;
}

 

run {
allocate channel cha2 type disk;
sql "alter system archive log current";
backup
incremental level 0
format '/orabak/arch/arch_%t'
tag archbak
archivelog all;
release channel cha2;
}

run {
allocate channel cha2 type disk;
backup
incremental level 1
format '/orabak/arch/archzeng_%t'
tag archzengbak
archivelog all;
release channel cha2;
}

 

run {
allocate channel cha3 type disk;
copy datafile "+DATASTORE1/racweb/datafile/ticket.307.710587739" to "/orabak/df/ticket1.dbf";
copy datafile "+DATASTORE1/racweb/datafile/ticket.308.710587739" to "/orabak/df/ticket2.dbf";
release channel cha3;
}

 

你可能感兴趣的:(职场,rman,休闲,备份所用语句)