The NID (New Database ID) is a new utility introduced with Oracle 9.2. The NID utility allows you to change only the DBNAME, or only the DBID or both DBNAME and DBID in the same command.
Notes:
=============
========
Notes:
- If you change the DBID you must open the database with the RESETLOGS option, which re-creates the online redo logs and resets their sequence to 1.
- If you change the DBNAME without changing the DBID then this does not require you to open with the RESETLOGS option, so database backups and archived logs are not invalidated. You must change the DB_NAME initialization parameter after a database name change to reflect the new name. Also, you may have to re-create the Oracle password file. If you restore an old backup of the control file (before the name change, then you should use the initialization parameter file and password file from before the database name change.
=============
- Backup the database
- SHUTDOWN IMMEDIATE of the database
- STARTUP MOUNT
- Open one session and run NID with sysdba privileges
- Shutdown IMMEDIATE of the database
- Set the DB_NAME initialization parameter in the initialization parameter file to the new database name
- Create a new password file
- Startup of the database with open resetlogs/no resetlogs
========
TARGET --> Username/Password
DBNAME --> New database name
LOGFILE --> Output Log
REVERT --> Revert failed change (NO)
SETNAME --> Set a new database name only (NO)
APPEND --> Append to output log (NO)
HELP --> Displays these messages (NO)
DBNAME --> New database name
LOGFILE --> Output Log
REVERT --> Revert failed change (NO)
SETNAME --> Set a new database name only (NO)
APPEND --> Append to output log (NO)
HELP --> Displays these messages (NO)
No comments:
Post a Comment