Data Guard Protection mode

How to set Data Protection Mode of a Primary Database? Setting only LOG_ARCHIVE_DEST_2 parameter will do?

Hello;
Welcome to the forum.
No. LOG_ARCHIVE_DEST_2 is almost always used to the the location of a standby database.
By default Data Guard will be in MAXIMUM PERFORMANCE mode.
Here's a short note I put together on this :
http://www.visi.com/~mseberg/protection_mode.html
Please consider closing your question if its answered.
Best Regards
mseberg

Similar Messages

  • Outlook iCloud add in - data execution protection mode

    I am using Windows 7 with MS Office 2010. This is a corporate laptop.
    I want to integrate my view of the Apple Calendar with the Outlook calendar so I can see all personal and professional calendar events without integrating the two into a single calendar. I am able to initiate the integration, during which, the initial calendar is downloaded and all current scheduled items will appear in the Calendars window in Outlook. However, no updates will be pushed.
    I went through a long series of trouble shooting activities to get the iCloud Outlook add-in properly set up as recommended on various Apple trouble shooting pages. Ultimately, I installed the lastest version of iCloud, reset all aspects of enabling it and all appears in order. That is, I can see the add in in the Outlook Add-Ins Center.
    However, the situation has not changed.  The reason why is, the Add-In has been disabled with the following message:
         Add-In was disabled by the user after a Data Execution Prevention failure
    Upon further investigation on the Microsoft site, it appears that the iCloud Add-In is somehow not compliant with the Data Execution Prevention mode. This mode is turned on in the Trust Center and it is strongly recommended that it not be turned off in order to protect the PC. According to the information on Microsoft, it was disabled after an error occured.  However, I received no error messages during the enablement process.
    I don't know where to look from here. Please help!

    I've conducted further research on this issue and found the following Microsoft article on DEP. According to this, the iCloud add-in is running executable code from pages marked by Windows as non-executable. In essence, this is the kind of behavior viruses exhibit and are, therefore, worth stopping.
    Can someone tell me, are you experiencing this problem? Am I alone in this or are lots of people not protecting themselves from the very fundamental virus hole?
    http://blogs.technet.com/b/office2010/archive/2010/02/04/data-excecution-prevent ion-in-office-2010.aspx

  • Data Guard change mode errors

    Dear all
    I have done a physical standby database ,version number is ORACLE9.2.0
    Now , It can work well on "Maximize performance mode" and standby database also can receive archived logfiles and applied it , As other reason I decided to change the standby database to "MAXIMIZE PROTECTION" mode , I did on primary database as below:
    1) alter system set log_archive_dest_2='SERVICE=STB LGWR SYNC AFFIRM
    scope=spfile'
    2) alter database set standby database to maximize protection
    then when I sent "alter database open " command I receive a error :
    SQL> alter database set standby database to maximize protection;
    数据库已更改。
    SQL> alter database open;
    alter database open
    ERROR 位于第 1 行:
    ORA-03113: 通信通道的文件结束
    then I check the alter.log file :
    alter database open
    Mon May 28 12:35:37 2007
    LGWR: Primary database is in CLUSTER CONSISTENT mode
    LGWR: Primary database is in MAXIMUM PROTECTION mode
    LGWR: Destination LOG_ARCHIVE_DEST_1 is not serviced by LGWR
    LNS0 started with pid=11
    Mon May 28 12:35:43 2007
    LGWR: Error 16086 verifying archivelog destination LOG_ARCHIVE_DEST_2
    LGWR: Continuing...
    Mon May 28 12:35:43 2007
    Errors in file c:\oracle\admin\fox\bdump\fox_lgwr_3260.trc:
    ORA-16086: standby database does not contain available standby log files
    LGWR: Error 16086 disconnecting from destination LOG_ARCHIVE_DEST_2 standby host 'STB'
    LGWR: Minimum of 1 applicable standby database required
    Mon May 28 12:35:43 2007
    Errors in file c:\oracle\admin\fox\bdump\fox_lgwr_3260.trc:
    ORA-16072: a minimum of one standby database destination is required
    LGWR: terminating instance due to error 16072
    Mon May 28 12:35:43 2007
    Errors in file c:\oracle\admin\fox\bdump\fox_pmon_204.trc:
    ORA-16072: a minimum of one standby database destination is required
    Instance terminated by LGWR, pid = 3260
    how can I reslove this probelm?? I need you help.......

    ORA-16086: standby database does not contain available standby log filesError clearly says , there is no standby log file, so Add standby log files to the standby database. Check following link for details
    Standby Redo Logs
    Virag

  • Data Protection Mode

    Hello,
    1) In order to set Data protection mode, do I need to set anything on standby?
    2) My database is in Maximum Performance mode. I set up following entry on init.ora:
    LOG_ARCHIVE_DEST_2=’service=standby LGWR ASYNC’.
    I want to change data guard protection mode from Max Performance to Max Protection. For that i have changed from the "ASYNC" attribute to "SYNC" attribute of the LOG_ARCHIVE_DEST_n initialization parameter like:
    LOG_ARCHIVE_DEST_2=’service=standby LGWR SYNC’.
    But I have not changed the protection mode on the primary database using “alter database set standby database to maximize protection”.
    Does it continue as Max Performance mode or will it throw any error?

    1) In order to set Data protection mode, do I need to set anything on standby? You have to take care only in primary LOG_ARCHIVE_DEST_n parameter, If you changed protection mode of course it will be taken care.
    But dont forget to check on standby if you have configured anything on LOG_ARCHIVE_DEST_n parameter[if you perform switchover in future], usually it will left blank.
    2) My database is in Maximum Performance mode. I set up following entry on init.ora:
    LOG_ARCHIVE_DEST_2=’service=standby LGWR ASYNC’.
    I want to change data guard protection mode from Max Performance to Max Protection. For that i have changed from the "ASYNC" attribute to "SYNC" attribute of the LOG_ARCHIVE_DEST_n initialization parameter like:
    LOG_ARCHIVE_DEST_2=’service=standby LGWR SYNC’.
    But I have not changed the protection mode on the primary database using “alter database set standby database to maximize protection”.
    Does it continue as Max Performance mode or will it throw any error?Similar discussion, You can check this link what happens if you set LGWR & SYNC in maximum performance mode :)
    using LGWR SYNC with Max Performance

  • Data Guard Broker teasing error ORA-12514: TNS:listener

    Hello,
    I have spent many hours but don't understand what little thing I am missing or confusing me.. Please help to fix the issue.
    Physical Standb db created successfully, but now facing following issue: Though it should be and must be fixed but really making me mad
    DGMGRL> SHOW CONFIGURATION;
    Configuration - DATA GUARD
      Protection Mode: MaxPerformance
      Databases:
        dg - Primary database
    Fast-Start Failover: DISABLED
    Configuration Status:
    DISABLED
    DGMGRL> ADD DATABASE DG_DB2
    > AS CONNECT IDENTIFIER IS DG_DB2
    > MAINTAINED AS PHYSICAL;
    Error: ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    Failed.
    PRIM:
    db_name: DG
    db_unique_name: dg
    service_names:  dg
    STBY:
    db_name: DG
    db_unique_name: dg_db2
    service_names:  dg_db2
    # TNSNAMES same entries on both Primary and Standby: HOSTNAMES are different.
    DG =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = db01.domain)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = dg)
    DG_DB2 =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = db02.domain)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = dg_db2)
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
          (ADDRESS = (PROTOCOL = TCP)(HOST = db01.domain)(PORT = 1521))   db02.domain for Standby on standby machine.
    # Listener.ora on PRIMARY:
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
          (ADDRESS = (PROTOCOL = TCP)(HOST = db01.domain)(PORT = 1521))
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (GLOBAL_DBNAME = dg_DGMGRL.domain)
          (ORACLE_HOME = /oracle/app/11g/db)
           (SID_NAME = dg)
           (SERVICE_NAME = dg.domain)
    # Listener.ora on Standby:
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (GLOBAL_DBNAME = dg_db2_DGMGRL.domain)
          (ORACLE_HOME = /oracle/app/11g/db)
           (SID_NAME = dg_db2)
           (SERVICE_NAME = dg_db2.domain)
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = db02.domain)(PORT = 1521))
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    I created Stby DB with the minimum parameters required, so that I configure BROKER and see it magic, but badly stuck in this situation here. I have read many docs related to this..but can not fix it unfortunately.
    Please guide me from your own experience as note ids, blogs are not helping me here...
    Bundle of thanks.
    Best Regards

    Hi,
    Your listener.ora file has SERVICE_NAME = dg_db2.domain whereas tnsnames.ora file has SERVICE_NAME = dg_db2.
    Check in your database for exact service name and reflect the same in both the files.
    SQL> sho parameter service_names
    Restart the listener and try connecting.
    Thank you!!

  • Upgrading protection mode

    I've never used any Data Guard protection mode except Maximum Performance before so please forgive me if my questions seem ignorant.
    I have a primary DB with 2 standbys both currently operating in maximum performance mode. The primary is a 2 node RAC cluster. Both standbys are single instance. None of the databases in the configuration use standby logs (yet). I am currently using ARCH to ship the logs to both standbys. All databases are running version 11.2. I am not using Data Guard broker.
    I am considering upgrading just standby # 2 to maximum availability protection mode, but I'm not sure if it's really what I want or not. Perhaps someone here with a better understanding can confirm for me whether its the best choice.
    My goal is to achieve the maximum data protection possible with no performance impact whatsoever on the primary database.
    If I understand maximum availability correctly (and I am not certain I do), a commit issued on the primary will not complete until the maximum availability standby has acknowledged receipt of the redo data. If the link between the two goes down, that could introduce a significant delay in the commit. Is that correct? In my situation any performance impact on the primary DB is unacceptable.
    Perhaps what I want is maximum performance using standby logs, with the LGWR and ASYNC attributes enabled on the corresponding log_archive_dest_n parameter. If I understand that correctly, a commit on the primary will complete as soon as the redo is written to the local redo log and the availability of the standby destination will have no performance impact at all. In general the standby will remain only a few seconds behind the primary. If the link between the two goes down, I can alert myself to the situation with a simple query of v$dataguard_stats and correct whatever the underlying problem is.
    Can someone please confirm for me whether I am understanding the behavior of commits under these two different protection modes and transport modes?
    Also, if I do create standby logs for the one destination, do I also need to create them on the primary and other standby as well.
    Thanks.

    Here's what I can think of :
    Max protection mode will shutdown automatically if no standby destinations available for log transfer. To avoid this at least two log_archive_dest are needed.
    Max protection mode will shutdown if lgwr,async and noaffirm is used.
    Max Availability will behave like max performance mode when no standby archive destinations available.
    Max Availability will remain in max availability mode when standby redo logs will not available.
    So it will depend on the business
    Best Regards
    mseberg

  • Database is High Protection Mode

    Dear Friends,
    I configured dataguard standby database in oracle 11g.Then i did the following scenario's.
    1)I changed the protection mode to "High protection".
    2)Shutdown the standby database.
    As per the document, The primary database shutdown when standby database is down in High Protection Mode.
    But my primary database did not shutdown. But if i fire "alter system switch logfile;", It get hangs. But parllely, I can able to login to primary db as normal user.
    Can anybody explain what happen if database in "High Protection" Mode?
    Thanks in advance.

    Hello;
    Can you post the results of this run on the Primary :
    SELECT PROTECTION_MODE FROM V$DATABASE;The Protection modes are "Maximum availability", "Maximum performance","Maximum protection" They are described in detail here
    1.4 Data Guard Protection Modes - http://docs.oracle.com/cd/E11882_01/server.112/e10700.pdf
    If you search E10700-02 there is no "High protection" mode, so I'm not sure what you did. Maximum availability provides the highest protection, but also requires "SYNC" for your log_archive_dest_n parameter.
    My own example is here :
    http://www.visi.com/~mseberg/protection_mode.html
    Best Regards
    mseberg
    Edited by: mseberg on Aug 8, 2012 2:04 PM

  • Database shutdowns in Maximum Protection mode

    Hi,
    I am using oracle dataguard 11g(11.2.0.1.0) on OEL5. My dataguard is working fine in MAXIMUM PERFORMANCE mode. But when i try to put my database mode in MAXIMUM PROTECTION MODE my database gets shutdown.What could be the possible reason for this????
    Regards,
    007

    Hello;
    Quote  "To ensure that data loss cannot occur, the primary database will shut down, rather than continue processing transactions, if it cannot write its redo stream to at least one synchronized standby database"
    Section - 1.4 Data Guard Protection Modes - Data Guard Concepts and Administration 11g Release 2 (11.2) E10700-02
    From section 5.1 of the same document ( Maximum Protection )
    "Oracle recommends that a minimum of two standby databases be used to
    protect a primary database that runs in maximum protection mode to prevent a single
    standby database failure from causing the primary database to shut down."
    Best Regards
    mseberg

  • Oracle Data Guard in WAN

    Hello,
    I'm planning to setup DG in WAN  with 1GB or less  network pipe. What is the best mode to setup like Maximum availability or Maximum performanance or Max protection?
    Please share the ML also .
    thanks

    Hello,
    You'll find here a description of the 3 modes:
    Data Guard Protection Modes
    If you are not sure about the Network it's better to choose Maximum Performance (the default). By that way the Primary don't suffer from any delay in writing the redo to the Standby.
    With Maximum Protection the Primary is unavailable if the redo cannot be sent to the Standby.
    Maximum Availability is a go-between these 2 modes.
    Anyway, think about monitoring the redo application on the Standby so as to avoid any GAP. Also, you can set the parameter "archive_lag_target" to force a switch of the redo at regular interval.
    Hope this help,
    Best regards,
    Jean-Valentin Lubiez

  • How to add two protection mode in oracle data guard

    Hi all,
    We have a discussion on oracle physical data guard yesterday.....
    As we all know that data guard has 3 protection mode
    1. Maximum Performance
    2. Maximum Availability (Default)
    3. Maximum Protection
    Now we were discussing about is it possible to have two protection mode on same data guard simultaneously... for e.g. Maximum performance and maximum availability.
    We have searched a lot but don't find any help on google.
    Can any one help on this with any doc, pdf or links..
    Thanks & Regards

    Hi,
    you don't find anything on this because it's not possible and would make no sense even if you could do it.
    Maximum Availability uses SYNC commit between primary and standby db. If you combine Max. Availabilty with Max. Performance then your db clients have to wait on commit until primary and the max. availability standby have commited. That they would not have to wait on another Max. Performance DB doesn't change anything to the client. You would only combine the disadvantages of both approaches, the wait on sync commit for max. availability and beeing not in sync with primary for the max. performance db.
    The max. protection mode requires by definition that the primary db shuts down in case no standby can process the commit. If the primary is not up and running it is pointless to have another (max. availability) standby db at hand, if this max. availability db would take over the service this would violate the defintion of max. protection. No Dataloss is valued higher than db availability, having the data commited only on one db site is not allowed.
    Regards
    Thomas

  • Query regarding upgrading protection mode in a data guard

    I am using Oracle 10g in Linux platform
    Consider that I have a logical standby and a physical standby and now I want to upgrade the protection mode of physical standby but want the logical standby to retain the protection mode .
    According to the Oracle documentation they have specified that the following statement has to be issued from primary to upgrade protection mode of a standby
    SQL > Alter database set standby database to maximum availability;So to which standby this statement will refer to, whether logical standby or physical standby?

    Hi,
    What you want to do is very possible. Please not however the protection mode DOES NOT apply to a standby when you say a database has a certain protection mode, it applies to the primary.
    First to be in maximum availability you have to issue the command you state, and that applies to the primary, it is now in maximum availability but to get there it must have ONE standby that uses LGWR SYNC as the transport mechanism with AFFIRM.
    You can also have other standby's running from this primary, that DO NOT have to use LGWR SYNC, but can use the other available tranport mechanisms.
    This is explained here:
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28294/protection.htm#CHDEDGIF
    cheers,
    jason.
    http://jarneil.wordpress.com

  • Protection type for Acrive Data Guard

    Hi all,
    I am looking at implementing a 11G R2 active data guard solution and need to do live reporting from the physical standby database.
    I need confirmation of the protection mode I will need. (I think it's Maximum Protection).
    Many thanks
    VicC

    Sorry, I just realized that I misunderstood your Question as "What Protection Modes can I have with FAST-START FAILOVER".
    For Real-Time Query, you can be in any Protection Mode.
    Kind regards
    Uwe Hesse
    http://uhesse.wordpress.com

  • Data guard standby restart in rocover mode

    Hi,
    I inherited a data guard database and found that the secondary DB has been out of sync with primary. I perform SCN recovery to the secondary and now they are fine syncing. I figured I had to manually put the standby in recover mode after open in read only mode in the one I worked on which is our qual environment where as it is not like that in the prod. Can anyone advise what I need to do to have this standby in recovery mode even after the DB go down for maintenance and come back on?
    Thanks for your input,
    fakord

    Hi,
    If you are using database guard broker then it will automatically starts the apply as it controls the apply. If not probably a shell script to start the standby database followed by this line can help.
    alter database recover managed standby database using current logfile disconnect from session;
    HTH,
    Pradeep

  • Grid control agent and data guard in mount mode

    Hello,
    I would like to know how you manage your data guards when you do not have the license for active data guard with the grid control agents. The standby database is in mount mode, so the agents cannot query the database.
    What do you guys do in such cases? Remove the agent? Or wait till a switchover?

    Check this out with a mounted database
    [lo***p02].oracle:/home/oracle > sqlplus dbsnmp
    SQL*Plus: Release 11.2.0.3.0 Production on Mon Jun 4 15:52:11 2012
    Copyright (c) 1982, 2011, Oracle.  All rights reserved.
    Enter password:
    ERROR:
    ORA-01033: ORACLE initialization or shutdown in progress
    Process ID: 0
    Session ID: 0 Serial number: 0It cannot connect.
    And then
    [lo****p02].oracle:/home/oracle > sqlplus / as sysdba
    SQL*Plus: Release 11.2.0.3.0 Production on Mon Jun 4 15:57:49 2012
    Copyright (c) 1982, 2011, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
    Data Mining and Real Application Testing options
    SQL> select open_mode from v$database;
    OPEN_MODE
    MOUNTED

  • How do i find dataloss in Data Guard?

    We are using redo log, in async mode, following is our setting.
    SERVICE=xxx_sb max_failure=100 reopen=600 LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=xxx_sb
    When i query V$managed_Standby for delay_mins, its always zero. Meaning there is no delay in copying a log. I have 2 questions..
    1. How can i communicate to business that in worst case we will lose x Mintues of data? Its an OLTP, where the transactions are less then 2mins. Also during the night there are some batch jobs where the transactions are 60mins longs.
    2. Most of the time during peak hours there is a log switch happening every 10-15mins but during non-peak it may not happen for a long period of time, is it advisable to set ARCHIVE_LAG_TIME to 10 mins? as im not using archiver , we are using log writer for standby.
    any explanation or point to documentation would be appreciated,
    Thanks,

    Production databases who are running with fully fined configured Data Guard, do'nt have any dataloss because failover operation ensures zero data loss if dataguard is configured with maximum protection mode or maximum availability mode at failover time.
    http://www.dbazone.com/docs/oracle_10gDataGuard_overview.pdf
    The above pdf is oracle white paper which too confirmed it.
    LGWR SYNC AFFIRM in Oracle Data Guard is used for zero data loss. How does one ensure zero data loss? Well, the redo block generated at the primary has to reach the standby across the network (that's where the SYNC part comes in - i.e. it is a synchronous network call), and then the block has to be written on disk on the standby (that's where the AFFIRM part comes in) - typically on a standby redo log.
    Can you have LGWR SYNC NOAFFIRM? Yes sure. Then you will have synchronous network transport, but the only thing you are guaranteed is that the block has reached the remote standby's memory. It has not been written on to disk yet. So not really a zero data loss solution (e.g. what if the standby instance crashes before the disk I/O).
    To sum up -> LGWR SYNC AFFIRM means primary transaction commits are waiting for ntk I/O + disk I/O acks. LGWR SYNC NOAFFIRM means primary transaction commits are waiting for ntk I/O only.
    Source:http://www.dbasupport.com/forums/showthread.php?t=54467
    HTH
    Girish Sharma

Maybe you are looking for

  • I rented a movie on iTunes from my Mac mini but I can't find it anymore.

    I was too tired to watch it so I turned off my computer and went to bed. The next morning I wanted to watch the movie but couldn't find it, the movie finished downloading the night before. Any ideas of where it might be?

  • How do I use multiple messages with CAN CREATE MESSAGE?

    I'm an old hand at DAQ, but new to CAN. I need to configure the CAN interface without using MAX or a DBC file directly (because i want the user to configure EVERYTHING in one place, and MAX doesn't handle my other channels). I can provide the message

  • Regarding Table statistics.

    Hi All, I have checked last_analyzed for tables which are not current.Cud u plz guide me how to gather stats with detailed options? for both 9i and 10g database tables as follows. 1.)For 9i database tables, OWNER OBJECT_NAME DCSDBA INVENTORY_TRANSACT

  • VIBER wont open on my phone!!

    Hi, i have a BlackBerry  8520 model: RCG41GW and viber wont open since i downloaded the new version yesterday. i have uninstalled and reinstalled it numerous times but it still wont open! please help! i use it all the time!

  • Can I make a video with Powerbook Pro

    can I make a video using camera on Powerbook Pro