偷偷摘套内射激情视频,久久精品99国产国产精,中文字幕无线乱码人妻,中文在线中文a,性爽19p

DB2如何安裝實(shí)例數(shù)據(jù)庫(kù)和TOLLSDB數(shù)據(jù)庫(kù)

數(shù)據(jù)庫(kù) 數(shù)據(jù)庫(kù)運(yùn)維
本文將討論的是DB2如何安裝實(shí)例數(shù)據(jù)庫(kù)和TOLLSDB數(shù)據(jù)庫(kù),包括一些錯(cuò)誤信息,希望對(duì)廣大DBA有所幫助。

安裝完成后,欲登陸sample數(shù)據(jù)庫(kù)和toolsdb,發(fā)現(xiàn)出錯(cuò):

  1. db2 => connect to sample  
  2. SQL1031N The database directory cannot be found on the indicated file system.  
  3. db2 => connect to toolsdb  
  4. SQL1031N The database directory cannot be found on the indicated file system. 

1、 猜想數(shù)據(jù)庫(kù)未安裝,查看/hom/db2inst1目錄下的,僅有sqllib文件夾:

  1. [db2inst1@localhost ~]$ ls  
  2. sqllib 

對(duì)比下其他學(xué)員的情況,發(fā)現(xiàn)本人的服務(wù)器上少了一個(gè)db2inst1目錄:

  1. [db2inst1@localhost ~]$ ls  
  2. b2inst1 sqllib 

2、下面手動(dòng)對(duì)兩個(gè)數(shù)據(jù)庫(kù)進(jìn)行創(chuàng)建:

2.1、創(chuàng)建示例數(shù)據(jù)庫(kù):

  1. [db2inst1@localhost ~]$ db2sampl  
  2.  Creating database "SAMPLE"...  
  3.  Connecting to database "SAMPLE"...  
  4.  Creating tables and data in schema "DB2INST1"...  
  5.  Creating tables with XML columns and XML data in schema "DB2INST1"...  
  6.  'db2sampl' processing complete. 

2.2、創(chuàng)建toolsbd數(shù)據(jù)庫(kù):

  1. [db2inst1@localhost NODE0000]$ db2 create tools catalog systools create new database toolsdb  
  2. DB20000I The CREATE TOOLS CATALOG command completed successfully. 

2.3、確認(rèn)相應(yīng)數(shù)據(jù)庫(kù)文件創(chuàng)建的情況:

  1.  [db2inst1@localhost NODE0000]$ cd  
  2. [db2inst1@localhost ~]$ ls  
  3. db2inst1 sqllib  
  4. [db2inst1@localhost ~]$ cd db2inst1/  
  5. [db2inst1@localhost db2inst1]$ ls  
  6. NODE0000  
  7. [db2inst1@localhost db2inst1]$ cd NODE0000/  
  8. [db2inst1@localhost NODE0000]$ ls  
  9. SAMPLE SQL00001 SQL00002 sqldbdir TOOLSDB 

2.4、登陸數(shù)據(jù)庫(kù)。首先登陸到sample,然后斷開與該數(shù)據(jù)庫(kù)的連接,再連接到toolsdb:

 
  1. [db2inst1@localhost NODE0000]$ db2  
  2. (c) Copyright IBM Corporation 1993,2007  
  3. Command Line Processor for DB2 Client 9.7.1  
  4.    
  5. You can issue database manager commands and SQL statements from the command  
  6. prompt. For example:  
  7.    db2 => connect to sample  
  8.    db2 => bind sample.bnd  
  9.    
  10. For general help, type: ?.  
  11. For command help, type: ? command, where command can be  
  12. the first few keywords of a database manager command. For example:  
  13.  ? CATALOG DATABASE for help on the CATALOG DATABASE command  
  14.  ? CATALOG         for help on all of the CATALOG commands.  
  15.    
  16. To exit db2 interactive mode, type QUIT at the command prompt. Outside  
  17. interactive mode, all commands must be prefixed with 'db2'.  
  18. To list the current command option settings, type LIST COMMAND OPTIONS.  
  19.    
  20. For more detailed help, refer to the Online Reference Manual.  
  21.    
  22. db2 => connect to sample  
  23.    
  24.   Database Connection Information  
  25.    
  26.  Database server       = DB2/LINUX 9.7.1  
  27.  SQL authorization ID  = DB2INST1  
  28.  Local database alias  = SAMPLE  
  29.    
  30. db2 => disconnect sample  
  31. DB20000I The SQL DISCONNECT command completed successfully.  
  32. db2 => connect to toolsdb  
  33.   Database Connection Information  
  34.    
  35.  Database server       = DB2/LINUX 9.7.1  
  36.  SQL authorization ID  = DB2INST1  
  37.  Local database alias  = TOOLSDB 

 

 

【編輯推薦】

  1. 在DB2中正確導(dǎo)出LOB數(shù)據(jù)
  2. DB2外部文件格式淺析
  3. DB2數(shù)據(jù)庫(kù)設(shè)計(jì)的三個(gè)建議
  4. 解析DB2與非DB2數(shù)據(jù)庫(kù)之間遠(yuǎn)程復(fù)制
  5. DB2數(shù)據(jù)庫(kù)基本操作指令30條
責(zé)任編輯:楊鵬飛 來(lái)源: ITPUB空間
相關(guān)推薦

2010-08-18 13:49:01

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

2011-03-11 16:02:03

DB2數(shù)據(jù)庫(kù)安裝

2010-08-26 16:15:25

DB2數(shù)據(jù)庫(kù)管理

2010-08-31 14:24:25

DB2聯(lián)合數(shù)據(jù)庫(kù)

2010-11-01 11:30:41

DB2數(shù)據(jù)庫(kù)權(quán)限

2010-09-30 11:49:21

DB2數(shù)據(jù)庫(kù)權(quán)限

2010-11-03 16:21:18

DB2數(shù)據(jù)庫(kù)授權(quán)

2010-08-25 10:50:48

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

2010-08-03 14:40:05

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

2010-08-16 13:45:27

安裝DB2數(shù)據(jù)庫(kù)

2010-11-01 13:34:20

DB2數(shù)據(jù)庫(kù)安裝

2010-08-27 10:06:23

DB2安裝雙機(jī)

2010-08-26 16:00:31

DB2數(shù)據(jù)庫(kù)安裝

2009-12-16 10:48:42

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

2011-05-16 14:42:12

DB2數(shù)據(jù)庫(kù)實(shí)用操作

2010-08-25 11:11:59

DB2JDBC連接

2011-03-03 14:52:40

DB2數(shù)據(jù)庫(kù)恢復(fù)

2010-08-16 14:45:15

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

2010-08-31 14:04:49

DB2驅(qū)動(dòng)

2010-08-31 17:34:46

DB2
點(diǎn)贊
收藏

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