利用nid工具修改db_name時hang住
問題描述:
在發出nid命令後,執行到最後,等待了很長時間都沒有執行完畢,如下:
[oracle@HQ-CICUTESTDB-01 bin]$ nid target=sys/oracle dbname=tpuktest
DBNEWID: Release 10.2.0.4.0 - Production on Mon Jun 30 08:09:43 2014
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Connected to database CICUKNEW (DBID=1737794697)
Connected to server version 10.2.0
Control Files in database:
/oradata/cicuknewtest/cicuknew/control01.ctl
/oradata/cicuknewtest/cicuknew/control02.ctl
/oradata/cicuknewtest/cicuknew/control03.ctl
Change database ID and database name CICUKNEW to TPUKTEST? (Y/[N]) => y
Proceeding with operation
Changing database ID from 1737794697 to 922964040
Changing database name from CICUKNEW to TPUKTEST
Control File /oradata/cicuknewtest/cicuknew/control01.ctl - modified
Control File /oradata/cicuknewtest/cicuknew/control02.ctl - modified
Control File /oradata/cicuknewtest/cicuknew/control03.ctl - modified
Datafile /oradata/cicuknewtest/cicuknew/system01.dbf - dbid changed, wrote new name
Datafile /oradata/cicuknewtest/cicuknew/undotbs01.dbf - dbid changed, wrote new name
Datafile /oradata/cicuknewtest/cicuknew/sysaux01.dbf - dbid changed, wrote new name
Datafile /oradata/cicuknewtest/cicuknew/users01.dbf - dbid changed, wrote new name
Datafile /oradata/cicuknewtest/cicuknew/tblspace_claim01.dbf - dbid changed, wrote new name
Datafile /oradata/cicuknewtest/cicuknew/tblspace_claimidx01.dbf - dbid changed, wrote new name
Datafile /oradata/cicuknewtest/cicuknew/TBLSPACE_CSMIG01.dbf - dbid changed, wrote new name
Datafile /oradata/cicuknewtest/cicuknew/tblspace_oth01.dbf - dbid changed, wrote new name
Datafile /oradata/cicuknewtest/cicuknew/tblspace_othidx01.dbf - dbid changed, wrote new name
Datafile /oradata/cicuknewtest/cicuknew/tblspace_payment01.dbf - dbid changed, wrote new name
Datafile /oradata/cicuknewtest/cicuknew/tblspace_paymentidx01.dbf - dbid changed, wrote new name
Datafile /oradata/cicuknewtest/cicuknew/tblspace_prp01.dbf - dbid changed, wrote new name
Datafile /oradata/cicuknewtest/cicuknew/tblspace_prpidx01.dbf - dbid changed, wrote new name
Datafile /oradata/cicuknewtest/cicuknew/tblspace_reins01.dbf - dbid changed, wrote new name
Datafile /oradata/cicuknewtest/cicuknew/tblspace_reinsidx01.dbf - dbid changed, wrote new name
Datafile /oradata/cicuknewtest/cicuknew/tblspace_visa01.dbf - dbid changed, wrote new name
Datafile /oradata/cicuknewtest/cicuknew/tblspace_visaidx01.dbf - dbid changed, wrote new name
Datafile /oradata/cicuknewtest/cicuknew/temp01.dbf - dbid changed, wrote new name
Control File /oradata/cicuknewtest/cicuknew/control01.ctl - dbid changed, wrote new name
Control File /oradata/cicuknewtest/cicuknew/control02.ctl - dbid changed, wrote new name
Control File /oradata/cicuknewtest/cicuknew/control03.ctl - dbid changed, wrote new name
然後在後臺檢視alert日誌,如下:
*** DBNEWID utility started ***
DBID will be changed from 1737794697 to new DBID of 922964040 for database CICUKNEW
DBNAME will be changed from CICUKNEW to new DBNAME of TPUKTEST
Starting datafile conversion
Setting recovery target incarnation to 1
Datafile conversion complete
Database name changed to TPUKTEST.
Modify parameter file and generate a new password file before restarting.
Database ID for database TPUKTEST changed to 922964040.
All previous backups and archived redo logs for this database are unusable.
Database has been shutdown, open with RESETLOGS option.
Succesfully changed database name and ID.
*** DBNEWID utility finished succesfully ***
Shutting down instance: further logons disabled
Mon Jun 30 08:57:37 2014
Shutting down instance (immediate)
License high water mark = 2
All dispatchers and shared servers shutdown
Mon Jun 30 09:02:38 2014
SHUTDOWN: Active processes prevent shutdown operation
Mon Jun 30 09:07:39 2014
SHUTDOWN: Active processes prevent shutdown operation
從日誌中可以看到,nid已經執行成功了,並且在後臺對資料庫執行了關庫,但是由於nid執行會話其實還是在執行沒有退出,所以提示 Active processes prevent shutdown operation。從官方文件來看,nid執行成功的提示應該是顯示在nid執行會話當中,然後手動關庫,而不是在後臺提示並且自動關庫。這就造成了類似死鎖的現象。
解決辦法:
Ctrl+C把nid執行會話停掉,並退出會話,資料庫便會停掉。
NID-00600: Internal Error - [28] [1013] [0] [0]
Change of database name and ID failed during validation - database is intact.
DBNEWID - Completed with validation errors.
雖然會提示上面的錯誤,但其實db_name已經成功轉換了。
在發出nid命令後,執行到最後,等待了很長時間都沒有執行完畢,如下:
[oracle@HQ-CICUTESTDB-01 bin]$ nid target=sys/oracle dbname=tpuktest
DBNEWID: Release 10.2.0.4.0 - Production on Mon Jun 30 08:09:43 2014
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Connected to database CICUKNEW (DBID=1737794697)
Connected to server version 10.2.0
Control Files in database:
/oradata/cicuknewtest/cicuknew/control01.ctl
/oradata/cicuknewtest/cicuknew/control02.ctl
/oradata/cicuknewtest/cicuknew/control03.ctl
Change database ID and database name CICUKNEW to TPUKTEST? (Y/[N]) => y
Proceeding with operation
Changing database ID from 1737794697 to 922964040
Changing database name from CICUKNEW to TPUKTEST
Control File /oradata/cicuknewtest/cicuknew/control01.ctl - modified
Control File /oradata/cicuknewtest/cicuknew/control02.ctl - modified
Control File /oradata/cicuknewtest/cicuknew/control03.ctl - modified
Datafile /oradata/cicuknewtest/cicuknew/system01.dbf - dbid changed, wrote new name
Datafile /oradata/cicuknewtest/cicuknew/undotbs01.dbf - dbid changed, wrote new name
Datafile /oradata/cicuknewtest/cicuknew/sysaux01.dbf - dbid changed, wrote new name
Datafile /oradata/cicuknewtest/cicuknew/users01.dbf - dbid changed, wrote new name
Datafile /oradata/cicuknewtest/cicuknew/tblspace_claim01.dbf - dbid changed, wrote new name
Datafile /oradata/cicuknewtest/cicuknew/tblspace_claimidx01.dbf - dbid changed, wrote new name
Datafile /oradata/cicuknewtest/cicuknew/TBLSPACE_CSMIG01.dbf - dbid changed, wrote new name
Datafile /oradata/cicuknewtest/cicuknew/tblspace_oth01.dbf - dbid changed, wrote new name
Datafile /oradata/cicuknewtest/cicuknew/tblspace_othidx01.dbf - dbid changed, wrote new name
Datafile /oradata/cicuknewtest/cicuknew/tblspace_payment01.dbf - dbid changed, wrote new name
Datafile /oradata/cicuknewtest/cicuknew/tblspace_paymentidx01.dbf - dbid changed, wrote new name
Datafile /oradata/cicuknewtest/cicuknew/tblspace_prp01.dbf - dbid changed, wrote new name
Datafile /oradata/cicuknewtest/cicuknew/tblspace_prpidx01.dbf - dbid changed, wrote new name
Datafile /oradata/cicuknewtest/cicuknew/tblspace_reins01.dbf - dbid changed, wrote new name
Datafile /oradata/cicuknewtest/cicuknew/tblspace_reinsidx01.dbf - dbid changed, wrote new name
Datafile /oradata/cicuknewtest/cicuknew/tblspace_visa01.dbf - dbid changed, wrote new name
Datafile /oradata/cicuknewtest/cicuknew/tblspace_visaidx01.dbf - dbid changed, wrote new name
Datafile /oradata/cicuknewtest/cicuknew/temp01.dbf - dbid changed, wrote new name
Control File /oradata/cicuknewtest/cicuknew/control01.ctl - dbid changed, wrote new name
Control File /oradata/cicuknewtest/cicuknew/control02.ctl - dbid changed, wrote new name
Control File /oradata/cicuknewtest/cicuknew/control03.ctl - dbid changed, wrote new name
然後在後臺檢視alert日誌,如下:
*** DBNEWID utility started ***
DBID will be changed from 1737794697 to new DBID of 922964040 for database CICUKNEW
DBNAME will be changed from CICUKNEW to new DBNAME of TPUKTEST
Starting datafile conversion
Setting recovery target incarnation to 1
Datafile conversion complete
Database name changed to TPUKTEST.
Modify parameter file and generate a new password file before restarting.
Database ID for database TPUKTEST changed to 922964040.
All previous backups and archived redo logs for this database are unusable.
Database has been shutdown, open with RESETLOGS option.
Succesfully changed database name and ID.
*** DBNEWID utility finished succesfully ***
Shutting down instance: further logons disabled
Mon Jun 30 08:57:37 2014
Shutting down instance (immediate)
License high water mark = 2
All dispatchers and shared servers shutdown
Mon Jun 30 09:02:38 2014
SHUTDOWN: Active processes prevent shutdown operation
Mon Jun 30 09:07:39 2014
SHUTDOWN: Active processes prevent shutdown operation
從日誌中可以看到,nid已經執行成功了,並且在後臺對資料庫執行了關庫,但是由於nid執行會話其實還是在執行沒有退出,所以提示 Active processes prevent shutdown operation。從官方文件來看,nid執行成功的提示應該是顯示在nid執行會話當中,然後手動關庫,而不是在後臺提示並且自動關庫。這就造成了類似死鎖的現象。
解決辦法:
Ctrl+C把nid執行會話停掉,並退出會話,資料庫便會停掉。
NID-00600: Internal Error - [28] [1013] [0] [0]
Change of database name and ID failed during validation - database is intact.
DBNEWID - Completed with validation errors.
雖然會提示上面的錯誤,但其實db_name已經成功轉換了。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/25465866/viewspace-1201069/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 利用nid工具修改db_name和instance_name
- 導數時資料庫hang住分析資料庫
- EXP Or EXPDP時hang住問題,MOS解決方案
- oracle hang住的時候怎麼登陸呢?Oracle
- NID修改資料庫名稱時候碰到NID-00137資料庫
- oracle nid修改dbnameOracle
- AIX定時刪除歸檔日誌時系統HANG住AI
- oracle資料庫hang住分析工具Hanganalyze使用總結Oracle資料庫
- shutdown命令被job程式hang住
- Oracle 19.3資料庫impdp匯入view時hang住Oracle資料庫View
- 19c資料庫impdp匯入view時hang住資料庫View
- 資料泵匯入分割槽表長時間HANG住
- 11gR2修改使用者後導致系統HANG住
- 【YashanDB知識庫】yac修改引數後關閉資料庫hang住資料庫
- 資料庫hang住,分析處理資料庫
- shutdown命令被job程式hang住(續)
- 中止程式導致系統HANG住
- oracle僵死會話鎖住buffer,導致資料庫hang住Oracle會話資料庫
- 資料庫異常hang住解決資料庫
- nid修改資料庫名稱資料庫
- 11G訪問DBA_OBJECTS和V$LOCK檢視時HANG住Object
- Oracle NID工具修改資料庫DBID和資料庫名稱Oracle資料庫
- MySQL:kill和show命令hang住一列MySql
- SUN E6500雙機hang住處理
- 資料庫Hang住怎麼辦 - HANGANALYZE資料庫
- “rebuild index online hang住" 問題解析RebuildIndex
- 儲存壞道造成資料庫hang住資料庫
- 用NID修改資料庫名稱資料庫
- 使用NID修改Oracle資料庫名Oracle資料庫
- 利用DBNEWID工具來修改DBNAME
- alter system switch logfile hang住的一種可能
- 建立EM遇到歸檔Hang住ORA-19504
- select hang住等待SQL*Net message from ClientSQLclient
- 教你修改 Laravel "記住我" Cookie 的過期時間.LaravelCookie
- oracle工具之nid命令的使用Oracle
- 修改資料庫db_name的方法資料庫
- solaris11使用truss解決系統命令hang住
- 一個儲存過程編譯HANG住的分析儲存過程編譯