db2haodb
作者db2haodb·2013-10-12 00:48
数据库开发工程师·IGI

DB2 V10.1安装

字数 4060阅读 3916评论 0赞 0
最近由于项目需要,DB2要从V9.7升级到V10,所以自己先练习了下V10.1的安装,
环境:
AIX:6.1
DB2:IBM DB2 Enterprise Server Edition V10.1 for AIX
user:root
安装步骤记录如下:
1.从IBM官网下载IBM DB2 Enterprise Server Edition V10.1 for AIX Multilingual (CI6W9ML)
2.ftp 到测试服务器上,放到新建的目录/db210.1下,解压后目录:ese ; cd ese :

3.在该目录下执行: ./db2setup  会出现如下提示信息:

4.报错:
Exception in thread "main" java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
        at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:211)
        at java.awt.Window.<init>(Window.java:545)
        at java.awt.Frame.<init>(Frame.java:431)
        at java.awt.Frame.<init>(Frame.java:396)
        at LoadingGraphic.<init>(Unknown Source)
        at LoadingGraphic.main(Unknown Source)

The DISPLAY variable is not set properly.  Ensure that the DISPLAY variable is set properly and that permissions are set properly to open windows on the display specified, then rerun the command.
5.google查询解决办法:
是因为AIX不支持界面,因为我是远程通过telnet到server上安装的,所以需要执行:export DISPLAY=my_IP:0.0  (本地安装无需my_IP)
还是报错:
/esbdb/DB2V10.1/ese # ./db2setup        
DBI1190I  db2setup is preparing the DB2 Setup wizard which will guide
      you through the program setup process. Please wait.

_X11TransTRANS(ibmSHMConnect) () can't connect: errno = 68
_X11TransTRANS(ibmSHMConnect) () can't connect: errno = 68
Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
        at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
        at sun.awt.X11GraphicsEnvironment.access$200(X11GraphicsEnvironment.java:77)
        at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:122)
        at java.security.AccessController.doPrivileged(AccessController.java:203)
        at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:86)
        at java.lang.J9VMInternals.initializeImpl(Native Method)
        at java.lang.J9VMInternals.initialize(J9VMInternals.java:233)
        at java.lang.Class.forNameImpl(Native Method)
        at java.lang.Class.forName(Class.java:137)
        at java.awt.GraphicsEnvironment.createGE(GraphicsEnvironment.java:113)
        at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:92)
        at java.awt.Window.initGC(Window.java:477)
        at java.awt.Window.init(Window.java:497)
        at java.awt.Window.<init>(Window.java:546)
        at java.awt.Frame.<init>(Frame.java:431)
        at java.awt.Frame.<init>(Frame.java:396)
        at LoadingGraphic.<init>(Unknown Source)
        at LoadingGraphic.main(Unknown Source)

The DISPLAY variable is not set properly.  Ensure that the DISPLAY variable is set properly and that permissions are set properly to open windows on the display specified, then rerun the command.

5.网上http://www.ubuntu-tw.org/modules/newbb/viewtopic.php?topic_id=6642说:然後su 到db2 serever的instance user.... 在执行export DISPLAY=:0.0,但是我找不到DAS的user,后来找到了,不能访问:
 su - dasusr1
dasusr1's Password:
3004-501 Cannot su to "dasusr1" : Authentication is denied.

如果觉得我的文章对您有用,请点赞。您的支持将鼓励我继续创作!

0

添加新评论0 条评论

Ctrl+Enter 发表

作者其他文章

相关文章

相关问题

相关资料

X社区推广