Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
4Activity
0 of .
Results for:
No results containing your search query
P. 1
Oracle RMAN

Oracle RMAN

Ratings: (0)|Views: 424 |Likes:
Published by Aminul Islam

More info:

Published by: Aminul Islam on Jan 20, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

08/11/2013

pdf

text

original

 
1
 
|
 
P a g e
 
ORACLE 9i RMAN(10g)
 (rev0.1) – August, 2007 – by Ergem PEKER (rev1.1) – December, 2008 – by Ergem PEKER 
10g enhancements and some more functionalities.
  Version: Oracle Database 10.2.0.1 on Windows2003 ServerOracle Database 9.2.0.4 on IBM pSeries AIX5L Server
Connecting to rman:
Host#> rmanRman> connect target /Rman> connect target dbuser as sysdba/passwd@TNSRman> connect catalog rman/pass@TNSRman> connect auxiliary dbuser/dbpass@TNS
### interactive mode
Host#> rman target / catalog rman/pass@TNSHost#> rman target / nocatalog
### batch mode
Host#> rman target / catalog rman/rman@d cmdfile <cmd_file_name> log<log_file_name>Host#> rman target / @‘daily.rcv’Rman> report schema
### creating rman catalog 
1-
 
Connect to rman catalog database with sysdba privileges2-
 
Create catalog user with unlimited quota and grantrecovery_catalog_owner, connect, resource3-
 
Start rman with recovery catalog options4-
 
run “create catalog” command in rman5-
 
register the target database with “register database” command
### creating pipe interface
Host#> rman pipe rmpipe target sys/<password>@TNS_ALIASORA$RMAN_RMPIPE_IN (rman input pipe)ORA$RMAN_RMPIPE_OUT (rman output pipe)SQLPLUS> DBMS_PIPE.PACKSQLPLUS> DBMS_PIPE.SEND_MESSAGESQLPLUS> DBMS_PIPE.RECEIVE_MESSAGESQLPLUS> DBMS_PIPE.UNPACK
 
2
 
|
 
P a g e
 
Channels:
-- %U = %u_%p_%c
-
 
%c: copy number of the backup file
-
 
%t: backup set timestamp
-
 
%n: database name
-
 
%d: database name
-
 
%p: backup piece numberRman>configure device type disk|sbt parallelism 3; ### max 255configure default device type to disk;configure device type disk clear;configure default device type clear;configure channel device type disk Rate 5M;Readrate 5M;Format=’/disk2/backup/%U’;Maxopenfiles=10;Maxpiecesize=2G;
### setting disk IO rates
configure channel 1 device type disk rate 5M;configure channel 2 device type disk rate 1M;
### rac option for backing up
configure channel 1 device type disk connect=’sys/password@node1’;configure channel 2 device type disk connect=’sys/password@node2’;
### clearing channel settings
configure channel device type disk clear;configure channel 1 device type disk clear;
### backing up to different disk media
configure channel 1 device type disk format ’/disk1/%U’;configure channel 2 device type disk format ’/disk2/%U’;Show all;Show device type;Show default device type;Show channel;
### command blocks
Rman>Run{Allocate channel c1 device type disk;Backup datafile 3,4,5;}
 
3
 
|
 
P a g e
 
Backup:
### backup database
Rman>Backup database include current controlfile;Backup database plus archivelog [delete all [input]];Backup [device type disk|sbt] database;Backup database tag=‘<tag_name>’;Backup not backed up since time ‘sysdate-3’ database plus archivelog;Backup format ‘path/%U’ database fileperset 3;Backup full database [skip offline|readonly|inaccessible];
### incremental and differential backups
Backup incremental level 0 database;Backup incremental level 1 database;Backup incremental level 1 differential database;Backup incremental level 1 cumulative database;
### overriding backup retentions
Backup database keep until time “to_date(’03.08.2007’,’DD.MM.YYYY’)”;Backup database keep forever nologs;
### validation of backups
Backup validate database archivelog all;
### backup parameters
Backup tablespace data_ts filesperset=10 maxsetsize=20G;Backup tablespace <ts_name>;
### backup backupsets and imagecopies
Backup backupset 12;Backup backupset completed before ‘sysdate-7’ delete input;Backup backupset all [delete input];Backup copy of database delete input;
### configure backup copies
Configure datafile backup copies for device type disk to 3;Configure archivelog backup copies for device type disk to 3;Configure datafile backup copies for device type disk clear;Backup device type disk copies 3 datafile 7 format=“/temp/%U”,“/data2/backup/%U”,“?/dbs/%U”;
### backup tablespace
Backup tablespace users format=“users_%u%p%c”;Configure exclude for tablespace <ts_name>;Backup database; ### will exclude the tablespacesBackup database noexclude; ### if you dont want to exclude the tsConfigure exclude for tablespace <ts_name> clear;
### backup database archivelog 
Backup archivelog all [delete [all] input];Backup archivelog from sequence 121 until sequence 125;Backup archivelog from time ‘sysdate-30’ until time ‘sysdate-7’;
### backing up controlfile and spfile
Backup (spfile) (current controlfile);

Activity (4)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads
payakkamron liked this
ramprius liked this

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->