RMAN-11001: alter database mount standby database

I'm doing a duplicate for a standby database and I'm getting this error
Oracle 8i Tru64
RMAN-03002: failure during compilation of command
RMAN-03013: command type: Duplicate Db
RMAN-03015: error occurred in stored script Memory Script
RMAN-03006: non-retryable error occurred during execution of command: sql
RMAN-07004: unhandled exception during command execution on channel clone_defaul
t
RMAN-20000: abnormal termination of job step
RMAN-11003: failure during parse/execution of SQL statement: alter database moun
t standby database
RMAN-11001: Oracle Error: ORA-03113: end-of-file on communication channel
Recovery Manager complete.
Any help please

Check for parameter mismatches between parameter file and control file.
Check your parameter file. Check db_name paramter in paramter file used in the standby database.

Similar Messages

  • Error while mounting Standby database

    Hi all,
    I am getting ORA-01102: cannot mount database in EXCLUSIVE mode error when truying to mount the standby database.
    SQL>alter database mount standby database ;
    If anyone faced the same issue please guide me.
    Thanks and Regards
    Salih KM

    This is script for Standby..
    Primary Server Configuration
    1.In the TNSNAMES.ORA of Primary DB add the entry of the Standby DB
    IRCSSTDB(This is the service name in Primary DB to connect to Standby DB) =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = IRDBACK)(PORT = 1512))
    (CONNECT_DATA =
    (SERVICE_NAME = IRCS(This is the actual INSTANCE name of Running DB on Standby DB)
    2. There is no need to Make any Changes in the Listener.ora of PRIMARY DB
    Keep LISTENER.ORA of Primary as it is
    Copy Listener.ora from Primary DB to Standby DB and make following changes
    Delete All the Extra Existing listeners.
    (These Updations are for the STANDBY DB)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = IRDBACK)(PORT = 1521))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /ora01/app/oracle/product/9.2.0)
    (PROGRAM = extproc)
    (SID_DESC =
    (SID_NAME = IRCS)
    (ORACLE_HOME = /ora01/app/oracle/product/9.2.0))
    3.In the INIT.ORA of Primary DB add Following…
    log_archive_dest_2 = "service=STBY optional/Mandatory scope=BOTH"
    log_archive_dest_2 = Enable
    log_archive_min_succeed_dest = 2
    We can add this Dynamically with the SQL*PLUS..
    Standby DB Server Configuration
    1.In the TNSNAMES.ORA of Standby DB add the entry of the Primary DB
    primary1(ISSL)(This is the service name in Standby DB to connect to Primary DB)=
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp) (PORT=1521) (HOST=PRIMARY MACHINE NAME))
    (CONNECT_DATA=(SERVICE_NAME=IRCS(This is the actual INSTANCE name of Running DB on Primary DB)
    2.Copy Listener.ora from Primary DB to Standby DB and make following changes
    Same as Above
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = IRDBACK)(PORT = 1521))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /ora01/app/oracle/product/9.2.0)
    (PROGRAM = extproc)
    (SID_DESC =
    (SID_NAME = IRCS)
    (ORACLE_HOME = /ora01/app/oracle/product/9.2.0))
    3. Connect to Idle instance..
    1.C:\ oradim –NEW –SID ircs –INTPWD pwdfilename –STARTMODE auto –pfile E:\oracle\oradata\pfile\init.ora
    2.     C:\ set oracle_sid=IRCS
    3.     C:\ sqlplus /nolog
    4.     SQL:>connect sys/ircl as SYSDBA
    5.     SQL:>startup nomount pfile= E:\oracle\oradata\pfile\init.ora
    6.     SQL:> alter database mount standby database;
    7. SQL :> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE;
    4. we can also add these parameter in INIT.ORA of Standby DB
    1.standby_archive_dest= /u00/app/oracle/admin/sec/arch (Same path as in
    (log_archive_dest_1) in init.ora
    2. Fal_client=standby1 (Service Name)
    3. Fal_server=primary1 (Service Name)
    Troubleshooting….
    1. Check Init.ora of Primary DB
    2. Try to open Standby Database in normal mode try to connect it with normal user from different Machine.
    3.check *.logs file on Standby Database
    4.Check v$archive_dest on Primary DB
    5. lsnrctl services <listener name>….For Checking Listener, for service

  • Cannot mount standby database

    Hi anyone,
    im trying to create physical standby db, oracle10g release 1 running on windows NT. currently i cannot mount the standby database receive error as:
    SQL> alter database mount standby database;
    alter database mount standby database
    ERROR at line 1:
    ORA-01102: cannot mount database in EXCLUSIVE mode
    and when i shutdown the primary db, i retry to mount standby db but receive another error,
    SQL> alter database mount standby database;
    alter database mount standby database
    ERROR at line 1:
    ORA-01665: controlfile is not a standby controlfile
    what should i do?
    can someone advice me?
    regards,
    Nonie

    im trying to create physical standby db, oracle10g
    release 1 running on windows NT. currently i cannot
    mount the standby database receive error as:
    SQL> alter database mount standby database;
    alter database mount standby database
    ERROR at line 1:
    ORA-01102: cannot mount database in EXCLUSIVE mode
    Look likes , you setup standby on same machine , try init.ora parameter LOCK_NAME_SPACE. Also make sure you use standby control file for standby database.
    ALTER DATABASE CREATE STANDBY CONTROLFILE AS '<location>'
    - Virag Sharma
    http://virag.sharma.googlepages.com
    http://viragsharma.blogspot.com

  • Use standby-database as standby-database after creating primary database

    First I will tell what we have and what I did.
    We have a standby database on server B that was not started. We did a cold copy to server A and opened the database on server A as primary database. Now we wonder if we can use the standby database on server B to apply archives without creating a new copy to server B. The standby database on server B is waiting for sequence 2900, while the database on server A started with a new sequence.
    Is it possible somehow to start the recovery again on the standby databsae on server B without creating a new copy?
    Forgot to mention: db-version is 9.2.0.7.0, OS is SunOS 5.10

    Writing seperate code is not needed, Oracle will copy the files if the log_archive_dest is set to the right value.
    However, it is solved!
    What I did:
    - create standby controlfile on the primary
    - copy standby controlfile to standby database
    - on standby: startup nomount / alter database mount standby database
    - on primary: set log_archive_dest_2 to trigger the copying of archivelogs to the standby
    Right now the standby database is recovering.

  • What is the Use of  "Alter database activate standby database"

    Hi ,
    I appreciate your time.
    I just wanted to know what is the use of "Alter database activate standby database" command when doing the failover. How different it will act in failover process. Can we use this command in SwitchOver.
    Thanks in advance.

    Hi Uwe Hesse,
    Wonderfull... good info....
    So my understanding is that the use of "ACTIVATE PHYSICAL STANDBY DATABASE" is conditional and depends on the redo log gap and the Database status(Able to mount or not).
    Condition 1: If the Db is in Mount state and Redo log gap is successfully filled.
    1) Flush any unsent redo from the primary database to the target standby database.
    SQL> ALTER SYSTEM FLUSH REDO TO target_db_name;
    Note: If the above Statement Completes successfully without any errors.
    2) Stop Redo Apply.
    SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;
    3) Finish applying all received redo data.
    SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE FINISH;
    4) Verify that the target standby database is ready to become a primary database.
    SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
    5) Switch the physical standby database to the primary role.
    SQL> ALTER DATABASE COMMIT TO SWITCHOVER TO PRIMARY WITH SESSION SHUTDOWN;
    Condition 2: If the DB is not able Mount and Redo Gap can't be filled.
    Important Note: If the the above command in STEP3 gives error, some received redo data was not applied. Try to resolve the cause of the error and re-issue the statement before proceeding.
    If the error condition cannot be resolved, a failover can still be performed (with some data loss) by issuing the following SQL statement on the target standby database:
    SQL> ALTER DATABASE ACTIVATE PHYSICAL STANDBY DATABASE;
    Thanks in advance.

  • How to get the date of the last transaction in a mounted standby database?

    Hello,
    Could you tell me how to get the date of the last transaction recorded in a MOUNTED standby database?
    The following query doesn't work...because the database is not open...
    select scn_to_timestamp(current_scn) from v$database;
    Thanks

    Hi,
    You should be able to run the following command in mounted mode on standby database.
    select current_scn from v$database;
    then run the following to convert it to timestamp.
    select scn_to_timestamp(99999999) from dual; *<-- Replace here the SCN value you got above. This needs to be run on the primary database due to standby database in mount mode.*
    Alternatively you can also check at the alert.log file to find the last scn which has been applied.
    Regards
    Edited by: skvaish1 on Jan 19, 2010 11:15 AM

  • RMAN backup on the physical standby database.

    Hello,
    11.2.0.3 EE database. Is it a requirement to open the database in read only mode in order to take a hot backup?
    SQL>ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;
    SQL> ALTER DATABASE OPEN READ ONLY;
    I've initiated a rman backup without opening the db in read only and the following output is so far:
    RMAN> backup format '/dbstor2/LTS/LTS_rman/%d_set%s_piece%p_%T_%U' check logical database plus archivelog;
    Starting backup at 15-OCT-12
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=603 device type=DISK
    specification does not match any archived log in the repository
    backup cancelled because there are no files to backup
    I plan on taking this backup and using it to refresh our Dev and QA dbs. Do you see any issues with taking a backup without opening the db in ready only mode?
    -SteveV

    No we are not using Active Dataguard. An issue I am investigating is why can't I perform an archivelog backup from the standby?
    RMAN> backup archivelog all format '/dbstor2/LTS/LTS_rman/arc.rman.bak';
    Starting backup at 15-OCT-12
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=603 device type=DISK
    specification does not match any archived log in the repository
    backup cancelled because there are no files to backup
    Finished backup at 15-OCT-12

  • How to delete archivelog with RMAN in the Primary and Standby database?

    Hello,
    I am working on Oracle 10gR2.
    My question is :
    How could I implement a automatized and secure way of:
    1) Delete archivelogs on my PRIMARY server only when these logs are successfully TRANSFERED to all my standby databases?
    2) Delete archivelogs on my STANDBY server only when these logs are sucessfully APPLIED to the database?
    Thanks a lot for your help!

    on 10G
    CONFIGURE ARCHIVELOG DELETION POLICY TO [CLEAR | NONE | APPLIED ON STANDBY];
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/rman.htm#CHDBEICE
    Coskan Gundogar
    http://coskan.wordpress.com

  • Auto mount standby database

    Dear Experts
    any one have some detailed step by step guide for
    "when standby database server goes down and after startup it automatically mount the standby database"
    regards
    pakistan

    Unix? If yes then:
    ==> srvctl add database -h
    Usage: srvctl add database -d <name> -o <oracle_home> [-m <domain_name>] [-p <spfile>] [-A <name|ip>/netmask] [-r {PRIMARY | PHYSICAL_STANDBY | LOGICAL_STANDBY}] [-s <start_options>] [-n <db_name>] [-y {AUTOMATIC | MANUAL}]
        -d <name>           Unique name for the database
        -o <oracle_home>    ORACLE_HOME for cluster database
        -m <domain>         Domain for cluster database
        -p <spfile>         Server parameter file for cluster database
        -A <addr_str>       Database cluster alias
        -n <db_name>        Database name (DB_NAME), if different from the unique name given by the -d option
        -r <role>           Role of the database (primary, physical_standby, logical_standby)
        -s <start_options>  Startup options for the database
        -y <dbpolicy>       Management policy for the database (automatic, manual)
        -h                  Print usageExample:
    srvctl add database -d orclsby -o /u01/oracle.11.2 -r PHYSICAL_STANDBY -s "mount" -y AUTOMATIC:p

  • Create dev database from standby database

    Hi folks,
    I need to create a dev database by using RMAN's method of cloning. But, since it is business hours and the production database is being used at a very high rate, I cannot carryout the cloning by connecting the primary database as it may cause performance slowness.
    The time allotted for the activity is also very short. We have a standby database created for the primary database. So, my question is it possible for me to create the dev database using the standby database ?
    Database version is 11.1.0.6 and I can go ahead with the active database feature.

    Yes, you can clone from the standby database. Follow the below steps.
    1. Check if your standby database is in sync with the primary database.
    2. Cancel the MRP on the standby database.
    alter database recover managed standby database cancel;3. connect to standby as target database and dev database as auxiliary
    rman target sys/<pwd>@<standby-alias> auxiliary sys/pwd@<dev-alias>4. Your standby database would be in mount stage and dev in nomount stage.
    5. Run the duplicate command
    rman>duplicate target database to 'dev' nofilenamecheck;6. Once done, start the MRP on the standby database
    alter database recover managed standby database disconnect from session;

  • UAT Database from Standby database

    Hi,
    I'm using oracle 11.2.0.2.0 on Windows 2008,
    I have prod & standby databases, I want to create new UAT DB which wiil be same as prod,
    How Can create a UAT using standby database cold backup,
    can i use cold backup of standby database.
    Thanks
    Edited by: user10745179 on Oct 22, 2012 12:42 PM

    This would be a database duplication from backup with RMAN. A Catalog will help, particularly as you are working in a Data Guard environment, but it is a straightforward and well documented operation:
    http://docs.oracle.com/cd/E11882_01/backup.112/e10642/rcmdupdb.htm#i1008564

  • Can I have a primary database and standby database with a different windows version?

    Hi
    I need your help.
    We need to increase the memory in the server where is the standby database , but first, we need to upgrade the windows version.
    The actual version is windows 2003 standard edition 64 bits
    The new version will be windows 2003 enterprise  edition 64 bits
    This difference in windows version  between primary and standby servers can cause a problem in the synchronization between primary and standby databases ??
    What do you recommend? Have both servers in the same windows version?
    The databases are in SQL SERVER 2005.
    Thanks.
    Loreinn

    This difference in windows version  between primary and standby servers can cause a problem in the synchronization between primary
    and standby databases ??<o:p></o:p>
    There is no issue with database synchronization as long as SQL Server is of same version.<o:p></o:p>
    What do you recommend? Have both servers in the same windows version?<o:p></o:p>
    OS(Windows version) has no restriction for using SQL server 2005 database mirroring/log shipping. You can go with upgrade without any worries on SQL
    database side.<o:p></o:p>

  • Primary Database and Standby Database sync

    How to know that standby database is in sync with primary database?

    Query the V$LOG_HISTORY view on the standby database, which records the latest log sequence number that has been applied. For example, issue the following query:
    SQL> SELECT THREAD#, MAX(SEQUENCE#) AS "LAST_APPLIED_LOG"
    2> FROM V$LOG_HISTORY
    3> GROUP BY THREAD#;
    THREAD# LAST_APPLIED_LOG
    1 967In this example, the archived redo log with log sequence number 967 is the most recently applied log.
    You can also use the APPLIED column in the V$ARCHIVED_LOG fixed view on the standby database to find out which log is applied on the standby database. The column displays YES for the log that has been applied. For example:
    SQL> SELECT THREAD#, SEQUENCE#, APPLIED FROM V$ARCHIVED_LOG;
    THREAD# SEQUENCE# APP
    1 2 YES
    1 3 YES
    1 4 YES
    1 5 YES
    1 6 YES
    1 7 YES
    1 8 YES
    1 9 YES
    1 10 YES
    1 11 NO

  • Recover Primary Database from Standby Database

    Hi all,
    I'm trying to understand how to use physical standby database in order to have a backup from a primary database.
    The first part is very clear. I supose I have a physical standby database ready and archiving from a primary database but the second part is the problem.
    1. Now I supose that my primary database is gone... not just a logical corruption but a physical disaster such a fire o something worst.
    How to recover the primary site from the physical standby database??????????
    2. Just a logical corruption in primary database. How to syncronize with the standby database that it's the one who has the right data???
    Thanks in advance.
    Edited by: jsfelix on 18-nov-2009 4:48
    Edited by: jsfelix on 18-nov-2009 4:51

    How to recover the primary site from the physical standby database?1. Ensure that you DO have a Primary Site up and running. It might be the same building. It might be another building. Management might decide to switch to another city. (BTW, all of this should be defined in the D.R. / B.C.P. documentation).
    The (possibly new) Primary Site has to have the required hardware , O.S etc.
    2. Take a backup of the Standby and restore it to the (possibly new) Primary.
    Actually, the Standby becomes the new Primary and the new site that is setup becomes the Standby. This continues until management decides to switch over.
    Just a logical corruption in primary database.Take a backup of the Standby and restore it to the Primary. You have to suffer an outage. Note : If only one or few files on the Primary are physically corrupt (and offline), you could backup the selected files from the Standby and RESTORE and RECOVER on the Primary !
    Hemant K Chitale
    http://hemantoracledba.blogspot.com

  • Taking RMAN backup of primary and standby databases.

    Hi,
    I am going to setup a Standby for Primary two node RAC to single node standby.
    My doubt is, in standby both primary and standby will have the same db_name. So how can i take the RMAN backup of both primary and standby by using a single catalog.
    That is, we can register the primary DB with catalog using it's db_name. But how can we register the standby with catalog using same db_name as it is already registered.
    Thanks,
    Mahi

    Are you using a physical or logical standby?
    If its a physical standby why do you need to back up both databases? backup the standby and you are done, the backup from the standby can be recovered to either the live serever or the standby if needed, andt hen the archivelogs used to bring it up to date.
    If its a logical standby then change the database name for the standby and you can back both up to the same catalog, or alternativly cretae a new catalog for the standby, either as a new database or a new schema in your existing catalog.

