Unresolved symbol opinit at runtime

Article ID: 1117
Last updated: 05 Feb, 2008
Article ID: 1117
Last updated: 05 Feb, 2008
Revision: 1
Views: 4355
Posted: 03 Sep, 1997
by Dean J.
Updated: 05 Feb, 2008
by Dean J.
Problem


When I run my program based on DBTools.h++ shared libraries, I get a runtime error:

unresolved symbol: opinit


Cause


opinit() is the OCI function for multithread applications programming. If you have multithread-safe Oracle Client libraries, then you should be able to find this function in both the archive library (libclient.a on Solaris, for instance) and shared library (libclntsh.so on Solaris, for instance). You can verify it by nm libclntsh.so | grep opinit. When this function exists in libclient but not in libclntsh, you get the relocation error: symbol not found.


Action


This is a problem with your Oracle client librariesh and not a problem wit DBTools. We had seen this problem with oracle 7.3.x client versions. Contact Oracle to get a patch for this problem.
This article was:   Helpful | Not helpful
Report an issue
Article ID: 1117
Last updated: 05 Feb, 2008
Revision: 1
Views: 4355
Posted: 03 Sep, 1997 by Dean J.
Updated: 05 Feb, 2008 by Dean J.

Others in this category