fix: Fix the issue where obtaining schema from DM data source may require a high privilege account

This commit is contained in:
junjun
2026-06-05 09:58:37 +08:00
parent a502113155
commit 0c4f0c72c4
+1 -1
View File
@@ -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]