Changing VMM Database Name

I have SQL 2012 Always On Configured in my environment.  In datacenter 1 (DC1) I have SQL1.  In DC2 I have SQL2.  These nodes participate in an Always On Protection Group.  VMM1 DB in DC1 is on SQL1.  VMM2 DB in DC2 is on SQL2.
My problem is that since the VMM DB Name is the same in both datacenters, these DB's cannot participate in Always on because it needs to replicate it as the same name.
So..  I would like to rename the VMM DB in DC 1 to VMM_DC1 and Rename the VMM DB in DC 2 to VMM_DC2.
Is there anyway that I can just change the connection string in VMM to change the DB name instead of having to completely un-install and re-install?
Vincent Fournier

Try
alter database rename global_name to sid.blah.com
and then
select * from global_name
to verify.

Similar Messages

  • Changing the Database Name

    Hi Gurus
    I am using oracle 10g on Windows platform. The issue is I need to change my database name. When i gone through the Oracle docs I found there is an utility called 'DBNEWID' . But not getting a clear cut idea. Since my DB is So critical anybody please tell me the exact steps to change the DB-Name.
    Thanks & Cheers
    Antony

    Changing Only the Database Name
    C:\>SQLPLUS/NOLOG
    SQL*Plus: Release 10.1.0.2.0 - Production on Tue Aug 22 10:54:38 2006
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    SQL> CONN / AS SYSDBA
    Connected.
    SQL> SELECT DBID,NAME FROM V$DATABASE;
    DBID NAME
    1230404613 DB01
    SQL> SHUTDOWN IMMEDIATE;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    Must be : Take Whole Database Backup (Oracle Recommended)
    Otherwise u lost ur database.
    SQL> STARTUP MOUNT;
    ORACLE instance started.
    Total System Global Area 171966464 bytes
    Fixed Size 787988 bytes
    Variable Size 145488364 bytes
    Database Buffers 25165824 bytes
    Redo Buffers 524288 bytes
    Database mounted.
    --Go Command Prompt
    DBNEWID UTILITY >>>NID ( OS Path : d:\oracle\product\10.1.0\db_1\bin\nid)
    C:\>SET ORACLE_SID=DB01
    C:\>NID TARGET=SYS/ORACLE@DB01 DBNAME=ORADB01 SETNAME=YES
    DBNEWID: Release 10.1.0.2.0 - Production
    Copyright (c) 2001, 2004, Oracle. All rights reserved.
    Connected to database DB01 (DBID=1230404613)
    Connected to server version 10.1.0
    Control Files in database:
    D:\ORACLE\PRODUCT\10.1.0\ORADATA\DB01\CONTROL01.CTL
    D:\ORACLE\PRODUCT\10.1.0\ORADATA\DB01\CONTROL02.CTL
    D:\ORACLE\PRODUCT\10.1.0\ORADATA\DB01\CONTROL03.CTL
    Change database name of database DB01 to ORADB01? (Y/[N]) => Y
    Proceeding with operation
    Changing database name from DB01 to ORADB01
    Control File D:\ORACLE\PRODUCT\10.1.0\ORADATA\DB01\CONTROL01.CTL - modified
    Control File D:\ORACLE\PRODUCT\10.1.0\ORADATA\DB01\CONTROL02.CTL - modified
    Control File D:\ORACLE\PRODUCT\10.1.0\ORADATA\DB01\CONTROL03.CTL - modified
    Datafile D:\ORACLE\PRODUCT\10.1.0\ORADATA\DB01\SYSTEM01.DBF - wrote new name
    Datafile D:\ORACLE\PRODUCT\10.1.0\ORADATA\DB01\UNDOTBS01.DBF - wrote new nam
    e
    Datafile D:\ORACLE\PRODUCT\10.1.0\ORADATA\DB01\SYSAUX01.DBF - wrote new name
    Datafile D:\ORACLE\PRODUCT\10.1.0\ORADATA\DB01\USERS01.DBF - wrote new name
    Datafile D:\ORACLE\PRODUCT\10.1.0\ORADATA\DB01\TEMP01.DBF - wrote new name
    Control File D:\ORACLE\PRODUCT\10.1.0\ORADATA\DB01\CONTROL01.CTL - wrote new
    name
    Control File D:\ORACLE\PRODUCT\10.1.0\ORADATA\DB01\CONTROL02.CTL - wrote new
    name
    Control File D:\ORACLE\PRODUCT\10.1.0\ORADATA\DB01\CONTROL03.CTL - wrote new
    name
    Instance shut down
    Database name changed to ORADB01.
    Modify parameter file and generate a new password file before restarting.
    Succesfully changed database name.
    DBNEWID - Completed succesfully.
    Set the DB_NAME initialization parameter in the initialization parameter file (PFILE) to the new database name.
    Note:
    The DBNEWID utility does not change the server parameter file (SPFILE). Therefore, if you use SPFILE to start your Oracle database, you must re-create the initialization parameter file from the server parameter file, remove the server parameter file, change the DB_NAME in the initialization parameter file, and then re-create the server parameter file.
    ---Create New Password File
    cmd>orapwd file=d:\oracle\product\10.1.0\db_1\database\pwddb01.ora password=oracle entries=5
    SQL> STARTUP PFILE=D:\Oracle\product\10.1.0\Db_1\database\initdb01.ora
    ORACLE instance started.
    Total System Global Area 171966464 bytes
    Fixed Size 787988 bytes
    Variable Size 145488364 bytes
    Database Buffers 25165824 bytes
    Redo Buffers 524288 bytes
    Database mounted.
    Database opened.
    SQL> select dbid,name from v$database;
    DBID NAME
    1230404613 ORADB01
    Note:
    After Change DB Name Take Whole Database bkp.
    Note: If i am missing some step or write wrong step plz. correct me.
    Before doing this refer documentation.
    http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14215/dbnewid.htm
    thanx
    Message was edited by:
    user526020
    null

  • How can i change the database name on MaxDB?

    Hello.  I need to do a homogeneous copy where the source system is the productive system and the target system is the quality system. Therefore after to restore the data backup i need to change the database name of quality system (from CLP to CLQ) but i'm not sure that it could be possible because in the MaxDB documentation i didn't found nothing about that. please can you tell me if it is possible and how i change it?
    I work with MaxDB 7.6.04.11.  Thanks for your help.

    > I will try to explain better: the SID of the source database is CLP and the SID of the target database is CLQ, when you say "once you restore the DB, it will use the new SID", i understand that the new SID in the target database would CLP or am i wrong? and i need that the SID in the target database remains CLQ after the restore.
    Hi Ivonne,
    what you've described as your requirement is exactly what will happen, when you just perform the procedure that Eric described to you.
    A recovery won't change the SID of the instance you perform the recovery to.
    All it does is: take the instance as is and load the data pages to the data area. Afterwards the log files may be recovered.
    Think of the instance as a kind of container for your database.
    The instance itself is not the database - so the SID does not change with the content of the database.
    Hmm... why not simply try it?
    Create a little test instance and back it up.
    Create another instance with a different name and recover the backup of the first instance.
    You will still have both instances, each with its original name.
    regards,
    Lars

  • Changing global database name

    Hi,
    I am using oracle database 10.2.0.3.0. I tried to change the database name using
    alter database rename global_name to <new name>.
    The command is working.
    But it is not reflecting when,
    select * from global_name;Regards,
    Mathew Collins.

    Hi,
    My issue is
    > I am able to issue the command
    alter database rename global_name to <new name with out domain name>
    Eg: Initially
    > select * from global_name;
    mydb.domain.com
    >alter database rename global_name to mydb;
    > select * from global_name;
    mydb.domain.com
    The I changed db_domain="" and global_names=false in init.ora and bounced the database. Then I checked,
    select * from global_name;mydb.domain.com
    Why it is happening like this?
    Regards,
    Mathew

  • Change the Database Name in Essbase Studio

    Hi All,
    Happy new year to all of you.
    Is there a way to change the database name in Essbase Studio, what I can see now once we have registered a database in Database Sources panel, we can't change the Database Name because it is always grayed out but the server name, user name and password can be changed.
    Actually I have mentioned this issue to our team before starting development and they proposed me the schema that I can use, but suddenly our client did not agree with it that we have been using, and then our client asked us to use another schema, FYI we are using Oracle Database as the data source.
    Can you guys here share how to manage this situation.
    Thanks,
    Rudy

    For Essbase Studio, the configuration metadata are saved as CP_tablenames, look for the CP tables, and make proper database change for the database name.
    1. Make a Oracle backup for the CP tables before you change the metadata so that you can get back in case if error
    2. Change the CP_CONNECTION TABLE, NAME column
    3. Change the CP_SOURCE table, column DNAME, for example, it is called TBC.Sales, change to NewDB.Sales
    I am not sure if there are other table also need to be updated, anyway, when you update the DBname in the metadata level, everything should be consistent in all of the related tables. Here, I assume the new db has the same table names as the old db, if the new db has very different table names, recreating everything may be easier and has less risk.
    http://hyperionexpert.blogspot.com/
    Bob

  • Changing database name in 11.2.0.3 grid infrastructure

    I have recently installed 11.2.0.3 grid infastructure and database on an AIX 6.1 platform.
    Our manager does not like the name was have chosen for the database that we install a single instance database using dbca and it is all configured in oracle restart which has bee starting all of the resources perfectly upon reboots.
    We are using ASM for the database files and a jfs file system for the fast recovery area.
    Can we change the database name easily or will this require confgiuration changes within the grid infrastructure installation as well?
    Thanks.

    1)To change DB name:
    CREATE CONTROL FILE statement or use NID utility
    2)Drop the old configuartion from oracle restart
    srvctl drop database -d <dbname>
    3)Register new configuration
    srvctl config database -d <dbname>

  • Changing Database name

    hi every body,
    Pl. Tell me ,how to change the database name so that when i query to the V$DATABASE view it should reflect the new database name .Changing the GLOBAL_NAME does not reflect changes in V$DATABASE view.
    thanx in advance..

    Hi,
    1. make a ascii dump of your controlfile : alter database backup controlfile to trace ;
    2. shutdown your database
    3. export ORACLE_SID=NEW_DB
    4. edit your init.ora and change db_name and instance_name parameter (rename your initOLD_DB.ora to initNEW_DB.ora)
    5. edit the file generated by (1) and change
    CREATE CONTROLFILE...
    to
    CREATE CONTROLFILE SET DATABASE "NEW_DB" RESETLOGS...
    6. Re-create the controlfiles and all will be ok :-)
    Fred

  • Can we rename the database name in oracle 10g

    Hi,
    Can we rename the database name in oracle 10g.
    Please help

    Yes as already said, using DBNEWID Utility can renamed the database name.
    You can also take a look at the Oracle Metalink Note:429674.1 (Which was written by me) - Subject: How We Used the Oracle DBNEWID Utility to Change the Database Name
    Regards,
    Sabdar Syed.

  • Rename the database name

    I am installed oracle10g on widows-xp and i am created database my database name is orcl2
    now i want to change the database name orcl2 to orcl1
    i am following these steps...
    1)SHUTDOWN IMMEDIATE
    2)STARTUP MOUNT
    3)% nid TARGET=SYS/password@orcl1 DBNAME=orcl2 SETNAME=YES
    4)SHUTDOWN IMMEDIATE
    5)Set the DB_NAME initialization parameter in the initialization parameter file to the new database name.
    6)Create a new password file.
    7)STARTUP
    but i got an error at #3 ie
    SP2-0734:unknown command ignoring '% nid....
    and
    tell me how to create new password file
    and
    i have another doubt ie
    Are these steps applicable for all Oracle versions? or is there any specific version these steps compatible?
    could you please help me
    Thanks
    Rakesh

    Hi
    create a new password file by
    orapwd utility
    Usage: orapwd file=<fname> password=<password> entries=<users> force=<y/n>
    where
    file - name of password file (mand),
    password - password for SYS (mand),
    entries - maximum number of distinct DBA and force - whether to overwrite existing file (opt),
    OPERs (opt),
    There are no spaces around the equal-to (=) character.
    Thanks
    Kuljeet Pal Singh

  • Database name ORCL in file header does not match given name of

    Hi all,
    DB version is 10.2.0.4
    While doing db cloning..restoring the database..made a mistake of restoring the db to a different running mountpoint database..But in 20 minutes realised that after a while and restarted the clone.
    But that running db went down..trying to recover it shows
    ERROR at line 1:
    ORA-01161: database name ORCL in file header does not match given name of
    PRODhow can i recover it?
    thanks,
    baskar.l

    baskar.l wrote:
    Hi all,
    DB version is 10.2.0.4
    While doing db cloning..restoring the database..made a mistake of restoring the db to a different running mountpoint database..But in 20 minutes realised that after a while and restarted the clone.
    But that running db went down..trying to recover it shows
    ERROR at line 1:
    ORA-01161: database name ORCL in file header does not match given name of
    PRODhow can i recover it?
    thanks,
    baskar.lHi,Baskar.How you clone your database and which command after you got this error.You can resolve this problem with re-create controlfile as(It mean is you actually change your database name):
    C:\Documents and Settings\Administrator>sqlplus "sys/sm as sysdba"
    SQL*Plus: Release 10.2.0.1.0 - Production on Sun Jun 20 15:34:21 2010
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> startup nomount pfile=D:\oracle\product\10.2.0\admin\SB\pfile\init.ora.5152
    010163530
    ORACLE instance started.
    Total System Global Area  138412032 bytes
    Fixed Size                  1247732 bytes
    Variable Size              62916108 bytes
    Database Buffers           71303168 bytes
    Redo Buffers                2945024 bytes
    SQL> CREATE CONTROLFILE reuse DATABASE "SB1" RESETLOGS  ARCHIVELOG
      2      MAXLOGFILES 16
      3      MAXLOGMEMBERS 3
      4      MAXDATAFILES 100
      5      MAXINSTANCES 8
      6      MAXLOGHISTORY 292
      7  LOGFILE
      8    GROUP 1 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\SB\REDO01.LOG'  SIZE 50M,
      9    GROUP 2 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\SB\REDO02.LOG'  SIZE 50M,
    10    GROUP 3 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\SB\REDO03.LOG'  SIZE 50M
    11  DATAFILE
    12    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\SB\SYSTEM01.DBF',
    13    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\SB\UNDOTBS01.DBF',
    14    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\SB\SYSAUX01.DBF',
    15    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\SB\USERS01.DBF',
    16    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\SB\EXAMPLE01.DBF';
    CREATE CONTROLFILE reuse DATABASE "SB1" NORESETLOGS  ARCHIVELOG
    ERROR at line 1:
    ORA-01503: CREATE CONTROLFILE failed
    ORA-01161: database name SB in file header does not match given name of SB1
    ORA-01110: data file 1: 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\SB\SYSTEM01.DBF'
    SQL> CREATE CONTROLFILE set DATABASE "SB1" RESETLOGS  ARCHIVELOG
      2      MAXLOGFILES 16
      3      MAXLOGMEMBERS 3
      4      MAXDATAFILES 100
      5      MAXINSTANCES 8
      6      MAXLOGHISTORY 292
      7  LOGFILE
      8    GROUP 1 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\SB\REDO01.LOG'  SIZE 50M,
      9    GROUP 2 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\SB\REDO02.LOG'  SIZE 50M,
    10    GROUP 3 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\SB\REDO03.LOG'  SIZE 50M
    11  DATAFILE
    12    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\SB\SYSTEM01.DBF',
    13    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\SB\UNDOTBS01.DBF',
    14    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\SB\SYSAUX01.DBF',
    15    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\SB\USERS01.DBF',
    16    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\SB\EXAMPLE01.DBF';
    CREATE CONTROLFILE set DATABASE "SB1" RESETLOGS  ARCHIVELOG
    ERROR at line 1:
    ORA-01503: CREATE CONTROLFILE failed
    ORA-00200: control file could not be created
    ORA-00202: control file: 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\SB\CONTROL01.CTL'
    ORA-27038: created file already exists
    OSD-04010: <create> option specified, file already exists
    /*remove all controlfile  from D:\ORACLE\PRODUCT\10.2.0\ORADATA\SB\ */
    SQL> CREATE CONTROLFILE set DATABASE "SB1" RESETLOGS  ARCHIVELOG
      2      MAXLOGFILES 16
      3      MAXLOGMEMBERS 3
      4      MAXDATAFILES 100
      5      MAXINSTANCES 8
      6      MAXLOGHISTORY 292
      7  LOGFILE
      8    GROUP 1 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\SB\REDO01.LOG'  SIZE 50M,
      9    GROUP 2 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\SB\REDO02.LOG'  SIZE 50M,
    10    GROUP 3 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\SB\REDO03.LOG'  SIZE 50M
    11  DATAFILE
    12    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\SB\SYSTEM01.DBF',
    13    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\SB\UNDOTBS01.DBF',
    14    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\SB\SYSAUX01.DBF',
    15    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\SB\USERS01.DBF',
    16    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\SB\EXAMPLE01.DBF';
    Control file created.
    SQL> recover database using backup controlfile until cancel;
    ORA-00279: change 742571 generated at 06/20/2010 15:32:41 needed for thread 1
    ORA-00289: suggestion :
    D:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\SB1\ARCHIVELOG\2010_06_20\O1_MF_1_1
    1_%U_.ARC
    ORA-00280: change 742571 for thread 1 is in sequence #11
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    D:\oracle\product\10.2.0\oradata\SB\REDO01.LOG
    Log applied.
    Media recovery complete.
    SQL> alter database open resetlogs;
    Database altered.
    SQL> create spfile from pfile;
    File created.
    SQL>In additionally see metalink note
    ORA-01503 ORA-01161 While creating a clone database. [ID 294555.1]
    Edited by: Chinar on Jun 20, 2010 3:52 AM

  • 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

  • How can i define database name in oracle ADI

    Hai Friends,
    I am facing a problem when i am going to define database name in oracle ADI there is a error u can enter minimum 6 char database name but my database name is PROD it is only 4 char long. how can i define can i will change the database name. Please suggest me.
    If u have any query regarding oracle apps plse discuss with me.
    Many thanks
    Ghanshyam khetan

    Database is used internally by ADI and does not have any relationship to the name of your database.
    Using ADI I am able to create a database with the following:
    Name - My Wacky Database
    GWYUID and FNDNAM as usual
    Connect String - VIS
    I'm able to signon and work successfully with that definition. The connect string is more important in this scenario as that tells the networking layer which database to actually talk to. As you can see here mine is only three characters.

  • Incorrect Standby Database name in V$database

    I'm trying to create a standby database (mptstb on server mptdb2) from a primary database (mptpr on server mptdb1). I create the standby controlfile on the primary database using the 'alter database create standby controlfile...' and then move it to the standby server. When I do a startup mount of the standby database and check the contents of the v$database view, it shows name=mptpr. It should be mptstb. When I try to run RMAN on the standby (rman target /), it connects to target MPTPR and not mptstb. I cannot figure this one out. Any help would be greatly appreicated.

    The database name for the standby database is the same (but using NID utility there is a chance to change the database name).
    You can use service names to connect to the standby and lock_name_space (Oracle 9i)/db_unique_name(Oracle 10g) to differ databases using different names.
    That might be the case for databases on the same server. But if you use different servers you can use the same database name.
    Andrey

  • ORA-01103: database name 'PROD1' in control file is not 'PROD2'

    Dear Experts,
    I am trying to use a full compressed backup of PROD1database to create a new database called PROD2 on the SAME host.
    Both databases are using 11.2.0.2 version on Oracle Redhat 5.
    1- I created pfile from source PROD1 database, and modified the following;
    {code}
    *.control_files='+prod2_DG/prod2/controlfile/control01.ctl'
    *.db_create_file_dest='+prod2_DG'
    *.db_name='prod2'
    {code}
    2- Started up no mount the prod2 database using the new pfile.
    3- restore the controlfile from PROD1 backup;
    restore controlfile from '/tmp/prod2/prod1_cntl_4ioet09f_1_1.bkp'
    4- alter database mount give me the following error;
    {code}
    RMAN-00571: ===========================================================
    RMAN-03002: failure of startup command at 07/18/2013 05:52:51
    ORA-01103: database name 'PROD1' in control file is not 'PROD2'
    {code}
    I want to test the backup made on prod1 and same time have a new database prod2 on same host.
    I also tried with SET DBID = <DBID_OF_PROD1> and it doesn't work!
    How I can fix that?
    Thanks and best regards

    SET DBID or DB_NAME in the parameter file don't change the database name  that is in the control file.  At the point of restore, the control file still has the "prod1" database name.
    With RMAN backups, you should consider using DUPLICATE DATABASE
    http://docs.oracle.com/cd/E11882_01/backup.112/e10642/rcmdupdb.htm#i1008564
    Running a DUPLICATE Database on the same host as the source database is a risky operation.  Done incorrectly, you run the risk of overwriting the datafiles of the source database.  Since your source is a Production database, you run the risk of taking the production database down.  I suggest that you practice the steps on a non-production environment first.
    Hemant K Chitale

  • How to change DB & Instance name on RAC

    Hi Experts,
    Can anyone tell me how can i change my database name along with the two instances running on the RAC server?
    Any ideas......
    Regards,
    MB

    You can rename database by creating control file as well , like we use to do in single instance database.
    1) Shutdown node 2
    2) Run following command on node 1
    alter database backup control file to trace ;
    3) shutdown database on node 1
    4) copy trace file created in step 2 to file crctl.sql (say) . Edit crctl.sql and set database name what u want to set.
    5) edit init<sid>.ora and change database name
    6) startup nomount and run crctl.sql
    7) Startup database in both node
    8) Change tnsnames.ora and listener.ora ( if needed)
    9) config srvctl
    srvctl remove database -d <old_database_name>
    srvctl add database -d <new_db_name> -o $ORACLE_HOME
    srvctl add instance -d <new_db_name> -i <instance name on node 1> -n Node1
    srvctl add instance -d <new_db_name> -i <instance name on node 2> -n Node2
    Virag

