Another RMAN duplicate problem - RAC database to single instance

Hi,
I have a problem with the RMAN duplicate procedure and was hoping someone can help.
I would like to create a duplicate of our production RAC database on a separate, stand-alone, database server on another site. This duplicate will be used for intensive querying by another business unit who I don't want to have access to our production database.
My procedure goes like this:
1. Create a disk (not ASM) based backup of the datafiles and any archived redo logs:
"run {
allocate channel d1 type disk;
backup format '/u02/stage/df_t%t_s%s_p%p' database plus archivelog delete input;
release channel d1;
2. Tar and scp these files to the same location on the stand-alone database server.
3. In the meantime, work has been happening on the production database and further archived redo logs have been generated. I don't really care about these logs for the purposes of the duplicate however, I just want to duplicate to the point of the recent backup. To do this, I run the following SQL to determine the sequence number that I should be duplicating up to:
"select max(sequence#), thread# from v$archived_log where deleted='YES' group by thread#;"
4. Duplicate the production database to the stand-alone database (all the SQL Net stuff is working).
"run {
set until sequence (value returned by above SQL statement);
duplicate target database to XXX;
However, my problem arises because I don't know how to handle the fact that there are two threads. I understand that each thread relates to one of the RAC instances, I just don't know which one to specify for the duplicate. We have a database service which the client application connects through, and that service runs on on or other of the instances. Should I just care about the logs from the instance where the service is currently running?
Am I even approaching this is the correct way?
I look forward to any help that people may be able to offer.
Regards,
Phil

Hi Werner,
Thanks again for your help, there is still something wrong though. "list backup of archivelog all;" shows:
BS Key Size Device Type Elapsed Time Completion Time
3784 202.34M DISK 00:00:08 28-OCT-09
BP Key: 3784 Status: AVAILABLE Compressed: NO Tag: TAG20091028T111718
Piece Name: /u02/stage/df_t701435838_s3820_p1
List of Archived Logs in backup set 3784
Thrd Seq Low SCN Low Time Next SCN Next Time
1 9746 569095777 28-OCT-09 569150229 28-OCT-09
1 9747 569150229 28-OCT-09 569187892 28-OCT-09
1 9748 569187892 28-OCT-09 569231956 28-OCT-09
1 9749 569231956 28-OCT-09 569259816 28-OCT-09
2 7931 569095774 28-OCT-09 569187902 28-OCT-09
2 7932 569187902 28-OCT-09 569259814 28-OCT-09
BS Key Size Device Type Elapsed Time Completion Time
3787 1.04M DISK 00:00:02 28-OCT-09
BP Key: 3787 Status: AVAILABLE Compressed: NO Tag: TAG20091028T112222
Piece Name: /u02/stage/df_t701436142_s3823_p1
List of Archived Logs in backup set 3787
Thrd Seq Low SCN Low Time Next SCN Next Time
1 9750 569259816 28-OCT-09 569261110 28-OCT-09
2 7933 569259814 28-OCT-09 569261108 28-OCT-09
You can see that the highest sequence number is 9750 of thread 1, and that the Low and Next SCNs are 569259816 and 56926111. However, when I look at the output of the RMAN duplicate command:
contents of Memory Script:
set until scn 569505448;
recover
clone database
delete archivelog
executing Memory Script
executing command: SET until clause
Starting recover at 28-OCT-09
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: sid=39 devtype=DISK
starting media recovery
Oracle Error:
ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
ORA-01194: file 4 needs more recovery to be consistent
ORA-01110: data file 4: '/u02/sca-standby/data/users.260.623418479'
RMAN-03002: failure of Duplicate Db command at 10/28/2009 16:12:55
RMAN-03015: error occurred in stored script Memory Script
RMAN-06053: unable to perform media recovery because of missing log
RMAN-06025: no backup of log thread 2 seq 7936 lowscn 569411744 found to restore
RMAN-06025: no backup of log thread 2 seq 7935 lowscn 569321987 found to restore
RMAN-06025: no backup of log thread 2 seq 7934 lowscn 569261108 found to restore
RMAN-06025: no backup of log thread 1 seq 9758 lowscn 569471890 found to restore
RMAN-06025: no backup of log thread 1 seq 9757 lowscn 569440076 found to restore
RMAN-06025: no backup of log thread 1 seq 9756 lowscn 569411439 found to restore
RMAN-06025: no backup of log thread 1 seq 9755 lowscn 569378529 found to restore
RMAN-06025: no backup of log thread 1 seq 9754 lowscn 569358970 found to restore
RMAN-06025: no backup of log thread 1 seq 9753 lowscn 569321882 found to restore
RMAN-06025: no backup of log thread 1 seq 9752 lowscn 569284238 found to restore
RMAN-06025: no backup of log thread 1 seq 9751 lowscn 569261110 found to restore
you can see that something is setting the recovery SCN to 569505448 which higher even then any of the archived logs mentioned above. If I select current_scn from the production database, this gives me 569528258 which is closer to the value which RMAN is expecting to recover to than any of the archived redo logs.
Can you think what might be causing RMAN to try to recover to this value? and why does it appear to be ignoring the SET UNTIL SEQUENCE command?
Cheers,
Phil