Maybe you are looking for

  • Mapping to Equivalent in Output Schema

    Hi I have a output schema which includes a <Equivalent> element with several possible options, e.g.         <Product>     <Equivalent> <Desktops> <Laptops> etc. The XSD looks like this   <xs:element name="VendorCatalog">     <xs:complexType>       <x

  • PowerMac G5 VGA connection to LCD

    I have a 30" LCD widescreen TV which has a VGA input. When I connect my PowerMac G5 to the VGA input on the LCD, I get a "incompatible format." Any ideas what I need to do to be able to connect my computer to this TV? WHat am I doing wrong? The TV is

  • How to transfer purchased movie from itunes to Windows 7

    I purchased a movie from itunes, played it on my mac, now I want to play it on a PC running Windows 7.  How can I transfer it? Thanks,  Mike

  • Error in Ultra Search in portal. listener refused the connection

    hi I implement a portal.I wanted to use ultra search(portlet) in my pages. so I defined an user and graned access to him. I created a provider for ultra saerch and schedule too. then add ultrasearch in page. it worked currectly but now give an errr s

  • PreOrder & Network switch

    So my dad and i are currently on an expired family plan on t-mobile and were ready to switch networks so i plan to preorder an iPhone 4. I do have a few questions im not clear about... 1. how do i go about keeping my number and contacts? 2. how do we