I tried again this time without the 'execute' call and used 'show error' and the error I got was:
LINE/COL ERROR
-------- -----------------------------------------------------------------
5/2 PLS-00201: identifier 'SYS.DBMS_LOCK' must be declared
5/2 PL/SQL: Statement ignored
8/2 PL/SQL: SQL Statement ignored
8/14 PLS-00201: identifier 'STORED_PROCEDURE_CALL' must be declared
Using this procedure:
CREATE OR REPLACE PROCEDURE
pos_sp_delayproc(InpSource IN char := 'P', InpData IN number := 0, RetCode OUT number, RetString OUT char)
AS
BEGIN
dbms_lock.sleep(30);
RetCode := 0;
RetString := 'Delayed for 30 Seconds!';
INSERT INTO stored_procedure_call values('pos_sp_delayproc',InpSource,NULL,InpData,NULL,RetCode,RetString,sysdate());
END;
I've tried using execute immediate but that gives the same error as without any execute call. Thanks for your help so far, I'm not used to actually getting a response from these things
