Performing Switchover  Failover

Most respected experts,
i want to perform switchover, failover scenarios in my test dataguard environment.
i want to know that
1. What parameters do i need to change in parameter files, NETWORK configuration files ?
2. Moreover my standby db in which mode ( (i) maximum performance (ii) maximum protection (iii) maximum availability
i mean does this mode affect our failover , switchover operation.
3.Is there any other important things which we have to follow to perform failover , switchover
plz reply
regards

Rehan Tayyab wrote:
1. What parameters do i need to change in parameter files, NETWORK configuration files ?
You can configure network to communicate with primary site, depending on database role (using services, and triggers on db role change )
2. Moreover my standby db in which mode ( (i) maximum performance (ii) maximum protection (iii) maximum availability
i mean does this mode affect our failover , switchover operation.
Switchover/failover in Maximum Protection mode will hung your env unless you set log_archive_dest_state_n pointing to your old primary to DEFER
3.Is there any other important things which we have to follow to perform failover , switchover
One of the most important - put Primary into Flashback mode before failover. Without Flashback you need to recreate Primary after failover.

Similar Messages

  • Primary and standby init file (switchove/failover)

    I have created standby database, its working fine, and logs are copying and being applied. I have successfully opened standby database in read only mode.
    Now I want to perform switchover and failover, please check parameters in init file that I have added.
    Primary database init file :
    *.control_files='D:\oracle\product\10.2.0/oradata/primary/\control01.ctl','D:\oracle\product\10.2.0/oradata/primary/\control02.ctl','D:\oracle\product\10.2.0/oradata/primary/\control03.ctl'
    *.db_name='primary'
    *.db_unique_name='PRIMARY'
    *.dispatchers='(PROTOCOL=TCP) (SERVICE=primaryXDB)'
    *.log_archive_dest_1='location=D:\oracle\product\10.2.0\oradata\archive'
    *.log_archive_dest_state_1=ENABLE
    *.log_archive_dest_state_2=ENABLE
    *.log_archive_dest_2='SERVICE=standby LGWR ASYNC'
    *.log_archive_format='arc_%s_%t_%r.arc'
    *.fal_client='PRIMARY'
    *.fal_server='STANDBY'
    standby database init file :
    *.control_files='D:\oracle\product\10.2.0/oradata/primary/STANDBY_CONTROL.CTL'
    *.db_name='primary'
    *.db_unique_name='STANDBY'
    *.dispatchers='(PROTOCOL=TCP) (SERVICE=primaryXDB)'
    *.log_archive_dest_1='location=D:\oracle\product\10.2.0\oradata\archive'
    *.log_archive_format='arc_%s_%t_%r.arc'
    *.log_archive_dest_state_2=ENABLE
    *.fal_server='PRIMARY'
    *.fal_client='STANDBY'
    *.standby_file_management=auto
    Please let me know if I need to add/modify any parameter to perform switchover & failover operations.
    Regards.

    Have a look on the below links:
    http://www.orafaq.com/wiki/DataGuard_implementation_for_Oracle_10gR2_
    http://emrebaransel.blogspot.com/2008/08/dataguard-switchover-guide-physical09.html_

  • Dataguard switchover & failover testing

    i want to build new physical & logical dbs just for testing & learning, as per menalink notes 736863.1 & 748595.1
    wondering that configuration will let me test switchover & failover testing?

    Hi there,
    Those notes help you to build a proper data guard configuration in both Physical and Logical Standby enviromnment.
    I would also recommend to check:
    - [The Oracle online documentation|http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/toc.htm]
    - [Oracle Maximum Availability Architecture site on OTN|http://www.oracle.com/technology/deploy/availability/htdocs/maa.htm]
    These documents can provide a big picture of Data Guard configurations from different approaches as well as I would also recommend to learn and practice more advanced techniques and features such as Flasback database, Fast-start-failover or Cascaded destinations.
    Hope this helps,
    Good luck and regards,
    Jozsef

  • Switchover/Failover of Database

    HI guys
    Have implemented 10g dataguard -> all ok.
    Problem I have is if I succcessfully switchover, the standby listener still retains the active 'service_name' and the clients when connecting get ORA-01033: ORACLE initialization or shutdown in progress.
    I tried creating trigger to update service_name as per DOCO eg Note:316740.1 and http://www.lazydba.com/oracle/0__147296.html
    This doesn't seem to work. The services on both the new PROD and STDBY are still both registering the global service name with each listener - so hit the same ORA-01033: ORACLE initialization or shutdown in progress.
    Whats the normal procedure (in detail please) of allowing applications to connect to new production server after switchover/failover ?? [Justin ?]
    eg
    1) DNS
    2) SQLNET
    thanks

    HAs anyone else seen this issue - obviously I can shutdown the listener but thats not good for the broker communications - in 9i you could use a trigger - the doco says the same in 10g -> but doesn't seem to work ??
    Have raised SR also.

  • Problems While Performing Switchover Oracle 11g

    Hi All,
    I am using Oracle 11.2.0.1.0 version.
    I have a Primary-Physical Standby setup(Test Environment). I am performing a switchover between them.
    I have followed the below steps:-
    ON Primary:-
    SQL> select switchover_status from v$database;
    SWITCHOVER_STATUS
    TO STANDBY
    SQL> alter database commit to switchover to physical standby;
    Database altered.
    SQL> shutdown immediate;
    ORA-01507: database not mounted
    ORACLE instance shut down.
    SQL> startup mount;
    ORACLE instance started.
    Total System Global Area 2054373376 bytes
    Fixed Size 2214856 bytes
    Variable Size 1174406200 bytes
    Database Buffers 872415232 bytes
    Redo Buffers 5337088 bytes
    Database mounted.
    SQL> select switchover_status from v$database;
    SWITCHOVER_STATUS
    TO PRIMARY
    SQL> select database_role from v$database;
    DATABASE_ROLE
    PHYSICAL STANDBY
    On the other side I am trying to bring up the phyical standby database to primary:-
    First I checked the switchover_status on standby database.
    SQL> select switchover_status from v$database;
    SWITCHOVER_STATUS
    SWITCHOVER PENDING
    SQL> alter database commit to switchover to primary;
    alter database commit to switchover to primary
    ERROR at line 1:
    ORA-16139: media recovery required
    Now I am in a situation where I have converted my primary to physical standby but physical standby-Primary is not happening..
    Please advice me on this. I have checked the archive log status for both the boxes before switchover and they were in sync....
    Your suggestions are required here.
    Regards,
    Arijit

    Hi ,
    With above approch there could be minor transaction loss & Need to rebuild stby , but you can make standby DB up as primary.
    With current senario , check if suggested sequence is generated at primary & try to register it on stby
    Also check if FAL_* is getting resolved
    It looks sync issue you should have rebooted both DB's before starting switchover as a best practise along with 2/3 switches
    Thanks,
    Ajay More
    http://moreajays.blogspot.com

  • Consideration of DBFS when doing a switchover/failover to standby

    Can anyone let me know if i can configure the DBFS separated from the Production database with a dataguard standby to reduce the impact on my production database?

    Hello;
    Yes. To me a failover is a last resort. Ask yourself a few questions:
    Does my business require 100 percent uptime?
    How long will the Primary not be available?
    How long and how will I recover from the failover?
    Can I do a switchover instead?
    Every year we power down the main server room for a weekend. What I do is a switchover and then a switch back after the old primary comes up as the standby and catches up.
    Here are my failover test notes:
    http://www.visi.com/~mseberg/data_guard/Data_Guard_Failover_Test_using_SQL.pdf
    This may help too:
    Rolling a Standby Forward using an RMAN Incremental Backup To Fix The Nologging Changes (Doc ID 958181.1)
    Best Regards
    mseberg

  • Switchover/Failover to physical standby

    Hi All,
    I have dataguard configured between Primary and physical standby. I would like to know how can i switch over to physical stanby when the network link is down between primary and physical standby.
    I mean what steps I can follow to make physical standby to primary and primary to staandby even when the network connectivity is down between them.
    Regards,
    Raj

    user12263161 wrote:
    Hi All,
    I have dataguard configured between Primary and physical standby. I would like to know how can i switch over to physical stanby when the network link is down between primary and physical standby. You can only failover in this case, but, if you have flashback on, you can reinstate ex-Primary to standby like described [url http://nikolayivankin.wordpress.com/2012/02/14/dgmgrl-reinstating-ex-primary-to-standby-by-flashback-database-feature/]here

  • CF8 Instance Clustering: for performance or failover?

    In CF8 multi-server you can duplicate an instance (multiple
    times if you desire) and link them all together as a cluster. Is
    this purely for fail-over or is there also a performance increase?
    If it is for fail-over, how would you know if one of your cluster
    members has failed in some way?
    Thanks for any help!
    Steve

    It is for both fail-over and scalability. All cluster nodes
    can actively participate in sharing the traffic load.
    Read more here:
    http://livedocs.adobe.com/coldfusion/7/htmldocs/00001774.htm

  • Steps for data guard RAC primary RAC standby

    Hi,
    I have some doubt in configuring data guard for rac DR to rac primary.
    1) In RAC DR, physical standby will be in RAC before starting data guard for RAC Primary , right?.
    2) While configuring RAC DR , should one node be down in standby?.
    3) After creating the auxiliary database in standby, i mean restoring the rman backup from staging directory in DR,
    Shall we have to register the services(database,instance,asm,etc..) to CRS(OCR)?. If yes ,Why?.
    4) After DR configure over , Shall i shut/down one node?. Should all the nodes in DR be in up , while applying logs to
    standby ?.
    If anybody have made the setup and have the prepared document , requesting you to share with me.
    Thank you very much,
    Sunand

    Hi Sunand,
    Please follow the following My Oracle Support (MOS) Document ID:
    MAA - Creating a RAC Physical Standby for a RAC Primary [ID 380449.1]
    For further details, see the referred documents in previous post. Try practicing on VMWare because it will give you the flexibility for creating snapshots to save your work. Please see the answers for your question below:
    Q1. In RAC DR, physical standby will be in RAC before starting data guard for RAC Primary , right?.
    Answer: Yes, this is recommend but not mandatory. You can add a second node later on.
    Q2. While configuring RAC DR , should one node be down in standby?
    Answer: Yes, there are some database configuration commands that should be run in exclusive mode. You can start the remaining instance(s) after DB creation. Do not forget to set CLUSTER_DATABASE parameter to TRUE. Also, all instances except one should be close while performing switchover/failover.
    Q3. After creating the auxiliary database in standby, i mean restoring the rman backup from staging directory in DR, Shall we have to register the services(database,instance,asm,etc..) to CRS(OCR)?. If yes ,Why?
    Answer: Yes, this is recommended for RAC configuration to take advantage of high availability services.
    Q4. After DR configure over , Shall i shut/down one node?. Should all the nodes in DR be in up , while applying logs to
    standby ?
    Answer: You can start up all the instances after DR creation. In this case if your one node goes down log apply services will continue to apply changes in DR.
    Hope, this helps to clear your questions.
    Regards,
    Shahid

  • Online redo logs on a physical standby?

    A question on REDO logs on physical standby databases. (10.2.0.4 db on Windows 32bit)
    My PRIMARY has 3 ONLINE REDO groups, 2 members each, in ..ORADATA\LOCP10G
    My PHYSICAL STANDBY has 4 STANDBY REDO groups, 2 members each, in ..ORADATA\SBY10G
    I have shipping occurring from the primary in LGWR, ASYNC mode - max availablility
    However I notice the STANDBY also has ONLINE REDO logs, same as the PRIMARY, in the ..ORADATA\SBY10G folder
    According to the 10g Dataguard docs, section 2.5.1:
    "Physical standby databases do not use an online redo log, because physical standby databases are not opened for read/write I/O."
    I have tried to drop these on the STANDBY when not in apply mode, but I get the following:
    SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;
    Database altered.
    SQL> ALTER DATABASE DROP LOGFILE GROUP 3;
    ALTER DATABASE DROP LOGFILE GROUP 3
    ERROR at line 1:
    ORA-01275: Operation DROP LOGFILE is not allowed if standby file management is
    automatic.
    I also deleted them while the STANDBY instance was idle, but it recreated them when moved to MOUNT mode.
    So my question is why is my PHYSICAL recreating and using these, if the docs say the shouldn't?
    I saw the same error mentioned here: prob. with DataGuard
    Is this a case of the STANDBY needing at least a notion of where the REDO logs will need to be should a failover occur, and if the files are already there, the standby database CONTROLFILE will hold onto them, as they are not doing any harm anyway?
    Or, is this a prooduct of having management=AUTOMATIC - i.e. the database will create these 'automatically'
    Ta
    bt

    According to the 10g Dataguard docs, section 2.5.1:
    "Physical standby databases do not use an online redo log, because physical standby databases are not opened for read/write I/O."yes, those are used when database is open.
    You should not perform any changes in Standby. Even if those exist online redo log files, whats the difficulty you have seen?
    These will be used whenever you performed switchover/failover. So nothing to worry on this.
    Is this a case of the STANDBY needing at least a notion of where the REDO logs will need to be should a failover occur, and if the files are already there, the standby database CONTROLFILE will hold onto them, as they are not doing any harm anyway?Then oracle functionality itself harm if you think in that way. When they not used in open then what the harm with that?
    Standby_File_management --> for example if you add any datafile, those information will be in archives/redos once they applied on standby those will be added automatically when it is set to AUTO if its manual, then it creates a unnamed file in $ORACLE_HOME/dbs location later you have to rename that file and recovery need to perform .
    check this http://docs.oracle.com/cd/B14117_01/server.101/b10755/initparams206.htm
    HTH.

  • Asynch Hot Log mode does not use hot (online) redo logs

    Version 10.2
    We have just set up a test of the Asynch Hot Log replication according to Chap 16 of the Data Warehousing guide.
    We can see data put into the change table. However, it seems that data gets written to the change table ONLY after a log switch. This would suggest that the capture process is not reading the online logs, but is only reading the archived logs.
    I don't think this can be correct behavior because the docs indicate that Oracle "seamlessly switches" between the online and the archived redo logs.
    Is there a flag or something to set to cause the online logs to be available to the capture process? Or is this a bug? Has anyone else observed this behavior?
    Thanks for any insight.
    -- Chris Curzon

    According to the 10g Dataguard docs, section 2.5.1:
    "Physical standby databases do not use an online redo log, because physical standby databases are not opened for read/write I/O."yes, those are used when database is open.
    You should not perform any changes in Standby. Even if those exist online redo log files, whats the difficulty you have seen?
    These will be used whenever you performed switchover/failover. So nothing to worry on this.
    Is this a case of the STANDBY needing at least a notion of where the REDO logs will need to be should a failover occur, and if the files are already there, the standby database CONTROLFILE will hold onto them, as they are not doing any harm anyway?Then oracle functionality itself harm if you think in that way. When they not used in open then what the harm with that?
    Standby_File_management --> for example if you add any datafile, those information will be in archives/redos once they applied on standby those will be added automatically when it is set to AUTO if its manual, then it creates a unnamed file in $ORACLE_HOME/dbs location later you have to rename that file and recovery need to perform .
    check this http://docs.oracle.com/cd/B14117_01/server.101/b10755/initparams206.htm
    HTH.

  • Streams + DG

    Good day.
    I would like to make configuration as
    Primary ------- DG ------> Ph.Standby
    |
    |
    |
    |-----------> Oracle Streams -----> Replication Server(downstream)
    Primary -> Standby is already finished. Replication Server is not a part of HA, and doesn't take part in switchover/failover.
    How to configure DG configuration?

    Say we have a Oracle 10g DataGuard setup (PRIM and one STDBY). There is also another database, say THIRD. Oracle Streams has been configured on the PRIM to propagate data to THIRD database.
    Now suppose that the PRIM goes down (for whatever reason) and STDBY becomes primary.
    Q1: How would Oracle Streams behave? Would it also switch/fail-over to STDBY (which is primary now) OR we'll need to reconfigure Streams? Well, What ever the data/information in Primary its an exact image copy in standby.
    But i never went through as per your question.
    Even if you perform switchover/failover, you definitely need to do changes in configurations like TNS services. Because DR locations changed.
    Q2: And what will happen in case if the Oracle Streams config was bi-directional?
    Q3: And what if it was Oracle Streams configuration with downstream capture? For better understanding you can refer these links. Mentioned regarding bi-directional replication too.
    http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:14672061404704
    http://www.oracle.com/technetwork/database/features/availability/298772-132349.pdf

  • Perform Forced Manual Failover of Availability Group (SQL Server 2012) and WSFC (Windows Server Failover Cluster)

    I have a scenario with the three nodes with server 2012 standard, each running an instance of SQL Server 2012 enterprise, participate in a
    single Windows Server Fail-over Cluster (WSFC) that spans two data centers.
    If the nodes in the primary data center are unavailable due to data center outage. Then how I can able to access node in the WSFC (Windows Server Fail-over Cluster) in the secondary disaster recovery data center automatically with some script.
    I want to write script that can be able to check primary data center by pinging some IP after every 5 or 10 minutes.
    If that IP is unable to respond then script can be able to Perform Forced Manual Fail-over of Availability Group (SQL Server) and WSFC (Windows Server Fail-over Cluster)
    Can you please guide me for script writing for automatic fail-over in case of primary data-center outage?

    +1 to David's comment. I would not suggest to run a script automatically. During such failover you might have data loss and decision has to be made with business owners during disaster.
    During such situation, you need to start cluster service in force quorum mode (/fq switch) and then perform manual failover of AG to DR site.
    Balmukund Lakhani
    Please mark solved if I've answered your question, vote for it as helpful to help other users find a solution quicker
    This posting is provided "AS IS" with no warranties, and confers no rights.
    My Blog |
    Team Blog | @Twitter
    | Facebook
    Author: SQL Server 2012 AlwaysOn -
    Paperback, Kindle

  • During switchover operation in IE shows error "503 Service Unavailable".

    Hi,
    I have installed Oracle Enterprise Manager 10g Release 2 (10.2.0.2) on Windows 2003 server service pack 2.Everything works fine, but when I go for switchover/failover operation firstly error comes as “500 Internal Server Error” and then after refreshing the page “503 Service Unavailable”. Following are the logs.
    I applied the patch Grid Control Release 3 (10.2.0.3.0), but still same error occurs.
    Both database status is up and EM console home shows 100% up.
    Some Collected errors from emoms.trc
    2007-11-03 12:24:35,453 [Thread-25] ERROR em.dataguard updateDGStatus.453 - ConfigBean:updateDGStatus(): Exception java.lang.NullPointerException
    2007-11-03 12:25:01,703 [Thread-26] ERROR em.dataguard updateDGStatus.453 - ConfigBean:updateDGStatus(): Exception java.lang.NullPointerException
    2007-11-03 12:25:11,156 [Thread-27] ERROR em.dataguard updateDGStatus.453 - ConfigBean:updateDGStatus(): Exception java.lang.NullPointerException
    2007-11-03 12:25:17,906 [EMUI_12_25_17_/console/targets] ERROR jdk.NLSUtil getFormattedDateWithTZ.407 - Invalid region name format: GMT+05:30
    2007-11-03 12:25:17,906 [EMUI_12_25_17_/console/targets] ERROR jdk.NLSUtil getFormattedDateWithTZ.407 - Invalid region name format: GMT+05:30
    2007-11-03 12:25:19,343 [EMUI_12_25_19_/console/home] ERROR jdk.NLSUtil getFormattedDateWithTZ.407 - Invalid region name format: GMT+05:30
    2007-11-03 12:30:16,562 [Thread-34] ERROR db.rac getEMDFromRep.806 - Closed Connection
    java.sql.SQLException: Closed Connection
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:137)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:174)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:239)
         at oracle.jdbc.driver.PhysicalConnection.prepareStatement(PhysicalConnection.java:928)
         at oracle.jdbc.driver.PhysicalConnection.prepareStatement(PhysicalConnection.java:824)
         at oracle.jdbc.OracleConnectionWrapper.prepareStatement(OracleConnectionWrapper.java:72)
         at oracle.sysman.util.jdbc.ConnectionWrapper.prepareStatement(ConnectionWrapper.java:467)
         at oracle.sysman.db.rac.util.ClusterUtil.getEMDFromRep(ClusterUtil.java:795)
         at oracle.sysman.db.rac.util.ClusterUtil.getEMD(ClusterUtil.java:888)
         at oracle.sysman.emo.util.DBVerify.getDBProperties(DBVerify.java:2454)
         at oracle.sysman.emo.util.DBStateUtil.doDatabaseShutdown(DBStateUtil.java:703)
         at oracle.sysman.db.dg.util.RemoteCtrl.shutdownDB(RemoteCtrl.java:596)
         at oracle.sysman.db.dg.util.ClientOperation.doClientOp(ClientOperation.java:368)
         at oracle.sysman.db.dg.util.ClientOperation$BounceThread.run(ClientOperation.java:215)
         at java.lang.Thread.run(Thread.java:534)
    2007-11-03 12:30:16,562 [Thread-34] ERROR emo.util verifyDBProperties.2073 - DBStateUtil.verifyDBProperties: EMD URL was null or empty.
    2007-11-03 12:30:23,265 [EMUI_12_30_23_/console/database/dataguard] ERROR em.dataguard onEvent.1233 - Data Guard: found errors during role change: Unable to retrieve the URL from repository. Check the specified target name and its corresponding target type. Other possible causes: remote EMD is not pointing to the web server, or remote target information has not been loaded.
    2007-11-03 12:30:41,328 [ApplicationServerThread-5] ERROR app.SessionObjectManager sessionDestroyed.128 - java.sql.SQLException: ORA-00604: error occurred at recursive SQL level 1
    ORA-01219: database not open: queries allowed on fixed tables/views only
    2007-11-03 12:30:42,968 [PingHeartBeatRecorder] WARN emdrep.pingHBRecorder resetConnection.305 - SQLException caught while resetting connection ORA-00604: error occurred at recursive SQL level 1
    ORA-01219: database not open: queries allowed on fixed tables/views only
    2007-11-03 12:30:43,093 [Job Dispatcher Thread] ERROR em.jobs mainTask.2346 - encountered error:
    java.sql.SQLException: ORA-01092: ORACLE instance terminated. Disconnection forced
    2007-11-03 12:30:44,046 [SeverityLoad https://ashok:3872/emd/main/] ERROR eml.XMLLoader markFileAsError.854 - Error repeated 2 times: ERROR-400|ORA-00604: error occurred at recursive SQL level 1
    ORA-01219: database not open: queries allowed on fixed tables/views only
    2007-11-03 12:30:46,796 [AJPRequestHandler-ApplicationServerThread-6] ERROR eml.OMSHandshake processFailure.806 - OMSHandshake failed.(AGENT URL = https://ashok:3872/emd/main/)(ERROR = INTERNAL_ERROR)(CAUSE =java.sql.SQLException: ORA-00604: error occurred at recursive SQL level 1
    ORA-01219: database not open: queries allowed on fixed tables/views only
    2007-11-03 12:33:29,843 [AJPRequestHandler-ApplicationServerThread-6] ERROR conn.ConnectionService verifyRepositoryEx.817 - Invalid Connection Pool. ERROR = ORA-00604: error occurred at recursive SQL level 1
    ORA-01219: database not open: queries allowed on fixed tables/views only
    Regards,
    S Reddy

    Hi,
    Thanks for your reply.
    Steps Performed while configuring data guard.
    - Install Oracle Enterprise Manager 10 g with new database option on windows server 2003 enterprise edition service pack 2.
    - Applied patch of Oracle database 10g Release 2 (10.2.0.3)
    - Applied patch of Oracle Enterprise Manager 10g Grid Control Release 3 (10.2.0.3.0)
    Primary Database=GOOGLE
    Secondary Database=YAHOO
    Run the following commands in CMD.
    Microsoft Windows [Version 5.2.3790]
    (C) Copyright 1985-2003 Microsoft Corp.
    C:\Documents and Settings\oracle>set oracle_home=C:\Oracle_NET\db10g
    C:\Documents and Settings\oracle>set oracle_sid=GOOGLE
    C:\Documents and Settings\oracle>sqlplus /nolog
    SQL*Plus: Release 10.1.0.4.2 - Production on Thu Nov 8 09:44:58 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    SQL> CONNECT SYS/infodb1 as sysdba
    Connected to an idle instance.
    SQL> startup;
    ORACLE instance started.
    Total System Global Area 536870912 bytes
    Fixed Size 790068 bytes
    Variable Size 162525644 bytes
    Database Buffers 373293056 bytes
    Redo Buffers 262144 bytes
    Database mounted.
    Database opened.
    SQL> show parameters unique;
    NAME TYPE VALUE
    db_unique_name string GOOGLE
    SQL> select log_mode from v$database;
    LOG_MODE
    NOARCHIVELOG
    SQL> create pfile from spfile;
    File created.
    SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.4.0 - Pr
    oduction
    With the Partitioning, OLAP and Data Mining options
    C:\Documents and Settings\oracle>sqlplus /nolog
    SQL*Plus: Release 10.1.0.4.2 - Production on Thu Nov 8 10:38:31 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    SQL> CONNECT SYS/infodb1 as sysdba
    Connected to an idle instance.
    SQL> [b]STARTUP NOMOUNT PFILE=C:\Oracle_NET\db10g\database\INITgoogle.ORA;
    ORACLE instance started.
    Total System Global Area 536870912 bytes
    Fixed Size 790068 bytes
    Variable Size 162525644 bytes
    Database Buffers 373293056 bytes
    Redo Buffers 262144 bytes
    SQL> create spfile from pfile;
    File created.
    SQL> shutdown immediate;
    ORA-01507: database not mounted
    ORACLE instance shut down.
    SQL> exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.4.0 - Pr
    oduction
    With the Partitioning, OLAP and Data Mining options
    C:\Documents and Settings\oracle>sqlplus /nolog
    SQL*Plus: Release 10.1.0.4.2 - Production on Thu Nov 8 10:41:32 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    SQL> CONNECT SYS/infodb1 as sysdba
    Connected to an idle instance.
    SQL> STARTUP MOUNT;
    ORACLE instance started.
    Total System Global Area 536870912 bytes
    Fixed Size 790068 bytes
    Variable Size 162525644 bytes
    Database Buffers 373293056 bytes
    Redo Buffers 262144 bytes
    Database mounted.
    SQL> alter database archivelog;
    Database altered.
    SQL> alter database force logging;
    Database altered.
    SQL> select log_mode from v$database;
    LOG_MODE
    ARCHIVELOG
    SQL> exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.4.0 - Pr
    oduction
    With the Partitioning, OLAP and Data Mining options
    Then I login to site https://ashok:1159/em by using SYSMAN account which is the console for em.
    -     Then I created standby database through.<TARGETS-DATABASES-GOOGLE- MAINTENANCE -DATA GUARD- SET UP AND MANAGE-ADD STANDBY DATABASE- CREATE A NEW PHYSICAL STANDBY DATABASE>
    -     Then I verify the configuration it shows the following log.
    Initializing
    Connected to instance ASHOK:yahoo
    Starting alert log monitor...
    Updating Data Guard link on database homepage...
    Data Protection Settings:
    Protection mode : Maximum Performance
    Log Transport Mode settings:
    GOOGLE: ARCH
    YAHOO: ARCH
    Checking standby redo log files.....OK
    Checking Data Guard status
    GOOGLE : Normal
    YAHOO : Normal
    Request ID: 2: 1: 638446177, Operation: CTL_GET_STATUS
    Checking Inconsistent Properties
    Checking agent status
    GOOGLE ... WARNING: No credentials available for target ASHOK
    Attempting agent ping ... OK
    YAHOO ... WARNING: No credentials available for target ASHOK
    Attempting agent ping ... OK
    Switching log file 90.Done
    Checking applied log on GOOGLE...OK
    Processing completed.
    Following are the files:
    Additional parameters in[b] INITgoogle.ora
    *.db_unique_name='GOOGLE
    *.LOG_ARCHIVE_CONFIG='DG_CONFIG=(GOOGLE,YAHOO)'
    *.log_archive_dest_1='location=C:\Oracle_NET\ALD_DEST_1','VALID_FOR=(ALL_LOGFILES,ALL_ROLES)','mandatory','arch','DB_UNIQUE_NAME=GOOGLE','REOPEN=30'
    *.log_archive_dest_2='SERVICE=YAHOO','LGWR','ASYNC','VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE)','DB_UNIQUE_NAME=YAHOO'
    *.LOG_ARCHIVE_DEST_STATE_1=ENABLE
    *.LOG_ARCHIVE_DEST_STATE_2=ENABLE
    *.REMOTE_LOGIN_PASSWORDFILE=EXCLUSIVE
    *.LOG_ARCHIVE_FORMAT=%t_%s_%r.arc
    *.LOG_ARCHIVE_MAX_PROCESSES=10
    *.fal_server=YAHOO
    *.fal_client=GOOGLE
    *.standby_file_management=auto
    *.db_file_name_convert='YAHOO/YAHOO','GOOGLE/GOOGLE'
    *.log_file_name_convert='C:\Oracle_NET\OD\YAHOO\YAHOO','C:\Oracle_NET\OD\GOOGLE\GOOGLE'
    listener.ora
    # listener50312.ora Network Configuration File: C:\DOCUME~1\oracle\LOCALS~1\Temp\listener50312.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = GOOGLE)
    (ORACLE_HOME = C:\Oracle_NET\db10g)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = GOOGLE_DGMGRL)
    (ORACLE_HOME = C:\Oracle_NET\db10g)
    (SID_NAME = GOOGLE)
    (SID_DESC =
    (GLOBAL_DBNAME = YAHOO_DGMGRL)
    (ORACLE_HOME = C:\Oracle_NET\db10g)
    (SID_NAME = YAHOO)
    (SID_DESC =
    (GLOBAL_DBNAME = YAHOO_DGMGRL)
    (ORACLE_HOME = C:\Oracle_NET\db10g)
    (SID_NAME = YAHOO)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = ashok)(PORT = 1521))
    Tnsnames.ora
    # tnsnames.ora Network Configuration File: C:\Oracle_NET\db10g\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    GOOGLE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = ashok)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = GOOGLE)
    YAHOO =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = ashok)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = YAHOO)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    -     Then Both databases are running
    -     It showing the data guard home page.
    -     Then I go for switchover operation the error occurs.

  • Question about broker Switchover command

    Hi guys
    i have one question about switchover cmd . For example, i have 1 primary database called stdby3 and 2 standby databases that are called stdby1 and stdby2. When i performed switchover cmd to stdby2 standby database, why the old primary database stdby3 could not become new standby database after i performed a switchover; furthermore the new primary and standby databases are not opened after the switchover process is completed
    output screen:
    DGMGRL> show configuration;
    Configuration
    Name: stdby1
    Enabled: YES
    Protection Mode: MaxProtection
    Databases:
    stdby3 - Primary database
    stdby1 - Physical standby database
    stdby2 - Physical standby database
    Fast-Start Failover: DISABLED
    Current status for "stdby1":
    SUCCESS
    DGMGRL> SWITCHOVER TO stdby2
    Performing switchover NOW, please wait...
    Operation requires shutdown of instance "stdby3" on database "stdby3"
    Shutting down instance "stdby3"...
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.
    Operation requires shutdown of instance "stdby2" on database "stdby2"
    Shutting down instance "stdby2"...
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.
    Operation requires startup of instance "stdby3" on database "stdby3"
    Starting instance "stdby3"...
    Unable to connect to database
    ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    Failed.
    You are no longer connected to ORACLE
    Please connect again.
    Unable to start instance "stdby3"
    You must start instance "stdby3" manually
    Operation requires startup of instance "stdby2" on database "stdby2"
    You must start instance "stdby2" manually
    Switchover succeeded, new primary is "stdby2"
    DGMGRL> show configuration;
    Error:
    ORA-01034: ORACLE not available
    Process ID: 0
    Session ID: 130 Serial number: 45
    DGMGRL> exit;
    oracle@localhost ~$ dgmgrl
    DGMGRL for Linux: Version 11.1.0.6.0 - Production
    Copyright (c) 2000, 2005, Oracle. All rights reserved.
    Welcome to DGMGRL, type "help" for information.
    DGMGRL> connect sys
    Password:
    Connected.
    DGMGRL> show configuration;
    Error:
    ORA-01034: ORACLE not available
    Process ID: 0
    Session ID: 0 Serial number: 0
    DGMGRL> connect sys@stdby3
    Password:
    Connected.
    DGMGRL> show configuration;
    Error:
    ORA-01034: ORACLE not available
    Process ID: 0
    Session ID: 0 Serial number: 0
    DGMGRL>
    Edited by: user6981287 on Jan 6, 2010 9:27 AM

    this is my configuration
    DGMGRL> show configuration
    Configuration
    Name: matrix
    Enabled: YES
    Protection Mode: MaxPerformance
    Databases:
    stdby1 - Primary database
    stdby2 - Physical standby database
    stdby3 - Physical standby database
    Fast-Start Failover: DISABLED
    Current status for "matrix":
    SUCCESS
    --- this is my first successful switchover -----
    DGMGRL> switchover to stdby2
    Performing switchover NOW, please wait...
    New primary database "stdby2" is opening...
    Operation requires shutdown of instance "stdby1" on database "stdby1"
    Shutting down instance "stdby1"...
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.
    Operation requires startup of instance "stdby1" on database "stdby1"
    Starting instance "stdby1"...
    ORACLE instance started.
    Database mounted.
    Switchover succeeded, new primary is "stdby2"
    -------------------this is my second switchover -------------
    DGMGRL> switchover to stdby1
    Performing switchover NOW, please wait...
    New primary database "stdby1" is opening...
    Operation requires shutdown of instance "stdby2" on database "stdby2"
    Shutting down instance "stdby2"...
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.
    Operation requires startup of instance "stdby2" on database "stdby2"
    Starting instance "stdby2"...
    Unable to connect to database
    ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    Failed.
    You are no longer connected to ORACLE
    Please connect again.
    Unable to start instance "stdby2"
    You must start instance "stdby2" manually
    Switchover succeeded, new primary is "stdby1"
    DGMGRL>
    Edited by: user6981287 on Jan 7, 2010 12:57 AM
    Edited by: user6981287 on Jan 7, 2010 1:00 AM

