自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

Oracle數(shù)據(jù)庫(kù)中使用nid來(lái)修改數(shù)據(jù)庫(kù)名

數(shù)據(jù)庫(kù) Oracle
以下的文章主要介紹的是Oracle數(shù)據(jù)庫(kù)中正確使用nid來(lái)修改數(shù)據(jù)庫(kù)名的實(shí)際操作,以下就是具體方案的描述,希望在你今后的學(xué)習(xí)中會(huì)有所幫助。

某些系統(tǒng)是因?yàn)?a >Oracle數(shù)據(jù)庫(kù)的名稱不是很規(guī)范,如果你不想對(duì)Oracle數(shù)據(jù)庫(kù)重新創(chuàng)建的話,你可以使用Oracle自帶的工具即nid來(lái)修改Oracle數(shù)據(jù)庫(kù)的名稱。在整個(gè)修改過程中,對(duì)控制文件和數(shù)據(jù)文件進(jìn)行修改,且重置dbid,建議在修改前對(duì)數(shù)據(jù)進(jìn)行備份。

在本例子中,我們將Oracle數(shù)據(jù)庫(kù)中的instance_name和db_name從“oratest”修改為“test”,數(shù)據(jù)庫(kù)版本為10.2.0.3。

查看數(shù)據(jù)庫(kù)信息。

 

  1. SQL> show parameter instance_name  
  2. NAME TYPE VALUE  
  3. stance_name string ORATEST  
  4. SQL> show parameter db_name  
  5. NAME TYPE VALUE  
  6. db_name string ORATEST  
  7. SQL>show parameter service_name  
  8. NAME TYPE VALUE  
  9. db_name string ORATEST  
  10. SQL>select dbid from v$database;  
  11. DBID   
  12. 3213300265  

 

修改前Oracle數(shù)據(jù)庫(kù)名為"oratest",dbid="3213300265"。接下來(lái)修改數(shù)據(jù)庫(kù)名稱,先停止數(shù)據(jù)庫(kù),然后啟動(dòng)到mount狀態(tài)下,使用nid工具修改dbname。

 

  1. SQL> shutdown immediate  
  2. Database closed.  
  3. Database dismounted.  
  4. ORACLE instance shut down.  
  5. SQL> startup mount  
  6. Total System Global Area 268435456 bytes  
  7. Fixed Size 1261272 bytes  
  8. Variable Size 117440808 bytes  
  9. Database Buffers 146800640 bytes  
  10. Redo Buffers 2932736 bytes  
  11. Database mounted.  
  12. SQL> host;  
  13. $ nid target="sys/password" dbname=test 
  14. DBNEWID: Release 10.2.0.3.0 - Production on Wed Feb 4 11:12:36 2009  
  15. Copyright (c) 1982, 2005, Oracle. All rights reserved.  
  16. Connected to database ORATEST (DBID=3213300265)  
  17. Connected to server version 10.2.0  
  18. Control Files in database:  
  19. /u02/oradata/test/control01.ctl  
  20. /u02/oradata/test/control02.ctl  
  21. /u02/oradata/test/control03.ctl  
  22. Change database ID and database name ORATEST to TEST? (Y/[N]) => y  
  23. Proceeding with operation  
  24. Changing database ID from 3213300265 to 1976074532  
  25. Changing database name from ORATEST to TEST  
  26. Control File /u02/oradata/test/control01.ctl - modified  
  27. Control File /u02/oradata/test/control02.ctl - modified  
  28. Control File /u02/oradata/test/control03.ctl - modified  
  29. Datafile /u02/oradata/test/system01.dbf - dbid changed, wrote new name  
  30. Datafile /u02/oradata/test/undotbs01.dbf - dbid changed, wrote new name  
  31. Datafile /u02/oradata/test/sysaux01.dbf - dbid changed, wrote new name  
  32. Datafile /u02/oradata/test/users01.dbf - dbid changed, wrote new name  
  33. Datafile /u02/oradata/test/example01.dbf - dbid changed, wrote new name  
  34. Datafile /u02/oradata/test/temp01.dbf - dbid changed, wrote new name  
  35. Control File /u02/oradata/test/control01.ctl - dbid changed, wrote new name  
  36. Control File /u02/oradata/test/control02.ctl - dbid changed, wrote new name  
  37. Control File /u02/oradata/test/control03.ctl - dbid changed, wrote new name  
  38. NID-00600: Internal Error - [28] [12152] [0] [0]  
  39. Change of database name and ID failed during validation -database is intact.  
  40. DBNEWID - Completed with validation errors.   

以上的相關(guān)內(nèi)容就是對(duì)Oracle數(shù)據(jù)庫(kù)中如何使用nid的修改數(shù)據(jù)庫(kù)名的介紹,望你能有所收獲。

【編輯推薦】

  1. Oracle數(shù)據(jù)庫(kù)中的時(shí)間處理的實(shí)際操作步驟
  2. Oracle通過其實(shí)際存儲(chǔ)過程中返回相關(guān)數(shù)據(jù)集
  3. Oracle提高SQL的執(zhí)行效率的3種好用方法
  4. Oracle Redo的并行機(jī)制運(yùn)行中要用到的代碼
  5. Oracle數(shù)據(jù)庫(kù)與Access互導(dǎo)實(shí)例
責(zé)任編輯:佚名 來(lái)源: 博客園
相關(guān)推薦

2011-05-26 12:54:31

數(shù)據(jù)庫(kù)數(shù)據(jù)庫(kù)名

2011-05-26 14:18:49

Oracle數(shù)據(jù)庫(kù)字段屬性

2009-04-29 16:10:14

2011-04-08 16:00:11

Oracle數(shù)據(jù)庫(kù)外部表

2009-09-04 09:54:59

數(shù)據(jù)庫(kù)名

2011-01-20 10:39:09

postfixmysql

2010-04-14 10:12:07

Oracle數(shù)據(jù)庫(kù)

2011-06-27 13:19:36

OMF托管文件ASM

2010-10-21 14:12:07

SQL Server游

2010-04-23 09:23:44

Oracle 數(shù)據(jù)庫(kù)

2011-05-26 10:30:12

Oracle數(shù)據(jù)庫(kù)約束

2015-08-21 12:59:38

Oracle數(shù)據(jù)庫(kù)

2011-03-10 13:24:26

2011-03-16 08:54:45

Oracle數(shù)據(jù)庫(kù)索引

2009-03-10 09:38:02

oraclepython數(shù)據(jù)庫(kù)

2010-04-14 13:14:46

Oracle數(shù)據(jù)庫(kù)

2018-11-12 15:15:32

MySQL數(shù)據(jù)庫(kù)命令

2010-04-14 09:54:56

Oracle數(shù)據(jù)庫(kù)

2010-05-10 15:50:39

Oracle數(shù)據(jù)庫(kù)性能

2011-08-02 13:37:17

點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)