Datagurad

Hi,
In datagaurd configuration for db_unique_name does we need to mention the database name or like primary or standby
i am confusing please let me know.
thank you

Hi ,
Db_unique_name is different in primary and Standby Database.Db_name should be same both the side in the primary and the standby.I hope there should not be any confusion.
Eg:
standby DB parameters
db_name=orcl
db_unique_name=stdby
Primary DB parameters
db_name=orcl
db_unique_name=orcl
Check below my implementation steps:
http://rafioracledba.blogspot.com/search/label/Dataguard%20and%20Standby%20Database
Best regards,
Rafi.
http://rafioracledba.blogspot.com

Similar Messages

  • Oracle Datagurad issue

    I am implementing a Standby using Oracle datagurad .Today is the deadline :(
    Mys stem is Windows 2000 and XP based with ORacle 9i Enterprise edition installed on both.
    Following the doc at> http://download.oracle.com/docs/cd/B10501_01/server.920/a96653/create_ps.htm#SBYDB00200 , in step no.3.2.10 Create Oracle Net Service Names I could creat and also TEST the net service name on the PRIMARY database successfully, but when I create and then TEST the the new service on the STANDBY database it gives me TNS No listener error(Standby is in mount state,is it because of this??)
    Because of this the archives arent getting transferred to the second location..
    Anyone, please advise.
    Thanks,
    Sandeep
    Thanks,
    Sandeep

    Hi citrus,
    Yes the listeneres were started..This is resolved now after explicitly specifying parameter SERVICE_NAMES in the STANDBY parameter file. :)
    Everything seems to be working fine now, archives are getting copied and also getting applied.
    I now want to know HOW to do the testing to ENSURE that when the primary crashes the control is passed to the STANDBY.Does this happen automatically??or do I need to do any manual configurations??
    Any doc that explains this in details?
    Thanks,
    Sandeep

  • Datagurad on Windows 2003

    Hi ,
    Can someone help me with the installation of datagurad on Windows 2003 , Does any1 have the doc for the same.

    Hi, you will must check the next address, the manual explain all concepts and methodology for implement Oracle Dataguard on various platforms, on metalink you can find other technical articles.
    http://www.oracle.com/pls/db102/to_toc?pathname=server.102%2Fb14239%2Ftoc.htm&remark=portal+%28Books%29
    Luck
    Have a good day.
    Regards.

  • DataGurad - How to schedule scripts for failover

    Sir,
    We configured dataguard(Oracle9i, WIndows 2000 server). I have one doubt.
    How can we make Standy Server as Primary when Standby database fails
    without DBA executing commands?
    eg: Put all commands in on script file(eg: std.sql) and call from Batch file.
    But how to set/schedule this file?
    regards
    Mathew

    In Brtools you can always see the "Command line" before executing an action, You can simply copy that and use it to run BRTOOLS command from prompt, You can make a script with it and schedule via Cron.
    Regards
    Juan

  • Datagurad configuration

    Hi Gurus,
    I can configured dataguard in high performance and high availability mode. but when i am trying to configure in high protection mode it is giving end of the file communication.
    and alter log is saying
    Destination log_archive_dest_2 is using asynchronous network I/O
    Destination log_archive_dest_1 is not serviced by LGWR
    ora-16072: a minimum of one standby database destination is required.
    I followed document from [http://www.orafaq.com/node/2030] exactly. but i am failing.
    Please help me in configuring in high protection mode.
    Thank you a lot...

    In my database there are 3 redo log groups and each datafile in that having 50m.
    alter database add standby logfile group 4 size 50m;
    alter database add standby logfile group 5 size 50m;
    alter database add standby logfile group 6 size 50m;these logfiles added on primary side and copied to standby side.
    on standby side
    select group#, thread#, status, archived from v$standby_log;group# thread# status arc
    4 1 unassigned no
    5 1 unassigned no
    6 0 unassigned yes
    Edited by: 863784 on Jun 29, 2011 4:44 AM

  • Datagurad setup from 2 Node RAC to single instance (DR site)

    Dear Expert,
    I have request from management to setup the DR site from current production RAC database using active dataguard. I have two node rac database 11.2.0.3 running on sun solaris machine. I need proper step or good document can refer to setup between production RAC database to DR site single instance standby database. I only experience setup single instance to single instance .Apreciate expert can provide me some link
    Regard
    liang

    Hello;
    This will provide a good start and overview :
    Creating a Single Instance Physical Standby for a RAC Primary : ( please note parameter changes for Oracle 11 )
    http://www.oracle.com/technetwork/database/features/availability/maa-wp-10g-racprimarysingleinstance-131970.pdf
    As will this :
    http://oracleinstance.blogspot.com/2012/01/create-single-instance-standby-database.html
    Oracle 11
    Rapid Oracle RAC Standby Deployment: Oracle Database 11g Release 2
    http://www.oracle.com/technetwork/database/features/availability/maa-wp-11g-rac-standby-133152.pdf
    Best Regards
    mseberg

  • Oracle datagurad

    Hi,
    Why receiving sequence is still showing 37410 and 37411
    Also why there are multiple receiving
    Is it a problem. Please help me out
    C:\>sqlplus /nolog
    SQL*Plus: Release 9.2.0.6.0 - Production on Thu Aug 11 18:39:16 2011
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
    SQL> conn sys@orasby as sysdba
    Enter password:
    Connected.
    SQL> select max(sequence#) from v$log_history;
    MAX(SEQUENCE#)
             37414
    SQL> select process,status,sequence# from v$managed_standby;
    PROCESS   STATUS        SEQUENCE#
    ARCH      CONNECTED             0
    ARCH      CONNECTED             0
    RFS       RECEIVING         37411
    MRP0      WAIT_FOR_LOG      37415
    RFS       RECEIVING         37410
    RFS       WRITING           37416
    6 rows selected.

    duplicate thread : http://forums.oracle.com/forums/thread.jspa?threadID=2267200&tstart=0
    triplicate thread : http://forums.oracle.com/forums/thread.jspa?threadID=2267199&tstart=0
    I'm locking that one.
    Nicolas.

  • Datagurad selective replication

    Hi,
    Using data guard is it possible to replicate only a particular set of tables/schemas? and not the whole database
    Regards!

    Hello again;
    I might not use a Standby for this. But if you want to besides a logical Standby there's also Active Data Guard.
    Depending upon the size of your reporting database materialized views might be an option.
    If you want to use the Primary as a source you could clone it using RMAN Duplicate and then use a Database link for updates.
    If cost isn't too much of an option I'd probably use Active Data Guard as a reader database.
    It a tough question without knowing what extra data you need besides the Primary data.
    If you use materialized views you can cut down the size by not refreshing columns not used by reporting. You can also get rid of whole tables not used by reporting. Plus you can add extras without Data Guard conflicts. If the Primary isn't too large this works very well.
    Best Regards
    mseberg

  • Datagurad problem

    Good morning,
    I'm trying to activate the maximum availablity mode for my dataguard configuration with the dgdmgrl command line,
    but I got this error
    DG 2006-10-06-11:20:56 0 2 0 RSM0: Failed to connect to remote database STANDBY_TRADE. Error is ORA-12514
    DG 2006-10-06-11:20:56 0 2 0 RSM Warning: The value 'SYNC' of the property 'LogXptMode' of database 'STANDBY_TRADE' requires that the standby database have standby redo logs, but they are missing on database 'STANDBY_TRADE'.
    DG 2006-10-06-11:20:56 0 2 0 RSM0: HEALTH CHECK WARNING: ORA-16715: redo transport-related property LogXptMode of standby database "STANDBY_TRADE" is inconsistent
    I have created the standby redo log on the standby database
    Any help will be very appreciate
    Fabrice

    Good morning,
    I'm trying to activate the maximum availablity mode for my dataguard configuration with the dgdmgrl command line,
    but I got this error
    DG 2006-10-06-11:20:56 0 2 0 RSM0: Failed to connect to remote database STANDBY_TRADE. Error is ORA-12514
    DG 2006-10-06-11:20:56 0 2 0 RSM Warning: The value 'SYNC' of the property 'LogXptMode' of database 'STANDBY_TRADE' requires that the standby database have standby redo logs, but they are missing on database 'STANDBY_TRADE'.
    DG 2006-10-06-11:20:56 0 2 0 RSM0: HEALTH CHECK WARNING: ORA-16715: redo transport-related property LogXptMode of standby database "STANDBY_TRADE" is inconsistent
    I have created the standby redo log on the standby database
    Any help will be very appreciate
    Fabrice

  • Logical dataguard problem

    Hi all,
    I have prepared a logical dataguard on two local systems. My oracle version is 9i and linux version is Entreprise Linux 3.0.
    Today when i tried to execute spcreate.sql on the primary database it had thrown some errors in my secondary database.
    Kindly look at the following output from my secondary database:-
    SQL> select applied_scn,newest_scn from dba_logstdby_progress;
    APPLIED_SCN NEWEST_SCN
    270084 272644
    SQL> SELECT XIDUSN, XIDSLT, XIDSQN FROM DBA_LOGSTDBY_EVENTS
    2 WHERE EVENT_TIME = (SELECT MAX(EVENT_TIME) FROM DBA_LOGSTDBY_EVENTS);
    XIDUSN XIDSLT XIDSQN
    6 1 114
    SQL> EXECUTE DBMS_LOGSTDBY.SKIP_TRANSACTION(6,1,114);
    PL/SQL procedure successfully completed.
    SQL> ALTER DATABASE START LOGICAL STANDBY APPLY;
    Database altered.
    SQL> select applied_scn,newest_scn from dba_logstdby_progress;
    APPLIED_SCN NEWEST_SCN
    270087 272644
    SQL> SELECT * FROM DBA_LOGSTDBY_EVENTS;
    EVENT_TIM CURRENT_SCN COMMIT_SCN XIDUSN XIDSLT XIDSQN
    EVENT
    STATUS_CODE
    STATUS
    grant select on STATS$V_$SQLXS to PERFSTAT
    942
    ORA-00942: table or view does not exist
    from the above errors i have found out that a particular transaction is unable to replicate in my standby database and i skipped the transaction. But still after skipping the transaction applied_scn in the dba_logstdby_progress is moving only by 3 each time I skip a transaction . So it won'' t be possible for me to skip each and every transaction.
    Kindly let me another way of skipping the rest of transactions which are causing halt in the replication.
    Also I am unable to find out how the script executed from the sys user can be replicated on logical database as sys comes in unsupported users in logical datagurad.
    Is there any way I can execute a script on primary database which won't reflect on secondary database.
    thanks in advance.

    Hi Yoann,
    Commands you provided for skipping perfstat schema worked on logical database .
    Now i m executing spcreate.sql on secondary database it gives following errors after i have specified the perfstat password,default tablespace for perfstat as 'perfstat' and temporary tablespace for perfstat as 'temp' and datafile contained in perfstat tablespace is 150 MB in size.
    spcreate worked fine on primary but is giving errors in the end in secondary.Any suggestions about this:-
    Specifying the SYSTEM tablespace will result in the installation
    FAILING, as using SYSTEM for performance data is not supported.
    TABLESPACE_NAME CONTENTS
    LOGMNRTS PERMANENT
    PERFSTAT PERMANENT
    TEMP TEMPORARY
    UNDOTBS1 UNDO
    Specify PERFSTAT user's default tablespace
    Enter value for default_tablespace: perfstat
    Using perfstat for the default tablespace
    PL/SQL procedure successfully completed.
    User altered.
    User altered.
    Choose the PERFSTAT user's temporary tablespace.
    Specifying the SYSTEM tablespace will result in the installation
    FAILING, as using SYSTEM for the temporary tablespace is not recommended.
    Specify PERFSTAT user's temporary tablespace.
    Enter value for temporary_tablespace: temp
    Using temp for the temporary tablespace
    PL/SQL procedure successfully completed.
    User altered.
    NOTE:
    SPCUSR complete. Please check spcusr.lis for any errors.
    SQL>
    SQL> --
    SQL> -- Build the tables and synonyms
    SQL> connect perfstat/&&perfstat_password
    Connected.
    SQL> @@spctab
    SQL> Rem
    SQL> Rem $Header: spctab.sql 16-apr-2002.14:54:46 vbarrier Exp $
    SQL> Rem
    SQL> Rem spctab.sql
    SQL> Rem
    SQL> Rem Copyright (c) 1999, 2002, Oracle Corporation. All rights reserved.
    SQL> Rem
    SQL> Rem NAME
    SQL> Rem spctab.sql
    SQL> Rem
    SQL> Rem DESCRIPTION
    SQL> Rem SQL*PLUS command file to create tables to hold
    SQL> Rem start and end "snapshot" statistical information
    SQL> Rem
    SQL> Rem NOTES
    SQL> Rem Should be run as STATSPACK user, PERFSTAT
    SQL> Rem
    SQL> Rem MODIFIED (MM/DD/YY)
    SQL> Rem vbarrier 03/20/02 - 2143634
    SQL> Rem vbarrier 03/05/02 - Segment Statistics
    SQL> Rem cdialeri 02/07/02 - 2218573
    SQL> Rem cdialeri 01/30/02 - 2184717
    SQL> Rem cdialeri 01/11/02 - 9.2 - features 2
    SQL> Rem cdialeri 11/30/01 - 9.2 - features 1
    SQL> Rem cdialeri 04/22/01 - Undostat changes
    SQL> Rem cdialeri 03/02/01 - 9.0
    SQL> Rem cdialeri 09/12/00 - sp_1404195
    SQL> Rem cdialeri 04/07/00 - 1261813
    SQL> Rem cdialeri 03/20/00 - Support for purge
    SQL> Rem cdialeri 02/16/00 - 1191805
    SQL> Rem cdialeri 01/26/00 - 1169401
    SQL> Rem cdialeri 11/01/99 - Enhance, 1059172
    SQL> Rem cmlim 07/17/97 - Added STATS$SQLAREA to store top sql stmts
    SQL> Rem gwood 10/16/95 - Version to run as sys without using many view s
    SQL> Rem cellis.uk 11/15/89 - Created
    SQL> Rem
    SQL>
    SQL> set showmode off echo off;
    If this script is automatically called from spcreate (which is
    the supported method), all STATSPACK segments will be created in
    the PERFSTAT user's default tablespace.
    Using perfstat tablespace to store Statspack objects
    ... Creating STATS$SNAPSHOT_ID Sequence
    create sequence STATS$SNAPSHOT_ID
    ERROR at line 1:
    ORA-01031: insufficient privileges
    Disconnected from Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.1.0 - Production

  • Standby data Gurad 10g switchover problem with application

    Hi!
    I'm working on oracle 10g and try to make standby datagurad with same dbname eg. if my primary database name is orcl then my standby database should be orcl with same location because one of mine application is accepting only orcl not standbyorcl.
    Because when I'm doing switchover to standby database application not able to read standbyorcl and application result through error and close.
    Could any one help me to make init.ora parameter for primary and standinit.ora for standby with same database name.
    Amit Kumar

    You should use an Application Service instead of the standard Database Service in the first place to take care of Role Changes in your Data Guard configuration properly.
    Look here for an example:
    http://uhesse.wordpress.com/oracle-database-ha-architecture/2009/08/19/connect-time-failover-transparent-application-failover-for-data-guard/
    Kind regards
    Uwe Hesse
    http://uhesse.wordpress.com

  • Sujjestion regarding database switch in case of failure

    Hello all ,
    I need a sujjestion on database switching in case of failure ......
    production database server is : sun solris
    test database server is : Linis ES 4
    Database is Oracle 10.2
    About backups I have full database rman backup and everyday export backup of tables schema and also export of complete database backup.
    at the time of production server down ,can I use the export of solaris and import it in linus platform and make the database up ...????
    i think its not possible in just export and import utility .....
    is there any sujjestion how to comeup with this situations
    thanks in advance
    Edited by: user10608990 on Mar 2, 2009 7:25 AM

    Hello,
    Take a look into oracle documentation how to setup standby and failover using datagurad.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/create_ps.htm#SBYDB00200
    http://www.oracle.com/pls/db102/search?word=dgmgrl&partno=
    Regards

  • Best way to have a 'standby' apps node

    Hi,
    We're in the process of discussing several options for creating a standby application node in another data center. For the database we've decided to use Data Guard. But we're divided on the Application node.
    I'm of the view that we should have a separate independent server on the DR site that has the same installation and file setup as on the primary site. Whenever we patch, we can run rysnc to propagate the changes to the dr site. This way, we can have independent two servers and we can even patch on the primary and delay the propagation to the standby until we're satisfied everything is OK.
    The other colleagues think we can use the IBM Power HA to make a cluster between the two nodes and have a virtual ip through which the clients connect. The two nodes will have shared file-systems. If we patch the primary we don't need to patch the 'standby' since it's s shared file system cluster. But during patching, there's no 'freezing' window, so the only fallback option is the back.
    Based on this, which option can work correctly. The environment is ebs release 12.1.1 and oracle 10g release 2 on IBM aix 6.1
    dula

    Hi,
    In Apps tier ,there is no certified /supported method for standby server like datagurad in DBTier
    The best solution is to perform the clone of PROD instance everyday and copying the files to target instance or some otehr location
    becos the application tier files are instance-specific and maintained by auto-config so keeping the cluster and other ideas wil give error when u trying to up the the standby instance and during the ad sessions like patching and running adadmin
    if you going to keep the same hostname and same filestructure means u can try the simply copying the files or automatic copying of files thro cluster..
    -Rathina

  • Failover to standby

    We are running tow database with datagurad 1. primary(node1) 2. Standby(node2). My primary(node1) get failed and not recoverable then I run this commands dgmgrl> failover to node2 now Standby(node2) becomes primary . Now after 2 days later what should i do
    1. If we have Rman backup of Primary(node1) and Standby(node2) then which we have used.
    2. If we have don't have backup of Standby backup what should i do.
    3. What i want the crash server primary(node1) again comes in role of primary(node1) and Standby(node2) perform standby role how is this possible.
    Thanks in advance
    with regds
    rajnish

    you have to take backup of converted standby database (as primary) and create former primary database (as standby)database to this newly converted standby database (as primary).After that you have to swtich over to former primary database which is now standby database.
    Khurram

  • Differetn redo log names on primary db and standby db.

    we are using oracle 10.2.0.2 to run sap. we plan to use data guard.the os is suse linux 10.3.
    the archived redo log name's prefix is '1_' like '1_167109_678247864.dbf' on primary db.
    if i recover standy database mannuly with cmd 'ALTER DATABASE RECOVER automatic standby database' to fix redo log gap, the required archived redo log name's prefix is 'PRDarch1_' like 'PRDarch1_167260_678247864.dbf'.
    i checked the oracle parameter 'LOG_ARCHIVE_FORMAT' on both side were set to '%t_%s_%r.dbf'.
    my question is the different name have any effect on datagurad? Or we just can ignore it, because it doesn't matter.
    thanks in advance.

    I'm not interested in a debate so much as finding the answer. Thanks for the info. And welcome to the forum by the way.
    That said I would think B14239-05 would answer your question.
    In section 5.7.1 it shows:
    LOG_ARCHIVE_FORMAT=log%t_%s_%r.arc
    You may be correct on the default, but they only answer I can give you is I have never setup Data Guard that way. I hope this saves you some time.
    Where did you find this? (log_archive_dest_1 = "LOCATION=/oracle/PRD/oraarch/PRDarch MANDATORY REOPEN",)
    I would consider avoiding the use of MANDATORY. This attribute will cause you a world of trouble if your Standby is unreachable.
    Also if you are using a Flash Recovery Area you do not need to setup a local archiving destination.
    If you are not using Flash Recovery with Data Guard you should. Try testing a failover without it.
    Best Regards
    mseberg

Maybe you are looking for