Oracle Data Guard Interview Questions/FAQs
1. How to setup Data Guard?
2. What are different types of modes in Data Guard and which is default?
This is the default protection mode. It provides the highest level of data protection that is possible without affecting the performance of a primary database. This is accomplished by allowing transactions to commit as soon as all redo data generated by those transactions has been written to the online log.
This protection mode ensures that no data loss will occur if the primary database fails. To provide this level of protection, the redo data needed to recover a transaction must be written to both the online redo log and to at least one standby database before the transaction commits. To ensure that data loss cannot occur, the primary database will shut down, rather than continue processing transactions.
This protection mode provides the highest level of data protection that is possible without compromising the availability of a primary database. Transactions do not commit until all redo data needed to recover those transactions has been written to the online redo log and to at least one standby database.
3. How many standby databases we can create (in 10g/11g)?
Till Oracle 10g, 9 standby databases are supported.
From Oracle 11g R2, we can create 30 standby databases.
4. What are the parameters we have to set in primary/standby for Data Guard?
5. What is the use of fal_server & fal_client, is it mandatory to set these?
6. What are differences between physical, logical, snapshot standby and ADG (or) what are different types of standby databases?
Physical standby – in mount state, MRP will apply archives
ADG – in READ ONLY state, MRP will apply archives
Logical standby – in READ ONLY state, LSP will run
Snapshot standby databases – Physical standby database can be converted to snapshot standby database, which will be in READ WRITE mode, can do any kind of testing, then we can convert back snapshot standby database to physical standby database and start MRP which will apply all pending archives.
7. How to find out backlog of standby?
select round((sysdate - a.NEXT_TIME)*24*60) as "Backlog",m.SEQUENCE#-1 "Seq Applied",m.process, m.status
from v$archived_log a, (select process,SEQUENCE#, status from v$managed_standby where process like '%MRP%')m where a.SEQUENCE#=(m.SEQUENCE#-1);
8. If you didn't have access to the standby database and you want to find out what error has occurred in a Data Guardconfiguration, what view would you check in the primary database to check the error message?
You can check the v$dataguard_status view.
select message from v$dataguard_status;
9. How can you recover standby which far behind from primary (or) without archive logs how can we make standby sync?
By using RMAN incremental backup.
10. What is snapshot standby (or) How can we give a physical standby to user in READ WRITE mode and let him do updates and revert back to standby?
Till Oralce 10g, create guaranteed restore point, open in read write, let user do DMLs on snapshot standby, flashback to restore point, start MRP.
From Oracle 11g, convert physical standby to snapshot standby, let user do DMLs on snapshot standby, convert to physical standby, start MRP.
11. What are new features in 11g Data Guard?
12. What are the uses of standby redo log files?
13. What is dg_config?
14. What is RTA (real time apply) mode MRP?
15. What is the difference between normal MRP (managed apply) and RTA MRP (real time apply)?
16. What are various parameters in log_archive_dest and it’s use?
17. What is the difference between SYNC/ASYNC, LGWR/ARCH, and AFFIRM/NOAFFIRM?
18. What is Data Guard broker (or) what is the use of dgmgrl?
19. What is StaticConnectIdentifier property used for?
20. What is failover/switchover (or) what is the difference between failover & switchover?
21. What are the background processes involved in Data Guard?