From 0c4f0c72c49b4b6d5fe0f2ef286d9a7360d66890 Mon Sep 17 00:00:00 2001 From: junjun Date: Fri, 5 Jun 2026 09:58:37 +0800 Subject: [PATCH] fix: Fix the issue where obtaining schema from DM data source may require a high privilege account --- backend/apps/db/db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/apps/db/db.py b/backend/apps/db/db.py index d8127f36..b53bf202 100644 --- a/backend/apps/db/db.py +++ b/backend/apps/db/db.py @@ -363,7 +363,7 @@ def get_schema(ds: CoreDatasource): with dmPython.connect(user=conf.username, password=conf.password, server=conf.host, port=conf.port, **extra_config_dict) as conn, conn.cursor() as cursor: cursor.execute("""select OBJECT_NAME - from dba_objects + from all_objects where object_type = 'SCH'""", timeout=conf.timeout) res = cursor.fetchall() res_list = [item[0] for item in res]