I have been successfully using Oracle database 11g R2 with SQL Developer and Forms 6i without encountering any errors. However, when attempting to connect with Python using the OracleDB library, I encountered the following error: DPY-3010: connections to this database server version are not supported by python-oracledb in thin mode. According to the Python-OracleDB documentation, it should be possible to connect 11g R2 with Python-OracleDB. I am seeking clarification on this issue and would appreciate any guidance on how to successfully connect 11g R2 with Python. Please provide the correct code for establishing the connection.
import oracledb
connection = oracledb.connect(user="hr", password="hr", host="DESKTOP-5CRGV89", service_name="orcl")
how to connect 11g R2 with python
Muhammad abdullah is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.