Oracle 10g dataguard

Hi all
I have created a dataguard on a separate server and shifted the production database to dataguard server in an emergency. Now I want to revert back to the production server.
Please tell me the procefure for the same and tell me that how much data loss will occure?

try this solution
On the current primary database, query the SWITCHOVER_STATUS column of the V$DATABASE fixed view
on the primary database to verify it is possible to perform a switchover. For example: 
SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
SWITCHOVER_STATUS
TO STANDBY
OR  
SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
SWITCHOVER_STATUS
SESSIONS ACTIVE
Initiate the switchover on the primary database 
To change the current primary database to a physical standby database role, use the following SQL statement
on the primary database: 
If the value in the SWITCHOVER_STATUS column is TO STANDBY 
SQL> ALTER DATABASE COMMIT TO SWITCHOVER TO PHYSICAL STANDBY; 
If the value in the SWITCHOVER_STATUS column is SESSIONS ACTIVE 
SQL> ALTER DATABASE COMMIT TO SWITCHOVER TO PHYSICAL STANDBY WITH SESSION SHUTDOWN;
Shut down the former primary instance, and restart and mount the database and confirm the switch over notification: 
SQL> SHUTDOWN IMMEDIATE;
SQL> STARTUP MOUNT;
SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
SWITCHOVER_STATUS
TO_PRIMARY
Switch the target physical standby database role to the primary role. 
If switch over status is to primary:  
SQL> ALTER DATABASE COMMIT TO SWITCHOVER TO PRIMARY;
If switch over status is active session:
SQL> ALTER DATABASE COMMIT TO SWITCHOVER TO PRIMARY WITH SESSION SHUTDOWN; 
Finish the transition of the standby database to the primary role 
If standby database has not been opened in read-only mode since the last tiem it was started, issue
SQL> alter database open; 
If the physical standby database has been opened in read-only mode since the last time it was stared, you must
issue
SQL>shutdown immediate;
SQL>startup;
 Enable the log_archive_dest_state_n parameter for redo transmission 
At new Standby database activate media recovery: 
SQL> Alter database recover managed standby database disconnect from session; 
regards,

