Oracle Active Data Gaurd Setup

Hi ,
Can anyshare share the setup of oracle active datagaurd setup on 11g.
Thanks and Regards,
Hussain

http://www.google.com/search?btnG=1&q=Active+dataguard+setup
Next time, please do this prior to posting.
Sybrand Bakker
Senior Oracle DBA
Experts: those who did read documentation

Similar Messages

  • Oracle 10g Data gaurd

    Hi all,
    I cloned my prod by using RMAN.
    my Q is ..is there any diff between cloned db , Duplicate Database.
    if any diff please let me know..
    if i have cloned one by using that how to create standby instance.

    Hi,
    I mean that to create a standby you have a procedure and that rman copy is part of it and duplicate.
    1) make a rman backup
    run {
    allocate channel C1 type disk;
    backup database;
    backup archivelog all ;
    2) Create a Control File for the Standby Database on the primary:
    ALTER DATABASE CREATE STANDBY CONTROLFILE AS '/oracle/local/data/backup/crunchs_controlfile.bkp2';
    3) Standby redo log is optionnal... (but adviced to do)
    Exemple:
    ALTER DATABASE ADD STANDBY LOGFILE GROUP 11 ('+DATPRTEST1', '+FLAPRTEST1' ) size 50M ;
    ALTER DATABASE ADD STANDBY LOGFILE GROUP 12 ('+DATPRTEST1', '+FLAPRTEST1' ) size 50M ;
    ALTER DATABASE ADD STANDBY LOGFILE GROUP 13 ('+DATPRTEST1', '+FLAPRTEST1' ) size 50M ;
    ALTER DATABASE ADD STANDBY LOGFILE GROUP 14 ('+DATPRTEST1', '+FLAPRTEST1' ) size 50M ;
    SELECT GROUP#,THREAD#,SEQUENCE#,ARCHIVED,STATUS FROM V$STANDBY_LOG;
    4) modify the aprameter file in primary and standby
    Exemple:
    On the primary:
    alter system set db_name='crunch' scope=both sid='*';
    alter system set db_unique_name='crunch' scope=both sid='*';
    alter system set fal_client=crunch scope=both sid='*';
    alter system set fal_server=crunchs scope=both sid='*';
    alter system set db_create_file_dest='?????????????' scope=both sid='*';
    alter system set db_recovery_file_dest='?????????????????????' scope=both sid='*';
    alter system set log_archive_config='DG_CONFIG=(crunchs,crunch)' scope=both sid='*';
    alter system set log_archive_dest_1 LOCATION=USE_DB_RECOVERY_FILE_DEST VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=crunch scope=both sid='*';
    alter system set log_archive_dest_2 SERVICE=crunchs.RVPONP.FGOV.BE VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) OPTIONAL DB_UNIQUE_NAME=crunchs scope=both sid='*';
    alter system set log_archive_dest_state_2 defer scope=both sid='*';
    alter system set standby_archive_dest LOCATION=USE_DB_RECOVERY_FILE_DEST scope=both sid='*';
    On the standby:
    alter system set db_name='crunch' scope=both sid='*';
    alter system set db_unique_name='crunchs' scope=both sid='*';
    alter system set fal_client=crunchs scope=both sid='*';
    alter system set fal_server=crunch scope=both sid='*';
    alter system set db_create_file_dest='????????????' scope=both sid='*';
    alter system set db_recovery_file_dest='????????????' scope=both sid='*';
    alter system set log_archive_config='DG_CONFIG=(crunch,crunchs)' scope=both sid='*';
    alter system set log_archive_dest_1 LOCATION=USE_DB_RECOVERY_FILE_DEST VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=crunchs scope=both sid='*';
    alter system set log_archive_dest_2 SERVICE=crunchs.RVPONP.FGOV.BE VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) OPTIONAL DB_UNIQUE_NAME=crunch scope=both sid='*';
    alter system set log_archive_dest_state_2 defer scope=both sid='*';
    alter system set standby_archive_dest LOCATION=USE_DB_RECOVERY_FILE_DEST scope=both sid='*';
    5) We copy the password file of the primary and rename it for the standby:
    /oracle/product/10.2.0/db/dbs
    Start standby database unmounted
    sqlplus sys as sysdba
    startup nomount pfile='oracle/product/10.0.2/db/dbs/initcrunchs.ora' ;
    (ou startup nomount; si le spfile existe déja d'avant)...
    Recover standby database from RMAN backup
    . oraenv
    crunchs
    rman nocatalog
    connect target sys/????@crunch
    connect auxiliary sys/????
    duplicate target database for standby;
    Create a server parameter file for the standby database
    sqlplus sys as sysdba
    create spfile from pfile;
    shutdown immediate;
    startup mount;
    On standby:
    ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION;
    On primary:
    alter system set log_archive_dest_state_2='enable';
    Up and running...
    Now you can after doing your copy and if the parameter files are both good, try to :
    On standby:
    ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION;
    On primary:
    alter system set log_archive_dest_state_2='enable';

  • Oracle 11g Data Gaurd problem

    I am currently in a Dev environment, working on a 11g Data Guard configuration, having Primary and Standby in 2 different nodes.
    Both the nodes had their parameter files configured with the specific DG parameters, which are as below -
    Primary init.ora
    *.db_domain=''
    *.db_name='o11_prim'
    *.db_unique_name='o11_prim'
    *.instance_name='o11_prim'
    *.dispatchers='(PROTOCOL=TCP) (SERVICE=o11_primXDB)'
    *.FAL_Client=o11_stby
    *.FAL_Server=o11_prim
    *.job_queue_processes
    *.Log_archive_config='DG_CONFIG=(o11_prim,o11_stby )'
    *.Log_archive_dest_1='Location=/u01/app/oracle/pro duct/11.1.0/db_1/dbs/arch/ VALID_FOR=(ALL_LOGFILES,ALL_ROLES) db_unique_name=o11_prim'
    *.Log_archive_dest_2='Service=o11_stby lgwr async AFFIRM VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) db_unique_name=o11_stby'
    *.Log_archive_dest_state_1=ENABLE
    *.Log_archive_dest_state_2=ENABLE
    *.log_archive_format=%t_%s_%r.arc
    *.log_archive_max_processes0
    *.service_names='o11_prim.xyz.com'
    *.Standby_File_Management='AUTO'
    *.statistics_level='TYPICAL'
    *.timed_statistics=TRUE
    Standby init.ora
    *.db_domain=''
    *.db_name='o11_prim'
    *.db_unique_name='o11_stby'
    *.instance_name='o11_prim'
    *.dispatchers='(PROTOCOL=TCP) (SERVICE=o11_primXDB)'
    *.FAL_Client=o11_stby
    *.FAL_Server=o11_prim
    *.job_queue_processes
    *.Log_archive_config='DG_CONFIG=(o11_prim,o11_stby )'
    *.Log_archive_dest_1='Location=/u01/app/oracle/pro duct/11.1.0/db_1/dbs/arch/ VALID_FOR=(ALL_LOGFILES,ALL_ROLES) db_unique_name=o11_stby'
    *.Log_archive_dest_2='Service=o11_prim lgwr async AFFIRM VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) db_unique_name=o11_prim'
    *.Log_archive_dest_state_1=ENABLE
    *.Log_archive_dest_state_2=ENABLE
    *.log_archive_format=%t_%s_%r.arc
    *.log_archive_max_processes0
    *.service_names='o11_stby.xyz.com'
    *.Standby_File_Management='AUTO'
    *.statistics_level='TYPICAL'
    *.timed_statistics=TRUE
    Initially, the Archive logs were getting transferred to the Standby via Automatic Managed Recovery Process. Command given below.
    # This command is being run on Standby for starting Automatic Managed
    # Recovery Process
    SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION;
    Then we used to tail the Alert logs of both Primary and Standby, and the logs got transferred at the physical location of the Archive logs in Standby db.
    Then one day due to some problem with the pfile, I shutdown the Standby db with the Primary up and running as usual using the following command-
    SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL IMMEDIATE;
    The Result was as expected - Primary Archive logs got accumulated and the same couldn't be transferred to Standby as the Standby was down.
    I had to manually recover the Standby by copying the extra Archive log files from Primary to Standby and then running the Recovery Process manually, using the below command -
    SQL> RECOVER AUTOMATIC STANDBY DATABASE
    Then when I restarted the Automatic Recovery process on Standby, I received the error as below -
    ORA-16009 - Remote archive log destination must be a STANDBY database
    This error keeps appearing on the alert log of both primary and physical standby that i configured.
    I have no clue as to where it went wrong.
    Kindly help!

    Hi,
    Here is my tnsnames.ora entries.
    o11_prim =
    (DESCRIPTION =
    (FAILOVER = ON)
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.226.35.20)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.226.35.30)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = o11_prim.cts.com)
    LISTENER_PRIM =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.226.35.20)(PORT = 1521))
    o11_stby =
    (DESCRIPTION =
    (FAILOVER = ON)
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.226.35.30)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.226.35.20)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = o11_prim.cts.com)
    The service name for standby is o11_prim.cts.com and db_unique_name is o11_stby.

  • Active Data Guard Question

    Hi All,
    I'm thinking whether the oracle active data guard can enable "multiple" physical standby database to be opened for read-only access while Redo Apply is active?
    As i read a lot of document, seems like only able to enable "one" physical standby database only.
    Let say i have one production database, and i have two or more physical standby DB (can be RAC or stand alone) in different country,
    can this two physical standby be enable active data guard for read-only access?
    Any idea? Thanks in advance.
    Best Regards,
    hau

    Dear klnghau,
    If your project is on hold now then you should have time to read some more!;
    http://www.oracle.com/us/products/database/options/active-data-guard/index.htm
    Please also read the following thread;
    More than One Physical Standby Database
    Regards.
    Ogan

  • Is this possible in Oracle Data Gaurd 11g?

    Dear All,
    I was looking for replication scenerio while this thing came in my mind.
    We have setup 2 database servers on 2 different location, thousands of miles apart. Both servers have oracle 11gR1 and are on linux operating system.
    We have been facing connectivity problems as users are accessing our application connected to one of these servers from all over the world and when there is connectivity problems applications are no more accessible.
    I want to setup a stand by database server, like if there is connectivity problem on one server, or its down due to any reason applications are automatically shift to the second available server. The primary server is obvioulsy the first server and in case of no connectivity or any other problem that should bein use.
    In this case we have to keep an exact copy of the primary server on second server. I want to know if Oracle data Gaurd will provide us such a functionality when the servers are on remote locations? How the data will be copied to secondry server?
    Kindly let me know if there is any document available to setup such a scenerio. I will be thankful to you.
    Regards,
    Imran Baig

    DataGuard Physical standby will keep a copy of your database on a standby server. Utilizing fast start failover with an observer (3rd party) that sees both the primary and standby server will give you the capability to automatically failover to the standby server should connectivity to the primary be interrupted. Fast start failover is configured with a threshold that will determine the amount of time it waits for lost connectivity prior to actually doing the failover allowing you to configure the threshold prior to failover. Your application accessing the database will need to reconnect to the new primary after failover.

  • Oracle E-Business Suite and Active data guard

    Hi,
    I'm looking to setup current E-business Suite R12.1.3 application without any down time. I've Primary Data Center and Secondary Data Center. I would like to setup seamless failover to another secondary data center in case of 1st data center failure.
    Can be this achieved by using Active Data guard? If not what would be best solution? In case of active data guard can I failover site to secondary data center and apply patches on primary site?
    I want to acheive 100% availability of application. Any suggestions are welcome!
    Thanks

    user587327 wrote:
    Hi,
    I'm looking to setup current E-business Suite R12.1.3 application without any down time. I've Primary Data Center and Secondary Data Center. I would like to setup seamless failover to another secondary data center in case of 1st data center failure.
    Can be this achieved by using Active Data guard? If not what would be best solution? In case of active data guard can I failover site to secondary data center and apply patches on primary site?
    I want to acheive 100% availability of application. Any suggestions are welcome!
    ThanksPlease refer to these docs.
    Business Continuity for Oracle E-Business Release 12 Using Oracle 11g Physical Standby Database [ID 1070033.1]
    Using Active Data Guard Reporting with Oracle E-Business Suite Release 12.1 and Oracle Database 11g [ID 1070491.1]
    Oracle E-Business Suite Release 12 High Availability Documentation Roadmap [ID 1072636.1]
    Thanks,
    Hussein

  • Error in Starting Oracle BAM Active Data Cache

    I am not able to start "Oracle BAM Active Data Cache" on my machine.
    The other two components "Oracle BAM Event Engine" and "Oracle BAM Report Cache" are starting properly.
    When I see the event log file of my Computer I could see the details as below:
    Event Type: Error
    Event Source: Oracle BAM Active Data Cache
    Event Category: None
    Event ID: 0
    Date: 2/7/2007
    Time: 3:51:25 PM
    User: N/A
    Computer: CHNANDA-WXP
    Description:
    ActiveDataCache: The Oracle BAM Active Data Cache service failed to start. Oracle.BAM.ActiveDataCache.Common.Exceptions.CacheException: ADC Server exception in Startup(). ---> Oracle.DataAccess.Client.OracleException ORA-12541: TNS:no listener at Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src, String procedure)
    at Oracle.DataAccess.Client.OracleConnection.Open()
    at Oracle.DataAccess.Client.OracleConnection.Open()
    at Oracle.BAM.ActiveDataCache.Kernel.StorageEngine.Oracle.OracleStorageEngine.GetServerVersion()
    at Oracle.BAM.ActiveDataCache.Kernel.StorageEngine.Oracle.OracleStorageEngine.Startup(IDictionary oParameters)
    at Oracle.BAM.ActiveDataCache.Kernel.Server.DataStoreServer.Startup()
    --- End of inner exception stack trace ---
    at Oracle.BAM.ActiveDataCache.Kernel.Server.DataStoreServer.Startup()
    at Oracle.BAM.ActiveDataCache.Kernel.Server.Server.Startup()
    at Oracle.BAM.ActiveDataCache.Service.DataServer.Run()
    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
    Could anyone pls help me?
    Thanks and Regards,
    Chinmaya Nanda

    hi Chinmaya -can yoy tell us your companyname,project ? Your problem is very simple.BAM ADC is notable to reachoracle db.fromyour dos prompt- try tnsping <yrDB> [default  is oraclebam  or orcl  ]/ Also see FAQ pages. there is a requirement on dos prompt setting, with <clientforBAM>as 1st parameter

  • Urgent  : ORA-01426: numeric overflow on oracle 11g  Active Data Guard

    Hi
    I have configured Active Data Guard on oracle 11g, for reporting purpose we will select mutliple querry on target side(10 users). we are getting 'numeric overflow erro'r on alert log file When we issuing multiple query on target side. PLeae let me know is this error will cause performance degrad. if it will degrade performance mean please tell me how to resolve this problem. Why the numeric overflow is comming . and it is not comming in the primary database, it is comming in standby database only. please any one help it is very urgent
    is there any parameter To overcome this problme
    Please please it is very important to me and very urgent .
    Thanks
    nafees
    Edited by: Nafees on Jan 1, 2009 3:44 AM
    Edited by: Nafees on Jan 1, 2009 3:54 AM

    There is no one drowning.
    Your house is not on fire.
    The volcano has not exploded.
    Please apologize for abusing this forum by claiming your issue is more urgent than other people's requests.
    Then, and only then, should anyone help you. I know I certainly won't until I read your sincere apology and promise not to be abusive in the future.

  • Error starting Oracle BAM active data cache service

    Hi
    after installing BAM every thing working fine ,but if restart my system Oracle BAM active data cache service throwing following error
    "The Oracle BAM Active Data Cache service on Local computer started and then stopped.Some services stop automatically if they have no work to do,for example the performance logs and alerts service"
    Database is running fine
    Following is the ADC log file error
    2007-12-07 17:19:29,640 [2928] ERROR - ActiveDataCache The Oracle BAM Active Data Cache service failed to start. Oracle.BAM.ActiveDataCache.Common.Exceptions.CacheException: ADC Server exception in Startup(). ---> System.DllNotFoundException: Unable to load DLL (OraOps10.dll).
    at Oracle.DataAccess.Client.OpsTrace.GetRegTraceInfo(UInt32& TrcLevel, UInt32& StmtCacheSize)
    at Oracle.DataAccess.Client.OraTrace.GetRegistryTraceInfo()
    at Oracle.DataAccess.Client.OracleConnection..ctor(String connectionString)
    at Oracle.DataAccess.Client.OracleConnection..ctor(String connectionString)
    at Oracle.BAM.ActiveDataCache.Kernel.StorageEngine.Oracle.OracleDataFactory.GetConnection()
    at Oracle.BAM.ActiveDataCache.Kernel.StorageEngine.Oracle.OracleStorageEngine.GetServerVersion()
    at Oracle.BAM.ActiveDataCache.Kernel.StorageEngine.Oracle.OracleStorageEngine.Startup(IDictionary oParameters)
    at Oracle.BAM.ActiveDataCache.Kernel.Server.DataStoreServer.Startup()
    --- End of inner exception stack trace ---
    at Oracle.BAM.ActiveDataCache.Kernel.Server.DataStoreServer.Startup()
    at Oracle.BAM.ActiveDataCache.Kernel.Server.Server.Startup()
    at Oracle.BAM.ActiveDataCache.Service.DataServer.Run()
    2007-12-07 17:24:45,250 [1524] ERROR - ActiveDataCache Unable to load DLL (OraOps10.dll).
    2007-12-07 17:24:45,265 [1524] WARN - ActiveDataCache Exception occurred in method Startup
    Please help me in resolving this issue .Am getting this issue every time
    Thanks
    BS

    Make sure the path to the ODAC used by BAM (C:\OracleBAM\ClientForBAM\bin) is the first item in the system PATH
    environment variable. Restart your computer after fixing this.
    If that doesn't fix it, please check the Troubleshooting section in the BAM Install Guide.
    Regards, Stephen

  • Looking for Active Data Guard in Oracle 11g Release 2 References

    I want to reach out to customers who have implemented Active Data Guard in production (preferably 11.2), so that we can develop some
    customer references that in turn will benefit other customers. The customers who get selected for such references may further be selected to publish their case study directly in oracle.com and/or invited as a customer co-speaker in the upcoming Oracle OpenWorld at San Francisco (Sep 19-23, 2010). Being a customer co-speaker at OOW means they get a free pass to the full conference (regular price for that is $1795-$2495).
    Please send any follow-ups to [email protected]
    Thank you.
    Larry M. Carpenter
    Oracle Data Guard & MAA Product Manager

    Hi Larry,
    This is Bhavik Desai Oracle -DBA@Amazon. I do have couple of Active Standby running on 11gR2 On RHEL 5 64-Bit platform.
    Most of the databases are reporting on (DSS Having 2-4 TB in size) having FSFO configured.
    It would be a pleasure if i can provide any benchmarking to you on this.
    Regards,
    Bhavik Desai

  • Oracle 11g Active Data Guard and SAP R3

    Hi All,
    I have a query regarding Oracle 11g Active Data Guard and SAP R3.
    Does the Oracle 11g R1/R2 Active Data guard feature supported with SAP R3?
    I appreciate your help to provide any link or document for the same.
    Thanks,
    Vihang

    I have a query regarding Oracle 11g Active Data Guard and SAP R3.
    Does the Oracle 11g R1/R2 Active Data guard feature supported with SAP R3?
    I appreciate your help to provide any link or document for the same.
    Oracle database 11g functionality certified by SAP, check below link
    http://www.oracle.com/us/solutions/sap/oradb11g-article-upd-1-323074.pdf
    http://www.oracle.com/technetwork/middleware/ias/downloads/osb-11gr1certmatrix.xls

  • Oracle 11g Active Data Guard help ?

    Hi Friends,
    I successfully setup an Active data guard environment(11g). But, I dont know when the PROD database is highly utilize , its read only tasks like reporting and backup are doing in STANDBY. How can I know which db (prod or stand by) is used for these readonly operations ?
    Regards
    Vish

    It is not so simple to direct reports to the Physical Standby as you seem to assume.
    You need to do some work for the setup.
    See here for a description:
    http://uhesse.com/downloads/real-time-query-presentation/
    Kind regards
    Uwe Hesse
    Don't believe it, test it!"
    http://uhesse.com

  • Oracle 11g Active Data Guard是怎么收费的?

    原来在Oracle 10g中,DG是免费使用的,想请问一下,在Oracle 11g中,性能得到加强的ADG是怎么收费的?谢谢

    FYI
    Use customary EE Option License Practices
    Active Data Guard license required if using either Real-time Query or RMAN block-change tracking on a standby
    Example with primary and 5 separate standby databases
    S1 = physical - real-time query
    S2 = physical - real-time query + RMAN block change tracking
    S3 = physical - RMAN block change tracking
    S4 = physical - neither real-time query nor RMAN block change tracking
    S5 = logical
    Active Data Guard must be licensed for primary and for S1, S2 and S3.
    Active Data Guard is not relevant to logical standby

  • Does Oracle 10g support Active Data-guard?

    Hi all,
    Can Oracle Database 10g support Active Data-guard?
    Thanks you!
    Dan
    Edited by: Dan on Jul 12, 2011 10:13 AM

    no, active data guard is 11gR1 new feature.
    In Oracle Database 10g and below you could open the physical standby database for read-only activities (say, to offload some reporting), but only after stopping the recovery process. With these releases, If Data Guard is a part of your DR solution, you really can't afford to pause the recovery process for a long duration for fear of falling behind, so the physical standby database is essentially useless for any read-only activity.
    With Oracle Database 11g, that situation changes: You can open the physical standby database in read-only mode and restart the recovery process. This means you can continue to be in sync with primary but can use the standby for reporting. (As in previous versions, you can take the backup from the standby as well.)
    refer:- http://www.oracle.com/technetwork/articles/sql/11g-dataguard-083323.html

  • Using Oracle EM 11g with Active Data Guard 11g

    Has anyone installed Active Data Guard 11g with OEM 11g for an active-active state or know if there are any installation procedures with these two products? We will be installing these products this year. Thanks, Cathy

    If you already have both servers configured in Grid Control as targets, it should be fairly easy to create a standby database on server B. OEM has Availability tab on your primary database Instance section should have "Data Guard" section which has "Setup and Manage" option. You follow through the wizard, and it will generate a standby database on server B. Then you can convert your standby db on server B to Active Read-only database by clicking few more buttons.
    If you do not have these two servers configured on your Grid Control, that would be the first task.
    We set up three standby databases using Grid Control 11g in our test boxes, and they worked very well. Our biggest problem was to actually installing the Grid Control, but once installed, everything was easy.

Maybe you are looking for