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 8979811
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T19:55:56+00:00 2026-06-15T19:55:56+00:00

Im using python 2.7 and cx_oracle ( Windows x86 Installer (Oracle 10g, Python 2.7)

  • 0

Im using python 2.7 and cx_oracle ( Windows x86 Installer (Oracle 10g, Python 2.7) ) and ‘m having a bad time to set this simple example bellow to work:

import cx_Oracle
connection = cx_Oracle.connect('user/pass@someserver:port')
cursor = connection.cursor()
cursor.execute('select sysdate from dual')

for row in cursor:
    print row
connection.close()

Error Message:

Traceback (most recent call last):
  File "C:\ORACON.py", line 1, in <module>
    import cx_Oracle
ImportError: DLL load failed: The specified module could not be found.

For now, what i have done was:

1) installed the cx_oracle binary;

2) downloaded instantclient_10_2 from oracle website and exported the path to environment;

Anyone know what im missing?

Thank you for your time on reading this.

  • 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-15T19:55:57+00:00Added an answer on June 15, 2026 at 7:55 pm

    I was able to solve this problem with the following steps:

    1. Download instantclient-basic-win32-10.2.0.5 from Oracle Website

    2. unzipped the into my c:\ with the name oraclient

    3. Created the directory structure C:\oraclient\network\admin to add the TNSNAMES.ORA

    4. Added the TNS_ADMIN env var pointing to C:\oraclient\network\admin

    5. Added the ORACLE_HOME env var pointing to C:\oraclient\

    After that i used the following code:

    import cx_Oracle
    
    con = cx_Oracle.connect('theuser', 'thepass', 'your DB alias on your TNSNAMES.ORA file ')
    cur = con.cursor()
    if cur.execute('select * from dual'):
        print "finally, it works!!!"
    else:
        print "facepalm"
    con.close()
    

    I hope it helps someone.

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

Sidebar

Related Questions

I'm using Oracle Database 10g xe universal Rel.10.2.0.1.0 against cx_Oracle-5.0.4-10g-unicode-py26-1.x86_64 on a django project
I'm using cx_freeze to generate an exe for a simple PyQt application with python
I'm using Python 2.6 and cx_Freeze 4.1.2 on a Windows system. I've created the
I'm using cx_Oracle in Python and can't get a variable be used as table
I'm coding a webservice on python that uses an Oracle database. I have cx_Oracle
I built a rather simple application in Python 3.1 using PyQt4. Being done, I
Is there an equivalent to the perl fetchrow_array when connecting to Oracle using Python?
I have packed my python application using the cx_freeze tool, this is my setup.py
Using Python 2.6, with the set() builtin, not sets.set. I have defined some custom
Using Python 2.5 and httplib...... I am admittedly a python novice.....but this seems straight

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.