Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8306415
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T18:19:37+00:00 2026-06-08T18:19:37+00:00

I am getting a strange behaviour by Oracle ODBC driver under linux (unixODBC). I

  • 0

I am getting a strange behaviour by Oracle ODBC driver under linux (unixODBC).

I have a program connecting to a database that, when called by an unprivileged user, works as expected while if called with root privileges (tested with both sudo and su) hangs in the SQLDriverConnect call then dies after some minutes (returning code 1) without an error message or anything.

I’m using system DSN and the same exact configuration (only difference is root privileges) and, to make things more funny, I also use the same code to connect to a postgreSQL database with no issue at all both with unprivileged and root user (hence it would not appear to be an unixODBC issue).

Any idea if it can really be the cause of the problem for the Oracle driver or hint on its resolution?

Oracle Driver version: oracle-instantclient11.2-odbc-11.2.0.1.0-1.x86_64

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T18:19:38+00:00Added an answer on June 8, 2026 at 6:19 pm

    Well, to answer my own question,

    The answer is No, root privileges are not the cause of the issue: environment variables are.

    Switching to user root does not keep the ORACLE_HOME environment variable; setting it allows the driver to work properly.

    In conclusion it would appear that, in spite of having the full path to the driver itself into the odbc configuration, the Oracle driver still requires that environment variable to work properly. Moreover it does not give any hint on the cause of the failure.

    Takeaway: is something is not working with your Oracle (anything from the server itself to the most remote of its components), first thing to do is double-check the environment.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am getting some strange behavior involving database queries that I have never seen
I have fancybox installed on my website and I am getting some strange behaviour.
I'm getting some strange behaviour with my form (using Zend Form). I have a
I have a strange requirement, any website user(not linux system user) will be getting
I have come to know that from IE 5, there is a strange behaviour
I am getting strange behaviour from UISearchBar. When I press more that one space
I am getting strange behaviour using the built-in C# List.Sort function with a custom
I'm getting some very strange behaviour using the following switch statement: string recognise_mti(int mti_code)
I am getting a strange behavior for multi-part form. I have a simple HTML
I am getting strange errors while trying to create a simple database using isql

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.