From 4c3ad93658cb9949d368ab69b4b23520278c60ab Mon Sep 17 00:00:00 2001 From: thcoffee <48222283@qq.com> Date: Sat, 7 May 2022 12:35:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=8E=B7=E5=8F=96oracle?= =?UTF-8?q?=E5=9B=9E=E9=80=80sql=E6=97=B6=EF=BC=8C=E6=9C=89=E6=A6=82?= =?UTF-8?q?=E7=8E=87=E5=9C=A8=E6=8B=BC=E5=90=88sql=E5=87=BD=E6=95=B0?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E6=A0=A1=E9=AA=8C=E6=97=B6=E6=8A=9B=E5=87=BA?= =?UTF-8?q?=E5=BC=82=E5=B8=B8=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复获取oracle回退sql时,有概率在拼合sql函数格式校验时抛出异常。 --- sql/engines/oracle.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sql/engines/oracle.py b/sql/engines/oracle.py index 6b20f5fec7..f4947936cc 100644 --- a/sql/engines/oracle.py +++ b/sql/engines/oracle.py @@ -982,8 +982,8 @@ def backup(self, workflow, cursor, begin_time, end_time): options=>dbms_logmnr.dict_from_online_catalog + dbms_logmnr.continuous_mine); end;''' undo_sql = f'''select - xmlagg(xmlparse(content sql_redo) order by scn,rs_id,ssn,rownum).getclobval() , - xmlagg(xmlparse(content sql_undo) order by scn,rs_id,ssn,rownum).getclobval() + xmlagg(xmlparse(content sql_redo wellformed) order by scn,rs_id,ssn,rownum).getclobval() , + xmlagg(xmlparse(content sql_undo wellformed) order by scn,rs_id,ssn,rownum).getclobval() from v$logmnr_contents where SEG_OWNER not in ('SYS') and session# = (select sid from v$mystat where rownum = 1)