By Darl Kuhn, Scott Schulze
Book Price: $9.95 USD
£6.95 GBP
PDF Price: $6.99
Cover | Table of Contents
$ rman nocatalog Recovery Manager: Release 9.0.1.0.0 - Production RMAN> connect target / connected to target database: BRDSTN (DBID=3662736385) using target database controlfile instead of recovery catalog RMAN> run {allocate channel d1 type disk; 2> backup full format '/ora01/backup/rman_%d_%U.bus' 3> database;}
SQL> connect sys/heeraa as sysdba; SQL> alter database archivelog;
$ rman target / catalog rman_901/rman_901_pwd@rman_catalog Recovery Manager: Release 9.0.1.0.0 - Production connected to target database: BRDSTN (DBID=664610428) connected to recovery catalog database RMAN> replace script full_back{ 2> allocate channel d1 type disk; 3> backup full format 4> '/d0102/backup/rman_%d_%U.bus' database; 5> } replaced script full_back
$ rman target / catalog rman_901/rman_901_pwd@rman_catalog Recovery Manager: Release 9.0.1.0.0 - Production connected to target database: BRDSTN (DBID=664610428) connected to recovery catalog database RMAN> run {execute script full_back;} executing script: full_back
V$BACKUP_CORRUPTION and
V$COPY_CORRUPTION views.
#!/bin/ksh rman target / <<EOF shutdown immediate; startup mount; backup database format '/d99/rmanback/brdstn/rman_%d_%t_%U.bus'; alter database open; EOF exit
#!/bin/ksh
rman target / nocatalog <<EOF
shutdown immediate;
startup mount;
run {
allocate channel d1 type disk;
backup database format
'/d99/rmanback/brdstn/rman_%d_%t_%U.bus';
}
alter database open;
EOF
ExitRMAN> backup database format 2> '/d99/rmanback/brdstn/rman_%d_%t_%U.bus';
SQL> connect sys/harakhat as SYSDBA; SQL> shutdown abort; ORACLE instance shut down.
SQL> startup mount;
Oracle instance started.
Total System Global Area 309809312 bytes
Fixed Size 7388 bytes
Variable Size 145715200 bytes
Redo Buffers 180224 bytes
Database mounted.$ rman target / catalog rman_901/rman_901_pwd@rman_catalog
Recovery Manager Release 9.0.1.0.0 - Production
connected to target database: BRDSTN (DBID=664610428)
connected to recovery catalog|
Mask
|
Description
|
|---|---|
|
%c
|
Copy number of the backup piece
|
|
%d
|
Database name
|
|
%D
|
Day of the month (DD)
|
|
%M
|
Month of the year (MM)
|
|
%F
|
A unique name based on the DBID (a unique number that identifies a
database), day of month, month, year, and a sequence number
|
|
%n
|
The database name, right-padded to a maximum length of eight
characters
|
|
%u
|
An eight-character name representing the backup set and the time it
was created
|
Return to Oracle RMAN Pocket Reference