Select to view content in your preferred language

Ability to control database connection from ArcPy

1464
2
02-10-2016 02:42 PM
Status: Closed
Labels (1)
LukeRogers
Occasional Contributor
ArcPy needs the ability to connect, disconnect and check the status of a connection to a database. When connecting to an enterprise database feature class behind the scenes ArcPy creates a connection, opens it and retrieves the data. If, for some reason, ArcPy gets disconnected from the database there is no way to reconnect or even disconnect. Even using del(arcpy) will not drop the failed connection. The only way is to completely exit out of python and start over. Every other database client library in the universe has the ability to connect, disconnect and check the status of the connection. ArcPy needs this too. In our experience long running ArcPy sessions often become disconnected from the database server (another bug...) and it is impossible to recover from this programatically from within Python and ArcPy.
2 Comments
HannesZiegler
Status changed to: Needs Clarification

I apologize for the very late response to this idea request. Could you (or anyone interested/affected by this) please clarify if this issue, which was initially logged against ArcMap, is still occurring in ArcGIS Pro? Additionally, it would be very helpful if you could provide some concrete examples where this issue arises, perhaps with examples of code? Additional information and context will help us act on this request. Thank you

HannesZiegler
Status changed to: Closed

We are closing this issue at this time as it was logged against the now no-longer supported ArcMap, and we would need more technical details in order to act on the idea for ArcGIS Pro. If this idea was closed in error, please feel free to open a new idea for ArcGIS Pro.