Similar Messages

  • Oracle 10g dataguard Connect-time failover Parameter 15 minutes

    Hello,
    we running a system with DataGuard in Maximum Availability protection mode and one physical Standby Database. There are two connections between primary and standby. I configured listener and tnsnames to perform a Connect-time failover in case one connection is down. In first place it seemed to work fine but since it has happened that the primary always hangs for exactly 15 minutes until the failover is performed. (ALL redologs need archiving)
    I think this must be the default value of a Parameter but reading docs for hours I can't find it.
    Can anybody help me?
    Best regards
    Fritz

    It's like this. The connection failover I'm talking about is only between the primary database and standby database. I have two connections between them. That makes two addresses for the service (servicetostandby) specified in the log_archive_dest used by dataguard. In my case the log_archive_dest Paramater looks like this:
    log_archive_dest_3 = 'SERVICE servicetostandby OPTIONAL LGWR SY
    NC AFFIRM VALID_FOR=(ONLINE_LO
    GFILES,PRIMARY_ROLE) DB_UNIQUE
    NAME=standby REOPEN=10 NETTIME
    OUT=9'
    The tnsnames.ora entry looks like this:
    servicetostandby =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = address1)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = address2)(PORT = 1521))
    (FAILOVER=true)
    (LOAD_BALANCE=false)
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = standby)
    So if either address1 or address2 is down dataguard should use the other address to connect to the standby database.
    Maybe because of the Maximum Availability protection mode the primary database does not perform if the standby database is not available. I'm not sure about that. But fact is that if I power off the standby database, the primary database hangs only for 9 seconds. That's specified in the net_time_out attribut of the log_archive_dest Parameter. So I'm quite sure that something in the oracle net service causes the problem.
    With the "primary hangs" I mean: After the used connection (say address1) went down the redologfiles of the primary database get filled and then it stops for 15 minutes. The messages in the alert.log:
    Thread 1 cannot allocate new log, sequence 1304
    All online logs needed archiving
    After 15 minutes the connection via address2 is established and everything works fine.
    I hope I made myself clear this time and didn't confuse you totally.
    Edited by: user633694 on Apr 14, 2009 8:13 AM

  • Oracle 10g Dataguard Setup

    Hi Guys,
    I am planning to have Dataguard setup for my single instance database in HP-UNIX.
    Please let me know the pre-requistes for this setup. I currently have Oracle enterprise edition installed. Do i need any specific application, tool or software installed for this, etc ?
    Also, help me out with the configuration steps.
    Thanks.

    user9098221 wrote:
    Hi,
    Thanks. Apart from RMAN, do i need to have anything else installed for the setup ?
    Also, if i choose the manual method(using sql's), do I need to install anything ?
    I understand these are basics. Please bear with me.
    Thanks.Hi,
    On standby side need following steps.
    1. You must install Oracle Database Enterprise Edition (same version, same patchset) Software only.
    2. Add Listener, and add standby service name
    3. You must create folders for data files, flash recovery area and diags.
    Not need any additional tools.
    Regards
    Mahir M. Quluzade

  • Oracle 10g Dataguard Physical Standby Database

    When I set my dataguard group to "MAXIMIZE AVAILABILITY" the protection level is always RESYNCHRONIZATION.
    It's normal ?
    SQL> SELECT PROTECTION_MODE, PROTECTION_LEVEL, DATABASE_ROLE FROM V$DATABASE;
    PROTECTION_MODE PROTECTION_LEVEL DATABASE_ROLE
    MAXIMUM AVAILABILITY RESYNCHRONIZATION PHYSICAL STANDBY
    SQL> show parameter log_archive_dest_2
    NAME TYPE VALUE
    log_archive_dest_2 string SERVICE=PIJ10G2 LGWR SYNC AFFIRM
    SQL> show parameter log_archive_dest_state_2;
    NAME TYPE VALUE
    log_archive_dest_state_2 string ENABLE

    this is my log on primary db :
    Thread 1 advanced to log sequence 422
    Current log# 1 seq# 422 mem# 0: /oradata/orapij10g/redologs/PIJ10G/redo01.log
    Wed Oct 1Thread 1 cannot allocate new log, sequence 423
    Private strand flush not complete
    Current log# 1 seq# 422 mem# 0: /oradata/orapij10g/redologs/PIJ10G/redo01.log
    Wed Oct 17 16:24:51 2007
    Destination LOG_ARCHIVE_DEST_3 is SYNCHRONIZED
    LNSc started with pid=34, OS id=21052
    Wed Oct 17 16:24:56 2007
    Destination LOG_ARCHIVE_DEST_3 is UNSYNCHRONIZED
    Wed Oct 17 16:24:56 2007
    Errors in file /oracle/ora10g/admin/PIJ10G/bdump/pij10g_lgwr_26248.trc:
    ORA-16086: Message 16086 not found; No message file for product=RDBMS, facility=ORA
    LGWR: Failed to archive log 2 thread 1 sequence 423 (16086)
    Thread 1 advanced to log sequence 423
    Current log# 2 seq# 423 mem# 0: /oradata/orapij10g/redologs/PIJ10G/redo02.log
    I don't understand this error message. How can solve my probleme ?

  • Oracle 10g Dataguard Error

    Hi,
    I created a standby database using RMAN backups.
    I have followed all the steps correctly because the standby database does come up without any errors when I give the command
    'alter database mount standby database;'
    or
    'alter database recover managed standby database using current logfile disconnect from session;'
    But, in the alert log file I can see the following errors.
    ORA-00313 - open failed for members of logfile group1 (and 2 and 3)
    ORA-227037 - unable to obtain file status (file may not exist)
    and
    ORA-19527 Physical standby redo log must be renamed.
    When I go back and check, the first error is correct in the sense that the redo log files are not present in the location specified.
    Querying the V$LOG & V$LOGFILE do return the name and path of the log files (or where they should be but are not!)
    What have I missed that the redo logs are not created at the time of restore and recover?
    TIA.
    KV

    Hi KV,
    You mentioned that you created a standby database from RMAN backup, but you also have to set the primary to send the archives to the standby. Have you done that?
    This can be done manually by setting "log_archive_dest_n" parameter to "service=<service>" where <service> is a TNS entry to the standby. You may want to check all the options available for this parameter here (I don't know which version you use so this is from 10gR2 documentation).
    You can also use Data Guard Broker to do that for you (you need to create a configuration using dgmgrl utility or Grid Control), this is the link to the documentation about Data Guard Broker: [http://download.oracle.com/docs/cd/B19306_01/server.102/b14230/toc.htm]
    HTH
    Liron Amitzi
    Senior DBA consultant
    [www.dbsnaps.com]
    [www.orbiumsoftware.com]

  • How to configure Oracle Dataguard for Oracle 10g database

    Hi Friends,
    I would like to configuer Oracle Dataguard for my Oracle 10g Database.
    Please provide me the configuration document.(step by step guide)
    Regards,
    DB

    Hi
    Go throw below link. This would be help to configure ODG..,
    http://blogs.oracle.com/AlejandroVargas/2007/09/data_guard_physical_standby_im.html
    http://blogs.oracle.com/AlejandroVargas/2007/10/data_guard_broker_observer_and.html
    Thanks,
    Mayilselvan.S

  • Active dataguard for Oracle 10g SE

    Hi all,
    I am having Oracle 10g SE and i need to ship the logs to the standby can i use active dataguard for this.
    Regards,
    Bobs

    user12119634(bobs) wrote:
    1)If i am having oracle 10g EE can i go for dataguard.Active DataGuard is a paid option of EE, you need to buy it additionally to EE.
    But DG is being installed by default in EE.
    2)If i am having 11g SE can i go for Active data guard.You must upgrade your license and buy Active DataGuard option, then upgrade installed Oracle software and database itself.
    And if it is userbased licence can i use dataguard in Oracle 10g SE.There is no dataguard in SE, there is just a manual applied standby.
    Difficult question. Some of Oracle resellers said, that manual standby is a backup option of SE, some of them said, that standby DB must be licensed as a primary.
    So you must contact to yours and discuss this.
    And also in 11g SE its userbased can i go for active dataguard.The same to 11g

  • How to setup dataguard on oracle 10g..........

    Hi!
    i want to setup dataguard on oracle 10g .....i have two same databases installed on my system
    1)one oracle database 10g on c windows xp
    2)second oracle database 10g on Vmware machine lying on red hat linux 4
    actually i want ot setup dataguard on same machine ...i am testing so i dont have second machine....
    can anybody helpppppppp pleaseeeeeeeee
    regards
    Muh.Usman

    Muhammad.Usman wrote:
    Hi!
    i want to setup dataguard on oracle 10g .....i have two same databases installed on my system
    1)one oracle database 10g on c windows xp
    2)second oracle database 10g on Vmware machine lying on red hat linux 4
    actually i want ot setup dataguard on same machine ...i am testing so i dont have second machine....
    can anybody helpppppppp pleaseeeeeeeee
    regards
    Muh.UsmanIt's not possible to implement Data Guard between two databases which are installed on different OS
    I'd suggest you to refer Data Guard documentation in http://tahiti.oracle.com and then to the following step by step explained article
    http://blogs.oracle.com/AlejandroVargas/gems/DataGuardPhysicalStandbystep.pdf

  • Oracle 10g RAC to 11g RAC Upgrade on Solaris

    Hi,
    We are planning to do a migration of a 4 Node Oracle 10g RAC on Solaris 9 to 11g with Solaris 10. We'd like know what would be the best path to take. We cannot afford any downtime!
    Options: Are these feasible? Which option is best? Any documents links?
    a) Do a rolling upgrade of Oracle from 10g to 11g. Then take down individual nodes and upgrade the Solaris OS from 9 to 10 and bring them up back into the cluster. Is there any known issues taking this path? Is a rolling upgrade like this possible?
    b) Do an upgrade of the Solaris OS from 9 to 10 on each node and then bring them back up? Is this practical? Does Oracle allow different versions of OS running on different nodes?
    c) Use Dataguard with 2 different RAC environments (2 nodes each). How would this work? Is it the only possible way? Any steps please?
    Thanks

    a) Do a rolling upgrade of Oracle from 10g to 11g. Then take down individual nodes and upgrade the Solaris OS from 9 to 10 and bring them up back into the cluster. Is there any known issues taking this path? Is a rolling upgrade like this possible?Hi,
    first of all i would not change several components (OS, database version) at a time. My recommendation is to make small steps and start with the operating system first. Seconds recommendation is to test and test everything in your dev or test environment prior doing the upgrades in the productive environment. Trust me: You will face problems :-) So you better try it beforehand!
    b) Do an upgrade of the Solaris OS from 9 to 10 on each node and then bring them back up? Is this practical? Does Oracle allow different versions of OS running on different nodes?As far i know you can run different operating system versions on different nodes if they are supported (Solaris 9 and 10 are).
    Ronny Egner
    My blog: http://ronnyegner.wordpress.com

  • How to delete client from oracle 10g ASM

    Hi,
    I would like to know how to delete client from oracle 10g ASM, while configuring Dataguard in same windows os i have by mistake created the standby in ASM.
    However later i have corrected the datafile destination. My Primary database is in ASM and the standby in disk.
    Could anyone please tell me how do i delete the client from ASM. On view from asmcmd it shows db_unknown and from v$asm_client
    GROUP_NUMBER INSTANCE_NAME
    DB_NAME STATUS
    SOFTWARE_VERSION
    COMPATIBLE_VERSION
    1 stby
    stby CONNECTED
    10.2.0.1.0
    10.2.0.1.0
    Thanks and regards,
    shaan

    Hi Deepak,
    Pls see the result from the view, i wanted to delete stby
    SQL> select * from v$asm_client;
    GROUP_NUMBER INSTANCE_NAME
    DB_NAME STATUS
    SOFTWARE_VERSION
    COMPATIBLE_VERSION
    1 prim
    prim CONNECTED
    10.2.0.1.0
    10.2.0.1.0
    2 prim
    prim CONNECTED
    10.2.0.1.0
    10.2.0.1.0
    1 stby
    stby CONNECTED
    10.2.0.1.0
    10.2.0.1.0
    regards,
    shaan

  • How to access Data Guard option in Oracle 10g OEM

    Hi All,
    I have Oracle 10g ENTERPRISE EDITION on Unix envoirement. I want to setup logical standby Database through Data Guard technology. But when I brows through OEM I do not find Link for DATA GUARD????
    1) How to access Data Guard option from oracle 10g OEM.
    2) Does It come with Enterprise Edition OR I have to install it separately.
    Regards,
    Darshan

    I am managing almost everything through EM Grid Control. It is easy to setup and configure.
    Anyways, if you have read the documentation on
    Oracle® Data Guard Concepts and Administration and setup your environment accordingly then you should not have any problems. Atleast I can assure you that your production database will not be affected by it.
    Just make sure that you follow each step and read thoroughly. If you have spare machines then you can test and record your configuration before performing it on your production db. This link will provide you with the information on DataGuard.
    http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14239/concepts.htm
    If you think that way then you will never be able to do any new stuff since you will always fear that something might go wrong. Go ahead pal, try it on test machines and you will know that it is not that difficult.
    There are real experts who help people like us in this forum and I know that they are doing a pretty good job.
    All the best.
    Rgds
    Adnan

  • Types of replications in oracle 10g

    Hi
    Iam new to oracle10g.
    I want to replicate my database.
    Before that i want to know how many types of replication methods are available in oracle 10g?
    Thanks

    There is no single correct answer to that question.
    You've certainly got Streams and materialized views. You could subdivide each of those into three or four separate options based on the configuration (single-master vs multi-master materialized views, for example).
    You might group technologies like DataGuard-- logical and physical and Change Data Capture (CDC) under the general banner of replication depending on how you define the term.
    You could always write your own replication process using database links, triggers, etc. Or load and unload data via export & import, SQL*Loader, and/or external tables.
    Transportable tablespaces might also fall under the replication rubric.
    Depending on the problem you're trying to solve, the granularity you're counting, and what you consider "replication", you could come up with anything from 2 to 1002.
    Justin

  • To create standby database using oracle 10g standared edition

    my producation database is oracle 10G standard edition .Can i implement a oracle dataguard or standby database using standard edition licenses.if standby database is possiable in standard edition .what are the steps for creating a standby database using oracle 10g standard edition.

    General answer is http://download.oracle.com/docs/cd/B19306_01/license.102/b14199/editions.htm#BABJICBB.
    For Data Guard you cannot :
    - use instance parameters to automatically send archived redo logs
    - use instance parameters to resolve archived redo logs gaps
    - create a logical standby
    - use SQL statements to do switchover / failover
    - use Data Guard Broker.

  • Oracle 10g Real Time Backup

    Hi
    My company need to set database real time backup for Oracle 10g release 2 (Standard Edition).
    I see in Oracle Database 10g Product Family [Oracle Database 10g Product Family|http://www.oracle.com/technology/products/database/oracle10g/pdf/twp_general_10gdb_product_family.pdf] not support the Data Guard.
    Can I do it in Oracle 10g SE ?
    Thanks in advance

    hi,
    trouble is the cost of EE can be quite expensive
    another way of creating a psuedo (hope I spelt that correctly) dataguard would be to script a method of shipping archive files to a DR server.
    Live System
    =========
                 BEGIN
              IF ORACLE ONLINE THEN
                            SWITCH LOG;
                       END IF;
                       IF ANOTHER INSTANCE OF SCRIPT RUNNING (LOCAL OR REMOTE) THEN
                                 ERROR;
                                 EXIT;
                       END IF;
              IF (STANDBY NOT ONLINE) THEN
                              ERROR;
                              SEND EMAIL;
                              EXIT;
                       END IF;
                       GET LAST SHIPPED LOG FILE TIMESTAMP FROM THE REMOTE SITE OR FROM LOCAL SERVER;
                        WHILE LOG > SHIPPED LOG FILE TIMESTAMP DO
                                  TRANSFER LOG FILE TO REMOTE SITE;
                                  DO CHECKSUM ON LOG FILES;
                                  IF NOT MATCH THEN
                                         RETRY TRANSFER;
                                         IF FAILURE 3 TIME THEN
                                               ERROR;
                                               SEND EMAIL;
                                         END IF;
                          END IF;
                                  ' GOT THIS FAR SO ALL IS OK
                                  MARK THE LOG FILE AS TRANSFERRED;
                        WEND;        
    DR System
    ========
              BEGIN
                   CREATE A LOCK SEMAPHORE;        - Only one instance allowed
                                 CHECK LAST APPLIED LOG FILE;
                   IF CONNECTION TO LIVE SERVER OK THEN
                                         CHECKSUM  NEXT LOG FILE WITH LIVE SYSTEM;
                                         IF CHECKSUM NOT SAME THEN
                                                  IF LOG FILE ON ITS WAY FROM LIVE THEN
                                                           EXIT;
                                                  END IF;
                                                  WHILE  LOGFILE EXISTS DO
                                                            GET NEXT LOG FILE FROM LIVE;
                                                  WEND;
                                         END IF;
                                 ELSE
                                         ' Extra work
                                         APPLY NEXT LOG FILE
                                 END IF;
                   APPLY LOG FILES;
                                 WORKOUT NO OF LOG FILE APPLIED;
                                 KEEP SPECIFIED PERCENTAGE LOG FILES;
                                 DELETE EXTRA LOG FILES;
                                 TRANSFER LAST APPLIED LOG FILE ATTRIBUTES TO LIVE SERVER;
                                 EXIT;
                         END;       I cannot give you the actual code that I have as there are some more bits that I have added for our client but what it does is give you an over view of the process involved for creating a pseudo DG environment.
    regards
    Alan

  • 11g to 10g Dataguard

    Dear Friend,
    We have set up for Physical stand by between two 10g instances.
    Now its required to upgrade oracle version , but 1st we want to upgrade Primary DB version to 11g then later on stand by.
    So is 11g to 10g DG is possible?, does logical standby support this? if yest then what will be process for same.

    So is 11g to 10g DG is possible?nope, it would not make sense. a standby is for failover, how can you failover to an older release?
    if you want a reporting system on an old release - ok (I wouldn't agree with you but whatever). You would do that using streams.
    Tom @ http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:1468639100346407276
    Also Check below link where Rajesh has given good PDFs links :
    How to upgrade the 10g Dataguard after the primary was upgraded to 11g
    Regards
    Girish Sharma

Maybe you are looking for