Python code unable to make connection to Oracle database through Alteryx Gallery/Server
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
NemesiaKantekar
5 - Atom
‎02-05-2020
01:27 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hello
I have an Aletryx workflow that is scheduled to a run python code. The pyhton code is creating dynamic oracle database connections using cx_Oracle package.
This works fine in the designer and i get expected results.
However when we schedule it on the gallery/server - it fails with error:
(cx_Oracle.DatabaseError) ORA-12154: TNS:could not resolve the connect identifier specified (Background on this error at: http://sqlalche.me/e/4xp6)
this is only happening in the gallery. Kindly suggest
python code making connection to oracle db
Labels:
- Labels:
- Gallery
2 REPLIES 2
ACE Emeritus
‎02-05-2020
07:50 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Did you ensure that the same drivers you have on your machine are on the server as well?
Joshua Burkhow - Alteryx Ace | Global Alteryx Architect @PwC | Blogger @ AlterTricks
‎02-07-2020
08:01 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Yes
we have the same ODBC drivers in local and server machine