-
Notifications
You must be signed in to change notification settings - Fork 364
Closed
Labels
Description
I am able to connect with Oracle Db using JDBC String in Sql developer but
When I tried to connect with DB using cx_Oracle.
I'm getting ORA-28759: failure to open file
Cut and paste text showing the command you ran. No screenshots. Use a gist for long screen output and logs: see https://gist.github.com/.
- Include a runnable Python script that shows the problem. Include all SQL needed to create the database schema. Use Markdown syntax, see https://help.github.com/github/writing-on-github/basic-writing-and-formatting-syntax
Code:
import cx_Oracle as cx
dsn_tns='(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = tcps) (HOST = ***)(PORT = ***))) (CONNECT_DATA = (SERVICE_NAME = ***)))'
conn = cx.connect(user=USER, password=PW, dsn=dsn_tns)
print(cx.version)
- Show the output of:
import sys
import platform
print("platform.platform:", platform.platform())
print("sys.maxsize > 2**32:", sys.maxsize > 2**32)
print("platform.python_version:", platform.python_version())
And:
import cx_Oracle
print("cx_Oracle.version:", cx_Oracle.version)
print("cx_Oracle.clientversion:", cx_Oracle.clientversion())
output:
platform.platform: Darwin-18.7.0-x86_64-i386-64bit
sys.maxsize > 2**32: True
platform.python_version: 3.7.4
cx_Oracle.version: 7.3.0
cx_Oracle.clientversion: (19, 3, 0, 0, 0)
- What is your Oracle Database version?
12.2.0.1.0