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

Similar Messages

  • How to rename database in oracle 8.0.5 unix?

    how to rename database in oracle 8.0.5 unix? for example from 'DBDEV' to 'DBTEST'

    Dear Amardeep,
    The OP opened 2 threads, one how to clone and other one how to rename a database 8. The article I send show how to clone the DB (one of the steps in the clone article is how to rename the DB from"PROD" to "Test"). ;)
    This is the other thread:
    easy way to clone database
    Cheers,
    Francisco Munoz Alvarez
    www.oraclenz.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.

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

  • 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

  • Before rename database trigger

    Hi!
    I have the following database trigger to catch
    alter table ... rename to ... statements:
    CREATE OR REPLACE TRIGGER CHECK_BEFORERENAME
    BEFORE RENAME
    ON DATABASE
    BEGIN
    END;
    The problem is it doesn't fire on this statement although the Oracle 9i documentation states that we should
    "Specify RENAME to fire the trigger whenever a RENAME statement changes the name of a database object".
    What's the problem?
    Thx!

    Because you're triggering on RENAME but issuing an ALTER statement. The RENAME trigger will only catch statements like RENAME X TO Y.

  • How to rename database with secondary indexes.

    Hi,
    could somebody advise how to run correct next operation:
    I have database with secondary indexes in a single file and I need to rename that db file.
    As I understand I have to
    1) close and delete all database handles
    2) remove from db file all secondary indexes with DbEnv::dbremove
    3) rename db file with DbEnv::dbrename
    4) create primary db
    5) create once again all secondary indexes and associate them with primary db
    Appreciate in advance.

    Hi,
    Your question has two possible cases:
    1. A single file contains main DB and its secondary indexes.
    2. A file contains several secondary indexes of main DB, another file contains the main DB.
    For the first case, the main database could be renamed directly, but all of the secondary databases do not continue to work. That means no new index items will be added automatically into exist secondary databases. So these secondary databases should be removed and created, you could also just run a DB->associate to re-associate it again. But in the later way, the re-associated secondary DB won't automatic index these records that are added before associating.
    That means, if main db is renamed and then inserted a record 'A'. Then secondary DB is re-associated to main db. The secondary DB still does not index record 'A'. And currently there is not method to let secondary DB manually index 'A' again. So it is better to remove and create a new secondary DB with DB_CREATE flag. That will make the new secondary DB scan current items and index them.
    For the second case, the result is the same, main database could be remained directly. Then all of the secondary databases should be re-created or re-associated. Still for the described reason, we prefer the first way.
    And, removing old secondary databases before renaming main database is also work in above cases.
    Thanks,
    Victor Yang

  • Rename database command line utility

    hey,
    the DbDump, DbLoad, et.al. provide a lot of useful administrative functions, but for some reason database renaming does not seem to be among them (that i could see). just a request that a database rename utility be added in some future version.
    thanks,
    -james

    Hi James,
    Sorry for the late reply. It's true that we don't have a rename utility, nor remove or truncate. There are others one could imagine. We don't have plans to add more utilities right now, but we'll keep your request in mind.
    Thanks,
    Mark

  • Rename database: problem

    Hi experts,
    as a part of annual refresh i have to refresh TEST database with production, i usually take cold backup and then apply the file in test. however the problem is production and test database names are different.
    I used nid to rename the test database, but it involves lot of other activity . Is there any other easiest way to do this activity.
    regards
    Shaan

    1- verify if your create controlfile script does not misse any datafile.
    2- RECOVER DATABASE USING BACKUP CONTROLFILE;
    Answer CANCEL.
    3-ALTER DATABASE OPEN RESTLOGS;

  • How do I rename an XE database on a Windows 2003 Server?

    Ok. I'm attempting to rename a freshly installed XE database on a Windows 2003 Server. It looks like there is no getting around the fact that the database gets named "XE" during installation. Because there could potentially be multiple installations of XE in my organization, I thought it'd be a good idea to disambiguate the installations by renaming them to match their function. In this particular case, I'd like to rename the database to "CTXMGMT". It will be a data repository for our Citrix farm administration programs.
    Here is what I've performed thus far:
    1. Installed Oracle 10g XE on one of our Windows 2003 Server, Standard Edition machines.
    2. Verified that the installation was performed correctly by making sure the 'Database Home Page' loads correctly through Internet Explorer, and by performing a few Select statements on the database (i.e. select name from v$database;)
    * * I then began following instructions from this document (http://www.utexas.edu/its/unix/reference/oracledocs/v92/B10501_01/server.920/a96652/ch14.htm#1004735) to rename the database. Note: I'm only trying to change the name of the database, not the ID.
    3. Shutdown the database
    4. Opened the database in MOUNT mode
    5. Ran the NID utility. Here's the actual input/output to/from the NID utility:
    C:\oraclexe\app\oracle\product\10.2.0\server\BIN>nid target=sys/manager@xe DBNAME=CTXMGMT SETNAME=YES
    DBNEWID: Release 10.2.0.1.0 - Production on Mon Jul 10 15:55:10 2006
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to database XE (DBID=2476560070)
    Connected to server version 10.2.0
    Control Files in database:
    C:\ORACLEXE\ORADATA\XE\CONTROL.DBF
    Change database name of database XE to CTXMGMT? (Y/[N]) => Y
    Proceeding with operation
    Changing database name from XE to CTXMGMT
    Control File C:\ORACLEXE\ORADATA\XE\CONTROL.DBF - modified
    Datafile C:\ORACLEXE\ORADATA\XE\SYSTEM.DBF - wrote new name
    Datafile C:\ORACLEXE\ORADATA\XE\UNDO.DBF - wrote new name
    Datafile C:\ORACLEXE\ORADATA\XE\SYSAUX.DBF - wrote new name
    Datafile C:\ORACLEXE\ORADATA\XE\USERS.DBF - wrote new name
    Datafile C:\ORACLEXE\ORADATA\XE\TEMP.DBF - wrote new name
    Control File C:\ORACLEXE\ORADATA\XE\CONTROL.DBF - wrote new name
    Instance shut down
    Database name changed to CTXMGMT.
    Modify parameter file and generate a new password file before restarting.
    Succesfully changed database name.
    DBNEWID - Completed succesfully.
    6. After running the NID utility from a separate DOS Window, I attempt to shutdown the newly renamed database from the first DOS Window I used in steps 3 & 4 from above (i.e. to shutdown the database and then start it in MOUNT mode) but I receive this error:
    ORA-03113: end-of-file on communication channel
    This is somewhat expected since the SQL*Plus connection in this window probably had "the bottom pulled out from under it" when the database was renamed.
    However at this point I'm unsure about what state the database is in. Is it down? Is it up? Logic would sort of dictate that the database was left in the MOUNT state, which is the state it was in when the database name was changed. However, the only way I'm able to get back in to the database is by doing the following
    a. Opened a new DOS window
    b. entered "set ORACLE_HOME=C:\oraclexe\app\oracle\product\10.2.0\server"
    c. entered "set ORACLE_SID=XE"
    d. entered " sqlplus "/ as sysdba" "
    e. at SQL> prompt, entered "startup"... which produces:
    SQL> startup;
    ORACLE instance started.
    Total System Global Area 285212672 bytes
    Fixed Size 1287016 bytes
    Variable Size 92277912 bytes
    Database Buffers 188743680 bytes
    Redo Buffers 2904064 bytes
    ORA-01103: database name 'CTXMGMT' in control file is not 'XE'
    SQL>
    From here I don't know what to do. According to the ORA-01103 error message, it looks like I need to change the database name in the control file to "CTXMGMT", but I'm not sure how I should go about that. The control file is a binary file, so I can't just open it up with Notepad and type in a new database name.
    I suspect that even once that is done that the listener.ora (and maybe the tnsnames.ora file?) will have to be edited to include the new "CTXMGMT" name, but I'm not sure how exactly those files should look to incorporate the new database name.
    Also, would the names of services have to be changed in Windows as well? (i.e. Would the Windows service named "OracleServiceXE" have to be renamed to "OracleServiceCTXMGMT" ?)
    In short, I really just need to know how to rename an XE database on Windows appropriately. The steps described above represent as far as I've gotten. If I'm going about it incorrectly could someone shed some light on the correct steps to follow? The more detailed the better. Thanks.
    - Gary

    Okay, I've....
    1) Reinstalled XE, to start from scratch
    2) Went in to SQL*Plus, did a "create pfile from spfile;"
    3) Shutdown the database
    4) Started it up in MOUNT mode
    5) Ran NID, to change the database name from 'XE' to 'CTXMGMT'
    6) Shutdown the database again
    7) Edited the pfile to change the database name (i.e. "db_name='CTXMGMT'")
    8) Started up the database
    And that worked! So that's good... but now my question is:
    How do I change the SID for the database? Currently, the instance name for the database is still 'XE'....
    SQL> select instance_name
    2 from v$instance;
    INSTANCE_NAME
    xe
    I'd like it so a connection could be made to the database with the tnsnames.ora file looking like this:
    CTXMGMT =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(Host = rodin)(Port = 1521))
    (CONNECT_DATA = (SID = CTXMGMT))
    Could someone explain how to get the database to this state? Thanks.
    - Gary

  • How to Rename Oracle 11g Database in the Linux

    I want to Rename Database.How I must do this problem.Please help me
    Edited by: 850512 on Apr 7, 2011 1:18 AM
    Edited by: 850512 on Apr 7, 2011 1:22 AM

    850512 wrote:
    Step by step pleaseBefore you proceed any further, you need to define the real problem you are trying to solve. "renaming" a database may or may not be the appropriate solution - not to mention that "rename the database" could mean several things and we don't know your definition of that phrase.

  • How to rename a database

    Hello Gurus,
    Due to some reason I need to rename my database.Can anybody tell me how to rename a database.
    Secondly,What should be the criteria to fix the size of archive log.i.e.What should we keep in mind while deciding the size of archive log?
    Thanx

    For the first question:
    http://www.google.co.uk/search?hl=en&q=oracle+rename+database&btnG=Google+Search&meta=
    With regards to the archive logs, these are needed to recover your backed up datafiles. So, what you keep is largely determined by your backup strategy. Check out:
    http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14220/backrec.htm#sthref2338

  • SQL DBA renamed the Search databases, and now search isnt working

    Our SQL DBA, saw the GUIDs and decided to rename the databases, didnt bother to tell anyone that they did it, now search is not working at all.
    Should we reconfigure a new search of try to figure out how to put SharePoint search to the renamed DATABASES?
    I also have found that the prior names of the Databases what they were with the GUIDs and was thinking of telling the DBA to rename them back, would this causes an issues... and this is in PRODUCTION SharePoint...

    You can get the "old" names via Get-SPDatabase. Rename the databases within SQL until you have a chance to follow the proper procedure. The proper procedure is outlined here:
    http://technet.microsoft.com/en-us/library/jj219654(v=office.15).aspx
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Creating database oracle 10g express edition

    1. can we create more than one database in oracle 10g express edition?
    2. can we rename database name default "XE" in Oracle 10g express edition?

    >
    1. can we create more than one database in oracle 10g express edition?
    >
    No you cannot.
    http://download.oracle.com/docs/cd/B25329_01/doc/install.102/b25144/toc.htm
    >
    3.2 Oracle Database XE Installation and Execution Restrictions
    <li>On a single computer, only one installation of the Oracle Database XE software can be performed.</li>
    <li>In addition, users can run only one instance of the Oracle Database XE database on each individual computer.</li>
    To run more than one Oracle Database server instance or install more than one copy of the database software, upgrade to Oracle Database 10g Standard Edition, Oracle Database 10g Standard Edition One, or Oracle Database 10g Enterprise Edition.
    >
    >
    2. can we rename database name default "XE" in Oracle 10g express edition?
    >
    Yes you can. Please see the link below for details.
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:963124000346653522
    XE questions are best answered here {forum:id=251}
    Regards,
    Phiri

  • Database clone error

    Hi,
    I make a database clone.
    I copied all files from start database.
    After what I recreate controlfiles into the new database, and I have an error which I don't know what is it :
    Wed Jul 28 13:22:28 2004
    CREATE CONTROLFILE SET DATABASE "IPUMAS" RESETLOGS NOARCHIVELOG
    MAXLOGFILES 32
    MAXLOGMEMBERS 4
    MAXDATAFILES 250
    MAXINSTANCES 8
    MAXLOGHISTORY 907
    LOGFILE
    GROUP 1 (
    '/appli/oraredolog/IPUMAS/rep01/IPUMAS_redo1_1.rdo',
    '/appli/oraredolog/IPUMAS/rep02/IPUMAS_redo1_2.rdo'
    ) SIZE 100M,
    GROUP 2 (
    '/appli/oraredolog/IPUMAS/rep01/IPUMAS_redo2_1.rdo',
    '/appli/oraredolog/IPUMAS/rep02/IPUMAS_redo2_2.rdo'
    ) SIZE 100M,
    GROUP 3 (
    '/appli/oraredolog/IPUMAS/rep01/IPUMAS_redo3_1.rdo',
    '/appli/oraredolog/IPUMAS/rep02/IPUMAS_redo3_2.rdo'
    ) SIZE 100M,
    GROUP 4 (
    '/appli/oraredolog/IPUMAS/rep01/IPUMAS_redo4_1.rdo',
    '/appli/oraredolog/IPUMAS/rep02/IPUMAS_redo4_2.rdo'
    ) SIZE 100M
    DATAFILE
    '/appli/oradata/IPUMAS/rep01/IPUMAS_system_01.dbf',
    '/appli/oradata/IPUMAS/rep07/IPUMAS_rollback_01.dbf',
    '/appli/oradata/IPUMAS/rep16/IPUMAS_rollback_02.dbf',
    '/appli/oradata/IPUMAS/rep01/IPUMAS_temp_01.dbf',
    '/appli/oradata/IPUMAS/rep02/IPUMAS_temp_02.dbf',
    '/appli/oradata/IPUMAS/rep04/IPUMAS_TAB_BOREF_01.dbf',
    '/appli/oradata/IPUMAS/rep03/IPUMAS_TAB_DATA01_01.dbf',
    '/appli/oradata/IPUMAS/rep03/IPUMAS_TAB_DATA01_02.dbf',
    '/appli/oradata/IPUMAS/rep03/IPUMAS_TAB_DATA01_03.dbf',
    '/appli/oradata/IPUMAS/rep03/IPUMAS_TAB_DATA01_04.dbf',
    '/appli/oradata/IPUMAS/rep03/IPUMAS_TAB_DATA01_05.dbf',
    '/appli/oradata/IPUMAS/rep03/IPUMAS_TAB_DATA01_06.dbf',
    '/appli/oradata/IPUMAS/rep04/IPUMAS_TAB_DATA01_07.dbf',
    '/appli/oradata/IPUMAS/rep04/IPUMAS_TAB_DATA01_08.dbf',
    '/appli/oradata/IPUMAS/rep04/IPUMAS_TAB_DATA01_09.dbf',
    '/appli/oradata/IPUMAS/rep04/IPUMAS_TAB_DATA01_10.dbf',
    '/appli/oradata/IPUMAS/rep04/IPUMAS_TAB_DATA01_11.dbf',
    '/appli/oradata/IPUMAS/rep04/IPUMAS_TAB_DATA01_12.dbf',
    '/appli/oradata/IPUMAS/rep05/IPUMAS_TAB_DATA02_01.dbf',
    '/appli/oradata/IPUMAS/rep05/IPUMAS_TAB_DATA02_02.dbf',
    '/appli/oradata/IPUMAS/rep05/IPUMAS_TAB_DATA02_03.dbf',
    '/appli/oradata/IPUMAS/rep05/IPUMAS_TAB_DATA02_04.dbf',
    '/appli/oradata/IPUMAS/rep05/IPUMAS_TAB_DATA02_05.dbf',
    '/appli/oradata/IPUMAS/rep16/IPUMAS_TAB_DATA02_06.dbf',
    '/appli/oradata/IPUMAS/rep06/IPUMAS_TAB_DATA03_01.dbf',
    '/appli/oradata/IPUMAS/rep06/IPUMAS_TAB_DATA04_01.dbf',
    '/appli/oradata/IPUMAS/rep08/IPUMAS_TAB_MVT01_01.dbf',
    '/appli/oradata/IPUMAS/rep08/IPUMAS_TAB_MVT02_01.dbf',
    '/appli/oradata/IPUMAS/rep08/IPUMAS_TAB_REJ_01.dbf',
    '/appli/oradata/IPUMAS/rep07/IPUMAS_TAB_WORK_01.dbf',
    '/appli/oradata/IPUMAS/rep12/IPUMAS_IDX_WORK_01.dbf',
    '/appli/oradata/IPUMAS/rep07/IPUMAS_TAB_MAS_01.dbf',
    '/appli/oradata/IPUMAS/rep07/IPUMAS_TAB_MAS_02.dbf',
    '/appli/oradata/IPUMAS/rep07/IPUMAS_TAB_MAS_03.dbf',
    '/appli/oradata/IPUMAS/rep07/IPUMAS_TAB_MAS_04.dbf',
    '/appli/oradata/IPUMAS/rep07/IPUMAS_TAB_MAS_05.dbf',
    '/appli/oradata/IPUMAS/rep07/IPUMAS_TAB_MAS_06.dbf',
    '/appli/oradata/IPUMAS/rep09/IPUMAS_IDX_DATA01_01.dbf',
    '/appli/oradata/IPUMAS/rep09/IPUMAS_IDX_DATA01_02.dbf',
    '/appli/oradata/IPUMAS/rep09/IPUMAS_IDX_DATA01_03.dbf',
    '/appli/oradata/IPUMAS/rep09/IPUMAS_IDX_DATA01_04.dbf',
    '/appli/oradata/IPUMAS/rep10/IPUMAS_IDX_DATA01_05.dbf',
    '/appli/oradata/IPUMAS/rep10/IPUMAS_IDX_DATA01_06.dbf',
    '/appli/oradata/IPUMAS/rep10/IPUMAS_IDX_DATA01_07.dbf',
    '/appli/oradata/IPUMAS/rep10/IPUMAS_IDX_DATA01_08.dbf',
    '/appli/oradata/IPUMAS/rep16/IPUMAS_IDX_DATA01_09.dbf',
    '/appli/oradata/IPUMAS/rep16/IPUMAS_IDX_DATA01_10.dbf',
    '/appli/oradata/IPUMAS/rep11/IPUMAS_IDX_DATA02_01.dbf',
    '/appli/oradata/IPUMAS/rep11/IPUMAS_IDX_DATA02_02.dbf',
    '/appli/oradata/IPUMAS/rep11/IPUMAS_IDX_DATA02_03.dbf',
    '/appli/oradata/IPUMAS/rep15/IPUMAS_IDX_MVT_01.dbf',
    '/appli/oradata/IPUMAS/rep14/IPUMAS_IDX_MAS_01.dbf',
    '/appli/oradata/IPUMAS/rep14/IPUMAS_IDX_MAS_02.dbf',
    '/appli/oradata/IPUMAS/rep13/IPUMAS_IDX_MAS_03.dbf',
    '/appli/oradata/IPUMAS/rep13/IPUMAS_IDX_MAS_04.dbf',
    '/appli/oradata/IPUMAS/rep11/IPUMAS_IDX_MAS_05.dbf',
    '/appli/oradata/IPUMAS/rep12/IPUMAS_IDX_MAS_06.dbf',
    '/appli/oradata/IPUMAS/rep01/IPUMAS_tools_01.dbf',
    '/appli/oradata/IPUMAS/rep16/IPUMAS_TAB_BLOB01_01.dbf'
    CHARACTER SET WE8ISO8859P15
    Wed Jul 28 13:22:28 2004
    ORA-1503 signalled during: CREATE CONTROLFILE SET DATABASE "IPUMAS" RESETLOGS...
    Wed Jul 28 13:22:28 2004
    alter database open resetlogs
    ORA-1507 signalled during: alter database open resetlogs
    Thank you for your help
    Nicolas.

    Hi Alurich,
    I deleted controlfile, I verified init.ora the controlfile directories is correct...
    I have always this error :
    Total System Global Area 1442754452 bytes
    Fixed Size 73620 bytes
    Variable Size 99921920 bytes
    Database Buffers 1342177280 bytes
    Redo Buffers 581632 bytes
    CREATE CONTROLFILE SET DATABASE "IPUMAS" RESETLOGS NOARCHIVELOG
    ERROR at line 1:
    ORA-01503: CREATE CONTROLFILE failed
    ORA-01161: database name IPMAS in file header does not match given name of
    IPUMAS
    ORA-01110: data file 56: '/appli/oradata/IPUMAS/rep16/IPUMAS_rollback_02.dbf'
    IPMAS is my start database, I copied all file, and rename database from IPMAS to IPUMAS with command line create controlfile...
    Nicolas.

Maybe you are looking for