Академический Документы
Профессиональный Документы
Культура Документы
---------------------------
Description:
------------
In oracle 10g its possible to change the database name by using DBNEWID utility.
Scenerio:
---------
Now we are going to change the database name from "doyen" to "doyen1".
Note:
-----
Before doing this take the whole database backup.
2.Connecting to sqlplus and shutdown the database which we are going to change the
database name
sql>shutdown immediate
5.Invoke the DBNEWID utility(nid) specifying the new database name from the
command prompt using user with sysdba privilege
$ nid target=sys/oracle dbname=doyen1 setname=yes
6.DBNEWID performs validations in the headers of the control files (not the data
files) before attempting I/O to the files. If validation is successful, then
DBNEWID prompts for confirmation, changes the database name in the control files,
shuts down the database and exits.
7.Log file:
-----------
DBNEWID: Release 10.2.0.1.0 - Production on Thu Aug 28 10:21:42 2008
If we use pfile to startup go to that location open it as a text editor and change
the database name manually.
Pfile location-->$ORACLE_HOME/dbs/init$ORACLE_SID.ora
14.Reference: http://sabdarsyed.blogspot.com/2007/03/changing-oracle-database-
name-in-oracle.html