Sei sulla pagina 1di 3

RMAN January 9th, 2000 Comments off Clear Rman Configuration to Default RMAN skip the OFFLINE, READ

ONLY tablespace during backup. RMAN backup skip tablespace using EXCLUDE feature RMAN

Categories: RMAN RMAN backup skip tablespace using EXCLUDE feature July 7th, 2011 1 comment Skip the tablespace during backup database export ORACLE_SID=akdba sqlplus / as sysdba SQL> select * from v$tablespace; TS# NAME INC BIG FLA ENC - 0 SYSTEM YES NO YES 1 SYSAUX YES NO YES 2 UNDOTBS1 YES NO YES 3 TEMP NO NO YES 4 USERS YES NO YES 5 AKDB_DATA YES NO YES 6 AKDB_INDX YES NO YES 10 rows selected. sql exit rman target / rman>show exclude; using target database control file instead of recovery catalog RMAN configuration parameters for database with db_unique_name AKDB are: RMAN configuration has no stored or default parameters RMAN> CONFIGURE EXCLUDE FOR TABLESPACE AKDB_DATA; Tablespace AKDB_DATA will be excluded from future whole database backups new RMAN configuration parameters are successfully stored RMAN> CONFIGURE EXCLUDE FOR TABLESPACE AKDB_INDX; Tablespace AKDB_INDX will be excluded from future whole database backups new RMAN configuration parameters are successfully stored RMAN> show exclude; RMAN configuration parameters for database with db_unique_name AKDB are: CONFIGURE EXCLUDE FOR TABLESPACE AKDB_DATA; CONFIGURE EXCLUDE FOR TABLESPACE AKDB_INDX;

RMAN> BACKUP DATABASE; Starting backup at 08-JUNE-10 allocated channel: ORA_DISK_1 channel ORA_DISK_1: SID=129 device type=DISK file 5 is excluded from whole database backup file 6 is excluded from whole database backup 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/oradata/SYSTEM01.DBF . We can override the exclude feature explicitly during database backup. RMAN> show exclude; RMAN configuration parameters for database with db_unique_name AKDB are: CONFIGURE EXCLUDE FOR TABLESPACE AKDB_DATA; CONFIGURE EXCLUDE FOR TABLESPACE AKDB_INDX; RMAN> BACKUP DATABASE NOEXCLUDE; To Clear the EXCLUDE feature: RMAN> CONFIGURE EXCLUDE FOR TABLESPACE AKDB_DATA CLEAR; Tablespace AKDB_DATA will be included in future whole database backups old RMAN configuration parameters are successfully deleted RMAN> CONFIGURE EXCLUDE FOR TABLESPACE AKDB_INDX CLEAR; Tablespace AKDB_INDX will be included in future whole database backups old RMAN configuration parameters are successfully deleted RMAN> show EXCLUDE; RMAN configuration parameters for database with db_unique_name AKDB are: RMAN configuration has no stored or default parameters Categories: RMAN RMAN skip the OFFLINE, READ ONLY tablespace during backup. July 7th, 2011 No comments SQL> alter tablespace akdb_data offline; Tablespace altered. SQL> alter tablespace akdb_indx offline; Tablespace altered. SQL> alter tablespace lgr_indx read only; Tablespace altered. SQL> alter tablespace lgr_data read only; Tablespace altered. SKIP the READONLY OFFLINE tablespace. RMAN> BACKUP DATABASE SKIP READONLY SKIP OFFLINE; Categories: RMAN

Clear Rman Configuration to Default January 11th, 2013 No comments rman target / CONFIGURE RETENTION POLICY CLEAR; CONFIGURE BACKUP OPTIMIZATION CLEAR; CONFIGURE DEFAULT DEVICE TYPE CLEAR; CONFIGURE CONTROLFILE AUTOBACKUP CLEAR; CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK CLEAR; CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE SBT CLEAR; CONFIGURE DEVICE TYPE DISK CLEAR; CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK CLEAR; CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE SBT CLEAR; CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK CLEAR; CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE SBT CLEAR; CONFIGURE CHANNEL DEVICE TYPE DISK CLEAR; CONFIGURE CHANNEL DEVICE TYPE SBT CLEAR; CONFIGURE MAXSETSIZE CLEAR; CONFIGURE SNAPSHOT CONTROLFILE NAME CLEAR; Reference: http://www.askdbaonline.com/?cat=5

Potrebbero piacerti anche