см. Комментарии;решение этих проблем должно привести к компиляции вашей процедуры:
CREATE OR REPLACE PROCEDURE sp_comms_update_stg(
ssms_key IN VARCHAR2,
spolicyNumber IN VARCHAR2,
sclientKey IN VARCHAR2,
sclientReference IN VARCHAR2,
sresult OUT boolean /* based on your code, you probably need a BOOLEAN */
) IS
BEGIN
UPDATE stg_update_email
SET sms_key = ssms_key, /* = and not := */
policy_number = spolicyNumber, /* = and not := */
client_key = sclientKey, /* = and not := */
process_status = 'Processed' /* = and not := */
WHERE client_reference = sclientReference;
INSERT INTO EVENTLOG
VALUES (
seq_eventlog.NEXTVAL,
spolicyNumber,
sysdate, --(SELECT TO_DATE(SYSDATE) FROM DUAL), /* let's simplify! also, to_date(sysdate) makes no sense: sysdate already is a date */
/* or even trunc(sysdate) if you don't want time informations*/
TO_CHAR(SYSDATE, 'HH24:MI:SS'),
101,
NULL,
1,
'Updated stg_update_email',
'stg_update_email successfully updated',
'P',
var_Client, /* where is var_Client defined ? */
NULL,
NULL
);
sresult := TRUE;
COMMIT;
EXCEPTION
WHEN OTHERS
THEN
ROLLBACK;
sresult := FALSE;
RAISE_APPLICATION_ERROR(-20000, 'ERROR IN EXECUTING PROCEDURE SP_UNDEL_UPD_STG - '
|| CHR(13) || CHR(10) || UPPER(SQLERRM) || CHR(13) || CHR(10));
END;