使用静态模式在redhat6.4中安装informix1210,使用echo $?返回1而不是0

时间:2015-05-27 11:23:28

标签: informix

使用静默安装模式安装informix1210,这是控制台输出

[root@ifeTest Informix]# ./ids_install -i silent -f /installMedia/Informix/bundle.properties
[root@ifeTest Informix]# echo $?
                          1

但是当我使用gui安装时,我在使用echo $后得到0?

我可以使用“oninit -ivy”和“onmode -kvy”来启动和停止informix服务器,同时我检查了bundle_install.stderr和bundle_install.stdout,iad_act.log,其他两个日志中没有显示安装失败文件。

stderr中的内容

sun.arch.data.model=64
java.io.FileNotFoundException:     /opt/IBM/informix/uninstall/uninstall_OpenAdmin/installvariables.properties (No such file or directory)
at java.io.FileInputStream.<init>(FileInputStream.java:156)
at java.io.FileInputStream.<init>(FileInputStream.java:111)
at java.io.FileReader.<init>(FileReader.java:69)
at com.ibm.oat.install.DetectUpgrade.install(DetectUpgrade.java:46)
at com.zerog.ia.installer.actions.CustomAction.installSelf(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.a(DashoA10*..)
at com.zerog.ia.installer.ConsoleBasedAAMgr.a(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.f(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.n(DashoA10*..)
at com.zerog.ia.installer.ConsoleBasedAAMgr.a(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.f(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.n(DashoA10*..)
at com.zerog.ia.installer.ConsoleBasedAAMgr.a(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.f(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.n(DashoA10*..)
at com.zerog.ia.installer.ConsoleBasedAAMgr.a(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.f(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.n(DashoA10*..)
at com.zerog.ia.installer.ConsoleBasedAAMgr.a(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.f(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.n(DashoA10*..)
at com.zerog.ia.installer.ConsoleBasedAAMgr.a(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.f(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.n(DashoA10*..)
at com.zerog.ia.installer.ConsoleBasedAAMgr.a(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.f(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.n(DashoA10*..)
at com.zerog.ia.installer.ConsoleBasedAAMgr.a(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.f(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.n(DashoA10*..)
at com.zerog.ia.installer.ConsoleBasedAAMgr.a(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.f(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.n(DashoA10*..)
at com.zerog.ia.installer.ConsoleBasedAAMgr.a(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.f(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.n(DashoA10*..)
at com.zerog.ia.installer.ConsoleBasedAAMgr.a(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.f(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.n(DashoA10*..)
at com.zerog.ia.installer.ConsoleBasedAAMgr.a(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.f(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.n(DashoA10*..)
at com.zerog.ia.installer.ConsoleBasedAAMgr.a(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.f(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.n(DashoA10*..)
at com.zerog.ia.installer.ConsoleBasedAAMgr.a(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.f(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.n(DashoA10*..)
at com.zerog.ia.installer.ConsoleBasedAAMgr.a(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.f(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.n(DashoA10*..)
at com.zerog.ia.installer.ConsoleBasedAAMgr.a(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.f(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.n(DashoA10*..)
at com.zerog.ia.installer.ConsoleBasedAAMgr.a(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.f(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.n(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.e(DashoA10*..)
at com.zerog.ia.installer.ConsoleBasedAAMgr.a(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.f(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.n(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.e(DashoA10*..)
at com.zerog.ia.installer.ConsoleBasedAAMgr.a(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.f(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.n(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.e(DashoA10*..)
at com.zerog.ia.installer.ConsoleBasedAAMgr.a(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.f(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.n(DashoA10*..)
at com.zerog.ia.installer.ConsoleBasedAAMgr.a(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.f(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.n(DashoA10*..)
at com.zerog.ia.installer.ConsoleBasedAAMgr.a(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.f(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.n(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.e(DashoA10*..)
at com.zerog.ia.installer.ConsoleBasedAAMgr.a(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.f(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.n(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.e(DashoA10*..)
at com.zerog.ia.installer.ConsoleBasedAAMgr.a(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.f(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.n(DashoA10*..)
at com.zerog.ia.installer.ConsoleBasedAAMgr.a(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.f(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.n(DashoA10*..)
at com.zerog.ia.installer.ConsoleBasedAAMgr.a(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.f(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.n(DashoA10*..)
at com.zerog.ia.installer.ConsoleBasedAAMgr.a(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.f(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.n(DashoA10*..)
at com.zerog.ia.installer.ConsoleBasedAAMgr.a(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.f(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.n(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.e(DashoA10*..)
at com.zerog.ia.installer.ConsoleBasedAAMgr.a(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.f(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.n(DashoA10*..)
at com.zerog.ia.installer.ConsoleBasedAAMgr.a(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.f(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.n(DashoA10*..)
at com.zerog.ia.installer.ConsoleBasedAAMgr.a(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.f(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.n(DashoA10*..)
at com.zerog.ia.installer.ConsoleBasedAAMgr.a(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.f(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.n(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.e(DashoA10*..)
at com.zerog.ia.installer.ConsoleBasedAAMgr.a(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.f(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.n(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.e(DashoA10*..)
at com.zerog.ia.installer.ConsoleBasedAAMgr.a(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.f(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.n(DashoA10*..)
at com.zerog.ia.installer.ConsoleBasedAAMgr.a(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.f(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.n(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.e(DashoA10*..)
at com.zerog.ia.installer.ConsoleBasedAAMgr.a(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.f(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.n(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.e(DashoA10*..)
at com.zerog.ia.installer.ConsoleBasedAAMgr.a(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.f(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.n(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.e(DashoA10*..)
at com.zerog.ia.installer.ConsoleBasedAAMgr.a(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.f(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.n(DashoA10*..)
at com.zerog.ia.installer.ConsoleBasedAAMgr.a(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.f(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.n(DashoA10*..)
at com.zerog.ia.installer.ConsoleBasedAAMgr.a(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.f(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.n(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.e(DashoA10*..)
at com.zerog.ia.installer.ConsoleBasedAAMgr.a(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.f(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.n(DashoA10*..)
at com.zerog.ia.installer.ConsoleBasedAAMgr.a(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.f(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.n(DashoA10*..)
at com.zerog.ia.installer.ConsoleBasedAAMgr.a(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.f(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.n(DashoA10*..)
at com.zerog.ia.installer.ConsoleBasedAAMgr.a(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.f(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.n(DashoA10*..)
at com.zerog.ia.installer.ConsoleBasedAAMgr.a(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.f(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.n(DashoA10*..)
at com.zerog.ia.installer.ConsoleBasedAAMgr.a(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.f(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.n(DashoA10*..)
at com.zerog.ia.installer.ConsoleBasedAAMgr.a(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.f(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.n(DashoA10*..)
at com.zerog.ia.installer.ConsoleBasedAAMgr.a(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.f(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.n(DashoA10*..)
at com.zerog.ia.installer.ConsoleBasedAAMgr.a(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.f(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.n(DashoA10*..)
at com.zerog.ia.installer.ConsoleBasedAAMgr.a(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.f(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.n(DashoA10*..)
at com.zerog.ia.installer.ConsoleBasedAAMgr.a(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.f(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.n(DashoA10*..)
at com.zerog.ia.installer.ConsoleBasedAAMgr.a(DashoA10*..)
at com.zerog.ia.installer.AAMgrBase.m(DashoA10*..)
at com.zerog.ia.installer.LifeCycleManager.b(DashoA10*..)
at com.zerog.ia.installer.LifeCycleManager.a(DashoA10*..)
at com.zerog.ia.installer.Main.main(DashoA10*..)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:94)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:619)
at com.zerog.lax.LAX.launch(DashoA10*..)
at com.zerog.lax.LAX.main(DashoA10*..)
DumpDebugInfo /tmp/028523.tmp/OAT_Debug1.log

我担心informix是否有任何安装过程出错。由于此静音安装将在我们的产品中正式发布,因此只需要100%确定。 谁可以帮我这个事?

对不起,请更清楚。

所以,第一次,我使用-r来记录安装并获得响应文件,但它没有创建服务器实例, 所以我在响应文件中手动添加了“IDS_SERVER_INSTANCE_BOOLEAN_1 = 1”。 无论哪种方式,我得到退出状态1

生成的响应文件如下所示

LICENSE_ACCEPTED=TRUE
USER_INSTALL_DIR=@installLocation@
IAD_PASSWORD=@IAD_PASSWORD@
UNIX_INSTALLTYPE_SELECT=DEFAULT
LICENSE_ACCEPTED=TRUE
USER_INSTALL_DIR=@installLocation@
IDS_INSTALL_TYPE=TYPICAL
IAD_PASSWORD=@IAD_PASSWORD@

所以我直接编辑了bundle.properties,仍然得到退出状态1。 现在,我的响应文件看起来像这样,

UNIX_INSTALLTYPE_SELECT=DEFAULT; 
LICENSE_ACCEPTED=TRUE; 
USER_INSTALL_DIR=/opt/IBM/informix; 
IDS_INSTALL_TYPE=TYPICAL; 
DIR_SEC_SEL_BOOLEAN_1=1; 
IAD_PASSWORD=passw0rd; 
IDS_INSTANCE_CREATE=1;

1 个答案:

答案 0 :(得分:0)

CentOS 7.1 上使用 Informix Server 12.10.FC5

[root@tardis ~]# cat /etc/centos-release
CentOS Linux release 7.1.1503 (Core)
[root@tardis ~]# uname -a
Linux tardis 3.10.0-229.4.2.el7.x86_64 #1 SMP Wed May 13 10:06:09 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
[root@tardis ~]# head -8 SERVER/doc/ids_machine_notes_12.10.txt

                      =================================
                            MACHINE SPECIFIC NOTES
                                    FOR
               IBM Informix Database Server 12.10.FC5 PRODUCT RELEASE
                               On Linux x86_64
                               DATE: 09 Mar 2015
                      =================================
[root@tardis ~]# 

您提供的响应文件给了我一些错误:

[root@tardis ~]# cat /root/setup.ini
UNIX_INSTALLTYPE_SELECT=DEFAULT;
LICENSE_ACCEPTED=TRUE;
USER_INSTALL_DIR=/opt/IBM/informix;
IDS_INSTALL_TYPE=TYPICAL;
DIR_SEC_SEL_BOOLEAN_1=1;
IAD_PASSWORD=passw0rd;
IDS_INSTANCE_CREATE=1;
[root@tardis ~]# ./ids_install -f /root/setup.ini -i silent

You must indicate acceptance of the license terms prior to installation by passing -DLICENSE_ACCEPTED=TRUE for the silent installation mode.
[root@tardis ~]#

删除分号:

[root@tardis ~]# cat /root/setup.ini
UNIX_INSTALLTYPE_SELECT=DEFAULT
LICENSE_ACCEPTED=TRUE
USER_INSTALL_DIR=/opt/IBM/informix
IDS_INSTALL_TYPE=TYPICAL
DIR_SEC_SEL_BOOLEAN_1=1
IAD_PASSWORD=passw0rd
IDS_INSTANCE_CREATE=1
[root@tardis ~]# ./ids_install -f /root/setup.ini -i silent
[root@tardis ~]# echo $?
1
[root@tardis ~]#

在日志中:

[root@tardis ~]# egrep "Warnings|FatalErrors" /opt/IBM/informix/IBM_Informix_Software_Bundle_Install_*.log
0 Warnings
1 NonFatalErrors
0 FatalErrors
[root@tardis ~]# grep " ERROR " /opt/IBM/informix/OpenAdmin_Install_*.log
                          Additional Notes: ERROR -     class com.ibm.oat.install.CheckInstallStatus.install() runtime exception:
[root@tardis ~]#

这不是致命错误,而 OAT 已启动且可以使用。

您已经说错误对您来说是一样的,我无法找到导致此错误的原因,但这可能与通过执行 OAT的静默安装这一事实有关/ strong>您没有为 OAT管理员提供密码。

主要问题是在静默模式下,至少据我所知,这是无法完成的,您应该在安装后通过创建新的管理员用户和密码来保护它:

[root@tardis ~]# /opt/IBM/informix/OAT/Apache_2.4.2/bin/htpasswd -cb /opt/IBM/informix/OAT/Apache_2.4.2/conf//.htpasswd admin passw0rd
Adding password for user admin

然后创建下一个文件:

[root@tardis ~]# cat /opt/IBM/informix/OAT/Apache_2.4.2/htdocs/openadmin/admin/.htaccess
AuthUserFile "/opt/IBM/informix/OAT/Apache_2.4.2/conf//.htpasswd"
AuthType Basic
AuthName "Protected Folder"
Require valid-user
[root@tardis ~]#

需要 OAT 吗?如果不考虑使用自定义安装并从那里删除它。如果需要,那么在我看来,您已经遇到了这些错误。

最后,您不仅要检查退出状态,还要查看$INFORMIXDIR/IBM_Informix_Software_Bundle_Install_*.log的内容,如果您发现了下一个对应日志的警告:

IBM_Informix_GLS_Install_*.log
IBM_Informix_Client_SDK_Install_*.log
OpenAdmin_Install_*.log
IBM_Informix_12.10_Install_*.log
IBM_Informix_JDBC_Driver_Install_*.log

热切地问候。