Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Unable to load Oracle ODBC driver in my application when application binary has sticky bit set and o

3670517Mar 12 2018 — edited Mar 15 2018

Hello All,

I am trying to connect to Oracle database from my application on Linux which is developed using C programming. I use unixODBC API to connect to database.

DB version: 12C

ODBC: 12.1

OS: Tried on both Redhat 7 and Suse 11/12

I have observed strange behavior with Oracle ODBC driver as explained below:

  • When Application binary has 0550 permissions set and owned by root/appladm group, driver loads successfully and connection to DB is successful (no sticky bit)
  • When Application binary has 6550 permissions set and owned by root/root group, driver loads successfully and connection to DB is successful (with sticky bit and owned by root group)
  • When Application binary has 6550 permissions set and owned by root/appladm group, driver fails to load with below error. (with sticky bit and owned by appladm group)

        

SQLConnect failed, 0, user = System, [unixODBC][Driver Manager]Can't open lib '/usr/lib/oracle/12.1/client64/lib/libsqora.so.12.1' : file not found

Can someone explain me the reason behind this strange behavior or help me on how can i connect to database through unixODBC when application binary is owned by appladm group and sticky bit set.

Thanks in advance.

Regards,

Shiva

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 12 2018
Added on Mar 12 2018
5 comments
3,659 views