You are on page 1of 11

ORACLE DATA GUARD 19c-12c

Backup and Recovery Considerations in


an Oracle Data Guard Configuration
Part 1
Creating a Recovery Catalog
And
Setting RMAN Persistent Configuration Parameters

9-1 Copyright © 2009, Oracle. All rights reserved.


ORACLE DATA GUARD 19c-12c

Creating a Recovery Catalog And Register the Database


Here you create the recovery catalog in the database name "romual" in the same host as your primary DB.
In real world situation the recovery catalog should be created in another database
1- Connect as sys user with the sysdba role to your pluggable DB

2- Create the tablespace rcts to hold the recovery catalog and the recovery catalog owner user
name rcowner, then grant the recovery_catalog_owner role to rcowner user

9-2 Copyright © 2009, Oracle. All rights reserved.


ORACLE DATA GUARD 19c-12c

3- Invoke RMAN and connect as the recovery catalog owner

4- Register your primary database in the recovery catalog

9-3 Copyright © 2009, Oracle. All rights reserved.


ORACLE DATA GUARD 19c-12c

5- Use the list db_unique_name commande to verify your registration

6-Use the report schema for db_unique_name commande to verify the files

9-4 Copyright © 2009, Oracle. All rights reserved.


ORACLE DATA GUARD 19c-12c
7- Use the list archivelog all for db_unique_name commande to verify that the archive log files are
registered

8- Use the show all for db_unique_name commande to display the RMAN configuration parameter
for your primary database

9-5 Copyright © 2009, Oracle. All rights reserved.


ORACLE DATA GUARD 19c-12c

Setting RMAN Persistent Configuration Parameters


9- In your RMAN session (connected to your primary DB), configure the backup retention policy to allow for
recovery for seven days.

10- Specify that archived redo log files can be deleted after they are applied to the standby DB.

9-6 Copyright © 2009, Oracle. All rights reserved.


ORACLE DATA GUARD 19c-12c

Setting RMAN Persistent Configuration Parameters


11- Configure the connect identifier for your primary DB

12- Configure the connect identifier for your physical standby DB.

9-7 Copyright © 2009, Oracle. All rights reserved.


ORACLE DATA GUARD 19c-12c

Setting RMAN Persistent Configuration Parameters


13- Your physical standby DB is registered with the recovery catalog. Use the list db_unique_name of database
commande to see the registration info about your primary and standby DB

14- Use the report schema for db_unique_name commande to verify the files of the standby DB

9-8 Copyright © 2009, Oracle. All rights reserved.


ORACLE DATA GUARD 19c-12c
Setting RMAN Persistent Configuration Parameters
15- Invoke RMAN again and connect to your physical standby DB and the recovery catalog

16- Execute the show all commande to view the configuration parameters for your standby DB

9-9 Copyright © 2009, Oracle. All rights reserved.


ORACLE DATA GUARD 19c-12c

Setting RMAN Persistent Configuration Parameters


17- Configure automatic backup of the control file and the server parameter file

18- Configure backup optimization

19- Set the archive log deletion policy to backed up 1 times to device type disk

9 - 10 Copyright © 2009, Oracle. All rights reserved.


ORACLE DATA GUARD 19c-12c

Setting RMAN Persistent Configuration Parameters

See you next times with the Second Part (Part 2) In this practice, where you recover a data file in your primary
database by using a data file Back up from your physical standby database.

9 - 11 Copyright © 2009, Oracle. All rights reserved.

You might also like