ZCM 10.3.1: ZDC fails with Sybase database "Could not establish database connection!"

  • 7007803
  • 05-Feb-2011
  • 30-Apr-2012

Environment

Novell ZENworks 10 Configuration Management with Support Pack 3 - 10.3.1 ZENworks Diagnostic Center

Situation

ZDC from ZCM 10.3.1 connecting to zone using Sybase database
 
ZDC does not connect
 
ERROR (from zdc log)
    ZCM Version: 10.3.1
[INFO ] [DiagnoseZen]
+  Loading configuration.
[INFO ] [DiagnoseZen]
+  Initializing native libraries.
[ERROR] [ZDCNative]
[!] Could not load native library, native features will be disabled
[DEBUG] [ZDCNative] /tmp/zdc/lib/native/libzdcnative.so: libselinux.so.1: cannot open shared object file: No such file or directory
java.lang.UnsatisfiedLinkError: /tmp/zdc/lib/native/libzdcnative.so: libselinux.so.1: cannot open shared object file: No such file or directory
 at java.lang.ClassLoader$NativeLibrary.load(Native Method)
 at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
 at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
 at java.lang.Runtime.loadLibrary0(Runtime.java:822)
 at java.lang.System.loadLibrary(System.java:993)
 at com.novell.zenworks.zdc.system.platform.ZDCNative.initialize(ZDCNative.java:20)
 at com.novell.zenworks.zdc.system.platform.ZDCNative.<clinit>(ZDCNative.java:33)
 at com.novell.zenworks.zdc.DiagnoseZen.startZDC(DiagnoseZen.java:105)
 at com.novell.zenworks.zdc.DiagnoseZen.start(DiagnoseZen.java:64)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:592)
 at com.novell.zenworks.zdc.boot.Bootstrap.main(Bootstrap.java:110)
[INFO ] [DiagnoseZen]
+  Attempting to connect to database.
[TRACE] [DatabaseConnector] Establising JDBC connection.
[ERROR] [DiagnoseZen]
[!]Could not establish database connection!
[DEBUG] [DiagnoseZen] Could not establish database connection!
com.novell.zenworks.zdc.exception.ZDCException: Could not establish database connection!
 at com.novell.zenworks.zdc.DiagnoseZen.startZDC(DiagnoseZen.java:128)
 at com.novell.zenworks.zdc.DiagnoseZen.start(DiagnoseZen.java:64)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:592)
 at com.novell.zenworks.zdc.boot.Bootstrap.main(Bootstrap.java:110)
Caused by: java.sql.SQLException: The jodbc.jar build does not match the shared object build
 at ianywhere.ml.jdbcodbc.jdbc3.IDriver.makeODBCConnection(Native Method)
 at ianywhere.ml.jdbcodbc.jdbc3.IDriver.connect(IDriver.java:557)
 at java.sql.DriverManager.getConnection(DriverManager.java:525)
 at java.sql.DriverManager.getConnection(DriverManager.java:171)
 at com.novell.zenworks.zdc.db.AbstractJDBCDBAdapter.connect(AbstractJDBCDBAdapter.java:56)
 at com.novell.zenworks.zdc.db.SybaseDBAdapter.connect(SybaseDBAdapter.java:78)
 at com.novell.zenworks.zdc.db.DatabaseConnector.connect(DatabaseConnector.java:47)
 at com.novell.zenworks.zdc.DiagnoseZen.startZDC(DiagnoseZen.java:123)
 ... 6 more
[DEBUG] [DiagnoseZen] ZDC finished at 2010.06.16 AD at 12:40:07 IST
 

Resolution

This is fixed in version 10.3.2 - see KB 7007237 "ZENworks Configuration Management 10.3.2 - update information and list of fixes" which can be found at https://www.novell.com/support
 
Workaround: