操作方法

在 Amazon RDS for PostgreSQL 中使用 SDE 用户从企业级地理数据库中删除连接

Last Published: April 29, 2024

摘要

In an Amazon RDS for PostgreSQL geodatabase, the SDE user cannot drop connections using the geodatabase administration dialog box. When attempting that, an "Insufficient Permissions" error is returned.

Administering connections to a PostgreSQL geodatabase using ArcGIS tools requires PostgreSQL superuser privileges. In an Amazon RDS for PostgreSQL instance, the only superuser is rdsadmin, which is managed directly by Amazon. The SDE user is in the rds_superuser role, which is a pre-defined Amazon RDS role similar to the PostgreSQL superuser, but with some restrictions.

过程

As a workaround, the SDE user, or anyone in the rds_superuser role, can manage connections to the PostgreSQL geodatabase through pgAmin using the pg_terminate_backend command.

  1. Connect to the geodatabase as SDE in pgAmin.
  2. In a new Query Tool window, issue the following command to list all open connections in the database:
SELECT * FROM pg_stat_activity WHERE datname = '<database_name>';
  1. From the result returned, find the process ID (pid) of the connection to be dropped. Run the following command to terminate the connection:
SELECT pg_terminate_backend(<pid>);
  1. Verify in geodatabase administration dialog box that the connection has been dropped.

文章 ID: 000017860

获得人工智能支持

使用 Esri Support AI Chatbot 快速解决您的问题。

立即开始聊天

相关信息

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

立即开始聊天

转至下载选项