Oracle Dataguard Flashcards

1
Q

What is dataguard?

A
  • Oracle DataGuard is the most effective and comprehensive data availability, data protection, and disaster recovery solution for enterprise databases.
  • It uses one or more synchronized standby databases to protect data from failures, disasters, errors, and corruptions.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is Data Guard broker?

A
  • It is a distributed framework that automates and centralizes the creation, maintenance, and monitoring of dataguard configurations.
  • Can be accessed through OEM or dgmgrl CLI.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the difference between dataguard and standby database?

A
  • Dataguard is set up between the primary and standby instance. It can manage both instances and is only available on Enterprise Edition.
  • Standby database provides a physically identical copy of the the primary database. It recovers the redo data received from the primary DB and applies it to the standby. Only available on the Standard Edition.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the differences between physical and logical standby databases? How would you decide which one is best suited for your environment?

A
  • Physical standby is physically identical to the primary database and can only be opened in read mode. It is best for high availability solutions and is mostly used for disaster recovery.
  • Logical standby is logically identical to the primary database. It transforms redo logs into SQL statements and applies them to the logical DB. It can be opened in read/write. It is best for queries, summations, and reporting activities.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Explain Active Dataguard

A

It enables read-only access to a physical database for queries, sorting, reporting, web-based access, etc. while continuously applying changes received from production database. It also enables the use of fast incremental backups when offloading backups to a standby database and can provide additional benefits of high availability and disaster protection.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a snapshot standby database?

A

A snapshot database is a fully updatable standby DB that is created by converting a physical database into a snapshot standby DB. It receives and archives the redo data from a primary DB but does not apply the data it receives until it is reverted back to the primary DB.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What does the Dataguard Architecture consist of?

A
  • Primary Database
  • Standby Database
  • Log Transport Services
  • Network Configuration
  • Log Apply Services
  • Role Management Services
  • Dataguard Broker
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the services required on the standby database?

A
  • Log Writer Process (LGWR)
  • Archiver Process (ARCn)
  • Fetch Archive Log (FAL) Server
  • Fetch Archive Log (FAL) Client
  • Remote File Sever (RFS)
  • Managed Recover Process (MRP)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the Log Writer Process (LGWR)?

A

It collects redo information and updates the online redo logs.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the Archiver Process (ARCn)

A
  • Its one or more processes that makes copies of online redo logs either locally or remotely for standby databases.
  • Archives the standby redo logs applied by the managed recovery process (MRP).
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the Fetch Archive Log (FAL) Server?

A

It services requests for archive redo logs from FAL clients running on multiple standby databases.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the Fetch Archive Log (FAL) Client?

A

It pulls archived redo logs from the primary site. Initiates transfer of archive redo logs when it detects a gap sequence.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the Remote File Server (RFS)?

A

Receives archived and/or standby redo logs from primary DB.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is the Managed Recovery Process (MRP)?

A

Applies archive redo log info to the standby DB.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What are the protection modes in Dataguard?

A

1) Maximum Protection: offers highest level of data protection. Ensures no data loss even in the event of multiple failures.
2) Maximum Availability: similar to max protection in addition to zero data loss in the event of a single failure.
3) Maximum Performance: highest performance with slightly less data protection on the primary database.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How would you delay the application logs to a physical database?

A

Modify the LOG_ARCHIVE_DEST_n initialization parameter on the primary DB to set a delay for the standby DB.

17
Q

Steps to create a physical standby database.

A

1) Take a hot full backup of the primary DB.
2) Create standby controlfile.
3) Transfer full backup, init.ora, standby controlfile to standby node.
4) Modify init.ora file on standby mode.
5) Restore DB
6) Recover standby DB.
7) Setup FAL_CLIENT and FAL_SERVER parameters on both sides.
8) Put standby DB in Managed Recover Mode.