文件系统
/usr
和
/home
DB2
1.1
安装
DB2
服务器
1.1.1
检查系统环境
V
7.1
产品总是被安装在
/usr/lpp/db2_07_01
目录下(
/usr
文件系统),而每个
DB2
实
例和
sample
数据库都在管理用户的根目录下(
/home
文件系统)创建,所以,必须保证
这两个文件系统上有足够的空闲存储空间。建议
/usr
文件系统至少有
500M
剩余空间;
/h
ome
文件系统至少有
100M
剩余空间。
使用命令
df
Change
/
Show
扩充文件系
统
/usr
和
/home
#
smitty
chfs
查看文件系统
/usr
和
/home
的信息。
Character
istics
of
a
Journaled
File
System
选择要扩大的文件系统,如
/home
,回车后进入以
下画面:
在
“SIZE
of
file
system
(in
512
-
byte
blocks)”
处输入希望扩大到的空间容量,
其它不变,回车即可。如
/home
文件系统需要扩大到
200M
,则通过计算得出:
200
*
1
024
*
1024/512=409600
在
“SIZE
of
file
system
(in
512-byte
页空间(
p
aging
space
)应为内存的
1.5~2
倍。
blocks)”
处,输入
“409600”
即可。
1.1.2
安装
CD-ROM
文件系统将
DB2
UDB
V6.1
FOR
AIX
光盘放入光驱,
如果
C
D-ROM
文件系统已经存在,
使用命令
mount
/dev/cd0
安装
CD-ROM
文件系统;
否则,
应首先创建
CDROM
文件系统:
(1)
创建一个目录来安装该
CD-ROM
#
mkdir
-
p
/cdrom
cdrom
表示
CD-ROM
安装目录
(2)
分配
CD-ROM
文件系统
#
s
mitty
crcdrfs
在
“DEVICE
name”
处按
F4
选择
“cd0”
;
“MOUNT
POINT”
处输入
“/cdr
om”
;选择
“Mount
AUTOMATICALLY
at
system
restart?”
为
“no”
。创建成功后,执
行
#
mount
/dev/cd0
安装
CD-ROM
文件系统。
1.1.3
安装
DB2
软件的
License
Key
DB2
软件的
License
Key
保存在光盘上
db
2/license/db2entr.lic
文件中,一般为最后两行,将这两行追加到
/usr/lib/netls/conf/n
odelock
文件中即可。使用命令:
tail
–
4
/cdrom/db2/license/db2entr.lic
>;>;
/u
sr/lib/netls/conf/nodelock
#
cd
/cdrom
# ./db2setup
进入
DB2
安装画面:
1.1.4
安装
DB2
产品
+-------------------------------
Install
DB2
V7-------------------------------
-+
|
|
|
Select
the
pr
oducts
you
are
licensed
to
install.
Your
Proof
of
|
|
Entitlement
a
nd
License
Information
booklet
identify
the
products
for
|
|
which
you
are
licensed.
|
|
|
|
To
see
the
prese
lected
components
or
customize
the
selection,
select
|
|
Customize
fo
r
the
product.
|
|
[
]
DB2
Administration
Client
[
Customize...
]
|
|
[*]
DB2
UDB
Enterprise
Edit
ion
[
Customize...
]
|
|
[
]
DB2
UDB
Connec
t
[
Customize...
]
|
|
[*]
DB2
Application
Devel
opment
Client
[
Customize...
]
|
|
To
choose
a
language
for
the
following
components,
select
Customize
for
|
|
the
produc
t.
|
|
DB2
Product
Message