Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

ASNCLP and libdb2jcmn.a on AIX v9.5.6a

$
0
0
Running DB2 v9.5 fixpack 6a on AIX 6.1 (Cannot change the DB2 version yet- scheduled for upgrade later this year).

Error message from asnclp is:
( 0509-022 Cannot load module /home/myinst/sqllib/lib64/libdb2jcmn.a.
0509-026 System error: Cannot run a file that does not have a valid format.)



SQL-replication is already configured and operational but I need to use asnclp to manage
an offline line for a subscription set. Getting invalid format on libdb2jcmn.a


Using asnclp locally to the DB2 server,
running using the db2-instance-owner account for this 64-bit instance:

Repl> set server all to db mydb;

Repl > offline load before setname myset_one applyqual myqual_one ;

====
CMD: offline load before setname myset_one applyqual myqual_one;
====

Exception in thread "main" java.lang.UnsatisfiedLinkError: db2jcmn ( 0509-022 Cannot load module /home/myinst/sqllib/lib64/libdb2jcmn.a.
0509-026 System error: Cannot run a file that does not have a valid format.)
...


the file exists (/home/myinst/sqllib/lib64/libdb2jcmn.a).

The LIBPATH setting seems correct:
/usr/lib:/lib:/home/myinst/sqllib/lib64

The CLASSPATH seems correct:
/home/myinst/sqllib/java/db2java.zip:/home/myinst/sqllib/java/db2jcc.jar:/home/myinst/sqllib/java/sqlj.zip:/home/myinst/sqllib/function:/home/myinst/sqllib/java/db2jcc_license_cu.jar:.


The db2_install method installed the DB2 V9.5 FP6A ESE server.

I saw an old document relevant for Linux x64 (did not mention AIX) stating that the asnclp
needed a 32-bit instance. But is this true for AIX 6.1 and DB2 v9.5?

the V9.5 infocenter page mentions the need for a JDK (but there is no jdk subdirectory in the /opt/IBM/db2/V9.5 tree, so I
assume that the docs mean a JRE - which is present).


java -version
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build pap32devifx-20131023 (SR16 FP4 ))
IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 AIX ppc-32 j9vmap3223ifx-20131007 (JIT enabled)
J9VM - 20131005_169275_bHdSMr
JIT - 20130920_46470_r8
GC - 20120911_AA)
JCL - 20131023

Viewing all articles
Browse latest Browse all 13329

Trending Articles