DB스키마 변경 : AGWADM->AGWAPP, EMSADM->EMSAPP

This commit is contained in:
eastargh
2026-05-28 10:53:33 +09:00
parent 350297aaa2
commit b639e29039
14 changed files with 139 additions and 128 deletions
+11
View File
@@ -0,0 +1,11 @@
import oracledb
conn = oracledb.connect(user='AGWAPP', password='elink1234', dsn='192.168.240.177:1598/DAPM')
cursor = conn.cursor()
cursor.execute("SELECT TABLE_NAME, STATUS FROM DBA_TABLES WHERE OWNER = 'AGWAPP' AND TABLE_NAME LIKE 'API_STATS%' ORDER BY TABLE_NAME")
for row in cursor.fetchall():
print(f" {row[0]} ({row[1]})")
cursor.close()
conn.close()