Rename Database Name?

I want to rename the name of my Oracle 9i database. I have seen some posts in this forum and seen the answers too. But the solution provided can lead to trouble to a newbie.
Is there any Front-End GUI tool from which this task can be easily done.

Hi,<br>
<br>
Try to read DBNEWID Utility<br>
<br>
Nicolas.

Similar Messages

  • 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.

  • Renaming the Oracle10gXE database name

    Hi,
    Oralce10gXe
    Linux Os
    How to rename the database name from 'XE' (default) to for eg. 'TEST' ?
    what are the exact steps for it ?
    Regards

    Hi,
    it is possible to change the SID of XE like any other Oracle edition. The easiest way to do so is to use the nid (newid) utility in $ORACLE_HOME/bin (you shutdown the database cleanly, open in mount state and then execute nid target=sys/password@xe dbname=newSID, then change the dbname in init/spfile, rename the init/spfile to contain the new sid, generate new password file using passwd, and open the database with resetlogs).
    However, I would not recommend renaming the XE database. I did that, and it has been a pain, since our developers changed the hardware several times, wished for new testing and development installations, and I had to play again and again with the changing of default oracle scripts. As with XE, you can run only one XE edition instance on the server (that does not change by renaming it). With that in mind, there are multiple oracle scripts with ORACLE_SID=XE hardcoded in them. Namely the /etc/init.d/oracle-xe, then all the scripts in $ORACLE_HOME/config/scripts related to starting/stopping and backing up the db, not forgetting the oracle_env.sh...
    Having the experience, I would simply recommend leaving the ORACLE_SID=XE, and changing the service_name, or the TNSNAMES.ora alias. That should be sufficient for the developers to "see a pretty name".
    Kind regards,
    Martin

  • 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

  • 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

  • How to modify the database name

    Hi people
    Im a developer and it's the first time that I use the Xe version of oracle. I need to modify the database name but I don't know how to make this. Im finding the commands but I don't meet this.
    Anyone can help me?
    Thanks
    Best Regards

    Hi,
    XE is XE is XE ... ;-)
    If you'd like to rename it you may get a database license for at least a STANARD EDITION ONE database, upgrade your XE to SE-ONE and then rename your database.
    But (as it has been noted before) for obvious reasons there's no way to rename an XE database to something else :-)
    Kind regards
    Mike

  • 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

  • Ora-01506 no database name

    11.2.0.2.0 windows 2008 RAC
    restored a prod rac to a dev rac, need to rename. created a pfile with my db name to my old name, started single instance, ran nid, updated the controlfiles successfully, stopped the database, updated my pfile to have DB_NAME to my new name, started the database, all good.
    Create the spfile on ASM to I can restart my RAC, restart the database (still in single instance on 1 node) , I can see in the alert log its reading the newly created spfile, but I then get an error.
    start my database with pfile with db_name=DPRD
    SQL>  startup force mount pfile='e:\temp\pfiledprd.ora';
    ORACLE instance started.
    Total System Global Area 1.3696E+10 bytes
    Fixed Size                  2266208 bytes
    Variable Size            7147096992 bytes
    Database Buffers         6509559808 bytes
    Redo Buffers               36966400 bytes
    Database mounted.
    SQL> show parameter db_name
    NAME                                 TYPE        VALUE
    db_name                              string      DPRD
    SQL>-- create my spfile, edit a second pfile and jsut have a reference to the spfile in it (if I dont use pfile reference it uses OIRACLE_HOME\database\initDPRD1.ora anyway which is the same file, this way I know for sure its using what I want to. Same thing happens either way.
    SQL> create spfile='+DATA/DPRD/spfileDPRD.ora' from pfile;
    File created.
    SQL> startup force mount pfile='e:\temp\initDPRD1.ora';
    ORA-01506: missing or illegal database name
    SQL> host more e:\temp\initDPRD1.ora
    SPFILE='+DATA/DPRD/spfileDPRD.ora'
    SQL>so question is why isnt my spfile using DB_NAME that I know exists before I create the spfile.
    I verified its using the right spfile by deleting before creating it on ASMCMD. ie, I delete it, run the "create spfile..." and then I see it recreating.

    every days a school day. In this case Im in detention. Hours I spent at this and of course I get the answer 20 minutes after I post the question here.
    the pfile in the default ORACLE_HOME\database has reference to my spfile
    If I run a create spfile from pfile it uses the contents of that pfile, NOT the pfile I started the database with. To use that pfile I need to path the pfile I started it with
    WRONG
    create spfile='+DATA/DPRD/spfileDPRD.ora' from pfile;
    RIGHT
    create spfile='+DATA/DPRD/spfileDPRD.ora' from pfile='e:\temp\pfileDPRD.ora';
    SQL> create spfile='+DATA/DPRD/spfileDPRD.ora' from pfile='e:\temp\pfileDPRD.ora';
    File created.
    SQL> shutdown immediate;
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup pfile='e:\temp\initDPRD1.ora';
    ORACLE instance started.
    Total System Global Area 1.3696E+10 bytes
    Fixed Size                  2266208 bytes
    Variable Size            7147096992 bytes
    Database Buffers         6509559808 bytes
    Redo Buffers               36966400 bytes
    Database mounted.
    Database opened.
    SQL>
    SQL>
    SQL>

  • 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

  • Rename database

    hi all,
    Is it possible to rename the database suppose the database name is test to test1.
    Thanks in advance.

    Yup
    <br>
    rename a DB
    <br>
    <br>
    Sidhu

  • How Rename database

    How to rename the database name ?
    By default it is created with 'ORCL' . I want rename to 'TEST'
    ( Not an instance name )
    null

    Sathya Rao (guest) wrote:
    : How to rename the database name ?
    : By default it is created with 'ORCL' . I want rename to 'TEST'
    : ( Not an instance name )
    CONNECT TO SVRMGR
    ALTER DATABASE RENAME GLOBAL_NAME TO NEWNAME.WORLD;
    null

  • 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;

  • Rename database Schema

    Is they any method to rename database schema name apart from taking export and import uitlities.
    Eg:- Alter user rename xx to yy;

    No and it bugs the hell out of me! Like you say
    you'll either have to use the fromuser - touser
    syntax in import or the remap_schema option in
    datapump. Another annoyance are the inflexibility of
    oracle privileges. I want a simple command to say
    grant insert on all tables in a particular schema
    without having to list them out using object
    privileges or using the ANY syntax meaning that a
    user can insert into any schemas table.But this is what roles are for. You create the role and grant the role to the user.
    With a bit of pl/sql it would be quite straightforward to create a role which had all the tables in a schema.

  • ORA-01161: database name

    DB 10.2.0.4
    AIX 5.2
    I am trying to make clone.Even I made clone, the database was up but when I saw in the alert log file it was giving continue below error(1) and the size of alert log file was getting increase so I decided to restore missed file and I restored and trying to create control file but this time it is giving below second(2) error.
    1:
    ORA-00376: file 35 cannot be read at this time
    ORA-01111: name for data file 35 is unknown - rename to correct file
    ORA-01110: data file 35: '/vol01/oracle/product/10g/dbs/MISSING00035'
    2:
    SQL> @clone.ctl
    CREATE CONTROLFILE SET DATABASE "dev" RESETLOGS
    ERROR at line 1:
    ORA-01503: CREATE CONTROLFILE failed
    ORA-01161: database name prod in file header does not match given name of dev
    ORA-01110: data file 35: '/vol01/oracle/index08.dbf'
    Suggest me.

    You could have missed that datafile in create controlfile statement, thats the reason for file naming convention to MISSING
    --okay but now what is the solution. That missing file does not physical exist at error location.                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Restore 9i Database to Another Server but Same Database Name

    hi experts,
    This is 9i on Windows.
    I want to restore my RMAN backup from production server to my test server.
    I know the db names have to be the same for RMAN to work.
    Can I restore from my full backup -- test server, then change the db name on the test server? The database name on test needs to be different to prevent someone from accidentally connecting to test but thinking it is production.
    Is this possible to do?
    Again, 9i on Windows.
    Thanks, John

    Hi piontkdd
    I do this in 9i all time, without using duplicate.
    General idea:
    Copy rman backups to test server
    create dummy init.ora with production database name.
    if you want, SET NEWNAME for different filesystem and restore datafiles.
    Recover database. Open database.
    alter database rename global_name to 'whatever'
    shutdown and then mount. use nid.sh to change the DBID and Database name (Can't remember how you do this on windows). shutdown and set up your new spfile/init.ora and change your services with oradim.exe
    could you elaborate the same steps i have the scenario to make sure my production database works fine in case of any disaster , on the production machine itself i have to restore database.
    Oracle=9.2 Solaris=9 Veritas=6.0
    Regards

Maybe you are looking for