December 27, 2022

Top 25+ Oracle Data Guard Interview Questions with Answers for experienced

Frequently asked 25+ Oracle DBA Data Guard Interview Questions [2023]


1. How to set up Data Guard?
Answer :

2. What are the advantages of using Oracle Data Guard?
Answer :

3. What are the different types of protection modes in Data Guard and which is the default?
Answer :
Maximum performance:
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.

Maximum protection:
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.

Maximum availability:
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.

4. How many standby databases we can create?
Answer :
Till Oracle 10g, 9 standby databases are supported.
From Oracle 11g R2, we can create 30 standby databases.

5. What are the parameters we have to set in primary/standby for Data Guard?
Answer :

6. What is the use of fal_server and fal_client, is it mandatory to set these?
Answer :

7. What are the differences between physical, logical, snapshot standby and ADG (or) what are different types of standby databases?
Answer :
Physical standby – in mount state, MRP will apply archives
ADG (Active Data Guard) – 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.

8. How to find out the backlog of standby?
Answer :
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);


9. If you didn't have access to the standby database and you want to find out what error has occurred in a Data Guard configuration, what view would you check in the primary database to check the error message?
Answer :
You can check the v$dataguard_status view. 
select message from v$dataguard_status;

10. How can you recover standby which is far behind from primary (or) without archive logs how can we make standby sync?
Answer :
By using RMAN incremental backup.

11. What is snapshot standby (or) How can we give a physical standby to the user in READ WRITE mode and let him do updates and revert back to standby?
Answer :
Till Oralce 10g, create a guaranteed restore point, open in read write, let the 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.

12. What were new features in 11g Data Guard?
Answer :

13. What are the uses of standby redo log files?
Answer :
A standby redo log resides on the standby database site. The standby redolog file is similar to an online redo log, except that a standby redo log is used to store redo data that has been received from another/primary database.

14. What is dg_config?
Answer :

15. What is RTA (real time apply) mode MRP?  How will you identify if DB is running in real time apply mode or not?
Answer :

16. What is the difference between normal MRP (managed apply) and RTA MRP (real time apply)?
Answer :

17. What are various parameters in log_archive_dest and their use?
Answer :

18. I have added a tempfile on the primary database, but the tempfile is not reflecting on standby database (despite standby_file_management is set to AUTO), Why ?
Answer :

19. What is the difference between SYNC/ASYNC, LGWR/ARCH, and AFFIRM/NOAFFIRM?
Answer :

20. What is DataGuard broker (or) what is the use of dgmgrl?
Answer :

21. What is StaticConnectIdentifier property used for?
Answer :

22. What is failover/switchover (or) what is the difference between failover and switchover?
Answer :
Switchover – This is done when both primary and standby databases are available. It is pre-planned.

Failover – This is done when the primary database is NO longer available (i.e. in a Disaster). It is not pre-planned.

23. What is the usage of DB_FILE_NAME_CONVERT or LOG_FILE_NAME_CONVERT parameters in Oracle Data Guard setup?
Answer :

24. What are the background processes involved in Data Guard?
Answer :
RFS, MRP, LSP

25. What are the different services available in Oracle Data Guard?
Answer :

26. How to change protection mode in Oracle Data Guard setup?
Answer :

27. How to check what protection mode of primary or standby database is in Oracle Data Guard?
Answer :

28. What is Active DataGuard (ADG). Does it need additional licensing?
Answer :

11 comments:

  1. hi sathya
    in above some of questions don't have the answers pls give the answers

    ReplyDelete
  2. excellent article
    http://www.kitsonlinetrainings.com/office-365-online-training.html
    http://www.kitsonlinetrainings.com/oracle-apps-technical-course.html

    ReplyDelete
  3. Hi Satya,

    It is very helpful for fresher and thank you for sharing these information with US.

    Thanks,
    Anonymous

    ReplyDelete
  4. Satya ,
    Some of the questioners are not answered . can you pls provide those info.

    ReplyDelete
  5. Hi ,
    Some of the question I have seen , you don't have answer.Please answer all question and it will be helpful to us.

    Thanks

    ReplyDelete
  6. Hii, here you shared useful information. we are also from data field. Thanks for sharing information.

    ReplyDelete
  7. Thanks for sharing this information here.

    ReplyDelete
  8. Excellent post, Thanks for sharing this.

    Learn more about out courses to get the best knowledge. CSPO Certification

    ReplyDelete