RMAN-05520: database name mismatch, auxiliary instance has ORADB

Hi,
i am using Oracle 10g (10.2.0.1.0) in RHEL 5 server. i am trying to duplicate my primary database(ORADB) to standby database with name DEVDB in different server. I have taken an RMAN backup and transferred to standby server and now i am trying to duplicate with the below commands
[oracle@rhel5 data]$ rman target / auxiliary sys/oracle@DEVDB
Recovery Manager: Release 10.2.0.1.0 - Production on Sat Mar 9 16:11:52 2013
Copyright (c) 1982, 2005, Oracle. All rights reserved.
connected to target database: ORADB (DBID=2542358497, not open)
connected to auxiliary database: ORADB (not mounted)
RMAN>
RMAN>
RMAN> duplicate target database to DEVDB
2> ;
Starting Duplicate Db at 09-MAR-13
using target database control file instead of recovery catalog
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: sid=151 devtype=DISK
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 03/09/2013 16:14:02
RMAN-05520: database name mismatch, auxiliary instance has ORADB, command specified DEVDB
My primary db pfile has
*.db_name='ORADB'
*.db_unique_name='ORADB'
My standby db has
*.db_name='ORADB'
*.db_unique_name='DEVDB'
Regards,
007

Hello again;
Agreed. You have at least two issues.
Generally I change the SID
export ORACLE_SID=DEVDB
Then I start NOMOUNT using an INIT file.
Then this should be correct
connected to target database: ORADB (DBID=2542358497, not open)
connected to auxiliary database: ORADB (not mounted)h2. Later
I think I was wrong I would like to change my answer. I looked back and found my old notes and things are not as I stated above.
I used an INIT file ( standby side ) for cloning as follows :
db_name=RECOVER2
instance_name=RECOVER2
control_files=("/u01/app/oracle/oradata/RECOVER2/control01.ctl", "/u01/app/oracle/flash_recovery_area/RECOVER2/control02.ctl")
db_recovery_file_dest=/u01/app/oracle/flash_recovery_area
db_recovery_file_dest_size=4070572032
compatible=11.2.0.0.0
core_dump_dest='/u01/app/oracle/diag/rdbms/recover2/RECOVER2/cdump'
db_block_size=8192
audit_file_dest=/u01/app/oracle/admin/RECOVER2/adump
undo_tablespace=UNDOTBS1
undo_management = AUTO
undo_retention=10800So for the duplicate I don't set DB_UNIQUE_NAME
I Backed up the target database as shown here with the ‘backup current controlfile for standby format’ command:
RMAN RUN {
allocate channel d1 type disk;
backup format '/u01/backups/RECOVER2/df_t%t_s%s_p%p' database;
sql 'alter system archive log current';
backup format '/u01/backups/RECOVER2/al_t%t_s%s_p%p' archivelog all;
backup current controlfile for standby format '/u01/backups/RECOVER2/sb_t%t_s%s_p%p';
release channel d1;
}I did a startup the standby as follows : ( Notice you are correct about the SID and I was incorrect )
export ORACLE_SID=RECOVER2
/home/oracle:SRECOVER2 >sysplus "/ as sysdba"
Connected to an idle instance.
SQL> startup nomount pfile='/u01/app/oracle/admin/RECOVER2/pfile/initRECOVER2.ora';I started RMAN like this :
/home/oracle:SRECOVER2 >export ORACLE_SID=RECOVER2
rman target sys/password@recover2 auxiliary /
Recovery Manager: Release 11.2.0.1.0 - Production on Fri Sep 10 13:35:29 2010
Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
connected to target database: RECOVER2 (DBID=3806912436)
connected to auxiliary database: RECOVER2 (not mounted)So you connect to the Primary, but the auxiliary should show "not mounted"
Finally I issue the duplicate command
RMAN> run {
2> allocate channel C1 device type disk;
3> allocate auxiliary channel C2 device type disk;
4> duplicate target database for standby nofilenamecheck;
5> }Best Regards
mseberg
Edited by: mseberg on Mar 9, 2013 10:39 AM

