Hello Everyone,
We tried to run outline commands via the <sql> tags to run as raw but we are still encountering errors. I've looked around but haven't seen any references to it.
below is a snippet of the SQL that we are trying to run.
===========================================================================
exec dbms_outln.drop_by_cat('TACT_FIX');
drop outline OUT_SQL27;
create outline OUT_SQL27 for category tact_fix on
SELECT /*+ index(PE XT159P0) */ SUM(PS.PAY_SEG_AMT) FROM CI_PAY PY, CI_PAY_SEG PS, CI_PAY_EVENT PE, CI_SA SA, CI_SA_TYPE SAT WHERE PY.ACCT_ID = :1 AND PY.PAY_STATUS_FLG = '50' AND PS.PAY_ID = PY.PAY_ID AND SA.SA_ID = PS.SA_ID AND SAT.SA_TYPE_CD = SA.SA_TYPE_CD AND SAT.CIS_DIVISION = SA.CIS_DIVISION AND SAT.DEBT_CL_CD = :2 AND PE.PAY_EVENT_ID = PY.PAY_EVENT_ID AND PE.PAY_DT BETWEEN :3 AND :4 AND NOT EXISTS (SELECT /*+ORDERED*/ PT.PAY_TENDER_ID FROM CI_PAY_TNDR PT , CI_THRD_PTY TP WHERE PT.PAY_EVENT_ID = PY.PAY_EVENT_ID AND PT.PAYOR_ACCT_ID = TP.ACCT_ID);
============================================================================
Thank you in advance for your help!
We tried to run outline commands via the <sql> tags to run as raw but we are still encountering errors. I've looked around but haven't seen any references to it.
below is a snippet of the SQL that we are trying to run.
===========================================================================
exec dbms_outln.drop_by_cat('TACT_FIX');
drop outline OUT_SQL27;
create outline OUT_SQL27 for category tact_fix on
SELECT /*+ index(PE XT159P0) */ SUM(PS.PAY_SEG_AMT) FROM CI_PAY PY, CI_PAY_SEG PS, CI_PAY_EVENT PE, CI_SA SA, CI_SA_TYPE SAT WHERE PY.ACCT_ID = :1 AND PY.PAY_STATUS_FLG = '50' AND PS.PAY_ID = PY.PAY_ID AND SA.SA_ID = PS.SA_ID AND SAT.SA_TYPE_CD = SA.SA_TYPE_CD AND SAT.CIS_DIVISION = SA.CIS_DIVISION AND SAT.DEBT_CL_CD = :2 AND PE.PAY_EVENT_ID = PY.PAY_EVENT_ID AND PE.PAY_DT BETWEEN :3 AND :4 AND NOT EXISTS (SELECT /*+ORDERED*/ PT.PAY_TENDER_ID FROM CI_PAY_TNDR PT , CI_THRD_PTY TP WHERE PT.PAY_EVENT_ID = PY.PAY_EVENT_ID AND PT.PAYOR_ACCT_ID = TP.ACCT_ID);
============================================================================
Thank you in advance for your help!