Sunday, May 15, 2011

Client want to go for DR test.The changes During DR Test should Not REflect On Prod(Means the changed Data during DR Test should Not reflect on primar

Possibility1:Planned Fail over


Note:Primary Database will be down until DR Test completes

a.Take cold/hot/RMAN backup on primary before DR test

b.Take cold/hot/RMAN backup on standby Database before DR test.
c.Shutdown Primary Database

d.On standby Database fire the below command sql> alter database activate standby database;

e.Once standby Database is activated,Execute the below command. sql > alter database open

f.Now standby Database is converted to primary Database.

g.Go For DR Test
Post Fail over:After DR test.

a.shutdown standby Database(Which was activated as per step d) b.remove all the datafile,controlfile,redologfile....except pfile or spfile or Drop Database on standby Database

c.Restore the backup on standby Database (which was taken on step b)
d.After successful Restore,Execute below commands
startup nomount

sql > alter database mount standby Database


alter database recover managed standby database disconnect from session;


e.start the Primary Database(This step can be done as per the requirement..means you can start earlier also)


f.Do Manual switches sql > alter system switch logfile ;

g.check the synchronization with standby Database.


Other Possibility will be posted shortly..Hope the above scenario makes helps..Be free to comment or suggestion... Cheers, Ayyappa Y
------------*****--****----------------------
Possibility2 :Using FLASHBACK ON STANDBY DATABASE

Requirements

The following requirements need to be met in order to create a snapshot standby.

1.Database version should be 10.2* or higher
2.Primary & standby Database should be in archive log mode
3.Database should be in sync before you proceed.
4.Flash Recovery Area (FRA) is required on the standby database to implement a Flashback database.


ON PRIMARY DATABASE:

a.Do Manual switches
sql > ALTER SYSTEM ARCHIVE LOG CURRENT;

b.check the synchronization with standby Database
sql > select max(sequence#) from v$log_history;

c.Stop the synchronization & shipping of the archives from primary:
sql > alter system set log_archive_dest_stat2_2=defer;

On standby Database:

a.Cancel The Recovery Process:
sql > alter database recover managed standby database cancel;

b.Create Guarantee Restore point
CREATE RESTORE POINT ayyu_stdby GUARANTEE FLASHBACK DATABASE;

c.Activate the standby Database
sql > alter database activate standby database;

d.Open the standby Database
sql > alter database open

Now You can use the DR box for testing purpose..

e.Once testing is completed.Perform the Following

sql > shu immediate;
sql > startup Mount;

sql>Flashback Database to restore point ayyu_stdby;
sql > ALTER DATABASE CONVERT TO PHYSICAL STANDBY;

Post DR test:

On Primary:

a.Enable the archive destination
sql > alter system set log_archive_dest_stat2_2=enable;

On standby:

a.start the recovery Process
sql > alter database recover managed standby database disconnect from session;


============================================================

Possibility-3 :Using SNAPSHOT STANDBY FEATURE IN 11G(Below Document is from ORACLE_BASE)

Snapshot standby allows the standby database to be opened in read-write mode. When switched back into standby mode, all changes made whilst in read-write mode are lost. This is achieved using flashback database, but the standby database does not need to have flashback database explicitly enabled to take advantage of this feature, thought it works just the same if it is.
If you are using RAC, turn off all but one of the RAC instances. Make sure the instance is in MOUNT mode.
SHUTDOWN IMMEDIATE;
STARTUP MOUNT;
Make sure managed recovery is disabled.
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;
Convert the standby to a snapshot standby. The following example queries the V$DATABASE view to show that flashback database is not enabled prior to the conversion operation.
SELECT flashback_on FROM v$database;

FLASHBACK_ON
------------------
NO

ALTER DATABASE CONVERT TO SNAPSHOT STANDBY;
ALTER DATABASE OPEN;
SELECT flashback_on FROM v$database;

FLASHBACK_ON
------------------
RESTORE POINT ONLY

SQL>
You can now do treat the standby like any read-write database.
To convert it back to the physical standby, losing all the changes made since the conversion to snapshot standby, issue the following commands.
SHUTDOWN IMMEDIATE;
STARTUP MOUNT;
ALTER DATABASE CONVERT TO PHYSICAL STANDBY;
SHUTDOWN IMMEDIATE;
STARTUP NOMOUNT;
ALTER DATABASE MOUNT STANDBY DATABASE;
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT;
SELECT flashback_on FROM v$database;

FLASHBACK_ON
------------------
NO

SQL>
The standby is once again in managed recovery and archivelog shipping is resumed. Notice that flashback database is still not enabled.

============================================================

4 comments:

Coskan Gundogar said...

Why don't you just use free flashback database option instead of backup restore ?

ayyudba said...

Hey..Thanks For Visiting my BLOG
I replied mail to your individual mail...As i said..the earlier post was possibility1...and was about to publish the 2nd possibility..which you mention..Thanks for suggestion...Here we go for the possibility 2...--Feel Free for any suggestion/clarification/comments

Anonymous said...

I found your website in a blog´s friend nd I made it one of my favourites. I will keep up with it. It´s really nice!

Here are my websites, check it out too. Maybe you will find something useful. Thank you.

http://www.europeanemaildatabases.com
http://www.worldemaildatabases.com
http://www.world-database.info
http://www.fichiersdemails.com
http://www.fichiers-de-france.com
http://www.fichiersdeurope.com
http://www.divulgaletter.net
http://www.portugalempresarial.net
http://www.lista-de-emails.com
http://www.italiadatabase.com
http://www.special-databases.com
http://www.revenderyodeyma.com
http://www.emailadresseslist.com
http://www.hi5porcas.net
http://www.ptmarketingsms.net
http://www.fichiers-sms.com
http://www.basedadosportugal.com
http://www.basedatosespana.info
http://www.bestemaildatabases.com
http://www.datafichiers.com
http://www.emails-databases.com
http://www.emails2sell.com
http://www.facebookchicks.info
http://www.fichiers-de-france.com
http://www.fichiersdemails.com
http://www.fichiersdemailsdefrance.com
http://www.fichiersemails.com
http://www.hi5porcas.net
http://www.hugemailinglists.com
http://www.lista-de-emails.com
http://www.listademails.com
http://www.portugalempresarial.com
http://www.solucoesempresariais.net
http://www.solucoespublicitarias.com
http://www.lasmujeresmaslindasdelfacebook.blogspot.com
http://www.brasileirasdesnudas.blogspot.com
http://www.badalhocas-do-hi5.blogspot.com
http://www.ex-namoradasnanet.blogspot.com
http://www.mulheresmaisbelasdobrazil.blogspot.com
http://www.e-mailsepublicidade.blogspot.com
http://www.abuscadabeleza.blogs.sapo.pt
http://euvouderosa.blogs.sapo.pt/

Anonymous said...

http://www.comprare-indirizzi-email.it/
http://www.buy-email-database.co.uk/
http://www.buy-email-list-database.com/
http://www.acheter-fichier-email.com/fr/
http://www.acheter-base-de-donnee-email.com/
http://www.acheter-fichier-sms.com/fr/
http://www.envoyer-campagne-emailing.com/