Similar Messages

  • RMAN-05520: database name mismatch

    Hi All,
    My DB Version :11.2.0
    OS :Linux
    What i am doing is to try duplicating the database on the same machine using RMAN. But what happens when i am trying to run the below mentione command i am getting below error
    RMAN> duplicate target database to test2 from active database nofilenamecheck;
    Starting Duplicate Db at 31-DEC-12
    using channel ORA_AUX_DISK_1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 12/31/2012 02:25:32
    RMAN-05520: database name mismatch, auxiliary instance has TEST1, command specified TEST2
    Can anyone please suggest me why i am facing this problem.
    connecting to rman as follows
    rman target sys/tiger@test1
    RMAN> connecting auxiliary sys/tiger@test2
    Connected to auxiliary database: TEST1(not mounted)
    my pfile entries for test2(cloned db ) are as follows:
    test2.__db_cache_size=658505728
    test2.__java_pool_size=4194304
    test2.__large_pool_size=4194304
    test2.__oracle_base='/home/app/oracle/app/oracle'#ORACLE_BASE set from environment
    test2.__pga_aggregate_target=306184192
    test2.__sga_target=914358272
    test2.__shared_io_pool_size=0
    test2.__shared_pool_size=239075328
    test2.__streams_pool_size=0
    *.audit_file_dest='/home/app/oracle/app/oracle/admin/test2/adump'
    *.audit_trail='db'
    *.compatible='11.2.0.0.0'
    *.control_files='/home/app/oracle/app/oracle/oradata/test2/control01.ctl','/home/app/oracle/app/oracle/flash_recovery_area/test2/control02.ctl'
    *.db_block_size=8192
    *.db_domain=''
    *.db_name='test1'
    *.db_recovery_file_dest='/home/app/oracle/app/oracle/flash_recovery_area'
    *.db_recovery_file_dest_size=4039114752
    *.diagnostic_dest='/home/app/oracle/app/oracle'
    *.dispatchers='(PROTOCOL=TCP) (SERVICE=test2XDB)'
    *.local_listener='LISTENER_TEST1'
    *.open_cursors=300
    *.pga_aggregate_target=304087040
    *.processes=150
    *.remote_login_passwordfile='EXCLUSIVE'
    *.sga_target=912261120
    *.undo_tablespace='UNDOTBS1'
    *.db_file_name_convert='/home/app/oracle/app/oracle/oradata/test1','/home/app/oracle/app/oracle/oradata/test2'
    *.log_file_name_convert='/home/app/oracle/app/oracle/oradata/test','/home/app/oracle/app/oracle/oradata/test2'

    You are cloning...right?
    Then shutdown the target database. Then change the init parameter file *.db_name='test2' (that is your target database name)
    and then startup the instance in nomount mode and then try to fire the RMAN command.

  • Error msg RMAN-05520: database name mismatch when trying to login to RMAN

    I am trying to clone a database on the same server but getting an error message when I try to run the duplicate command.
    command:
    RMAN DB1 -> Rman target sys/oracle@SID1 auxiliary sys/oracle@SID2
    (where DB1->SID1 and DB2->SID2)
    Error:
    RMAN-05520: database name mismatch, auxiliary instance has SID1, command specified SID2
    I used dbca to create the new oracle instance SID2 and checked the entried in the lisntner.ora and tnsnames.ora and they seems to be fine.
    The primary db is in mount mode and the aux database is in nomount mode. I am trying to run this command from the the db session where ORACLE_SID=SID.
    Any help on this would be really helpful.

    Hi,
    RMAN-05520: database name mismatch, auxiliary instance has SID1, command specified SID2The error is very much clear, as you are duplicating the database ,then the db_name must be same.
    I used *bold* dbca to create the new oracle instance SID2*bold*  and checked the entried in the lisntner.ora and tnsnames.ora and they seems to be fine.
    The primary db is in mount mode and the aux database is in nomount mode. I am trying to run this command from the the db session where ORACLE_SID=SID.I don't able to understand, are you duplicating the existing database (or) trying to create new database using dbca on the same host ?
    Sine the dbca is not at all required. I suggest kindly check the process/steps from oracle recovery manager doc.
    - Pavan Kumar N

  • Get database name

    Hello,
    I am using JDev 11.1.1.4.0.
    One of a requirement for me is to send email notification to a group of users. While composing a message, the subject should prefix with the database name. For instance, if the message is about a new Employee being added, the subject should read like this:
    "HR: New employee has been added"
    Is there a way to get the name of DB without executing sql query "SELECT ORA_DATABASE_NAME FROM DUAL"?
    If there isn't, do I have to create a new VO just for this?
    Thanks,
    Joonsup

    Hi,
    you create a public method in the AM Impl class and expose it as a client method. Then use the code below
        public String getDatabaseInformation(){
            DBTransaction dbTransaction = (DBTransaction) this.getTransaction();
            PreparedStatement prepStatement = dbTransaction.createPreparedStatement("select * from dual", 0);
            try {
              String dbSchema = prepStatement.getConnection().getMetaData().getUserName();
              String connectURL = prepStatement.getConnection().getMetaData().getURL();
              //returns schema_name@host:port:sid         
              return dbSchema + connectURL.substring(connectURL.indexOf("@")-1);
            } catch (SQLException e) {
                e.printStackTrace();
          return null;
        }This way the information is accessible from the web client and from ADF BC model itself
    Frank
    Edited by: Frank Nimphius on Aug 2, 2011 5:02 PM

  • How to set a database name for fetching metadata?

    How can I tell an already-existing Connection what its database should be, in such a way that I can successfully get MetaData from the connection?
    If I use the following code, everything works fine:
         Connection connection;
         DatabaseMetaData metadata;
         ResultSet rs;
         connection = DriverManager.getConnection("jdbc:mysql://Localhost/archival", mUser, mPassword); // replace this line
         metadata = connection.getMetaData();
         rs = metadata.getTables(null, null, "%", null);
    But if I replace the fourth line above with these three lines:
         connection = DriverManager.getConnection("jdbc:mysql://Localhost/", mUser, mPassword);
         Statement stmt = connection.createStatement();
         stmt.execute("USE archival");
    then I get a SQLException "Incorrect database name: ''". I would really prefer to factor my getConnection() code so that it doesn't have to know what the database-name is, but in order to do that I need to be able to set the database-name after the connection has been created, and still get MetaData on the connection.
    TIA for any help!

    Umm I probably totally don't understand the question, but you can change the name in the IDE,
    and in code you can name it to whatever you want
    Dim WhatEverNameIWantToGive as new button Dim secondbutton = WhatEverNameIWantToGive
    or maybe you mean
    public class mybutton
    inherits button
    'your custom code here
    end class

  • WebADI - Database name in new template is incorrect

    We have done a clone from production to test. Users have re-created their templates in test, but the database name in the template has the production name instead of test database name. Uploads are going to test database.

    user587327 wrote:
    Thanks Hussein,
    I looked these notes, When users trying to upload templates and put incorrect database, but stil system is allowing to upload Journal.What is the error you get?
    Can you find any errors in the BNE.log file? -- How to Create a BNE Log For Web Adi Issues and Errors? [ID 817023.1]
    Thanks,
    Hussein

  • LGWR: Standby database destination mismatch with other open instances

      Hello ,
    I have the Primary RAC d.b. and standby : single instance .
    When I try to start a second node of RAC d.b. , then I get errors :
    Error 1033 received logging on to the standby
    LGWR: Error 1033 verifying archivelog destination LOG_ARCHIVE_DEST_2
    Destination LOG_ARCHIVE_DEST_2 is UNSYNCHRONIZED
    LGWR: Continuing...
    LGWR: Standby database destination mismatch with other open instances
    Errors in file /ora01/app/oracle/diag/rdbms/db2/db2/trace/db2_lgwr_28221.trc:
    ORA-16075: standby database destination mismatch
    LGWR (ospid: 28221): terminating the instance due to error 16075
    But the first instance is working , without any errors .
    The d.g. is working in maximum protection mode .
    Thank's

    Spfile is used :
    SQL> show parameter spfile
    NAME                                 TYPE        VALUE
    spfile                               string      +DATA/db/spfiledb.ora                                                 a
    And on both instances , log_archive_dest_2 is the same :
    log_archive_dest_2                   string      SERVICE=dc5 SYNC AFFIR
                                                     M NET_TIMEOUT=30 REOPEN=300 DB
                                                     _UNIQUE_NAME=dc5 VALID
                                                     _FOR=(ALL_LOGFILES,PRIMARY_ROL
                                                     E)
    And :
      1* select inst_id, name,value from gv$parameter where name='log_archive_dest_2
    INST_ID NAME
    VALUE
          1 log_archive_dest_2
    SERVICE=dc5 SYNC AFFIRM NET_TIMEOUT=30 REOPEN=300 DB_UNIQUE_NAME=dc5 VALID_FOR=(ALL_LOGFILES,PRIMARY_ROLE)
          2 log_archive_dest_2
    SERVICE=dc5 SYNC AFFIRM NET_TIMEOUT=30 REOPEN=300 DB_UNIQUE_NAME=dc5 VALID_FOR=(ALL_LOGFILES,PRIMARY_ROLE)

  • Confusing with the Global Database Name and Instance Name

    Dear fellow DBA's and Experts,
    Good Day.
    We presently have an existing database registered (on V2 Exadata) with global database name as BIDEV.domainname.com. It has 4 instances viz., BIDEV1 and BIDEV2 which have the same service name as the instance name.
    Last week, on our new X4-2 Exadata, we tried to create a fresh database. While doing so, we entered the details as below in the installer:
    Global Database Name: BIDEV
    SID Prefix: BIDEV
    Service Name: BIDEV.
    Then upon the successful installation of the database, when we query
    1. (SELECT * FROM GLOBAL_NAME), it shows BIDEV as the global database name.
    2.
    SQL> sho parameter service
    NAME                                 TYPE        VALUE
    service_names                        string      BIDEV1
    3. Sho parameter name gives the below details:
    SQL> sho parameter name;
    NAME                                 TYPE        VALUE
    cell_offloadgroup_name               string
    db_file_name_convert                 string
    db_name                              string      BIDEV
    db_unique_name                       string      BIDEV
    global_names                         boolean     FALSE
    instance_name                        string      BIDEV_1
    lock_name_space                      string
    log_file_name_convert                string
    processor_group_name                 string
    service_names                        string      BIDEV1
    Curious to know why it created an instance name as BIDEV_1 instead as BIDEV1.
    Had tried another attempt on our test environment with SID prefix as BIDEV1, then the instance was created with the name as BIDEV1_1.
    Also, would like to know what happen if we give the Global Database Name as BIDEV.domainname.com for installing the same BIDEV database on a different server while the 1st server is still functional.
    Appreciate if someone could throw some light on the above confusion. Any reference material or source to the clarify the doubt.
    Warm Regards,
    Vikram.

    Hi Vikram,
    Your clustered database is not full RAC, it's RAC ONE node database. In RAC ONE node database, instance names are created in that format only (i.e.e dbname_1), I don't know if there is any way we can change it to dbname1. OR if you really want to change the instance name to dbname1 format, then you can convert RAC one node database to Full RAC, then remove instance and add another instance, I hope it would be added in dbname1 format. I have not tested it, test it on your test system first.
    You can find the database type in the output you shared,
    Type: RACOneNode
    Regards,
    Saurabh

  • Rman backup and restore on another box with the same database name

    Hi,
    I am using the following script to backup the database, I want to restore the backup on another server with same database name but different datafile locations , Can some one help me in the restoration please.
    #set oracle_sid=LIVE
    run {
    allocate channel t1 type disk;
    backup database plus archivelog delete input format 'D:\Backup\ORACLE\LIVE\df_t%t_s%s_p%p';
    backup current controlfile;
    release channel t1;
    Thanks

    You need to use "set newname" before you restore your database.
    You can refer this http://docs.oracle.com/cd/E11882_01/backup.112/e10642/rcmdupad.htm
    RMAN> connect target /
    connected to target database: TEST (DBID=2033933270)
    RMAN> run
    2> {
    3> startup nomount;
    4> restore controlfile from 'location/DF_T770331608_S104_P1';
    5> alter database mount;
    6> restore database;
    7> recover database;
    8> alter database open resetlogs;
    9> }Also, you have connected to the database TEST, so is the TEST database the new database that you want to create using restore method ?
    If yes, then how the status of the database is OPEN ? The database status should be nomount before you restore the controlfile.
    If the database is not started, then:
    RMAN shows as "connected to target database: TEST (not started)
    If the database is in nomount stage, then
    RMAN shows as "connected to target database: TEST (not mounted)
    If the database is in mount stage, then
    RMAN shows as "connected to target database: TEST (DBID=xxxxxxxx, not open)
    If the database is open mode, then
    RMAN shows as "connected to target database: TEST (DBID=xxxxxx)
    In the output you mentioned, RMAN is showing the status of the database as opened. So if TEST is the database you are creating, then it has to be in nomount stage. In your case, it looks like TEST is the primary database from which you have taken the backup.

  • Restore an RMAN backup to a new db instance name.

    I have a old copy of an RMAN backup of a production database from 2 months ago. I want to restore it to a new instance name. The backup no longer shows in the RMAN backup listing from the control file of the current production system.
    The backup I have does have the control file as well as the other backup pieces, Is there a procedure to restore this to a new instance since the backup is no longer in the current production control file?
    I have used the duplicate command of RMAN and have successfully restored databases to a new instance name by using the newname option.
    But the backups were always in the control file.
    Can this be done? If so, how?

    You need to restore the controlfile first and copy it into all locations where init.ora specify them. then startup mount, and 'rman / target' will give you access to the old contents of the controlfile at that time.. If the rest of the back is on tape, you need to restore the rman backupset first to disk on same location specified in the backupsets paths. same for the archivelogs.
    Then you can decide to go for a duplicate database to target <newname> or a restore DB (must have the same name). but was the DB a cold backup ? then remember than Rman does not takes the redo logs, so that your shutdown before must be clean (shutdown immediate at most). If it is an hot you may need need to dump the arc and possible do a recover manual (case you forgot to put the arcchives or the archives names is not the same in the init.ora than original for you include the db name in it).
    In that case the archive logs may be renamed to what ever is in the init.ora. and there are many others possbilities. you did not specified enough data on the backup

  • RMAN-06136: ORACLE error from auxiliary database

    Dear All,
    When i start to recover a tablespace(TSPITR) using RMAN, getting below errors. Could any guide me
    RMAN-03002: failure of recover command at 02/07/2013 14:12:30
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-06136: ORACLE error from auxiliary database: ORA-01119: error in creating database file '/rman/SHFLCLN/oradata'
    ORA-27056: could not delete file
    IBM AIX RISC System/6000 Error: 1: Not owner
    RMAN-06956: create datafile failed; retry after removing /rman/SHFLCLN/oradata from OS

    01119, 00000, "error in creating database file '%s'"
    // *Cause:  Usually due to not having enough space on the device.
    // *Action:                                                                                                                                                                                                                                                                       

  • Want to know database name from RMAN prompt

    Hi there
    I want to know database name when I am in RMAN prompt.
    Regards
    Jewel

    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    RMAN> connect target /
    connected to target database: SYSLOG (DBID=3659208352)
    Here SYSLOG is the database name
    Regards
    Asif Kabir
    user623166
    Handle:      user623166
    Status Level:      Newbie
    Registered:      Mar 2, 2008
    Total Posts:      42
    Total Questions:      *18 (18 unresolved)*
    Name      jewel_bd
    Occupation      DBA
    -- mark your helpful post as correct/helpful and close all the answered threads.

  • Can someone explain the following: SID, Instance, Global Database Name?

    Im new to Oracle8i and Im getting confused about certain Oracle terms.
    1) What is the difference between an SID and a Database Instance?
    2) Oracle says a Global Database Name includes: db_name.domain_name. What is the difference between the db_name and the name of the Database Instance?
    Thanks, Andrew
    null

    Im new to Oracle8i and Im getting confused about certain Oracle terms.
    1) What is the difference between an SID and a Database Instance?
    2) Oracle says a Global Database Name includes: db_name.domain_name. What is the difference between the db_name and the name of the Database Instance?
    Thanks, Andrew
    null

  • Database name and Instance Name

    Hi ,
    Is it neccessary that an instance name should be same as database name ??

    Nor is it necessary for the service name to match the
    instance or database name.
    In support, and expansion ...
    In 10gR2, an instance will have multiple services in any case. An instance can have as many as 64 services, several being assigned to admin and AQ and the rest available for general resource management purposes.
    So ... in the future, we should expect one service name to match the instance name, and several other services to also be associated with the same instance.

  • Help for: ORA-01103: database name PRIMARY in control file is not STANDBY

    Hello all, this will be my first post to the support forum. I'm an associate dba with just 6 months on the job, so if I've forgotten something or not given some infromation that is needed please let me know.
    I've also combed the forums/internet, and some of the answers haven't helped. The Oracle Document ORA-1103 While Mounting the Database Using PFILE [ID 237073.1] says my init.ora file is corrupted, but creating a new init.ora file from the spfile does not help. Neither does just starting from the spfile. I have older copies of the init.ora file and the spfiles that the database was running on previously, so I believe they are good.
    This standby NIRNASD1 has existed previously, I had to refresh the primary NIKNASD2, and then re-instantiate NIRNASD1 after the refresh is complete.
    My env is set correctly, and my ORACLE_SID has been exported to NIRNASD1
    NIKNASD2 = Primary Database
    NIRNASD1 = Secondary/Standby Database
    Goal: Creation of Logical Standby NIRNASD1 after creating Physical Standby from NIKNASD2
    My database versions are 10.2.0.4.0, and the databases are on a Unix server. Both databases are located on separate servers.
    Steps that I have taken:
    I used RMAN to backup our primary database to the staging area:
    $ rman target /
    run {
    backup database
    format '/datatransa/dg_stage/%U'
    include current controlfile for standby;
    sql "alter system archive log current";
    backup archivelog all format '/datatransa/dg_stage/%U';
    I used RMAN to Create Secondary Database utilizing RMAN DUPLICATE command.
    RMAN> run {
    2> allocate auxiliary channel auxdisk device type disk;     
    3> duplicate target database for standby NOFILENAMECHECK;
    4> }
    On Secondary database I started Managed Recovery mode
    SQL> shutdown immediate;
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.
    (I used pfile here, thinking that I needed to mount the database to the pfile so that the database would see the change in the dataguard parameters in the init.ora file, the change from logical to physical- I commeneted out the logical and uncommented the physical line)
    # Dataguard Parameters
    For logical standby, change db_name to name of standby database.
    db_name=NIKNASD2 ### for physical, db_name is same as primary
    #db_name=NIRNASD1 ### for logical, db_name is same as unique_name
    SQL> STARTUP MOUNT PFILE = /oraa/app/oracle/product/1020/admin/NIRNASD1/pfile/initNIRNASD1.ora;
    ORACLE instance started.
    Total System Global Area 1577058304 bytes
    Fixed Size 2084368 bytes
    Variable Size 385876464 bytes
    Database Buffers 1174405120 bytes
    Redo Buffers 14692352 bytes
    Database mounted.
    SQL> ALTER DATABASE recover managed standby database using current logfile disconnect;
    I then verified the Data Guard Configuration by using “alter system archive log current;” on the primary database and watching the sequence number change in the secondary database.
    I made sure that:
    •     The primary database was in MAXIMUM PERFORMANCE MODE
    •     Stopped managed recover on the standby database: alter database recover managed standby database cancel;
    •     Built a logical standby data dictionary on the primary database
    •     The db_name in init.ora was changed (this is in our document at my job)
    •     I changed my database name (from physical to logical) in my init.ora pfile (reverse of what I did above)
    # Dataguard Parameters
    For logical standby, change db_name to name of standby database.
    #db_name=NIKNASD2 ### for physical, db_name is same as primary
    db_name=NIRNASD1 ### for logical, db_name is same as unique_name
    I then went to shutdown my standby database and re-start it in a mount exclusive state, which is where I get the ORA-01103 Error (Again I used the pfile, thinking that I needed to tell the database it is now a logical standby):
    SQL> shutdown immediate;
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.
    SQL> STARTUP EXCLUSIVE MOUNT PFILE = /oraa/app/oracle/product/1020/admin/NIRNASD1/pfile/initNIRNASD1.ora;
    ORACLE instance started.
    Total System Global Area 1577058304 bytes
    Fixed Size 2084368 bytes
    Variable Size 385876464 bytes
    Database Buffers 1174405120 bytes
    Redo Buffers 14692352 bytes
    ORA-01103: database name 'NIKNASD2' in control file is not 'NIRNASD1'
    From what I understand of the process, the name in the control file is correct, I want it to be NIRNASD1. But the database for some reason thinks it should be NIKNASD2. The following are the parts of my init.ora file that include the dataguard parameters:
    # Database Identification
    db_domain=""
    #db_name=NIRNASD1
    #db_unique_name=NIRNASD1
    # File Configuration
    control_files=("/oradba2/oradata/NIRNASD1/control01.ctl", "/oradba3/oradata/NIRNASD1/control02.ctl", "/oradba4/oradata/NIRNASD1/control03.ctl")
    # Instance Identification
    instance_name=NIRNASD1
    # Dataguard Parameters
    #db_name=NIKNASD2 ### for physical, db_name is same as prmary
    db_name=NIRNASD1 ### for logical, db_name is same as unique_name
    db_unique_name=NIRNASD1
    dg_broker_start=TRUE
    db_file_name_convert='NIKNASD2','NIRNASD1'
    log_file_name_convert='NIKNASD2','NIRNASD1'
    log_archive_config='dg_config=(NIRNASD1,NIKNASD2)'
    log_archive_dest_1='LOCATION="/oraarcha/NIRNASD1/" valid_for=(ONLINE_LOGFILES,all_roles) db_unique_name=NIRNASD1'
    #log_archive_dest_2='LOCATION="/oraarcha/NIKNASD2/" valid_for=(standby_logfiles,standby_roles) db_unique_name=NIRNASD1'
    log_archive_dest_2='LOCATION="/oraarcha/NIKNASD2/" valid_for=(standby_logfile,standby_role) db_unique_name=NIRNASD1'
    STANDBY_ARCHIVE_DEST='LOCATION=/oraarcha/NIKNASD2/'
    # Parameters are not needed since this server will NOT become primary
    #log_archive_dest_2='service=NIKNASD2
    # valid_for=(online_logfiles,primary_role)
    # db_unique_name=NIKNASD2'
    fal_server='NIKNASD2'
    fal_client='NIRNASD1'
    I would appreciate any help, or pointing me in the right direction. I'm just missing something. I am reviewing the documents for building a physical and logical standby from oracle. Just not sure where to go from here.
    Thank you
    Edited by: 977917 on Dec 19, 2012 5:49 PM

    First of all, thank you both for answering my post. I've pulled up Mr. Hesse's page and will make it a go-to staple.
    We're in the process of upgrading our databases, but we have 130+ databases and only six Oracle dba's, and I'm one of them. It's a large corporation, and things move at a "slow and tested" pace.
    The pfile parameters listed above are from my secondary/standby database. And I do want to create a logical standby.
    I forgot to mention that we do use DataGuard Broker, but I did not think that would be the cause of why the database was starting up incorrectly, so I did not mention it. My apologies there.
    As far as the db_name, here's my question on that. It's my understanding the the db_name should be the name of the primary database when you are working with a physical standby, but as soon as you convert it to logical, you should change the db_name to the secondary/standby database? Am I correct on that?
    Leading from that, during the process of creating the physical standby and converting the physical standby to the logical standby, should I change the db_name in the secondary/standby database in the spfile and never use the pfile at all? For instance, when I create the physical standby I have to change the db_name in the standby to the PRIMARY database, so that makes me think I should change db_name in the spfile? (If you see above, I changed db_name in the pfile and did a startup pfile)
    This morning I was able to reach out to a fellow DBA (they are were asleep when I posted this last night), and they tried a few things. We had a redirect in the standby directory /oraa/app/oracle/product/1020/dbs folder that looked like this: spfileNIRNASD1.ora -> /oraa/app/oracle/product/1020/admin/NIRNASD1/pfile/spfileNIRNASD1.ora
    She removed the redirect and the startup mount exclusive then worked without the error.
    Thank you again for your help Mr.Quluzade and Mr. Hesse, I appreciate you all taking the time to teach someone new to the craft. I will definitely read up on the link that you sent me.
    Chris Cranford

Maybe you are looking for

  • How do i talk to a supervisor in customer service?

    Have a sony tv less than 6 months old. called for warranty service was told would get a call in 24-48 hours. No call received. called in today and was told my warranty ticket was not done right and would have to done all over again, this time was tol

  • BIA 7.9.5.1 - Export tool

    Hi, When I want to do an export from DAC nothing is happening, no window is opening. I stopped and restarted the server and the problem is the same. The import is working fine. Do you have any suggestions? Any help would be appreciated. Thanks, I.

  • Help- Components Throwing Compile Errors

    Thank you for reading my issue. I am using Flash CS3. Recently, all my projects began throwing compile errors for standard component AS3 code. UI Component, FLVPlayback. I have uninstalled and reinstalled Flash CS3, but to no avail. Problem persists

  • HT201210 My Ipod is not starting up after Backup.... Please help

    My Ipod touch is not starting up when i did restore. Then i conected to Itunes it shows Ipod recovery mode. Then i clicked restore and update after that it shows that the Ipod can not be restoreed at this time because ipod software update server coul

  • Can't get Surround Sound from a stereo sound file

    I have tried multiple times to get the surround panner to work on any of the stereo clips that are included with STP2, but it stays in stereo. If I put the surround panner all the way to anything but the left or right channel I get NO sound. Surround