Maybe you are looking for

  • Mac mini unable to boot, stuck in grey screen.

    Hi, i have a Mac Mini which I have kept up to date with current version of OS X (Mountain Lion) After a recent reboot the system won't come up, it just hangs displaying a grey screen. I have tried: http://support.apple.com/kb/TS2570 I can boot up the

  • Active tab in safari

    hi all  I'm  trying to find out if there is an extension for safari to show me which tab is active  if i open a lot of tabs some of them start playing audio and it's frustrating trying to find the pages with the active audio.  if anyone knows how to

  • Deployment.config/properties All Users dir on Windows

    Question about the 2 files deployment.config and deployment.config which can be located in "%WINDIR%\Sun\Java\Deployment" or "%USERPROFILE%\Application Data\Sun\Java\Deployment" Unfortunately the option to specify a new location for the cache is only

  • RWB - Component Monitoring - Integration Engines = none ???

    Hi. I made a Business System in SLD. Name: DEV_410 Role: Application System Related Integration Server: XHD_100       (XI Server) Technical System: DEV on dev60           (type: Web AS ABAP) Client: 410 of DEV Logical System Name: HMXDEV410 But I can

  • Bridge to PSE8 Question

    I think that I am missing something really obvious here. I edited an  old JPEG in ACR (Bridge version) & saved it. I then opened the image  in PSE8. However, none of the edits that I did in ACR were transferred  to PSE8. In other words, the image tha