Chinaunix首页 | 论坛 | 博客
  • 博客访问: 965343
  • 博文数量: 232
  • 博客积分: 10010
  • 博客等级: 上将
  • 技术积分: 2315
  • 用 户 组: 普通用户
  • 注册时间: 2005-11-02 11:43
文章分类

全部博文(232)

文章存档

2009年(6)

2008年(22)

2007年(72)

2006年(85)

2005年(47)

我的朋友

分类:

2006-02-24 14:32:44

  1. 安装Domino655语言包的时候碰到的问题 (仅仅作为参考)

环境描述:OS:Solaris,上面已经安装了R5的domino,安装在/opt/lotus目录下,数据目录在/portal/oadata1;在另外开了一个目录/opt/lotus6/lotus去安装R655,,数据目录在/portal/notesdata,安装完程序报后,在安装语言包的时候出现java execption,如下:

An error occurred during wizard bean change notification:
java.lang.ArrayIndexOutOfBoundsException
        at domino.languagepack.panels.pathPanel.getUnixPaths(pathPanel.java:1246)
        at domino.languagepack.panels.pathPanel.getUnixPaths(pathPanel.java:1055)
        at domino.languagepack.panels.pathPanel.displayModify(pathPanel.java:412)
        at domino.languagepack.panels.pathPanel.consoleInteraction(pathPanel.java:375)
        at domino.languagepack.panels.STARTPanel.consoleInteraction(STARTPanel.java:1815)
        at com.installshield.wizard.console.ConsoleWizardUI.currentBeanChanged(ConsoleWizardUI.java:68)
        at com.installshield.wizard.StandardWizardListener.currentBeanChanged(StandardWizardListener.java:78)
        at com.installshield.wizard.Wizard$RunThread.run(Wizard.java:1535)

