DPY-4000 Error: unable to find <TNS> in <path>/tnsnames.ora DUPLICATE #188
-
I am having a problem accesing my Oracle DB that's running on the Oracle cloud with this python library. As allready pointed out by the opened issue with the same error message it is most likely due to a corrupted tnsnames.ora file. I have also put it thru the brantwills tns file checker to see where i may have a syntax error. But that site always just threw a: Entry ["dbsosit_high"], Line 1 Column 46: no viable alternative at input '(retry_delay' At first i thought it may be from a badly generated tns file, but after remaking it at least 7 times the same error occurs both on the checker and the python library. CODE: connection=oracledb.connect( INFO: |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 12 replies
-
Have you tried an absolute (not relative) path for wallet_location and config_dir? Why the double forward slashes? |
Beta Was this translation helpful? Give feedback.
-
After some tinkering i have solved the issue with this code:
The parsing of the connect string solved the DPX-4000 Error. |
Beta Was this translation helpful? Give feedback.
-
Hello Team, Unable to find dsn in tnsnames.ora file. Please suggest on this? Am i missing any configuration? tnsnames.ora file: |
Beta Was this translation helpful? Give feedback.
After some tinkering i have solved the issue with this code:
The parsing of the connect string solved the DPX-4000 Error.
To then connect and write to my DB i also needed to switch to Thick mode connection.
If you are having a problem with connecting with Thick mode check if you extracted the wallet into the network/admin folder.