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

DB2數(shù)據(jù)庫的正確安裝步驟簡介

數(shù)據(jù)庫
以下的文章主要向大家講述的是DB2數(shù)據(jù)庫安裝的正確操作步驟,如果你對DB2數(shù)據(jù)庫安裝的正確操作步驟有興趣的話,以下的文章將會為你揭開它的神秘面紗,以下就是文章的詳細(xì)內(nèi)容介紹,望大家借鑒。

DB2數(shù)據(jù)庫的優(yōu)秀性勿須多言,本文將問您介紹DB2數(shù)據(jù)庫安裝的正確操作步驟,如果您對DB2數(shù)據(jù)庫安裝有興趣的話,不妨一看,對您將有所幫助。

一、DB2安裝過程

 1 新建3個組,分別為管理組件das組,實(shí)例inst組,守護(hù)def組。隨后在三個組中分別加入對應(yīng)的用戶:das,inst,和def。注意的是inst 用戶>同時屬于das組。為各個用戶建立目錄和密碼。

 2 運(yùn)行DB2SETUP后未出現(xiàn)向?qū)?,出現(xiàn)提示后退出的解決。

 請不要執(zhí)行DB2SETUP,請執(zhí)行DB2_install,然后輸入DB2數(shù)據(jù)庫安裝的組件名字進(jìn)行安裝。

 3 創(chuàng)建實(shí)例

 在/opt/IBM/DB2/v8.1/instane/下分別執(zhí)行

 ./dascrt -u dasuser

 ./dasicrt -w 32 -u defuser instuser #如未指定位寬,則會報錯說配置文件不能正常初始化。

 在/cfg/下執(zhí)行DB2ln

4 設(shè)置

 切換到instuser用戶下

 $DB2set -g DB2COMM = TCPIP #在全局或使用-i指定某個實(shí)例的連接屬性

 5 啟動數(shù)據(jù)庫

$DB2start #在啟動前請修改系統(tǒng)時間到2005年以前,否則會出現(xiàn)數(shù)據(jù)庫license過期的提示

 建立樣表#p#

 $DB2sampl

 測試

 $DB2 "select * from stuff"

二、DB2的初次使用

$DB2 

Command Line Processor for DB2 SDK 8.2.3 

You can issue database manager commands and SQL statements from the command 

prompt. For example: 

DB2 => connect to sample 

DB2 => bind sample.bnd 

For general help, type:. 

For command help, type: command, where command can be 

the first few keywords of a database manager command. For example: 

CATALOG DATABASE for help on the CATALOG DATABASE command 

CATALOG for help on all of the CATALOG commands. 

To exit DB2 interactive mode, type QUIT at the command prompt. Outside  #p#

interactive mode, all commands must be prefixed with 'DB2'. 

To list the current command option settings, type LIST COMMAND OPTIONS. 

For more detailed help, refer to the Online Reference Manual. 

DB2 => DB2start 

DB20000I The DB2START command completed successfully. 

DB2 => create db mydb 

DB20000I The CREATE DATABASE command completed successfully. 

DB2 => connect to mydb user admin 

Enter current password for admin: 

Database Connection Information 

Database server = DB2/NT 8.2.3 

SQL authorization ID = ADMIN

Local database alias = MYDB

DB2 => create schema myschema 

DB20000I The SQL command completed successfully.  #p#

DB2 => create table myschema.mytable(id int, name varchar(30)) 

DB20000I The SQL command completed successfully. 

DB2 => insert into myschema.mytable values(101,'Bruce Lu') 

DB20000I The SQL command completed successfully. 

DB2 => select * from myschema.mytable 

ID NAME 

101 Bruce Lu 

1 record(s) selected. 

DB2 => drop table myschema.mytable 

DB20000I The SQL command completed successfully.  #p#

DB2 => drop schema myschema restrict 

DB20000I The SQL command completed successfully. 

DB2 => connect reset 

DB20000I The SQL command completed successfully. 

DB2 => drop db mydb 

DB20000I The DROP DATABASE command completed successfully. 

DB2 => DB2stop 

DB20000I The DB2STOP command completed successfully. 

DB2 => quit 

DB20000I The QUIT command completed successfully.
 

責(zé)任編輯:段燃 來源: 互聯(lián)網(wǎng)
相關(guān)推薦

2010-11-01 11:30:41

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

2011-03-11 16:02:03

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

2010-08-18 17:32:34

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

2010-08-27 14:39:46

db2連接數(shù)據(jù)庫

2010-07-30 09:57:31

2010-08-18 13:49:01

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

2010-08-12 17:14:25

DB2備份恢復(fù)數(shù)據(jù)庫步

2010-08-12 10:27:21

DB2數(shù)據(jù)庫備份

2010-08-11 17:24:13

DB2數(shù)據(jù)庫優(yōu)化

2010-07-27 15:33:00

DB2數(shù)據(jù)庫備份

2010-09-06 08:29:18

連接DB2數(shù)據(jù)庫

2010-08-26 17:11:50

DB2database Pa

2010-08-03 13:56:11

DB2表復(fù)制

2010-08-04 11:29:59

2010-08-27 11:08:59

DB2安裝目錄

2010-07-28 11:05:57

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

2010-08-05 09:53:35

2010-08-18 17:26:29

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

2011-03-14 17:03:21

DB2數(shù)據(jù)庫性能監(jiān)控

2010-08-27 15:26:19

DB2數(shù)據(jù)庫創(chuàng)建
點(diǎn)贊
收藏

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