后来进行调试安装,(参考文档

java -cp DomLP655_Suite.jar:DomLP655_zh_CN.jar  run -W cmd.debug="True"  -console
 
发现调试信息如下:
Install Type selected : Replace existing language packs. .
-===============================================-
DEBUG :: NAV Loop [6] : path.
DEBUG :: Active set to True
DEBUG :: Calling Entered
DEBUG :: pathPanel::entered(): m_dli.m_strVersion:
DEBUG :: pathPanel::getUnixPaths(): getUnixPaths() is called.
DEBUG :: pathPanel::getUnixPaths(): strDataDir = "/portal/oadata1"
DEBUG :: pathPanel::getUnixPaths(): temp is false! = 0.
DEBUG :: DM Current version : "5013aHF170"
DEBUG :: DM base version : "5013a"
DEBUG :: DM Prev Rel string : Release 5.0.13a  |April 8, 2004     
DEBUG :: DM found Curr Version: 5013aHF170 at line:3
 
读取的好像是R5系统的参数,后来察看/opt/lotus目录下的.install.dat,发现里面有这些目录信息,于是偷梁换柱,将/opt/lotus6/lotus下的.install.dat替换掉/opt/lotus目录下的.install.dat文件,安装成功。
 
2、在unix下安装db2 client后,在调用LSX去联结数据库出现"Error creating product object."的错误,于是利用Domino自带的lctest(R5)/dctest(R6)去测试连接,发现用root用户可以连接成功,但是用notes用户却不行,后来查找资料查到需要在用户的.profile文件中增加环境变量:(摘录如下)
This problem will occur for 2 possible reasons.
1.  The Unix user account that runs the domino server does not have access to the RDBMS files that are owned by the relational database Unix user. 
2.  Required environment variables are not set to enable the agent to run on a Unix flavor.
For option 1, add the "notes" user to the "oracle", "db2", "sybase", etc... Unix group that owns the required relational files.
For option 2, add the required environment variables as follows.
AIX Environment Variables
Set and export the following environment variables in your appropriate configuration file (such as .login or .profile) so that they will be accessed each time you log on and invoke LEI.
1. Ensure that the LANG environment variable is correctly set to your proper locale and is exported. If this is not set, the default "C" is used.
LANG=C
2. Ensure that the environment variable LOTUS is set as shown below:
If you use the C shell, your .login file should contain the line:
setenv LOTUS /opt/lotus
For sh or ksh, your initialization file should contain the following:
LOTUS=/opt/lotus; export LOTUS
3. Ensure that the environment variable Notes_ExecDirectory is set to specify the Notes executable directory and that the environment variable is exported.
Notes_ExecDirectory=/opt/lotus/notes/latest/ibmpow
4. Ensure that the environment variable PATH is set to include the following directories and that the environment variable is exported.
Notes Resource directory: $LOTUS/notes/latest/ibmpow/res/$LANG
Lotus executable directory: $Notes_ExecDirectory
Notes data directory (locates notes.ini file; for example /home/notes/notesdata)
For example:
PATH=$PATH:/opt/lotus/notes/latest/ibmpow/res/$LANG:/$Notes_ExecDirectory:/home/notes/notesdata
5. Ensure that the environment variable LIBPATH, which is used to locate shared libraries, is set to include the following directories and that the environment variable is exported.
Notes executable directory: $Notes_ExecDirectory
Any other product library directories you may require (such as $ORACLE/lib, $SYBASE/lib, $ODBC_HOME/dlls)
For example:
LIBPATH=$Notes_ExecDirectory:$ORACLE/lib
Solaris and Linux Environment Variables
Set and export the following environment variables in your appropriate configuration file (such as .login or .profile) so that they will be accessed each time you log on and invoke LEI.
1. Ensure that the LANG environment variable is correctly set to your proper locale and is exported. If this is not set, the default "C" is used.
LANG=C
2. Ensure that the environment variable LOTUS is set as shown below:
If you use the C shell, your .login file should contain the line:
setenv LOTUS /opt/lotus
For sh or ksh, your initialization file should contain the following:
LOTUS=/opt/lotus; export LOTUS
3. Ensure that the environment variable Notes_ExecDirectory is set to specify the Notes executable directory and that the environment variable is exported.
For Solaris:
Notes_ExecDirectory=/opt/lotus/notes/latest/sunspa
For Linux:
Notes_ExecDirectory=/opt/lotus/notes/latest/linux
4. Ensure that the environment variable PATH is set to include the following directories and that the environment variable is exported.
Notes Resource directory: $LOTUS/notes/latest/sunspa/res/$LANG
Note The Linux path is $LOTUS/notes/latest/linux/res/$LANG.
Lotus executable directory: $Notes_ExecDirectory
Notes data directory (locates notes.ini file; for example /home/notes/notesdata)
For example:
PATH=$PATH:/opt/lotus/notes/latest/sunspa/res/$LANG:/$Notes_ExecDirectory:/home/notes/notesdata
Note The Linux path is /opt/lotus/notes/latest/linux.
5. Ensure that the environment variable LD_LIBRARY_PATH, which is used to locate shared libraries, is set to include the following directories and that the environment variable is exported.
Notes executable directory: $Notes_ExecDirectory
Any other product library directories you may require (such as, $ORACLE/lib, $SYBASE/lib, $ODBC_HOME/dlls)
For example:
LD_LIBRARY_PATH=$Notes_ExecDirectory:$ORACLE/lib
 
作完这些环境变量后,仍然不行,于是问DB2的工程师,说需要加上一个DB2用户的一个运行Db2连接的脚本,于是打开DB2用户的.profile文件,察看到其.profile文件中有几行专门用于DB2的,摘录如下:
# The following three lines have been added by UDB DB2.
if [ -f /portal/db2/db2inst1/sqllib/db2profile ]; then
    . /portal/db2/db2inst1/sqllib/db2profile
fi
然后再作连接,成功,脚本也运行正常。
 
 
阅读(1733) | 评论(5) | 转发(0) |
0

上一篇:李敖的几首诗

下一篇:POP3性能优化的建议

给主人留下些什么吧!~~