Content deleted Content added
MusikAnimal (talk | contribs) m Reverted edit(s) by 61.16.223.195 identified as test/vandalism using STiki |
m Disambiguating links to Disaster recovery (link changed to IT disaster recovery) using DisamAssist. |
||
(39 intermediate revisions by 19 users not shown) | |||
Line 1:
The software which [[Oracle Corporation]] markets as '''Oracle Data Guard''' forms an extension to the [[Oracle Database|Oracle
Oracle provides both [[graphical user interface
Data Guard supports both '''physical standby''' and '''logical standby''' sites. Oracle Corporation makes Data Guard available only as a [[product bundling|bundled]] feature included within its "Enterprise Edition" of the [[Oracle RDBMS]].<ref>http://download.oracle.com/docs/cd/B28359_01/server.111/b28294/standby.htm#insertedID3 ''Data Guard Concepts and Administration'', 11g Release 1 (11.1); Section 2.3.2: "Oracle Software Requirements" Retrieved 2007-10-01</ref>
Line 9:
== Configurations ==
For the purposes of Data Guard, each Oracle database functions either in a primary database role or in a standby database role - with the ability to transition from one role to the other.<ref>{{cite book|url=http://docs.oracle.com/cd/E11882_01/server.112/e41134/concepts.htm#i1033808|title=Oracle Data Guard Concepts and Administration 11g Release 2 (11.2)|last=Rich|first=Kathy|display-authors=etal|access-date=8 Mar 2017}}
</ref>
=== Physical standby (Redo Apply) ===
A physical standby database replicates the exact contents of its primary database across the [[Oracle Net]] [[network layer]]. While the relative physical storage locations can differ, the data in the database will be exactly the same as in the primary database.
Physical standby databases have the same DBID identifiers as their primary equivalents.<ref>
{{cite book
|last1= Tchoko
|first1= Floribert
|title= Oracle: Protect Your Data
|url= https://books.google.com/books?id=1Py_soo_3pkC
|publisher= AuthorHouse
|publication-date= 2012
|page= 128
|isbn= 9781467896214
|access-date= 2015-03-17
|quote= [...] a new identifier DBID is assigned to the new database unless the database is a standby database. In this case it retains the same DBID as the source database.
}}
</ref>
=== Logical standby (SQL Apply) ===
Line 35 ⟶ 37:
| url = http://www.databasejournal.com/features/oracle/article.php/3860251/Leveraging-Logical-Standby-Databases-in-Oracle-11g-Data-Guard.htm
| title = Leveraging Logical Standby Databases in Oracle 11g Data Guard
|
| last = Czuprynski
| first = Jim
|date=January 2010
}}</ref> Logical standby may not be appropriate in such a case.
=== Active Data Guard ===
Line 53 ⟶ 50:
| title = Oracle Database Options
| url = http://download.oracle.com/docs/cd/B28359_01/license.111/b28287/options.htm#sthref21
| work = Oracle Database Licensing Information 11g Release 1 (12c)
| publisher = Oracle Corporation
| date =
|
| quote = If a physical standby database in a Data Guard configuration has any of the above features enabled, then the Active Data Guard option must be licensed for every such physical standby, and also for the primary database.
}}</ref> extends Oracle Data Guard
{{cite web
| title = Oracle Active data Guard
Line 68 ⟶ 61:
| work = Oracle Database
| publisher = Oracle Corporation
| date =
|
| quote = Oracle Active Data Guard enables read-only access to a physical standby database for queries, sorting, reporting, web-based access, etc., while continuously applying changes received from the production database.
}}</ref>
Line 84 ⟶ 74:
| url = http://www.oracle.com/technology/deploy/availability/pdf/MAA_WP_10gR2_DataGuardNetworkBestPractices.pdf
| title = Data Guard Redo Transport & Network Best Practices: Oracle Database 10g Release 2
|
| last = Smith
| first = Michael T
|date= February 2007
| format = PDF
| publisher = Oracle Corporation
| pages = 6, 14
| quote = ... sending processes (LNS and ARC) on the production database....The Data Guard LNS process on the production database performs a network send to the Data Guard RFS process on the standby database.
}}</ref> where the '''RFS''' (remote file server) background process within the Oracle instance performs the task of receiving archived redo
{{cite book
|last1= Carpenter
|first1= Larry
|display-authors= etal
|title= Oracle Data Guard 11g Handbook
|url= https://books.google.com/books?id=FG8vM7gsSp8C
|series= Oracle Press
|publisher= McGraw Hill Professional
|publication-date= 2009
|page= 5
|isbn= 9780071621489
| access-date = 2015-02-17
| quote = Redo records transmitted by the LNS are received at the standby database by another Data Guard process called the ''Remote File Server (RFS)''. The RFS receives the redo at the standby database and writes it to a sequential file called a ''standby redo log file (SRL)''.
}}
</ref>
Alternatively, a supplementary mechanism may transfer the archived redo logs. On the standby database a Fetch Archive Log ('''FAL''') client monitors for gaps in the sequence of received logs. If it finds a gap, it may invoke one or more Fetch Archive Log (FAL) servers to run on the primary database to forward the missing item(s).<ref>
Line 109 ⟶ 103:
</ref>
Once the archived redo logs have arrived on the standby host, other processes
{{cite book
| last = Ault
| first = Mike
|
| series = Oracle In-Focus Series
| others = Madhu Tumma
| title = Oracle 10g Grid & Real Application Clusters: Oracle 10g Grid Computing with RAC
| url =
|
| year = 2004
| publisher = Rampant TechPress
Line 125 ⟶ 119:
| quote = [...] the managed recovery process (MRP) on the standby database determines the correct order to apply the archive logs from the different threads on the Standby Database.
}}
</ref>), and/or an '''LSP''' (Logical Standby Process)
The use of '''standby redo logs''' can speed up the application of changes to a standby database<ref>
{{cite book
|last1= Bach
|first1= Martin
|title= Expert Consolidation in Oracle Database 12c
|url= https://books.google.com/books?id=85cQAwAAQBAJ
|series= Expert's voice in Oracle
|publisher= Apress
|publication-date= 2013
|page= 320
|isbn= 9781430244295
|access-date= 2015-02-19
|quote= [...] with Oracle 10g, [u]sing standby redo logs on the standby database server, the redo stream arriving on the destination could be applied to the standby database immediately, without having to wait for the standby redo log to be archived and applied.
}}
</ref>
with real-time apply.<ref>
{{cite web
| url = http://docs.oracle.com/cd/B19306_01/server.102/b14239/concepts.htm#i1033747
| title = Oracle Data Guard Concepts and Administration, 10g Release 2 (10.2)
| last1 = Schupmann
| first1 = Vivian
| year = 2008
| publisher = Oracle
| access-date = 2015-02-20
| quote = Redo data can be applied either from archived redo log files, or, if real-time apply is enabled, directly from the standby redo log files as they are being filled, without requiring the redo data to be archived first at the standby database.
}}
</ref>
The Data Guard Connection process ('''DRCX''') plays a role in transferring data between databases.<ref>
{{cite web
| url = http://docs.oracle.com/cd/B19306_01/server.102/b14219/e12700.htm#ORA-16589
| title = Oracle Database Online Documentation, 10g Release 2 (10.2)
| year = 2015
| website = docs.oracle.com
| publisher = Oracle
| access-date = 2015-06-16
| quote = The Data Guard Connection process (DRCX) detected an error while transferring data from one database to another.
}}
</ref>
===Client-side access===
Line 133 ⟶ 167:
| first = Edward
| title = Oracle Database 10g Linux administration
| url =
|
| year = 2005
| publisher = McGraw-Hill Professional
Line 143 ⟶ 177:
== Advantages ==
Data Guard provides [[high availability]] for a database system. It can also reduce the human intervention required to switch between [[databases]] at [[IT disaster recovery|disaster-recovery]] ("failover") or [[upgrade]]/[[Preventive maintenance|maintenance]] ("switchover") time.
Through the use of standby redo log files, Data Guard can minimize data loss.<ref>
Line 149 ⟶ 183:
| last = Kumar
| first = Bipul
| title = Oracle Data Guard: Standby Database Failover Handbook
| series = Oracle In-Focus Series
| volume = 19
Line 158 ⟶ 193:
}}
</ref>
It supports heterogeneous configurations in which the primary and standby systems may have different CPU architectures, operating systems (for example, Microsoft Windows and Linux), operating-system binaries (32-bit/64-bit), or Oracle database binaries (32-bit/64-bit).<ref name="Data Guard Operational Prerequisites">
{{cite web
| title = Data Guard Operational Prerequisites
| url = http://docs.oracle.com/cd/E11882_01/server.112/e10700/standby.htm#i58150
| work = Data Guard Concepts and Administration
| publisher = Oracle Corporation
| access-date = 2013-08-26
| quote = As of Oracle Database 11g, Data Guard provides increased flexibility for Data Guard configurations in which the primary and standby systems may have different CPU architectures, operating systems (for example, Windows & Linux), operating system binaries (32-bit/64-bit), or Oracle database binaries (32-bit/64-bit).
}}</ref>
== Disadvantages ==
If the network link connecting primary and standby is over-subscribed, the redo logs are not
<ref name="Oracle Database Options"/> This can be overcome, using Oracle’ Active Data Guard Farsync technology.
The same release of Oracle Database Enterprise Edition must be installed on the primary database and all standby databases, except during rolling database upgrades using logical standby databases.
Oracle Data Guard is available only as a feature of Oracle Database Enterprise Edition.
== See also ==
Line 172 ⟶ 218:
== References ==
{{Reflist|
[[Category:Oracle software]]
|