Newsgroups: comp.databases.oracle.server
From: "Tim Arnold" <timkarn...@comcast.net>
Date: Tue, 8 Jul 2008 11:40:19 -0400
Local: Tues, Jul 8 2008 11:40 am
Subject: Re: Changing DBID
news:RKLck.1120$bn3.583@trnddc07...
> Is there a way to reset the DBID of a database to a specific value? For see Metalink note Note:224266.1 > example in the case if a duplicated database, I want to reset the DBID of > the auxiliary DB to it's original DBID after the duplication is complete > to make maintenance on the old backups easier. The auxiliary database in > question is a test db, is not in archivelog mode, and all it's backups are > cold backups. > TIA Change Only the DBID ==================== 1. Backup the database 1. C:\>set ORACLE_SID=TEST1BY SQL> startup pfile=D:\oracle\admin\TEST1BY\pfile\initTEST1BY.ora Total System Global Area 135338868 bytes 2. check the DBID before change SQL> select dbid,name,open_mode,activation#,created from v$database; DBID NAME OPEN_MODE ACTIVATION# CREATED 3. SQL> shutdown immediate; 4. SQL> startup mount pfile=D:\oracle\admin\TEST1BY\pfile\initTEST1BY.ora Total System Global Area 135338868 bytes 5. execute NID C:\>nid target=sys/oracle@TEST1BY DBNEWID: Release 9.2.0.1.0 - Production Connected to database TEST1BY (DBID=1395399949) Control Files in database: Change database ID of database TEST1BY? (Y/[N]) => y Proceeding with operation Database ID for database TEST1BY changed to 1397190693. 6. SQL> shutdown immediate; 7. create the new passwordfile 8. SQL> startup mount pfile=D:\oracle\admin\TEST1BY\pfile\initTEST1BY.ora Total System Global Area 135338868 bytes 9. SQL> alter database open resetlogs; 10. check the new DBID SQL> select dbid,name,open_mode,activation#,created from v$database; DBID NAME OPEN_MODE ACTIVATION# CREATED NOTE: The NID change the OLD DBID 1395399949 to the NEW DBID 1397190693 You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||