RMAN has just been connected to a target database and the recovery catalog database. In which two cases would an automatic full resynchronization occur between this target database's control file and the RMAN recovery catalog? (Choose two.)
A.
when control file metadata for archive log backups or image copies has been overwritten in the target database's control file due to being older than CONTROL_FILE_RECORD_KEEP_TIME
B.
when control file metadata for data file backups or image copies has been overwritten in the target database's control file due to being older than CONTROL_FILE_RECORD_KEEP_TIME
C.
when a new tablespace is added to a registered target database
D.
when a backup of the current control file is created
CE correct
In a full resynchronization, RMAN updates all changed records, including those for the database schema. RMAN performs a full resynchronization after structural changes to database (adding or dropping database files, creating new incarnation, and so on) or after changes to the RMAN persistent configuration.
When a database is registered with a recovery catalog for the first time a full catalog synchronization is performed
https://docs.oracle.com/en/database/oracle/oracle-database/19/bradv/managing-recovery-catalog.html#GUID-6B077FE7-8E10-4603-8FDB-CAE3357E85C9
https://www.oracledistilled.com/oracle-database/backup-and-recovery/registering-a-database-with-a-recovery-catalog/#:~:text=Using%20RMAN%2C%20connect%20to%20both,register)%20and%20the%20recovery%20catalog.&text=Next%20issue%20the%20REGISTER%20DATABASE%20command%20to%20register%20the%20database.&text=When%20a%20database%20is%20registered,is%20performed%20(%20RESYNC%20CATALOG%20).
C. I AM confuse. say
"As with archive operations, the recovery catalog is not updated automatically when the physical schema changes." but tablespace is in the logical level,
Answer is DE
Ref : https://www.devdoc.net/database/OracleDoc_19c_index/content/rcmrf/RESYNC-CATALOG.html#GUID-DF91BD12-A00D-49CC-99C5-E8EDD0094CCE
So, As with log archiving, the recovery catalog is not updated automatically when the physical schema changes
DE correct.
C & E
13.8.2.1 About Resynchronization of the Recovery Catalog
Resynchronization of the recovery catalog ensures that the metadata that RMAN obtains from the control file stays current. Resynchronizations can be full or partial.
In a partial resynchronization, RMAN reads the current control file of the target database to update changed metadata about new backups, new archived redo logs, and so on. RMAN does not resynchronize metadata about the database physical schema.
In a full resynchronization, RMAN updates all changed records, including those for the database schema. RMAN performs a full resynchronization after structural changes to database (adding or dropping database files, creating new incarnation, and so on) or after changes to the RMAN persistent configuration.
---
https://docs.oracle.com/en/database/oracle/oracle-database/19/bradv/managing-recovery-catalog.html#GUID-C4EC7335-316B-45D6-A021-2A2B2030439F
DE.
C is incorrect. How did i test it?
1-Check what the catalog knows about the target tablespaces. You can see this in the catalog view: RC_TABLESPACES
select ts#, name, creation_time from rc_tablespace;
2-Create tablepsace on target, name it whatever you want.
3-Check the catalog view again (step 1). You will not see the new tablespace you just created on target, meaning it did not do an automatic resync.
4- Resync manually on RMAN : RESYNC CATALOG
5- Check again the catalog's view RC_TABLESPACES:
You will now see that the new tablespace information on the catalog's view, meaning you had to manually resync the catalogo to update it after a tablepsace creation.
------
D is correct. Tested it the same way, but this time using the catalog's view: RC_BACKUP_CONTROLFILE
select bcf_key from RC_BACKUP_CONTROLFILE;
--displays unique ids of controlfile backups as backupsets on the catalog.
And in RMAN: backup as backupset current control file
You will notice that the catalog is updated automatically when you backup the current control file.
CE ... I think D is wrong, it is a tricky answer "when a backup of the current control file is created" but full synchronize is done after the backup was created.
NOT C
DE
https://web.stanford.edu/dept/itss/docs/oracle/10gR2/backup.102/b14191/rcmcatdb003.htm
RMAN> register database;
database registered in recovery catalog
starting full resync of recovery catalog
full resync complete
RMAN> backup current controlfile;
Starting backup at 26.01.2022 18:24:45
starting full resync of recovery catalog
full resync complete
allocated channel: ORA_DISK_1
but if do it in rman session, connected to catalog then
RMAN> CREATE TABLESPACE tbs_test2
DATAFILE '/opt/oracle/oradata/CDB1/test.dbf2'
SIZE 10M
AUTOEXTEND ON;2> 3> 4>
Statement processed
starting full resync of recovery catalog
full resync complete
CE?
I think D, E for 'automatic full resynchronization'.
https://docs.oracle.com/en/database/oracle/oracle-database/19/bradv/managing-recovery-catalog.html#GUID-87642B50-AF67-482E-A93D-291B8D2EED92
Most 'RMAN commands' perform a resynchronization automatically when the target control file is mounted and the catalog is available.
RMAN> backup current controlfile;
Starting backup at 08-JAN-22 12:14:16
starting full resync of recovery catalog
full resync complete
allocated channel: ORA_DISK_1
https://docs.oracle.com/en/database/oracle/oracle-database/19/rcmrf/RESYNC-CATALOG.html#GUID-DF91BD12-A00D-49CC-99C5-E8EDD0094CCE
Typically, you run RESYNC CATALOG in the following situations:
You made changes to the physical structure of the target database such as adding or dropping a tablespace. As with log archiving, the recovery catalog is NOT updated automatically when the physical schema changes.
C is correct: In a full resynchronization, RMAN updates all changed records, including those for the database schema. RMAN performs a full resynchronization after structural changes to database (adding or dropping database files, creating new incarnation, and so on) or after changes to the RMAN persistent configuration.
https://docs.oracle.com/en/database/oracle/oracle-database/19/bradv/managing-recovery-catalog.html#GUID-A7B674BE-0E9C-444D-8517-E7F7D83115D0
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
RinD
Highly Voted 3 years, 2 months agoantonica
Most Recent 3 months, 3 weeks agoantonica
3 months, 2 weeks agojulmis
10 months, 3 weeks agolchdb
11 months, 1 week agoeleeitor
1 year ago_gio_
1 year agoScottL
1 year, 2 months agoDas97
1 year, 6 months agoG_C
1 year, 9 months agoegore0496
2 years, 5 months agoegore0496
2 years, 5 months agoegore0496
2 years, 5 months agokvf
2 years, 6 months agobrolem
2 years, 3 months agoObserverPL
3 years, 1 month ago