Error: Wrong ELF class: ELFCLASS64

Error Message

When trying to create a two tier connection to ArcSDE (DirectConnect) on a 64-bit configuration, it fails with the following error:

"Wrong ELF class: ELFCLASS64
Error: Server library could not be loaded (-324).
Error: Could not create a connection."


There are references to libraries that conflict while creating the connection.
Although ArcIMS is supported in a 64-bit configured machine, it is not a 64-bit application.
ArcIMS uses 32-bit libraries to make the 2 tier connection and requires 32-bit Oracle and ArcSDE libraries to make that connection.

Solution or Workaround

To be able to successfully create a two tier connection to a 64-bit Oracle on a 64-bit Solaris machine, include Oracle 32-bit libraries in the PATH.

The binaries are often located in the lib32 directory. For example:
This path should be included in the LD_LIBRARY_PATH to make the two tier connection work in a 64-bit environment.

Also, verify the path is placed before the paths to other Oracle libraries.