Manage connections to an enterprise geodatabase
Available with the Standard or Advanced license.
As the geodatabase administrator, you occasionally need to identify who is connected to the geodatabase and which connections are locking resources. You also may need to remove certain connections if people are not present to disconnect themselves. For example, an editor may have left ArcGIS Pro open while editing, locking the data in the edit session and preventing other editors from accessing it and preventing the data owner from altering the schema of the tables. Or you may require everyone to disconnect so you can apply a patch to the database, restore the database, or compress the geodatabase.
You can connect to the geodatabase as the geodatabase administrator from ArcGIS Pro to view and, if necessary, drop connections. Or you can use ArcPy functions to complete the same workflow. You can also prevent new connections to the geodatabase.
Caution:
Use caution when disconnecting users. Avoid disconnecting active sessions, especially if the connected user is in the process of editing. Only disconnect sessions that were left open but are not being used (for example, if someone left the session open over the weekend), orphaned sessions that are locking an object, or sessions involved in a deadlock situation.
First, determine who is connected to the geodatabase. If necessary, you can then remove connections.
Note:
For database-specific requirements and ArcPy examples, see the following:
Identify and remove connections from a geodatabase in Db2 using Python
Identify and remove connections from a geodatabase in Oracle using Python
Identify and remove connections from a geodatabase in PostgreSQL using Python
Identify and remove connections from a geodatabase in SAP HANA using Python
Identify and remove connections from a geodatabase in SQL Server using Python
Identify and remove connections in ArcGIS Pro
You can connect to the geodatabase as the geodatabase administrator in ArcGIS Pro to view connections from the Geodatabase Administration dialog box.
Start ArcGIS Pro.
Connect to the geodatabase as the geodatabase administrator.
Right-click the database connection you created or accessed in the previous step, and click Administration > Connections.
A list is displayed showing all sessions that are currently connected to the geodatabase. Your session is displayed in italic text.
Each connection is identified by the login used to connect, an internal ID, the type of connection, the name of the computer where the connection originated, and the time the connection was made.
Contact individuals and ask them to close their sessions. If you cannot contact them and still need to disconnect them from the geodatabase, proceed with the next step.
Right-click the session you want to remove from the geodatabase, and click Disconnect.
The session is immediately removed from the geodatabase.
Close the Geodatabase Administration dialog box.
Prevent new connections
As a geodatabase administrator, you can prevent new connections to the geodatabase by turning off the Geodatabase is accepting connections toggle button on the connections tab of the Geodatabase Administration dialog box. Existing connections remain active but no new connections can be made.
Note:
The geodatabase administrator can connect to the geodatabase regardless of how this property is set.
You might block new connections to an enterprise geodatabase before performing maintenance operations such as compressing, upgrading, or making a full backup of the geodatabase.
To view locks held by each user, click the Locks tab of the Geodatabase Administration dialog box.