Similar Messages

  • Restoring RAC database to single instance

    We run a 2-node RAC instance on 11g (Standard Edition) under SuSE 10 but our remote disaster recovery machine just runs a single instance.
    Is it possible to restore from RMAN in this case and how should we go about it?
    Thanks!

    It is always possible to restore a RAC database backup to single instance. Infact restores are generally made to a single instance. After the restore we convert the database to RAC with required number of instances. Depending on the procedure you use the steps vary.
    -Ravi

  • ORA-01017 when RMAN duplicate from active database

    Hello, ORACLE guru's!
    I've got some trouble trying to duplicate DB via RMAN duplicate from active database.
    The script is simple:
    run
    allocate channel ch1 device type disk;
    allocate auxiliary channel aux1 device type disk;
    duplicate target database to mydb from active database;
    The problem is in this statement:
    Starting backup at 15-JAN-14
    channel ch1: starting datafile copy
    copying current control file
    Oracle instance started
    Total System Global Area   10689474560 bytes
    Fixed Size                     2237776 bytes
    Variable Size               4227861168 bytes
    Database Buffers            6442450944 bytes
    Redo Buffers                  16924672 bytes
    contents of Memory Script:
       sql clone "alter system set  db_name =
    ''mydb'' comment=
    ''Reset to original value by RMAN'' scope=spfile";
       sql clone "alter system reset  db_unique_name scope=spfile";
       shutdown clone immediate;
    executing Memory Script
    sql statement: alter system set  db_name =  ''mydb'' comment= ''Reset to original value by RMAN'' scope=spfile
    sql statement: alter system reset  db_unique_name scope=spfile
    Oracle instance shut down
    released channel: ch1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 01/15/2014 12:16:07
    RMAN-05501: aborting duplication of target database
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-03009: failure of backup command on ch1 channel at 01/15/2014 12:15:57
    ORA-17629: Cannot connect to the remote database server
    ORA-17627: ORA-01017: invalid username/password; logon denied
    ORA-17629: Cannot connect to the remote database server
    RMAN>
    RMAN>

    change:
    export  ORACLE_SID="mydb"
    export ORACLE_HOME="/u/app/oracle/product/11.2/db_1"
    FILE1 = "/u/app/oracle/product/11.2/db_1/bin/"
    cat > $FILE1/sqlplus sys/karen as sysdba << EOF
    startup nomount; 
    exit;
    EOF
    cat > $FILE1/rman target sys/karen@mytargetdb auxiliary sys/karen@mydb << EOF
    run
    allocate channel ch1 device type disk;
    allocate auxiliary channel aux1 device type disk;
    duplicate target database to mydb from active database;
    EOF
    tell us if it works and again, from what host are you running the script?

  • Restore single instance rman backup to rac database

    Hello all. I have a 10gR2 single instance database that I have been taking backups using the oracle's suggested backup strategy, that is, once full database backup and incremental backups here and there. That's is all fine as I have (many times) being requested to rollback the database resulting in all operations being sucessfull.
    However, since this is somehow a pre-certification database, I am now being tasked to restore this database to what is going to be our production database, which is a 10gR2 rac database. I have already set up the RAC database sucessfull.
    Now, my question is: How can I take one of the backups that I have on the single-instance database and restore onto my RAC database ?
    Some information about the infraestructure:
    Both operating systems are HP-UX. Single instance is 11.23, RAC database is 11.31.
    Both database are using ASM as datafiles storage and flash recovery area storage.
    Any help will be appreciated!
    Thanks!

    In general terms, there are several ways you can convert a single instance into a rac intance, and it involves much more activities than just adding redo threads.
    Use of DBCA
    Enterprise Manager Grid Control
    rconfig utility
    Considering your case, if you don't currently have Grid Control, the first option is rconfig.
    1. Migrate your database from the current environment to the target environment by a regular cloning procedure, this will create a single instance into your rac environment. Your regular rdbms rac installation allows you to manage both, single instance and rac instances. Use this procedure to clone your database to the target RAC environment using recovery manager --> http://madrid9999.googlepages.com/rmancloneadatabase
    2. Once you have started your database in the RAC environment proceed with the rconfig tool, this requires some files to perform the conversion, the ConvertToRAC.xml file which is located at $ORACLE_HOME/assistants/rconfig/sampleXMLs
    3. Once you copied/edited the ConvertToRAC.xml file, you have to run the rconfig. Save the ConvertToRAC.xml under a different file name.
    rconfig editedConvertToRAC.xml
    4. For further reference on the rconfig command, you may refer to this page Oracle® Real Application Clusters Installation Guide
    11g Release 1 (11.1) for Linux and UNIX
    ~ Madrid

  • Stuck in the listener entry step in DUPLICATE OF RAC databases

    I am trying to duplicate with RMAN a new RAC db from production RAC db.
    I am done with the following steps:
    1). backup prod database with rman
    2). copy init file over and modity entries not to reflect rac paramters...
    3). create a password file for new db
    now I got stuck on step 4) Create a static listener entry for your new database and reload the listener as appropriate.
    This step is necessary, because an RMAN duplicate uses an auxiliary database that is in no mount and therefore will not automatically register itself with the listener(s) as specified by local_listener, remote_listener and or the default, 1521.
    For example:
    (SID_DESC =
    (GLOBAL_DBNAME = rman.colestock.test)
    (ORACLE_HOME = /u03/app/oracle/product/db/10.2)
    (SID_NAME = rman2)
    The above is instruciton I got.
    However I got very confused here:
    First, on the RAC server, I added sid entry at the bottom of listener.ora. and the tnsnames entry looks like this:
    abc =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = xxxxxx76)(PORT = 1528))
    (ADDRESS = (PROTOCOL = TCP)(HOST =xxxxxx 77)(PORT = 1528))
    (CONNECT_DATA =
    (SERVICE_NAME = abc_service)
    How do I add a sid entry in the tnsnames.ora file? Since I supposed to create a single db first, not rac, do I have to put service_name or sid name there?
    ANother confusion is how to reload the listener? Since this is a RAC server, two nodes has two listenrs: abc_listener1, abc_listener2. Do I have to stop and start listner by svrctl stop the dynamic listener?
    Please if you can, provide detailed steps here how to create static listener in tnsnames entry and listener entry on a RAC environment and then reload the listener.
    I have to finish up the duplication this weekend. So any help will be greatly appreciated.
    Thank you in advance.

    user569151 wrote:
    I am trying to duplicate with RMAN a new RAC db from production RAC db.
    I am done with the following steps:
    1). backup prod database with rman
    2). copy init file over and modity entries not to reflect rac paramters...
    3). create a password file for new db
    now I got stuck on step 4) Create a static listener entry for your new database and reload the listener as appropriate.
    This step is necessary, because an RMAN duplicate uses an auxiliary database that is in no mount and therefore will not automatically register itself with the listener(s) as specified by local_listener, remote_listener and or the default, 1521.
    For example:
    (SID_DESC =
    (GLOBAL_DBNAME = rman.colestock.test)
    (ORACLE_HOME = /u03/app/oracle/product/db/10.2)
    (SID_NAME = rman2)
    The above is instruciton I got.
    However I got very confused here:
    First, on the RAC server, I added sid entry at the bottom of listener.ora. and the tnsnames entry looks like this:
    abc =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = xxxxxx76)(PORT = 1528))
    (ADDRESS = (PROTOCOL = TCP)(HOST =xxxxxx 77)(PORT = 1528))
    (CONNECT_DATA =
    (SERVICE_NAME = abc_service)
    How do I add a sid entry in the tnsnames.ora file? Since I supposed to create a single db first, not rac, do I have to put service_name or sid name there?
    ANother confusion is how to reload the listener? Since this is a RAC server, two nodes has two listenrs: abc_listener1, abc_listener2. Do I have to stop and start listner by svrctl stop the dynamic listener?
    Please if you can, provide detailed steps here how to create static listener in tnsnames entry and tnsnames.ora does not contain any information about listener.
    listener entry on a RAC environment and then reload the listener.http://www.lmgtfy.com/?q=oracle+local_listener

  • RMAN duplicate from RAC with ASM to RAC with ASM

    I'm still reading and trying to figure out how to duplicate...and I'm finding that there are some extra considerations you have to work with with doing a RAC system.
    Does anyone have any good links to articles/docs that spell out what to do in this scenario?
    I'm wanting to duplicate from tape backups, using NO connectivity to the source/target....
    My tape backups do include the spfile and control files (autobackup) from the source.
    Thank you in advance,
    cayenne

    damorgan wrote:
    Possibly you are confusing a database with a database.
    A RAC database is a just a database. What is different is the instances, the clusterware, and the storage: For example ASM.
    A backup is a backup is a backup.
    Can you be more specific about what you are trying to do, on what hardware, operating system, version, and edition.
    RMAN can not create an instance either RAC or stand-alone.Thank you for the reply.
    I have my source system, OS = RHEL5, running Oracle 11Gr2...5 node RAC cluster.
    I'm doing RMAN backups to tape...hourly arch. logs, Daily incremental lvl=1 backups and weekly incremental lvl=0
    None of the tape backups have ever been tested for restoring...and I've never restored a database myself before, total noob here.
    I have a test area I've set up. I have a 2 node RAC cluster, running 11Gr2 and OS=RHEL5.
    The tape is accessible from both systems.
    I am wanting to test the tape backups...and thought the RMAN DUPLICATE process would be the way to go.
    I am wanting to NOT connect to the source database...trying to simulate somewhat of a disaster recovery scenario. I'm only wanting to use tape backup, and the test area for the auxiliary instance.
    So far what I've seen I need to learn to do is something like:
    1. Create a password file for new aux database to be duplicated to
    2. Establish Net connectivity...
    3. Create initial parameter file for aux instance
         Due to a bug in note:334899.1, add this (because of RAC system)
         norecovery_through_resetlogs=TRUE
    4. Start aux instance NOMOUNT
    Everything I'm reading though...is basically doing this from single instance to single instance...and what little info I've seen on doing it from RAC, indicates there are some differences. The "_no_recovery_through_resetlogs=TRUE" is one thing I found...but wondering what else.
    Also, so many of the examples I'm finding...are doing the duplication connecting to the target/source...and also doing backups to disk rather than tape...
    Right now, I'm at #1...trying to figure what to put into an init pfile...I'm seeing DB_name, which will be the same as the one I'm cloning from.
    I'm not sure what else....
    I'm wondering if this is necessary..since on the tape backups from the source...I backup the SPFILE...can that not be used somehow in this?
    I'm seeing for the init file, examples show that I need to put in entries for control files and redo logs....if the source system was down and gone...how would I know where these were on the old system? This isn't documented anywhere....is there a way to do this if you didn't know.
    If not..guess I need to go through all systems and document the layouts of where everything is located.
    Also...most examples I'm finding, in addition to being single instance backup and restore/duplication...they are all using regular file systems....not much to go on with using ASM.
    Anyway, I'm trying to learn here...and am having trouble finding examples to go from that match my setup.
    Thank you in advance,
    cayenne

  • RMAN duplicate from ACTIVE DATABASE

    Hi,
    I am trying to create a new 11.2.0.1 database by duplicating an existing 11.2.0.1 database using Rman with 'from active database' option.
    I have created a password file and listener is configured as well.
    The aux database is started in nomount state.
    rman
    connect target sys/pwd123@SRCDB
    connect auxiliary sys/pwd123@AUXDB
    duplicate target database to AUXDB
    FROM ACTIVE DATABASE;
    This fails saying that "ORA-12528: TNS:listener: all appropriate instances are blocking new connections" which is quite normal given that the listener is havig a handle in BLOCKED state for this AUXDB as it is in NOMOUNT state.
    Could you please help me on how to proceed?
    One option can be to create the controlfile manually and mount the instance before doing the duplicate. I hope Rman can continue from there.
    Another option is to go for backup based duplicate.
    Is there any other way to go?
    Regards,
    Aravind

    This fails saying that "ORA-12528: TNS:listener: all appropriate instances are blocking new connections" which is quite normal given that the listener is havig a handle in BLOCKED state for this AUXDB as it is in NOMOUNT state.
    Could you please help me on how to proceed?
    One option can be to create the controlfile manually and mount the instance before doing the duplicate. I hope Rman can continue from there.
    Another option is to go for backup based duplicate.
    Is there any other way to go?
    Provide static registration on AUXILIARY side for your auxiliary instance and try again.For example change listener.ora file as
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (GLOBAL_DBNAME = AUXDB)
          (ORACLE_HOME = <your oracle home>)
          (SID_NAME = AUXDB)
    LISTENER =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = <auxiliary host/ip>)(PORT = 1521))
      )And restart listener on auxiliary host then try again

  • How to configuare RAC database in single system?

    Hi,
    I have installed Linux in my system. Can i create RAC database in that system? if it is possible , how to create RAC database?..
    Thanks,

    RAC on a single machine? Can't think of any other method than virtual machines.
    Tim Hall has a good article for RAC using virtual machines on Linux here...
    http://www.oracle-base.com/articles/10g/OracleDB10gR2RACInstallationOnCentos4UsingVMware.php

  • Making single instance DB/ RAC Database with 2 instances

    i created single instance DB , now i want to make it RAC DB with 2 instances. Need guidelines/Notes to do so.

    Creating RAC Databases with the Database Configuration Assistant
    10g Release 1 (10.1.0.3) for Linux x86-64
    http://download-east.oracle.com/docs/html/B14406_01/dbcacrea.htm

  • Cluster with one 2 Node RAC and a Single Instance using ASM

    Hi there,
    i am not sure with one planned installation and want to ask, weather i am on the right track.
    Some Facts:
    Clusterware 11g
    ASM 11g
    Database 10gR2
    AIX 5.3
    3 Machines
    2 Storages DS4700
    My Plan
    On Node 1 and Node 2 we install a RAC Database for an ERP Software
    On Node 3 we install a single Instance Database for a Logistic Software
    So i will install on all three Nodes Clusterware and an 3 Instances ASM - Cluster
    I create 2 Diskgroups, one for the FRA and one for the Data, both on Luns on the DS4700
    The RAC-Database and the Logistic-Database are using the same Diskgroups.
    Is this the way to go for this circumstances?
    The alternative is, as far as i see
    Clusterware on an 3 Servers
    One 2 Node ASM for the ERP Software
    one Single Node ASM for the Logistcs
    4 Diskgroups, because of the 2 ASM-Database 2 for the RAC and 2 for the Single Instance.
    Please give me some hints, which way i should prefer.
    My tendence is going to the first alternative. I like the idea to share the Diskgroups over more than on Database because of easy administration.
    The load of the 2 Databases are completly different, the logistc software will nearly do nothing compared to the ERP Software, so this should'nt be a problem.
    But maybe i oversee something, so please do not hesitate to tell me, i am completly wrong ;)
    Thanks a lot
    Jörg

    Chris Slattery wrote:
    why clusterware on 3rd machine ?
    I'd have separate DGs but that's just me.If you wish to install ASM you need OCS installed on the machine, even if it is just one node at all.
    It is a kind of a dependency, no OCS, no ASM
    cu
    Jörg

  • Switchover between primary RAC and standby single instance

    Hello All,
    I am using Oracle 11gR2.
    I am trying to do a switch over between primary database (RAC 2 nodes) and physical standby (single instance)
    If my Primary is single instance i was following the below steps:
    On the standby
    ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT;
    On the primary database:
    alter database commit to switchover to standby with session shutdown;
    shutdown immediate;
    startup nomount;
    alter database mount standby database;
    On the standby again:
    alter database commit to switchover to primary WITH SESSION SHUTDOWN;
    On the new standby:
    ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT FROM SESSION;now, and since my primary is RAC when i am trying switch over I am getting the below error:
    SQL> alter database commit to switchover to standby with session shutdown;
    alter database commit to switchover to standby with session shutdown
    ERROR at line 1:
    ORA-01105: mount is incompatible with mounts by other instancesPlus that when I want to apply the remaining steps (below step), should I do it on each instance alone? or is there anyway to do it using the srvctl command:
    alter database mount standby database;Regards,

    Hi,
    Since You are using 2 node RAc as primary, so for switchover operation you need to shutdown
    one database instance( Suppose instance 2).
    Suppose your node1:
    hostname is dcpdb1
    and node 2:
    hostname is dcpdb2
    and standby hostname is drpdb1
    So follow this steps for switchover .
    How to Switchover from Primary to Standby Database?
    Process:
    On the primary server, check the latest archived redo log and force a log switch.
    *########### Login dcpdb1 as Oracle user #########*
    SQL> SELECT sequence#, first_time, next_time
    FROM v$archived_log
    ORDER BY next_time;
    SQL> ALTER SYSTEM SWITCH LOGFILE;
    Check the new archived redo log has arrived at the standby server and been applied.
    *########### Login drpdb1 as Oracle user #########*
    SQL> SELECT sequence#, first_time, next_time, applied
    FROM v$archived_log
    ORDER BY next_time ;
    *########### Login dcpdb2 as Oracle user #########*
    SQL> SELECT sequence#, first_time, next_time
    FROM v$archived_log
    ORDER BY next_time ;
    SQL> ALTER SYSTEM SWITCH LOGFILE;
    Check the new archived redo log has arrived at the standby server and been applied.
    *########### Login drpdb1 as Oracle user #########*
    SQL> SELECT sequence#, first_time, next_time, applied
    FROM v$archived_log
    ORDER BY next_time ;
    *########### Login dcpdb1 as Oracle user #########*
    SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
    SWITCHOVER_STATUS
    TO STANDBY
    *########### Login dcpdb2 as Oracle user #########*
    SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
    SWITCHOVER_STATUS
    TO STANDBY
    *########### Login drpdb1 as Oracle user #########*
    SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
    SWITCHOVER_STATUS
    NOT ALLOWED
    *########### Login dcpdb2 as Oracle user #########*
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL>
    *########### Login dcpdb1 as Oracle user #########*
    SQL> ALTER DATABASE COMMIT TO SWITCHOVER TO PHYSICAL STANDBY WITH SESSION SHUTDOWN;
    Database altered.
    SQL>
    SQL> shutdown immediate
    ORA-01507: database not mounted
    ORACLE instance shut down.
    SQL>
    SQL> startup mount
    ORACLE instance started.
    Total System Global Area 1.5400E+10 bytes
    Fixed Size 2184872 bytes
    Variable Size 7751076184 bytes
    Database Buffers 7616856064 bytes
    Redo Buffers 29409280 bytes
    Database mounted.
    SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
    SWITCHOVER_STATUS
    TO PRIMARY
    SQL>
    *########### Login drpdb1 as Oracle user #########*
    SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
    SWITCHOVER_STATUS
    SESSIONS ACTIVE
    SQL> alter database commit to switchover to primary with session shutdown;
    Database altered.
    SQL> shutdown immediate
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.
    SQL>
    SQL> startup
    ORACLE instance started.
    Total System Global Area 1.5400E+10 bytes
    Fixed Size 2184872 bytes
    Variable Size 7717521752 bytes
    Database Buffers 7650410496 bytes
    Redo Buffers 29409280 bytes
    Database mounted.
    Database opened.
    *########### Login dcpdb1 as Oracle user #########*
    SQL> alter database open read only;
    Database altered.
    SQL> alter database recover managed standby database using current logfile disconnect;
    Database altered.
    *########### Login dcpdb2 as Oracle user #########*
    SQL> startup mount
    ORACLE instance started.
    Total System Global Area 1.5400E+10 bytes
    Fixed Size 2184872 bytes
    Variable Size 7751076184 bytes
    Database Buffers 7616856064 bytes
    Redo Buffers 29409280 bytes
    Database mounted.
    SQL> alter database open read only;
    Database altered.
    SQL> alter database recover managed standby database using current logfile disconnect;
    Database altered.
    SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
    SWITCHOVER_STATUS
    NOT ALLOWED
    SQL>
    *########### Login drpdb1 as Oracle user #########*
    SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
    SWITCHOVER_STATUS
    TO STANDBY
    *########### Login dcpdb1 as Oracle user #########*
    SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
    SWITCHOVER_STATUS
    NOT ALLOWED
    SQL>
    *########### Login dcpdb2 as Oracle user #########*
    SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
    SWITCHOVER_STATUS
    NOT ALLOWED
    SQL>
    *####################### Finish SwitchOver ########################*
    Check
    *########### Login drpdb1 as Oracle user #########*
    SQL> alter system switch logfile;
    SQL>
    SELECT sequence#, first_time, next_time
    FROM v$archived_log
    ORDER BY sequence#;
    SQL> archive log list
    *########### Login dcpdb1 as Oracle user #########*
    SQL>
    SELECT sequence#, first_time, next_time, applied
    FROM v$archived_log
    ORDER BY sequence#;
    SQL> archive log list
    *########### Login dcpdb2 as Oracle user #########*
    SQL>
    SELECT sequence#, first_time, next_time, applied
    FROM v$archived_log
    ORDER BY sequence#;
    SQL> archive log list
    Thanks
    Solaiman
    Edited by: 876149 on Apr 12, 2013 11:51 AM

  • Help required of creating Oracle RAC database having multiple instances

    Hello Guys!
    I want to create one database having 2 instances on Oracle 11g R1
    I have 2 nodes in this Oracle RAC
    Database name will be Val
    and instance name on node 1 will be val1 and instance name on node 2 will be val2
    Raw storage will be used, that is, without using automatic storage management or an Oracle Cluster File System
    Can anyone help how to do that ?
    Thanks

    Hi,
    Wonderful example thanks for the link.You're welcome :)
    I'm little confused which option to choose in shared storage option of DBCA
    i.e. Cluster File System or Raw devices?I suggest you to use ASM for you database storage requirement and select raw devices. oracle recommends to use ASM storage for sahred database.
    thanks,
    X A H E E R

  • Issue with RMAN DUPLICATE FROM ACTIVE DATABASE....

    Hi All,
    Not sure if I should continue from a closed thread, so apologies, opening a new one..
    I ran the following command:
    DUPLICATE TARGET DATABASE TO ' AUX1"
    from ACTIVE DATABASE
    NOFILENAMECHECK:
    So the copy went in fine...so I am confiused now....why when doing a recover, i get the below errors from output:
    archived log for thread 1 with sequence 68346 is already on disk as file H:\ORAC
    LE_ARCHIVE_LOGS\RBS1\ARCHIVELOG\2013_12_08\O1_MF_1_68346_ARCH_D-RBS_ID-295728924
    5_S-68346_T-1_A-780292253_C1OQVOSU_.ARC
    archived log for thread 1 with sequence 68347 is already on disk as file H:\ORAC
    LE_ARCHIVE_LOGS\RBS1\ARCHIVELOG\2013_12_08\O1_MF_1_68347_ARCH_D-RBS_ID-295728924
    5_S-68347_T-1_A-780292253_C3OQVOU1_.ARC
    archived log for thread 1 with sequence 68348 is already on disk as file H:\ORAC
    LE_ARCHIVE_LOGS\RBS1\ARCHIVELOG\2013_12_08\O1_MF_1_68348_ARCH_D-RBS_ID-295728924
    5_S-68348_T-1_A-780292253_C4OQVOU6_.ARC
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 12/08/2013 07:36:04
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-06053: unable to perform media recovery because of missing log
    RMAN-06025: no backup of archived log for thread 1 with sequence 64713 and start
    ing SCN of 12728145997 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 64712 and start
    ing SCN of 12728133322 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 64711 and start
    ing SCN of 12728121403 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 64709 and start
    ing SCN of 12727730726 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 64708 and start
    ing SCN of 12727717143 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 64707 and start
    ing SCN of 12727701799 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 64704 and start
    ing SCN of 12726617917 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 64703 and start
    ing SCN of 12726605080 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 64702 and start
    No archivelogs were purged or backed up and the current logs were retained....so im somewhat confused....i am not restoring from backup but running active duplicate...
    should I re-run the command with:
    SET UNTIL SEQUENCE 64713 THREAD 1

    This fails saying that "ORA-12528: TNS:listener: all appropriate instances are blocking new connections" which is quite normal given that the listener is havig a handle in BLOCKED state for this AUXDB as it is in NOMOUNT state.
    Could you please help me on how to proceed?
    One option can be to create the controlfile manually and mount the instance before doing the duplicate. I hope Rman can continue from there.
    Another option is to go for backup based duplicate.
    Is there any other way to go?
    Provide static registration on AUXILIARY side for your auxiliary instance and try again.For example change listener.ora file as
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (GLOBAL_DBNAME = AUXDB)
          (ORACLE_HOME = <your oracle home>)
          (SID_NAME = AUXDB)
    LISTENER =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = <auxiliary host/ip>)(PORT = 1521))
      )And restart listener on auxiliary host then try again

  • Rman duplicate from active database slow

    Hi,
    I am doing a duplicate database from active database, it seems to either slow or hanging. Can someone suggest any tips or pointers to debug this issue?
    Source: 11gR2 3-node RAC (only one instance running) on Solaris 10, about 25TB
    Target: 1-node, 11gR2 on Solaris 10
    Thanks!

    source:
           SID    SERIAL#    CONTEXT      SOFAR  TOTALWORK %_complete
          1555       7013          1   43730494  142245833      30.74
          2332       8079          1   44307262  102713507      43.14
          2235      10987          1   47052222  105912610      44.43
          2622       5033          1   48406910   86329752      56.07
          2040      49651          1   49519038  111411200      44.45
          1846      20307          1   43488574  138674977      31.36
          1459      26683          1   44936702  272716852      16.48
    7 rows selected.
    Target: no rows

  • Load balancing on rac database with single node appsTier

    Hi,
    Please advice me, I am working on to configure load balancing on appstier, following is my setup and steps I did so far.
    Host name      Services
    Clelx062ptlge --     Rac 1 – only database
    Clelx063ptlge --     Rac 2 – only database
    Clelx042ptlge --     All apps services including concurrent managers
    I have two R12 database(UDEV -- development & HRQA -- UAT), I only made changes in apps tier xml file of udev for some load balancing parameters, following are the changes I did.
    *<TWO_TASK oa_var="s_tools_twotask" osd="unix"> udev_806_BALANCE </TWO_TASK>*
    *<CP_TWOTASK oa_var="s_cp_twotask" customized="yes">udev_806_BALANCE</CP_TWOTASK>*
    *<TWO_TASK oa_var="s_weboh_twotask" osd="unix"> udev_BALANCE </TWO_TASK>*
    I changed the values from "UDEV" to given above value. After the above change I ran autoconfig. Then Concurrent managers and forms services are not automatically getting failover to second database node, I need to bounce services to fail it back to other available Rac node. Please note that we have only one appsTier
    Thanks,
    Tanveer Mohammed.

    Hi,
    Yes, i have checked the doc referenced, and already did the steps given in the doc. Also i did all the steps given into ID 388577.1 but still Concurrent managers and forms services are not automatically getting failover to second database node, I need to bounce services to fail it back to other available Rac node.
    Please advice...
    Thanks,
    Tanveer Mohammed.

Maybe you are looking for

  • Display freezing on call

    I have a HTC Thunderbolt.  It has happened to me about 4 times so far, where I will be on a call and my phone display will freeze.  Or I will be on a call and the mute button will accidentally be hit and then freeze.  I would like to know how to fix

  • HT3951 downloaded magasine wont open

    Hi looking for help. Last month I subscribed to a fashion magasine (loulou) and got disconnected before dowloading was completed. I therefore was never able to open the magasine, but was charged by apple store the yearly fee.  I tried again to purcha

  • OS X Mavericks Calendar issue

    After upgrading to OS X Mavericks, when I open my calendar on my MacBook pro it endlessly says "Moving calendars to server account..." I cannot acces calendar, and must force quit.  I have restarted my computer and upgraded Firefox and Safari. How do

  • HT4059 How long can I keep the free iBook download?

    I downloaded free books from the iBook site.  How long do I get to keep them?  Will they be automatically be deleted at some point?

  • How can i switch a song into a MP3 Version like in the former iTunes version ?

    hello, how can i switch a song into a MP3 File like in the former Version from iTunes