Maybe you are looking for

  • Problem in query

    hi i have a table with the column emp_no,sr_name,supervisor_name,supervisor_id. all fields contains values except supervisor_id. i ned to write the code to fill the supervisor_id. the logic is ,check the supervisor name with sr_name, if the superviso

  • Mac Mini Purchase Question HDTV

    Hello, I want to buy a mac mini for an entertainment computer. I think the hdmi out will be great. All I want to do is watch movies through my samsung 55" HDTV. I am wondering if the basic model will be enough or should I get a suped up model. If I n

  • LWF getting deducted every month

    Hi, I am facing an issue in LWF. I have done the necessary configurations mentioned below V_T7INU1: Univ. Type: TLMH Univ. Grp: 11 Univ. Grp Text: LWF MAHARASHTRA Region: 13 Start date: 01/04/2010 End date: 31/12/9999 V_T7INU3: Univ. Type: TLMH Regio

  • Post query and lov problem

    I wonder if anyone can help me with this problem. I have a non database text item which holds a school name dependent on the school id. I have a post-query trigger to populate the school_name field so that the school_name is shown immediately. I also

  • How to delete NDWS- Activities.

    Hi All, I have a problem with deleting activities from NWDS.. I have created project on ECM compnent of MSS and tried to build becoz of setting filters on task window it didn't show me the error even though they exists. So i checked in and there i wa