选择显示字体大小

redhat 7.3 db2 安装记录


最近在自己的linux平台安装了一套db2 pe 7.2,做研究用。在安装过程还是出了一些问题,所以把安装记录贴上来,给大家做个参考。

由于linux的中文问题,所以为英文的,较为简单
1.before
readhat : need pdksh*.rpm - donwload from redhat
user: db2inst1/db2fenc1/db2as
.bash_profile :
export db2dir=/usr/ibmdb2/v7.1
export path=$path:$db2dir/bin

!!!!!above is err
chage user's shell -> ksh

2.db2setup
db2system set to test
install on /usr/ibmdb2

3.postinst
3.1 /usr/ibmdb2/v7.1/instance/db2icrt -a authtype -u fencedid instname
3.2 /usr/ibmdb2/v7.1/instance/dasicrt asname
 (use /usr/ibmdb2/v7.1/install/db2setup)
3.3 /usr/ibmdb2/v7.1/adm/db2licm -a /cdrom/db2/license/db2udbpe.lic
3.4 /usr/ibmdb2/v7.1/cfg/db2ln

check /tmp/db2setup.log :
/usr/ibmdb2/v7.1/instance/db2icrt -a server -u db2fenc1 db2inst1

output log of the above command:
dbi1768w unable to modify the .profile or the .login file of
          user db2inst1.

explanation:  db2 has failed to modify the .profile file or the
.login file of this user.  these files may not exist, or you may
not have write permission to them.  without the modification you
need to set your environment manually each time when you log in
as this user to use db2.

user response:  add the following line to the .profile file or
the .login file:
. sqllib/db2profile   to the .profile file, or
source sqllib/db2cshrc to the .login file

see the quick beginning guide for more details on how to set the
db2 environment automatically.


dbi1070i program db2icrt completed successfully.

4.verify
1.su - db2inst1
   db2sampl
   db2 connect to sample
   db2 "select * from staff where dept = 20"
   db2 connect reset

have err msg but ok after . sqllib/db2profile   to the .profile file

5. stop
su - db2inst1 &#59; db2stop
su - db2as    &#59; db2admin stop


 


关键字 本文所属关键字

相关 与本文相关文章

分类 所有文章关键字导航

源码编程相关

Java   Asp   PHP   .Net   XML   C/C++   CGI   VB   Jsp   J2ee   J2se   J2me   EJB   Servlet   Tomcat   Resin   Struts   Weblogic   Eclipse   ANT   GUI   JMS   Web servise   IDEA   Webphere   Hibernate   Spring   Jboss   Applet   Swing   Socket   Javamail   Perl   Ajax   P2P   安全   模式   框架   测试   开源   游戏

SQL数据库相关

My-SQL   Ms-SQL   Access   DB2   Oracle   Sybase   SQLserver   索引   存储过程   加密   数据库   分页   视图  

手机无线相关

3G   Wap   CDMA   GRPS   GSM   IVR   彩信   短信   无线   增值业务

网页设计制作相关

HTML   CSS   网页配色   网页特效   Javascript   VBscript   Dreamweaver   Frontpage   JS   Web   网站设计

网站建设推广相关

建站经验   网站优化   网站排名   推广   Alexa

操作系统/服务器相关

Windows XP   Windows 2000   Windows 2003   Windows Me   Windows 9.x   Linux   UNIX   注册表   操作系统   服务器   应用服务器

图形图像多媒体相关

Photoshop   Fireworks   Flash   Coreldraw   Illustrator   Freehand   Photoimpact   多媒体   图形图像

标准 网站致力的规范

Valid CSS!

无不良内容,无不良广告,无恶意代码

Valid XHTML 1.0 Transitional

creativecommons