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

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

  • Global Database Name

    Hi
    what is the difference between Global database name followed by the domain name of the system and the Global database that itsn't?
    and can I choose one name for ech of Global database name ,sid, and service_name
    to make connection with oracle developer easy after installation?
    Thanks in advance.

    There are differences between global_name, sid and service_name. They may all have the same value, which causes confusion.
    Whether you have the global name followed by the domain name or not it's the same, as long as it is a name that uniquely identifies your database in a network environment. This is a requirement when using replication. You could leave it with or without domain at creation time, you can change it any time, but it is a good practice to have it qualified.
    The SID is the name of an Oracle Instance, i.e. the allocated shared memory plus the background processes, and it is unique within the scope of the OS where your database is running. You can create a connection string that uses the Instance name to connect to the database, but it is considered obsolete, and it was the way to connect to an Oracle database in releases 8.0 and previous.
    Service name is a mean to group applications that get access to the database. It is related with an Oracle Instance. In a single instance environment there is not too much sense from the failover or load balance perspective, it can be interpreted as an alias for the instance and you can still group sessions by service, but in a multiple instance environment, named RAC, it can be used to migrate the service from one instance to another for the purposes of load balancing and failover, as well as for application affinity and resource allocation by means of resource manager.
    ~ Madrid
    http://hrivera99.blogspot.com/

  • Global Database Name for OCS Database with domainname that include a dash

    Hi guys,
    The domain name for the network that I'm installing OCS 10g have a dash in the domainname. When installing the OCS database, it stated that the global database name cannot have a dash. So I change the dash in domain name of the server with an underscore.
    After restart the installation, and putting the global database name with a underscore, the installation is sucessfull. My question is if I change back the server domain name back to include the dash, will this affect the running of the database ? and after the installation can I changed the global database name to include the dash ?
    Is there any to to ensure a database installation will be sucessfull with a dash in the domain name for the global database name ?
    Thanks for any info.
    Regards
    Lanang

    create a net service for oracle10g and provide the name of this service during HTML DB installation it is required for installation.

  • Global Database Name for OCS Database

    Hi guys,
    The domain name for the network that I'm installing OCS 10g have a dash in the domainname. When installing the OCS database, it stated that the global database name cannot have a dash. So I change the dash in domain name of the server with an underscore.
    After restart the installation, and putting the global database name with a underscore, the installation is sucessfull. My question is if I change back the server domain name back to include the dash, will this affect the running of the database ? and after the installation can I changed the global database name to include the dash ?
    Thanks for any info.
    Regards
    Lanang

    I was looking in the wrong place. I found the right documentation. Thanks all.
    Rename the global database name using an ALTER DATABASE statement. For example, enter:
    ALTER DATABASE RENAME GLOBAL_NAME TO sales.us.oracle.com;

  • Can i rename the Global Database Name

    Hi Seniors,
    i have installed the Oracle 10.2.3(10203_vista_w2k8_x86_production_db) in my VISTA Laptop.
    i have given the Global Database Name as orcsatya but i want to change to orasatya
    would u please tell how to proccess if it is.....
    thanks
    Seenujanu

    SeenuJanu wrote:
    yes , i want the name from orcsatya to orasatya of Global Database Name
    is it possible to change the Name or i have to reinstall
    which i would like to access the names like
    connecting scott/sathi@orasatya;
    Thanks in Advance
    Edited by: SeenuJanu on Jun 13, 2009 4:43 AMFor that you don't even need to touch the database. The name you use in your connect string is nothing more than an alias that is resolved (in your tnsnames.ora file) to a specific service name on a specific host. Without touching anything else, you could change your tnsnames entry from something like
    ORASATYA =
    (DESCRIPTION =
       (ADDRESS_LIST =
         (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
    (CONNECT_DATA =
       (SERVICE_NAME = ORA11)
    )to
    fred =            <=== note that this is the only change from the previous entry
    (DESCRIPTION =
       (ADDRESS_LIST =
         (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
    (CONNECT_DATA =
       (SERVICE_NAME = ORA11)
    )At which point you would connect with
    sql> connect scott/sathi@fred

  • 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

  • Global Database Name & Oracle System Identifier

    How do I set the Global Database Name & Oracle System Identifier for the database?

    I changed the character set to ZHS16GBK,
    I create a database with character set ZHS16GBK,but manage web page failed
    and it works,
    but what should i do to enable all feature of database
    for example
    I create the hr user with
    @D:\oraclexe\app\oracle\product\10.2.0\server\demo\schema\human_resources\hr_main.sql
    but the database show following message when connected
    &#35775;&#38382; PRODUCT_USER_PROFILE &#26102;&#20986;&#38169;
    &#35686;&#21578;: &#26410;&#21152;&#36733;&#20135;&#21697;&#29992;&#25143;&#27010;&#35201;&#25991;&#20214;&#20449;&#24687;!
    &#24744;&#38656;&#35201;&#23558; PUPBLD.SQL &#20316;&#20026; SYSTEM &#36816;&#34892;
    but I cannot find the PUPBLD.SQL file under
    F:\oraclexe\app\oracle\product\10.2.0\server\RDBMS\ADMIN\

  • What is the Global Database Name for?

    Hi All,
    I installed 10g on Linux and it seems to work ok. But I used the same string "abc" for the SID and the global database name (GDN). The recommendation for the GDN was sid.domain_name.com but I didn't know the domain_name at the time.
    I don't know why the GDN exists or what it is used for. I am wondering how this lame GDN will affect the database and if there is an easy way to change it. I don't expect that we will be using the db outside of our little network, no internet users. Will users on other machines be able to connect to my db?
    Thanks

    I was looking in the wrong place. I found the right documentation. Thanks all.
    Rename the global database name using an ALTER DATABASE statement. For example, enter:
    ALTER DATABASE RENAME GLOBAL_NAME TO sales.us.oracle.com;

  • Database Service Name or Global Database Name with Oracle 10G, when Oracle

    I have an old installation of Oracle 9i (SID=ORCL) and now have installed Oracle 10G (SID=ORC2). I can get connection to Oracle 10G if i define it as an Oracle 8 compatible identification (ie I access to a SID, and don´t provide a Service Name.
    Now I want to install Oracle HTML DB, and succeeded to install the SQL-script that came with the download, but when I install Apache and HTML DB from the Oracle Companion CD I am asked to give the Database Service Name (in the Help it is explained as the Global Database Name).
    When i give the Net Service Name I get error messages (incomprehensible).
    When I look in Net Manager, the Net Service Name does not have a Service Name, but only points to a SID (ie ORC2).
    Where can I find the Database Service Name (or Global Database Name), OR define it if it is not defined??
    Thanks for your help,

    create a net service for oracle10g and provide the name of this service during HTML DB installation it is required for installation.

  • Want to modify the Global Database Name in Oracle 10g R2

    Hi All,
    I have a global database name like GS77.UK.ORA.COM , I want it to be just GS77.What are the possible workarounds for modifying this.
    Thanks & Regards,
    Gaurav S.

    If your problem is really just the global name, yes.
    You can check with
    Select * from global_name;
    Check the documentation first to ensure you checked all implications first
    http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_1004.htm#i2079942
    Regards,
    PP

  • 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

  • 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

  • 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

  • Unsure about Global Database Name

    I need your advice on the Global database name when I install the G10 database. The purpose of the database is used for learning and will be installed on a PC running Window XP. The PC is stand along and where the Oracle database is installed. The installation documentation refer the global database name with 2 parts, the format is:
    datbase_name.database_domain_name
    The example given is "sale.yourcompany.com" (with the "sale" as database name and "yourcompany.com" is the domain name). Since I don't have a domain name and I wondon can I ignore the domain name or use my PC name as the domain name. This database installation is not going to be refer by any other computer and just use by the applications within the PC. Please help, thanks.

    XP Home Edition is not supported environments.
    So, you ought to solve all problems by your own risks and skills.
    But, can you install only products?
    And then, can you modify or create listener.ora as example?
    But...
    Expected result: 256MB
    Actual Result: 238MBIf this was true, you cannot use Oracle RDBMS, Net comfortably before using those with XP Home Edition or Professional Edition.
    XP Home Edition is not supported environmnts.
    -- Example
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS_LIST =
            (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
    #      (ADDRESS_LIST =
    #        (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC2))
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (GLOBAL_DBNAME = e1020)
          (ORACLE_HOME = D:\Oracle\product\1020)
          (SID_NAME = e1020)
    #    (SID_DESC =
    #      (SID_NAME = PLSExtProc)
    #      (ORACLE_HOME = D:\Oracle\product\1020)
    #      (PROGRAM = extproc)
      )

Maybe you are looking for

  • Sync Both iphoto and Aperture 3 in ATV??

    I want to sync both libraries in my apple tv, from iphoto and Aperture, but in options i can only select one (iphoto) OR Aperture... I want to do this because, my wife work on iphoto and my self in aperture, and i want to sync to apple tv, and show o

  • HT1373 Merging itunes accounts

    I had a joint itunes account with my spouse, however we divorced.  Many of the songs were added to my ipod touch and nano.  I subsequently purchased an ipad and registered that device with a different itunes account. I have many songs on the ipods th

  • Microphone problem with DV2000 notebook

    Hi, The internal microphone on my DV2000 notebook has suddenly stopped working.  I tried troubleshooting but it seems that the hardware has completely vanished.  I tried installing a new driver but got a message that there was no audio input device i

  • Hgrid - Expand all Performance Issue

    Hi all, I am facing a performance leak on a "Expand All" event of a Hgrid (implemented as dynamic hgrid). For a particular page, the application opens the hgrid in collapse mode. It takes less than 1 second. But, when the user clicks on "Expand All",

  • I have 3 computers and one has the "clear search history" line greyed out. I can't get this to work.

    # Question I have 3 computers and one has the "clear search history" line greyed out. I can't get this to work.