wrong ELF class: ELFCLASS64 from DBD::Oracle

Q: I got "wrong ELF class: ELFCLASS64" from my perl script.
A: DBD::Oracle compiled with 32bit Oracle library. However, your run time environment ORACLE_LIBRARY_PATH refer to 64bit libary.

Exception raised during connection attempt: install_driver(Oracle)
failed: Can’t load
for module DBD::Oracle: ld.so.1: perl: fatal:
/d01/oracle/oracle/lib/libclntsh.so.9.0: wrong ELF class: ELFCLASS64 at /usr/local/lib/perl5/5.8.8/sun4-solaris/DynaLoader.pm line 230, line 1.

Do 1 thing only: export ORACLE_LIBRARY_PATH=$ORACLE_HOME/lib32


About Pang

Oracle DBA working in database, fusion middleware and identity management and cloud.
This entry was posted in Perl. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s