CREATE OR REPLACE PACKAGE hdb."GLOBALPKG"
AS
TYPE RCT1 IS REF CURSOR;
TRANCOUNT INTEGER := 0;
IDENTITY INTEGER;
END;
/
and in a stored proc:
CREATE OR REPLACE PROCEDURE hdb.spDoStuff
(
IN_SSN IN CHAR DEFAULT NULL,
RCT1 IN OUT GLOBALPKG.RCT1
)
...
GLOBALPKG.TRANCOUNT := GLOBALPKG.TRANCOUNT - 1;
...
|