4 Starting and Interacting With Rman Client
4 Starting and Interacting With Rman Client
4 Starting and Interacting With Rman Client
$ lsnrctl status
--startup database
$ sqlplus / as sysdba
SQL> startup
--exit sqlplus
SQL> exit
--connect to database
RMAN> connect target /
RMAN> CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK CLEAR;
RMAN> CONFIGURE DEVICE TYPE disk PARALLELISM 2; # two channels used in parallel
RMAN> CONFIGURE CHANNEL 1 DEVICE TYPE DISK FORMAT '/disk1/%U' # 1st channel to
disk1
RMAN> CONFIGURE CHANNEL 2 DEVICE TYPE DISK FORMAT '/disk2/%U' # 2nd channel to
disk2
# Makes 2 disk copies of each data file and control file backup set
# (autobackups excluded)
RMAN> CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 2;
# Makes 3 copies of every archived redo log backup to tape
RMAN> CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE sbt TO 3;
RMAN> CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE sbt CLEAR;