You have a tablespace with test data that you don't need to backup. You can exclude such tablespaces from a full backup of the database.
Below command shows the list of tablespaces that are already configured to be excluded from backups:
RMAN> show exclude;
using target database control file instead of recovery catalog
RMAN configuration parameters for database with db_unique_name TEST are:
RMAN configuration has no stored or default parameters
Use following command to exclude tablespace from full database backup.
RMAN> configure exclude for tablespace users;
Tablespace USERS will be excluded from future whole database backups
new RMAN configuration parameters are successfully stored
To confirm that the tablespace is excluded RMAN backup, run the below command
RMAN> show exclude;
RMAN configuration parameters for database with db_unique_name TEST are:
CONFIGURE EXCLUDE FOR TABLESPACE 'USERS';
Now, if you want to include a previously excluded tablespace in your backup and that is done by using the following command.
RMAN> configure exclude for tablespace users clear;
Tablespace USERS 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 TEST are:
RMAN configuration has no stored or default parameters
Now, if you want include all tablespaces that are configured in "exclude tablespace", You can use the 'noexclude' option as part of a backup database command.
RMAN>backup database noexclude;
Below command shows the list of tablespaces that are already configured to be excluded from backups:
RMAN> show exclude;
using target database control file instead of recovery catalog
RMAN configuration parameters for database with db_unique_name TEST are:
RMAN configuration has no stored or default parameters
Use following command to exclude tablespace from full database backup.
RMAN> configure exclude for tablespace users;
Tablespace USERS will be excluded from future whole database backups
new RMAN configuration parameters are successfully stored
To confirm that the tablespace is excluded RMAN backup, run the below command
RMAN> show exclude;
RMAN configuration parameters for database with db_unique_name TEST are:
CONFIGURE EXCLUDE FOR TABLESPACE 'USERS';
Now, if you want to include a previously excluded tablespace in your backup and that is done by using the following command.
RMAN> configure exclude for tablespace users clear;
Tablespace USERS 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 TEST are:
RMAN configuration has no stored or default parameters
Now, if you want include all tablespaces that are configured in "exclude tablespace", You can use the 'noexclude' option as part of a backup database command.
RMAN>backup database noexclude;
No comments:
Post a Comment