informix 952错误!
AIX双机热备的环境下,应用程序通过JDBC访问informix数据库,数据库装载本地盘,数据在共享盘
数据库在主机时没有问题,当数据库切到备机时,数据库启动没有问题,用infomix用户可以执行dbaccess以及sql语句
但是程序在访问数据库时,程序报错:
java.sql.SQLException: Incorrect password or user com.informix.asf.IfxASFRemoteException: informix@::ffff:10.1.16.201 is not known on the database server.
at com.informix.jdbc.IfxSqliConnect.(IfxSqliConnect.java:1095)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.informix.jdbc.IfxDriver.connect(IfxDriver.java:254)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at com.taiji.module.DBCon.(DBCon.java:37)
at com.taiji.module.MainCtrl.(MainCtrl.java:35)
at com.taiji.Start.main(Start.java:11)
Caused by: com.informix.asf.IfxASFRemoteException: informix@::ffff:10.1.16.201
at com.informix.asf.Connection.recvConnectionResponse(Connection.java:620)
at com.informix.asf.Connection.establishConnection(Connection.java:1545)
at com.informix.asf.Connection.(Connection.java:279)
at com.informix.jdbc.IfxSqliConnect.(IfxSqliConnect.java:955)
数据库后台错误:
18:29:21 Password Validation for user [informix] failed!
18:29:21 Check for password aging/account lock-out.
18:29:21 listener-thread: err = -952: oserr = 0: errstr = informix@qhnx8_app: User (informix@::ffff:10.1.16.201)'s password is not correct for the database server.
试过很多方法都不行。
看过/etc/passwd $INFORMIXDIR/bin的权限都没问题。。。