1、AIX上DB2安装步骤 文件系统/usr和/home DB2 1.1 安装DB2服务器 1.1.1 检查系统环境 V7.1产品总是被安装在/usr/lpp/db2_07_01目录下(/usr文件系统),而每个DB2实例和sample数据库都在管理用户的根目录下(/home文件系统)创建,所以,必须保证这两个文件系统上有足够的空闲存储空间。建议/usr文件系统至少有500M剩余空间;/home文件系统至少有100M剩余空间。使用命令df Change / Show 扩充文件系统/usr和/home # smitty chfs 查看文件系统/usr和/home的信息。 Characteristic
2、s of a Journaled File System 选择要扩大的文件系统,如/home,回车后进入以下画面:在“SIZE of file system (in 512-byte blocks)”处输入希望扩大到的空间容量,其它不变,回车即可。如/home文件系统需要扩大到200M,则通过计算得出: 20010241024/512=409600 在“SIZE of file system (in 512-byte 页空间(paging space)应为内存的1.52倍。 blocks)”处,输入“409600”即可。1.1.2 安装CD-ROM文件系统将DB2 UDB V6.1 FOR A
3、IX光盘放入光驱,如果CD-ROM文件系统已经存在,使用命令mount /dev/cd0安装CD-ROM文件系统;否则,应首先创建CDROM文件系统: (1) 创建一个目录来安装该CD-ROM # mkdir -p /cdrom cdrom表示CD-ROM安装目录 (2) 分配CD-ROM文件系统 # smitty crcdrfs 在“DEVICE name”处按F4选择“cd0”;“MOUNT POINT”处输入“/cdrom”;选择“Mount AUTOMATICALLY at system restart?”为“no”。创建成功后,执行# mount /dev/cd0 安装CD-ROM文
4、件系统。1.1.3 安装DB2软件的License Key DB2软件的License Key保存在光盘上db2/license/db2entr.lic文件中,一般为最后两行,将这两行追加到/usr/lib/netls/conf/nodelock文件中即可。使用命令: tail 4 /cdrom/db2/license/db2entr.lic ; /usr/lib/netls/conf/nodelock # cd /cdrom # ./db2setup 进入DB2安装画面: 1.1.4 安装DB2产品 +- Install DB2 V7-+ | | | Select the products
5、you are licensed to install. Your Proof of | | Entitlement and License Information booklet identify the products for | | which you are licensed. | | | | To see the preselected components or customize the selection, select | | Customize for the product. | | DB2 Administration Client Customize. | | *
6、DB2 UDB Enterprise Edition Customize. | | DB2 UDB Connect Customize. | | * DB2 Application Development Client Customize. | | To choose a language for the following components, select Customize for | | the product. | | DB2 Product Messages Customize. | | DB2 Product Library Customize. | | | | OK Canc
7、el Help | +-+ (图一)注:只需安装“DB2 UDB Enterprise Edition(DB2通用数据库企业版)”。和“DB2 Application Development Client”两项其他两项不需安装: DB2 Administration Client(DB2客户端管理) DB2 Software Developers Kit(DB2软件开发工具包) 移到光标到”DB2 UDB Enterprise Edition”,按空格健选择,选中后前面应有一“”号;移动光标到”Customize”,回车后进入以下画面:+- DB2 Universal Database Ent
8、erprise Edition -+ | | | Required: DB2 Client | | DB2 Run-time Environment | | DB2 Engine | | DB2 Communication Support : | | TCP/IP IPX/SPX | | SNA DRDA AS | | DB2 Sample Database Source | | Administration Server | | DB2 Connect Support | | License Support | | Optional: * Java Support | | * Replica
9、tion | | Control Center | | DB2 Control Server | | Code Page Conversion Support: | | Japanese * Simplified Chinese | | Korean Traditional Chinese | | | | Select All Deselect All Default | | OK Cancel Help | +-+ 在Code Page Conversion (图二) Support:处选择Simplified Chinese(简体中文),然后选择OK,返回“图一”,选择“OK”,进入以下画
10、面: +- Create DB2 Services -+ | | | Select the items you want to create, and select OK when finished. | | | | A DB2 Instance is an environment where you store data and run | | applications. An instance can contain multiple databases. | | | | Create a DB2 Instance. : Customize. : | | * Do not create a
11、 DB2 Instance. | | | | An Administration Server provides services to support client tools that | | automate the configuration of connections to DB2 databases. | | | | Create the Administration Server. : Customize. : | | * Do not create the Administration Server. | | | | OK Cancel Help | +-+ 选择“Do no
12、t create a DB2 Instance”和“Do (图三) not create the Administration Server”,即不创建实例和管理服务器。选择“OK”进入以下画面: +- Warning -+ | | | DBI1755W The Administration Server is not created. | | | | Cause: You have not created a Administration Server. | | Without the Administration Server, you cannot provide | | service
13、s to support client tools that automate the | | configuration of connections to DB2 databases, and cannot | | administer DB2 from your server system or a remote client | | using the Control Center. | | | | Action: | | | | o Press OK to continue, or | | | | o Press Cancel to abort. | | | | OK Cancel
14、| +-+ 选择“OK”后,进入以下画面: (图四)+- DB2 Installer -+ | +- Summary Report -+ | | | More. | | | | Installation | | | | - | | | | Product components to be installed: | | | | | | | | DB2 Client | | | | Open Database Connectivity (ODBC) | | | | DB2 Run-time Environment | | | | DB2 Engine | | | | DB2 Communicati
15、on Support - TCP/IP | | | | Administration Server | | | | DB2 Connect Support | | | | DB2 Communication Support - SNA | | | | DB2 Communication Support - DRDA Application Server | | | | DB2 Communication Support - IPX/SPX | | | | More. | | | +-+ | | Continue | +-+ 选择“Continue”后,进入以下画面: +- Warning (图五) -+ | | | (X) This is your last chance to stop. | | | | Select OK to start, or Cancel to abort. | |
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1