Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python to Oracle Conn Issue
#1
Hi All,

In my Windows 10 64 Bit OS, installed Oracle 10g database of 32 Bit and Python 3.7.9 version of 64 Bit.

When I am trying to connect Oracle Db from Python, I am facing below error.

cx_Oracle.DatabaseError: DPI-1047: Cannot locate a 64-bit Oracle Client library: "F:\oracle\product\10.2.0\db_1\bin\oci.dll is not the correct architecture".


Whether is it possible to connect from Python 64 Bit to Oracle database 10g 32 Bit? Is there any way to resolve the issue?

Or I need to install Oracle database of 64 Bit?

Thanks in advance.
Satyam
Reply
#2
just curious if you can connect to Oracle thru ODBC

https://www.devart.com/odbc/oracle/docs/python.htm
Reply
#3
Sqlalchemy makes connecting to many databases a pleasure.
Works with most DBMS platforms including: Oracle, Sqlite, Postgresql, MySql, Microsoft SQL server
see: https://docs.sqlalchemy.org/en/13/dialects/
Changing from one DBMS to another is normally a change to just one line (Model may have to be modified some for data type differences)

Key Features of SQLAlchemy: https://www.sqlalchemy.org/features.html

if I've got you interested, I also have a tutorial on this forum here: https://python-forum.io/Thread-SqlAlchem...-Data-Load
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  sqlite3 Conn Insert Value Error TylerDunbar 3 725 Sep-04-2023, 06:32 PM
Last Post: deanhystad
  Ldap3 Python print(conn.entries) doesnt work ilknurg 15 5,689 Dec-28-2022, 11:22 AM
Last Post: shad
  Encrypting Oracle Passwords / Python Library for That? bmccollum 1 2,564 Jun-11-2021, 07:59 PM
Last Post: Larz60+
  Calling Oracle REST SQL from Python johnjacob 2 2,025 Nov-05-2020, 04:19 AM
Last Post: johnjacob
  Conversion of Oracle PL/SQL(packages, functions, procedures) to python modules. DivyaKumar 2 6,479 Jul-09-2020, 04:46 PM
Last Post: srikanth7482
  Load table from Oracle to MYSQL using python himupant94 0 1,632 May-12-2020, 04:50 PM
Last Post: himupant94
  how to set echo ON in Python call to Oracle SQL nmrt 4 3,730 Sep-21-2019, 05:40 AM
Last Post: nmrt
  Long command with characters not working in Python on Oracle Linux 7 iaas_infra 10 6,216 Jul-19-2019, 04:53 PM
Last Post: ichabod801
  Where is the error with this db creation code & the 'conn' variable? pcsailor 6 3,452 Nov-11-2018, 10:25 AM
Last Post: pcsailor
  Getting an error while connecting oracle DB from Python : cx_Oracle.DatabaseError: OR dinesh1393 0 3,517 Oct-25-2018, 02:44 PM
Last Post: dinesh1393

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020