Architecture
Database Synchronization Options
Setup No-Data-Divergence
Setup Primary Database
Setup Standby Database
Start Managed Standby Recovery
Protect Primary Database
Cancel Managed Standby Recovery
Activating A Standby Database
Backup Standby Database
Database Switchover
Database Failover
Automatic Archive Gap Detection
Background Managed Recovery
Delayed Redo Application
Architecture
The Oracle9i Data Guard architecture incorporates the following items:
Primary Database - A production database that is used to create standby databases. The archive logs from the primary database are transfered and applied to standby databases. Each standby can only be associated with a single primary database, but a single primary database can be associated with multiple standby databases.
Standby Database - A replica of the primary database.
Log Transport Services - Control the automatic transfer of archive redo log files from the primary database to one or more standby destinations.
Network Configuration - The primary database is connected to one or more standby databases using Oracle Net.
Log Apply Services - Apply the archived redo logs to the standby database. The Managed Recovery Process (MRP) actually does the work of maintaining and applying the archived redo logs.
Role Management Services - Control the changing of database roles from primary to standby. The services include switchover, switchback and failover.
Data Guard Broker - Controls the creation and monitoring of Data Guard. It comes with a GUI and command line interface.
The services required on the primary database are:
Log Writer Process (LGWR) - Collects redo information and updates the online redo logs. It can also create local archived redo logs and transmit online redo to standby databases.
Archiver Process (ARCn) - One or more archiver processes make copies of online redo logs either locally or remotely for standby databases.
Fetch Archive Log (FAL) Server - Services requests for archive redo logs from FAL clients running on multiple standby databases. Multiple FAL servers can be run on a primary database, one for each FAL request. .
The services required on the standby database are:
Fetch Archive Log (FAL) Client - Pulls archived redo log files from the primary site. Initiates transfer of archived redo logs when it detects a gap sequence.
Remote File Server (RFS) - Receives archived and/or standby redo logs from the primary database.
Archiver (ARCn) Processes - Archives the standby redo logs applied by the managed recovery process (MRP).
Managed Recovery Process (MRP) - Applies archive redo log information to the standby database.
Database Synchronization Options
Data Guard can be configured to run with varying synchronization modes indicating the potential for data loss:
No-Data-Loss mode : This simply means that the log transport services will not acknowledge modifications to the primary database until they are available to the standby database. This doesn't mean that the modifications have been applied to the standby database, merely that the log information is available to the log apply services should failover occur. This mode is implemented using standby redo logs on the standby server.
No-Data-Divergence mode : This is an extension of the no-data-loss mode whereby modifications to the primary database are prevented if conectivity between the primary and at least one standby database is unavailable.
Minimal-Data-Loss mode : When the performance requirements of the primary database are the top priority this mode provides the optimum balance of data protection and performance.
Setup No-Data-Divergence
To setup no-data-divergence, the most extreme level of data protection, then do the following:
Setup Primary Database
Shutdown the database using: SHUTDOWN IMMEDIATE
Backup all database files.
Add an entry for the standby server into the tnsnames.ora file:
stby1=
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = myServerName)(PORT = 1512))
)
(CONNECT_DATA =
(SERVICE_NAME = stby1.world)
)
)Assuming your database in already in ARCHIVELOG mode one of the archive destinations will be set. Add the other entires:
CONTROL_FILES=primary.ctl
COMPATIBLE=9.0.1.0.0
LOG_ARCHIVE_START=true
LOG_ARCHIVE_DEST_1='LOCATION=C:\Oracle\Oradata\TSH1\Archive MANDATORY REOPEN=30'
LOG_ARCHIVE_DEST_2='SERVICE=stby1 LGWR SYNC AFFIRM'
LOG_ARCHIVE_DEST_STATE_1=enable
LOG_ARCHIVE_DEST_STATE_2=enable
LOG_ARCHIVE_FORMAT=arc%t_%s.arc
REMOTE_ARCHIVE_ENABLE=trueThe LGWR SYNC AFFIRM keywords indicate that the Logwriter should synchronously write updates to the online redo logs to this location and wait for confirmation of the write before proceeding. The remote site will process and archive these standby redo logs to keep the databases synchronized. This whole process can impact performance greatly but provides maximum data security.
Startup the database using: STARTUP PFILE=C:\Oracle\Admin\TSH1\pfile\init.ora
Create standby database controlfile using: ALTER DATABASE CREATE STANDBY CONTROLFILE AS 'c:\stbycf.f';
Setup Standby Database
Copy the production backup files to the standby server.
Copy the standby controlfile to the standby server.
Alter the control_files and archive parameters of the init.ora as follows:
SERVICE_NAMES = stby1
CONTROL_FILES=standby.ctl
COMPATIBLE=9.0.1.0.0
LOG_ARCHIVE_START=true
LOCK_NAME_SPACE=stby1
FAL_SERVER=prim1
FAL_CLIENT=stby1
# Uncomment is filename conversion is needed
#DB_FILE_NAME_CONVERT=("/primary","/standby")
#LOG_FILE_NAME_CONVERT=("/primary","/standby")
STANDBY_ARCHIVE_DEST=C:\Oracle\Oradata\TSH1\Archive
LOG_ARCHIVE_DEST_1='LOCATION=C:\Oracle\Oradata\TSH1\Archive'
LOG_ARCHIVE_TRACE=127
LOG_ARCHIVE_FORMAT=arc%t_%s.arc
STANDBY_FILE_MANAGEMENT=auto
REMOTE_ARCHIVE_ENABLE=trueAdd the following entries into the listener.ora file:
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = myHost)(PORT = 1512))
)
STANDBY_LISTENER = (ADDRESS_LIST=
(ADDRESS=(PROTOCOL=tcp)(PORT=1512)(HOST=myHost))
)The file should resemble the following:
# LISTENER.ORA Network Configuration File: C:\Oracle\Ora901\network\admin\listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
)
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = myHost)(PORT = 1521))
)
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = myHost)(PORT = 1512))
)
)
(DESCRIPTION =
(PROTOCOL_STACK =
(PRESENTATION = GIOP)
(SESSION = RAW)
)
(ADDRESS = (PROTOCOL = TCP)(HOST = myHost)(PORT = 2481))
)
)
STANDBY_LISTENER = (ADDRESS_LIST=
(ADDRESS=(PROTOCOL=tcp)(PORT=1512)(HOST=myHost))
)
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC = (SID_NAME = PLSExtProc)(ORACLE_HOME = C:\Oracle\Ora901)(PROGRAM = extproc))
(SID_DESC = (ORACLE_HOME = C:\Oracle\Ora901) (SID_NAME = TSH1)
)
)Reload the listener file using lsnrctl reload from the command prompt.
Add the following entry into the tnsnames.ora file:
stby1=
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = myServerName)(PORT = 1512))
)
(CONNECT_DATA =
(SERVICE_NAME = stby1.world)
)
)Create standby redo logs on the standby database to receive online redo information from the Logwriter on the primary database. The minimum number of groups required is an exact match, number and size, of the primary database, but performance may be increased by adding more:
ALTER DATABASE ADD STANDBY LOGFILE GROUP 10
('C:\Oracle\Oradata\TSH1\redo1a.log','C:\Oracle\Oradata\TSH1\redo1b.log') SIZE 500K;Start Managed Standby Recovery
During managed recovery the transfer of archivelogs is controlled by the servers without user intervention.
Copy all archive logs from the primary to the standby server. This is the only time you should need to do this.
From sqlplus do the following:
SQL> CONNECT sys/password AS SYSDBA
SQL> STARTUP NOMOUNT PFILE=C:\Oracle\Admin\TSH1\pfile\init.ora
SQL> ALTER DATABASE MOUNT STANDBY DATABASE;
SQL> RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION;Protect Primary Database
Now that Data Guard is configured and running the primary database can be prevented from applying updates unless the update has been sent to at least one standby location. Connect to the primary database and execute:
ALTER DATABASE SET STANDBY DATABASE PROTECTED;Cancel Managed Standby Recovery
To stop managed standby recovery:
SQL> -- Cancel protected mode on primary
SQL> CONNECT sys/password@primary1 AS SYSDBA
SQL> ALTER DATABASE SET STANDBY DATABASE UNPROTECTED;
SQL>
SQL> -- Cancel recovery if necessary
SQL> CONNECT sys/password@standby1 AS SYSDBA
SQL> RECOVER MANAGED STANDBY DATABASE CANCEL;
SQL> ALTER DATABASE OPEN READ ONLY;The database can subsequently be switched back to recovery mode as follows:
SQL> -- Startup managed recovery
SQL> CONNECT sys/password@standby1 AS SYSDBA
SQL> SHUTDOWN IMMEDIATE
SQL> STARTUP NOMOUNT PFILE=C:\Oracle\Admin\TSH1\pfile\init.ora
SQL> ALTER DATABASE MOUNT STANDBY DATABASE;
SQL> RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION;
SQL> -- Protect primary database
SQL> CONNECT sys/password@primary1 AS SYSDBA
SQL> ALTER DATABASE SET STANDBY DATABASE PROTECTED;Activating A Standby Database
If the primary database is not available the standby database can be activated as a primary database using the following statements:
SQL> -- Cancel recovery if necessary
SQL> RECOVER MANAGED STANDBY DATABASE CANCEL;
SQL> ALTER DATABASE ACTIVATE STANDBY DATABASE;Since the standby database is now the primary database it should be backed up immediately. The previous primary database can then be configured as a standby.
Backup Standby Database
Backups of the standby database can only be performed if the database is shut down or in read only mode. Read only mode is best for managed recovery systems as archive logs will still be transfered during the backup process, thus preventing gap sequences. Once the server is in the desired mode simply copy the appropriate database files.
Database Switchover
A database can be in one of two mutually exclusive modes (primary or standby). These roles can be altered at runtime without loss of data or resetting of redo logs. This process is known as a Switchover and can be performed using the following statements:
-- Convert primary database to standby
CONNECT sys/change_on_install@prim1 AS SYSDBA
ALTER DATABASE COMMIT TO SWITCHOVER TO STANDBY;
-- Shutdown primary database
SHUTDOWN IMMEDIATE;
-- Mount old primary database as standby database
STARTUP NOMOUNT PFILE=C:\Oracle\Admin\TSH1\pfile\init.ora
ALTER DATABASE MOUNT STANDBY DATABASE;
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE;
-- Convert standby database to primary
CONNECT sys/change_on_install@stby1 AS SYSDBA
ALTER DATABASE COMMIT TO SWITCHOVER TO PRIMARY;
-- Shutdown standby database
SHUTDOWN IMMEDIATE;
-- Open old standby database as primary
STARTUP PFILE=C:\Oracle\Admin\TSH1\pfile\init.oraThis process has no affect on alternative standby locations. The process of converting the instances back to their original roles is known as a Switchback. The switchback is accomplished by performing another switchover.
Database Failover
Graceful Database Failover occurs when database failover causes a standby database to be converted to a primary database:
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE FINISH;
ALTER DATABASE ACTIVATE STANDBY DATABASE;This process will recovery all or some of the application data using the standby redo logs, therefore avoiding reinstantiation of other standby databases. If completed successfully, only the primary database will need to be reinstatiated as a standby database.
Forced Database Failover changes one standby database to a primary database. Application data may be lost neccessitating the reinstantiation of the primary and all standby databases.
Automatic Archive Gap Detection
Gaps in the sequence of archive logs can be created when changes are applied to the primary database while the standby database is unavailable. In Oracle8i the archive redo logs associated with these gaps had to be identified using the V$ARCHIVE_GAP view and copied manually to the standby server before managed recovery could be initiated again. In Oracle9i most of these gap sequences can be resolved automatically. The following parameters must be added to the standby init.ora file where the values indicate net services names.
FAL_SERVER = 'primary_db1'
FAL_CLIENT = 'standby_db1'The FAL server is normally the primary database, but can be another standby database. Once the standby database is placed in managed recovery mode it will automatically check for gap sequences. If it finds any it will request the appropriate files from the primary database via the FAL server. If the gap sequences cannot be resolved the files have to be recovered manually.
Background Managed Recovery
In Oracle8i managed recovery caused the user session to hang until the process was stopped by the user. This type of recovery is still available along with a background recovery that spawns a new background process and frees the user session:
-- User session hangs
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE;
-- User session released
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION;Delayed Redo Application
Application of the archived redo logs to the standby database can be delayed using the DELAY keyword. If a rogue statement significantly damages the primary database the DBA can choose to switch to the standby database, which will be in a state prior to this action:
-- Delay application of archived redo logs by 30 minutes.
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DELAY 30;
-- Return to no delay (Default).
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE NODELAY;
Database Synchronization Options
Setup No-Data-Divergence
Setup Primary Database
Setup Standby Database
Start Managed Standby Recovery
Protect Primary Database
Cancel Managed Standby Recovery
Activating A Standby Database
Backup Standby Database
Database Switchover
Database Failover
Automatic Archive Gap Detection
Background Managed Recovery
Delayed Redo Application
Architecture
The Oracle9i Data Guard architecture incorporates the following items:
Primary Database - A production database that is used to create standby databases. The archive logs from the primary database are transfered and applied to standby databases. Each standby can only be associated with a single primary database, but a single primary database can be associated with multiple standby databases.
Standby Database - A replica of the primary database.
Log Transport Services - Control the automatic transfer of archive redo log files from the primary database to one or more standby destinations.
Network Configuration - The primary database is connected to one or more standby databases using Oracle Net.
Log Apply Services - Apply the archived redo logs to the standby database. The Managed Recovery Process (MRP) actually does the work of maintaining and applying the archived redo logs.
Role Management Services - Control the changing of database roles from primary to standby. The services include switchover, switchback and failover.
Data Guard Broker - Controls the creation and monitoring of Data Guard. It comes with a GUI and command line interface.
The services required on the primary database are:
Log Writer Process (LGWR) - Collects redo information and updates the online redo logs. It can also create local archived redo logs and transmit online redo to standby databases.
Archiver Process (ARCn) - One or more archiver processes make copies of online redo logs either locally or remotely for standby databases.
Fetch Archive Log (FAL) Server - Services requests for archive redo logs from FAL clients running on multiple standby databases. Multiple FAL servers can be run on a primary database, one for each FAL request. .
The services required on the standby database are:
Fetch Archive Log (FAL) Client - Pulls archived redo log files from the primary site. Initiates transfer of archived redo logs when it detects a gap sequence.
Remote File Server (RFS) - Receives archived and/or standby redo logs from the primary database.
Archiver (ARCn) Processes - Archives the standby redo logs applied by the managed recovery process (MRP).
Managed Recovery Process (MRP) - Applies archive redo log information to the standby database.
Database Synchronization Options
Data Guard can be configured to run with varying synchronization modes indicating the potential for data loss:
No-Data-Loss mode : This simply means that the log transport services will not acknowledge modifications to the primary database until they are available to the standby database. This doesn't mean that the modifications have been applied to the standby database, merely that the log information is available to the log apply services should failover occur. This mode is implemented using standby redo logs on the standby server.
No-Data-Divergence mode : This is an extension of the no-data-loss mode whereby modifications to the primary database are prevented if conectivity between the primary and at least one standby database is unavailable.
Minimal-Data-Loss mode : When the performance requirements of the primary database are the top priority this mode provides the optimum balance of data protection and performance.
Setup No-Data-Divergence
To setup no-data-divergence, the most extreme level of data protection, then do the following:
Setup Primary Database
Shutdown the database using: SHUTDOWN IMMEDIATE
Backup all database files.
Add an entry for the standby server into the tnsnames.ora file:
stby1=
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = myServerName)(PORT = 1512))
)
(CONNECT_DATA =
(SERVICE_NAME = stby1.world)
)
)Assuming your database in already in ARCHIVELOG mode one of the archive destinations will be set. Add the other entires:
CONTROL_FILES=primary.ctl
COMPATIBLE=9.0.1.0.0
LOG_ARCHIVE_START=true
LOG_ARCHIVE_DEST_1='LOCATION=C:\Oracle\Oradata\TSH1\Archive MANDATORY REOPEN=30'
LOG_ARCHIVE_DEST_2='SERVICE=stby1 LGWR SYNC AFFIRM'
LOG_ARCHIVE_DEST_STATE_1=enable
LOG_ARCHIVE_DEST_STATE_2=enable
LOG_ARCHIVE_FORMAT=arc%t_%s.arc
REMOTE_ARCHIVE_ENABLE=trueThe LGWR SYNC AFFIRM keywords indicate that the Logwriter should synchronously write updates to the online redo logs to this location and wait for confirmation of the write before proceeding. The remote site will process and archive these standby redo logs to keep the databases synchronized. This whole process can impact performance greatly but provides maximum data security.
Startup the database using: STARTUP PFILE=C:\Oracle\Admin\TSH1\pfile\init.ora
Create standby database controlfile using: ALTER DATABASE CREATE STANDBY CONTROLFILE AS 'c:\stbycf.f';
Setup Standby Database
Copy the production backup files to the standby server.
Copy the standby controlfile to the standby server.
Alter the control_files and archive parameters of the init.ora as follows:
SERVICE_NAMES = stby1
CONTROL_FILES=standby.ctl
COMPATIBLE=9.0.1.0.0
LOG_ARCHIVE_START=true
LOCK_NAME_SPACE=stby1
FAL_SERVER=prim1
FAL_CLIENT=stby1
# Uncomment is filename conversion is needed
#DB_FILE_NAME_CONVERT=("/primary","/standby")
#LOG_FILE_NAME_CONVERT=("/primary","/standby")
STANDBY_ARCHIVE_DEST=C:\Oracle\Oradata\TSH1\Archive
LOG_ARCHIVE_DEST_1='LOCATION=C:\Oracle\Oradata\TSH1\Archive'
LOG_ARCHIVE_TRACE=127
LOG_ARCHIVE_FORMAT=arc%t_%s.arc
STANDBY_FILE_MANAGEMENT=auto
REMOTE_ARCHIVE_ENABLE=trueAdd the following entries into the listener.ora file:
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = myHost)(PORT = 1512))
)
STANDBY_LISTENER = (ADDRESS_LIST=
(ADDRESS=(PROTOCOL=tcp)(PORT=1512)(HOST=myHost))
)The file should resemble the following:
# LISTENER.ORA Network Configuration File: C:\Oracle\Ora901\network\admin\listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
)
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = myHost)(PORT = 1521))
)
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = myHost)(PORT = 1512))
)
)
(DESCRIPTION =
(PROTOCOL_STACK =
(PRESENTATION = GIOP)
(SESSION = RAW)
)
(ADDRESS = (PROTOCOL = TCP)(HOST = myHost)(PORT = 2481))
)
)
STANDBY_LISTENER = (ADDRESS_LIST=
(ADDRESS=(PROTOCOL=tcp)(PORT=1512)(HOST=myHost))
)
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC = (SID_NAME = PLSExtProc)(ORACLE_HOME = C:\Oracle\Ora901)(PROGRAM = extproc))
(SID_DESC = (ORACLE_HOME = C:\Oracle\Ora901) (SID_NAME = TSH1)
)
)Reload the listener file using lsnrctl reload from the command prompt.
Add the following entry into the tnsnames.ora file:
stby1=
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = myServerName)(PORT = 1512))
)
(CONNECT_DATA =
(SERVICE_NAME = stby1.world)
)
)Create standby redo logs on the standby database to receive online redo information from the Logwriter on the primary database. The minimum number of groups required is an exact match, number and size, of the primary database, but performance may be increased by adding more:
ALTER DATABASE ADD STANDBY LOGFILE GROUP 10
('C:\Oracle\Oradata\TSH1\redo1a.log','C:\Oracle\Oradata\TSH1\redo1b.log') SIZE 500K;Start Managed Standby Recovery
During managed recovery the transfer of archivelogs is controlled by the servers without user intervention.
Copy all archive logs from the primary to the standby server. This is the only time you should need to do this.
From sqlplus do the following:
SQL> CONNECT sys/password AS SYSDBA
SQL> STARTUP NOMOUNT PFILE=C:\Oracle\Admin\TSH1\pfile\init.ora
SQL> ALTER DATABASE MOUNT STANDBY DATABASE;
SQL> RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION;Protect Primary Database
Now that Data Guard is configured and running the primary database can be prevented from applying updates unless the update has been sent to at least one standby location. Connect to the primary database and execute:
ALTER DATABASE SET STANDBY DATABASE PROTECTED;Cancel Managed Standby Recovery
To stop managed standby recovery:
SQL> -- Cancel protected mode on primary
SQL> CONNECT sys/password@primary1 AS SYSDBA
SQL> ALTER DATABASE SET STANDBY DATABASE UNPROTECTED;
SQL>
SQL> -- Cancel recovery if necessary
SQL> CONNECT sys/password@standby1 AS SYSDBA
SQL> RECOVER MANAGED STANDBY DATABASE CANCEL;
SQL> ALTER DATABASE OPEN READ ONLY;The database can subsequently be switched back to recovery mode as follows:
SQL> -- Startup managed recovery
SQL> CONNECT sys/password@standby1 AS SYSDBA
SQL> SHUTDOWN IMMEDIATE
SQL> STARTUP NOMOUNT PFILE=C:\Oracle\Admin\TSH1\pfile\init.ora
SQL> ALTER DATABASE MOUNT STANDBY DATABASE;
SQL> RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION;
SQL> -- Protect primary database
SQL> CONNECT sys/password@primary1 AS SYSDBA
SQL> ALTER DATABASE SET STANDBY DATABASE PROTECTED;Activating A Standby Database
If the primary database is not available the standby database can be activated as a primary database using the following statements:
SQL> -- Cancel recovery if necessary
SQL> RECOVER MANAGED STANDBY DATABASE CANCEL;
SQL> ALTER DATABASE ACTIVATE STANDBY DATABASE;Since the standby database is now the primary database it should be backed up immediately. The previous primary database can then be configured as a standby.
Backup Standby Database
Backups of the standby database can only be performed if the database is shut down or in read only mode. Read only mode is best for managed recovery systems as archive logs will still be transfered during the backup process, thus preventing gap sequences. Once the server is in the desired mode simply copy the appropriate database files.
Database Switchover
A database can be in one of two mutually exclusive modes (primary or standby). These roles can be altered at runtime without loss of data or resetting of redo logs. This process is known as a Switchover and can be performed using the following statements:
-- Convert primary database to standby
CONNECT sys/change_on_install@prim1 AS SYSDBA
ALTER DATABASE COMMIT TO SWITCHOVER TO STANDBY;
-- Shutdown primary database
SHUTDOWN IMMEDIATE;
-- Mount old primary database as standby database
STARTUP NOMOUNT PFILE=C:\Oracle\Admin\TSH1\pfile\init.ora
ALTER DATABASE MOUNT STANDBY DATABASE;
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE;
-- Convert standby database to primary
CONNECT sys/change_on_install@stby1 AS SYSDBA
ALTER DATABASE COMMIT TO SWITCHOVER TO PRIMARY;
-- Shutdown standby database
SHUTDOWN IMMEDIATE;
-- Open old standby database as primary
STARTUP PFILE=C:\Oracle\Admin\TSH1\pfile\init.oraThis process has no affect on alternative standby locations. The process of converting the instances back to their original roles is known as a Switchback. The switchback is accomplished by performing another switchover.
Database Failover
Graceful Database Failover occurs when database failover causes a standby database to be converted to a primary database:
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE FINISH;
ALTER DATABASE ACTIVATE STANDBY DATABASE;This process will recovery all or some of the application data using the standby redo logs, therefore avoiding reinstantiation of other standby databases. If completed successfully, only the primary database will need to be reinstatiated as a standby database.
Forced Database Failover changes one standby database to a primary database. Application data may be lost neccessitating the reinstantiation of the primary and all standby databases.
Automatic Archive Gap Detection
Gaps in the sequence of archive logs can be created when changes are applied to the primary database while the standby database is unavailable. In Oracle8i the archive redo logs associated with these gaps had to be identified using the V$ARCHIVE_GAP view and copied manually to the standby server before managed recovery could be initiated again. In Oracle9i most of these gap sequences can be resolved automatically. The following parameters must be added to the standby init.ora file where the values indicate net services names.
FAL_SERVER = 'primary_db1'
FAL_CLIENT = 'standby_db1'The FAL server is normally the primary database, but can be another standby database. Once the standby database is placed in managed recovery mode it will automatically check for gap sequences. If it finds any it will request the appropriate files from the primary database via the FAL server. If the gap sequences cannot be resolved the files have to be recovered manually.
Background Managed Recovery
In Oracle8i managed recovery caused the user session to hang until the process was stopped by the user. This type of recovery is still available along with a background recovery that spawns a new background process and frees the user session:
-- User session hangs
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE;
-- User session released
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION;Delayed Redo Application
Application of the archived redo logs to the standby database can be delayed using the DELAY keyword. If a rogue statement significantly damages the primary database the DBA can choose to switch to the standby database, which will be in a state prior to this action:
-- Delay application of archived redo logs by 30 minutes.
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DELAY 30;
-- Return to no delay (Default).
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE NODELAY;
249 comments:
«Oldest ‹Older 201 – 249 of 249ヴィクトリアマイル 2010 予想、オッズ、厳選買い目は?人気が平然と馬券に絡む理由とは
ちょっとこんなところに書き込むのはちょっとおかしいんですけど…GWは色々楽しめました??私は結婚しているんですけどどこにも連れて行ってもらえませんでした…旦那は友達(?)とマカオに遊びに行ってます…怪しいですよね…私もスカッとパーっとしたいです♪良かったらメールしてくれる人居ませんか? sara-sarar@docomo.ne.jp
ヴィクトリアマイル 2010 予想、オッズ、厳選買い目は?今年の波乱をズバリ!確勝買い目公開中!大穴狙いのギャンブラー必見激アツ情報
モバゲータウンでであいを求めているなら当サイトへ!当コミュニティサイトは本家のモバゲータウンよりはるかにであいやすい、まさにユーザー様の為のサイトとなっております。であいをお楽しみください
飲み会やコンパで必須のSM度チェッカー、お手軽SM度診断!実は真面目な娘程、間逆なドS女王様、遊んでそうな娘はドMな奴隷願望が有るとか。診断結果を元に隠れた性癖を暴いて盛り上がろう
オークス 2010 予想 オッズ 出走馬 枠順で厳選買い目は?今年の波乱をズバリ!確勝買い目公開中!優駿牝馬はこれでもらったも同然
もぅすぐ夏ですね☆一緒に海に行ったりしたいなヾ(>▽<)o himawari-yumeland@docomo.ne.jp
最近、話題のトゥイッターから始まる理想の関係…理想の恋をこの場で見つけていきませんか
スタービーチは誰にでも出逢いという奇跡をもたらしてくれる。スタビで理想の関係作りしてみませんか
自分の名言を一つは残しませんか、しかし考えると意外と難しい。そんな時に名言チェッカーならあなたの本当の性格を見抜けちゃいます。世界の偉人達が残した名言にはどことなく重みがあるものです
第77回 日本ダービー 2010 予想、オッズ、厳選買い目は?今年の波乱をズバリ!確勝買い目公開中!結果を出す前に結果がまるわかり
スタービーチから始まる新たな恋をしませんか?スタビ掲示板を利用して新たな恋をしていきましょう
第77回 日本ダービー 2010 予想、オッズ、厳選買い目は?人気が平然と馬券に絡む理由とは!?見事に展開を読んで結果を的中させる
エロセレブとの出会いを完全無料でご提供します。逆援助で高額報酬をゲットしよう
モバゲータウンでいろんな異性と交流を深めあいませんか。異性に対して経験がない方でも簡単にお楽しみいただける、シンプルかつ効率的に優れているサイトとなっています
Everything about horse betting
Several states have enacted legislation allowing slot machines and other forms of gaming on-track. Tracks such as Mountaineer have used this additional source of revenue to improve their facilities, increase their purses and upgrade their overall level of racing. This legislation has also made it attractive for casino owners, such as Harrah's, to purchase and operate horse racing venues as a part of their business strategy.
[url=http://www.pulsebet.com]horses bet[/url]
In a sport that is not only highly competitive but relies on high-stakes gambling to sustain itself, some people feel it is unlikely that a practice shown to be a disadvantage would continue. However, such cruelties exist and many countries are taking strong steps to stop it. Like in India for example, it is banned, that is until the jockey has proven himself.
Another significant aspect is the shortness of time between races. Most stakes graded horses of today run with 30 to 60 days off between races, but Triple Crown contenders must run 3 grueling races within the span of 35 days. Notably Sir Barton, the first Triple Crown winner, won the Preakness only 4 days after winning the Kentucky Derby while today's challengers do have 14 days between the two races.
[url=http://www.pulsebet.com]bet horse racing[/url]
On paper, Barbaro is the horse to beat, and after his decisive win at the Kentucky Derby, he appears capable of beating all comers. But this is horse racing and no matter how it looks on paper we still have to run the race.
エロセレブとの出会いを完全無料でご提供します。逆援助で高額報酬をゲットしよう
money www.333eur.com
スタービーチがどこのサイトよりも遊べる確率は高いんです。登録無料で新しい恋をGETしてみませんか
8.) Some bingo game sites offer various incentives for the players. Some offer free cash of around twenty to two hundred percent of your initial deposit money and bonuses on your deposit. Hence, you can play more games at such game sites thereby increasing your winning chances.
[url=http://www.bingokisses.com]bingo on line[/url] play bingo Most players do not notice the bingo system in play while playing the game as you are in a hurry to mark the numbers accurately. Nevertheless, these bingo systems function in a subtle manner and a regular and intent player can locate these systems in action.
[url=http://www.bingokisses.com]new bingo[/url]
If you do not know anyone who uses the gaming sites or you want some additional reinforcement your first port of call should be an online bingo community. By reading reviews by other people who use the Bingo sites, you will be able to get a feel for the different sites that exist and make a more qualified decision about which one you would like to use. The knowledge concerning different sites and what other users consider important about them is an invaluable tool for the new online Bingo player. Whether it is for fun or for money, there needs to be an element of integrity within the site and a potential for the player to win the game. The knowledge of other users concerning specific sites will tell the new online Bingo player whether the site is for real or is just masquerading in order to harvest the players email addresses in order to bombard them with spam, or worse con them out of their hard earned cash. This can all be avoided with research and trying before you buy, as mentioned earlier the best places to scope out bingo sites is by using a review site or Bingo members forum.
bingo online
Your aim would be to cover the prescribed pattern with the bingo letters, by coordinating the letters and numbers called. The patterns can be anything like, u shape, t shape, etc, though it usually is horizontal or vertical. As soon as you get the pattern, you should shout bingo and you get the prize. In case there are others who shouted at the same time as you, the prize will be shared among all winners.
Another issue that you must stay on top of is price fluctuations from the bookmaker. The prices for placing bets do not just change with different bookies but even with the same. You cannot take it for granted that the prices that are quoted in print like the Racing Post will be valid at the time of the event. With sports betting things can change very rapidly so be sure that the price will be honored before placing your bet otherwise this can seriously affect the outcome of your arbitrage sports betting.
bet football | bet online sport betting
The best sports betting odds are in actuality just numbers, they may be an ever changing set of numbers but just numbers nonetheless. There are many different factors involved in the computation of not the least of which is the number of bettors placing bets on one team. If a bookie sees this happening he will give the team that is dentified as the loser more points and take points from the team deemed the winning team.
[url=http://www.pulsebet.com]sport book betting[/url]
It appears that the United States legal system is closer than ever before to cutting off ties with any type of online gambling within its boundaries. This includes poker, casinos, and sports betting among others. Generally speaking, anything that has to do with transmitting money via the internet as far as gambling is concerned is being cracked down on quite harshly.
If you are employing neither of those two elements, then the risk you run of eventually losing your entire Base Bank is 99.99%. On the other hand, employing only a good Selection System would not only reduce your risk closer to just 10% maximum, you would also have up to a 10% chance of making money. This would mean that the Bookies would suddenly be faced with a 10% possibility of losing to you long-term, rather than a 99.99% certainty of taking your money from you. Throw in a proper Staking Plan on top of that, and you will have increased your chances of winning to as high as 20%.
一流セレブたちが出会いを求めて集まっています。彼女たちからの逆援助でリッチな生活を楽しみましょう
最近普通のプレイに物足りなさを感じているそこのアナタ、ワンランク上のプレイをしてみませんか?そんな時の目安にSM度チェッカーを使うんです。自分の深層心理を暴きパートナーとのプレイ時のアドバイスも付きますよ!!一度どうですか
url to [b]download software for windows[/b] is available at:
download software for windows
[url=http://www.downloadsoftwareforwindows]download software for windows[/url]
[url=http://www.downloadsoftwareforwindows/products/download-ipod-video-converter/productpage.php]download ipod video converter[/url]
download dvd to iphone converter
mコミュは無料登録で友達を沢山作る事のできる掲示板サイトです。使った事のない人でも簡単に使う事ができるのでお気軽にお立ち寄りください
Hi, I am new here.
I like www.blogger.com because I learned a lot here. Now it's time for me to pay back.
Why I want to post this guide on this of www.blogger.com is to help visitors solve the same problem.
Please contact me if it is inapproprate here.
Here is the guide, wish it would do people a favor.
Guide: How to convert AAC file, such as AAC to MP3, WAV and WMA with the ImTOO AAC audio converter
How to convert AAC file, such as AAC to MP3, WAV and WMA ? ImTOO Audio Encoder can do this. ImTOO Audio Encoder is a powerful audio converter which can convert among MP3, WAV, WMA, MP4, M4A, AAC, OGG, etc., such as convert AAC to MP3, convert MP4 to MP3. The audio converter is also a MP4 converter which can convert MP3 to MP4, convert AAC, M4A to MP3. The audio converter provides users an easy way to convert audio files within a few clicks. Please free download and follow me step by step to convert AAC to MP3 .
Introduction of this AAC to MP3 converter
An easy and completed way to decode/encode all popular audio files. Besides MP3, WAV, WMA, ImTOO Audio Encoder also supports MP4, M4A, MP2, OGG, APE, AAC, VQF etc. audio formats. All conversion processes between these formats are very easy to handle and fast. Provides different settings for different audio formats - users can easily get output files as they want. No matter what audio file you want, ImTOO Audio Encoder can do it for you! Supports ID3 tag and batch conversion. Users don't have to think so much, just need a click!
Features of this AAc to MP3 comverter:
Convert AAC to WAV, convert AAC to MP3 Convert MP4 to MP3, M4A to MP3 Convert AAC to WAV, AAC to WMA, WMA to MP3, MP3 to WMA Extract audio from AVI, MPEG, ASF, WMV and other video files, convert them to MP3, WAV
More Features:
Easier to use and faster than ever
With the concise interface and design, users can easily handle the software without any help. The converting speed is improved in ImTOO Audio Encoder - users don't have to wait so long. A file is converted within a few seconds. Supports ID3 tag All ID3 tags in the original files will be reserved after the conversion. Encoders and decoders are built-in
The audio converter integrates with all audio encoders and decoders - users can convert all supported audio formats, such as M4A to MP3, MP4 to MP3, AAC to MP3, once download the program. Supports batch conversion
Select all files you want to convert and ImTOO Audio Encoder will automatically encode them one by one. Choose output path
Users are able to edit the output path or use the same one as the input path. Excellent output quality
Using ImTOO Audio Encoder, you will get any output formats you want with excellent quality.
Guide: How to convert ACC to MP3?
Step 1: Open the file :
Step 2: Settings: Just press the Setting button to set the options:
Step 3: Set the output path:
Final Step: Encoding......
What a powerful audio converter which can convert among MP3, WAV, WMA, MP4, M4A, AAC, OGG, etc., such as convert AAC to MP3, convert MP4 to MP3. The audio converter provides users an easy way to convert audio files within a few clicks.
Resource:
[url=http://www.topvideoconverter.com/iphone-ringtone-maker/]iphone ringtone converter[/url]
[url=http://www.topvideoconverter.com/dvd-video-to-iphone-suite-mac/]DVD Video to iPhone Mac[/url]
[url=http://www.topvideoconverter.com/dvd-cloner/]dvd copy[/url]
[url=http://www.topvideoconverter.com/dvd-video-to-psp-suite-mac/]dvd to psp conveter for mac[/url]
[url=http://www.topvideoconverter.com/ipod-transfer/]ipod rip[/url]
I developed a Starcraft Two page found here:
[url=http://www.thedarkshrine.com]Starcraft 2[/url]
http://www.thedarkshrine.com
I am going to be putting on a lot of things to it, such as replays, vods, maps, fpvods, live streams, tools, esports info and much more. There is a wiki there and really could use helpers to assist. I hope you fellas can register as my goal is for this website to be one of the most powerful SC2 sites online. Please register asap as there will be a tourney. If you have any suggestions please feel free to let me know!
Thank you. Great board by the way!
素敵な出 会 いで愛を育む♪理想の人と楽しめる関係を築きませんか?mコミュでしか味わえない幸せを掴みましょう
スタービーチで会える!?理想の異性をGETしよう☆素敵な出会いばかりだから求めている関係も作りやすい!!貴方が求めているのはどういった恋ですか?
mixiをも凌駕する出会い率!!出会いをするならここしかない♪mixiより出会えてしまうこのサイト。一度ハマれば辞めれません。スタービーチで素敵な出会いをしちゃいましょう
モバゲーで出会いをすれば楽しい事は間違いありません。暑いからこそ出会いを楽しむべきなのです。登録無料で簡単に利用可能!
モバゲータウンでは恋愛から出合いまでのキッカケをつかめる無料のコミュニティサイトです。常時サポートスタッフが掲示板をチェック、サクラや業者を排除しておりますので安心してご利用いただけます
スタビが今一番アツイのはご存じでしょうか?夏休みで出会いを探している娘とすぐに会えちゃうんです。登録無料でここまで出会える所は他には存在しません。今登録して良いパートナーに巡り合おう
出会いのシーズン、夏到来!スタービーチでご近所さんと知り合っちゃおう!ひと夏の体験も女の子は求めている
モバゲーでついに出会いができる!?楽しめる出会い、求めていた出会いはココから始まる。素敵な出会いでまずは関係づくりwしていきましょう
greeで素敵な時間を過ごしたい・・・そんな願望を叶えてくれるサイト誕生!!今までにないドキドキ感と興奮をこのグリーで楽しみましょう
スタービーチで始まる素敵な出 合いをしていきませんか。楽しめる出 合いを経験するにはココから始まる!!最高の出 合いがあなたを待っている
スタビで出会いができる!!いつでもどこでも出会いが可能なスタービーチで最高の出会いをしてみませんか
簡単な出逢いはココでできる☆素敵な出逢いをmコミュで体験していきませんか?楽しめる出逢いを経験するならここしかない!!まずはお試しを
新時代突入!ツイッターで始まる出逢い…ここでしかできない出逢いが新しい風を巻き起こす!!素敵な巡りあわせを体験していこう!
あなたの秘められたSM度がわかるSMチェッカー!簡単な質問に答えるだけで自分の隠された部分が分かります!みんなで試してみよう
今やモバゲーは押しも押されもせぬ人気SNS!当然出 会いを求めてる人も多い!そこで男女が出 逢えるコミュニティーが誕生!ここなら友達、恋人が簡単にできちゃいますよ
もう夏休みも終わりに近づき、この夏最後の思い出を作りたいと焦ってる方が、モバゲーのコミュニティーに書かれてましたよ!!折角なんで夏の思い出作りに協力して自分も美味しい思いをしてみるのはどうですか?大手スポンサーサイトが付いてるので全部タダですよ
最近はどこのSNSサイトも規制ばっかりで、ちょっと出 合いに関して書き込みするとアク禁食らうけど、夏休み終盤に差し掛かり色々なサイトを調べた結果、グリーだけはどうも規制が緩んでるみたいです。今がチャンスの時期ですよ
ツイッターで出 合 いを求めるのです。気の合う異性と交流して楽しいひと時をお過ごしください。登録無料で使えるので気軽さは100点満点!
Thanks for sharing this link, but unfortunately it seems to be offline... Does anybody have a mirror or another source? Please reply to my message if you do!
I would appreciate if someone here at ayyudba.blogspot.com could post it.
Thanks,
Jules
sir please remove atleast some articals all are copied from somewhere. have some originality.
I've on all occasions liked things like sand clocks, lava lamps, and the like to kind of fair-minded dissipate all at once staring at it as a configuration of catharsis. In a route, it helps me with meditation, to free emphasis and well-grounded deem in the air nothing. That's why since I was a kid, in preference to of dolls and cars I've perpetually at ease more of such pieces like sand clocks, lava lamps, harmonious boxes etc. So I was most enchanted when I base the[url=http://www.dealtoworld.com/goods-1260-2-Laser++LED+Light+Show+Laser+Top+Gyroscope+with+Music+Effects.html] 2-Laser + LED Spry Appear Laser Outstrip Gyroscope with Music Effects[/url] from DealtoWorld.com answerable to the Toys section. It's like a melodic box, a spinning better, and a radiance verify all rolled into one. Which is prodigious relaxation! The gyroscope will concoct representing in the air a minute. The laser light pretension with accompanying music makes this gyroscope a rather incomparable fiddle with that my friends have also been most amused with.
My dogs are also beautiful intrusive about the laser gyroscope I got from DealtoWorld.com. They always follow the gyroscope as it spins, although at first they kept barking at the laser insight show, and also because it produces music. But after they got tempered to it, they've stopped barking but due keep following the gyroscope whenever I start spinning it. Kids are also pretty amused by it. On occasion it's meet to take pleasing toys around the lineage so that you can go away the bit of frippery trifle with on while the kids are being amused or playing with it while you go fit out foodstuffs or get changed. The gyroscope is inseparable such trinket with this purpose.
The gyroscope I bought from DealtoWorld.com has a dragon as a design on it, and produces a taper indicate with red, dispirited, and unripened colours. Pit oneself against a look at the pictures I've uploaded of the gyroscope with laser luminosity show. The music produced from the gyroscope is not that renowned but facts enough to accommodate any redone customer to the house. The gyroscope is red and black, making it look extraordinarily imperturbable, and to some virile with that dragon imprint.
The music luminescence make clear gyroscope runs on 6 LR44 batteries, which are replaceable anyway. I've also euphemistic pre-owned this gyroscope to their heels my girlfriend during our anniversary celebration. I did the cheesy chore of decorating the hostelry elbow-room with roses and when I led her in, I started up the gyroscope as rise so that the laser torchlight register produces a fresh effect. I also had some battery operated candles so all the light effects created a degree romanticist atmosphere. She loved it, not later than the style, to my relief. I also bought the candles from DealtoWorld.com. These days it seems to be my non-fulfilment shopping placement in return all gifts and ideas in support of romantic occasions.
Since Christmas is coming, this laser go down playing gyroscope can perhaps be a talented Christmas contribution looking for the toddler or methodical the mollycoddle! Alternatively, the gyroscope can simply be a nice reckoning to the ordinary Christmas decorations. I can imagine placing it within a mile of the Christmas tree and peradventure spinning it when guests succeed in the house. Looks like [url=http://www.dealtoworld.com]DealtoWorld.com[/url] is getting my function anyway again!
A petite japanese toddler will take off her own underwear to try out with her pink coloured slit just before it filled up with penis. [url=http://www.xvideos.com/video1856819/vid1600963429]Raven haired beauty Alexis Elegance whitening strips off as well as is painful tool[/url] Any black colored lady plays back with her chests face-to-face with your photographic camera, after that comes indoors in order to bang the whitened guy stupid , Bang about the desktop computer Hot arabic tart receives a pleasant very hard schlong as much as blaster them dry out and present him a foul handjob in addition to footjob http://www.xvideos.com/video1720291/pho-2052101416 Carol Halston warm Blow job , Klabbe svensson fucks wild punk lady having red-colored curly hair Sarah Mackie until finally he / she cums in their mouth as well as lips
Post a Comment