Reputation: 11
I am using Oracle 11.2.0, Python 3.10.3
I am trying to connect to a Infor Oracle database with the following script:
import oracledb
TEST="'xxxx':'XXX'/'XXX'"
with oracledb.connect(user="xxx", password="xxx", dsn=TEST, disable_oob=True)
it return:
oracledb.exceptions.DatabaseError: DPY-4011: the database or network closed the connection
could you help me?
Upvotes: 1
Views: 2254
Reputation: 1
This will usually occur if you haven't enabled disable_oob
.
If you have enabled disabled_oob=True
, then please check your internet connection and try again.
Upvotes: 0