hi Oracle experts,
This may be the wrong forum for this question; if so, please let me know.
This is my crummy little procedure in a 10g database:
It was originally a command line script.
Notice the Spool CleanDB11.log line is inactivated. Apparently the Spool keyword is for SQL Plus and cannot be used in a procedure - is that correct?
Is there an equivalent keyword for Spool in PL/SQL ?
Thanks. John
--Spool CleanDB11.log
UPDATE AFTSCHINF SET DELETED_ON = sysdate where DELIND='Y' AND DELETED_ON is null;
DELETE FROM AFTSCHINF WHERE delind = 'Y' AND DELETED_ON < (SYSDATE -7);
COMMIT;
This may be the wrong forum for this question; if so, please let me know.
This is my crummy little procedure in a 10g database:
It was originally a command line script.
Notice the Spool CleanDB11.log line is inactivated. Apparently the Spool keyword is for SQL Plus and cannot be used in a procedure - is that correct?
Is there an equivalent keyword for Spool in PL/SQL ?
Thanks. John
--Spool CleanDB11.log
UPDATE AFTSCHINF SET DELETED_ON = sysdate where DELIND='Y' AND DELETED_ON is null;
DELETE FROM AFTSCHINF WHERE delind = 'Y' AND DELETED_ON < (SYSDATE -7);
COMMIT;