DECLARE p PLS_INTEGER; BEGIN EXECUTE IMMEDIATE 'alter session set current_schema=SUPERMAG'; p := supermag.core.startsmapp; supermag.Core.LockObject('1','DB','1'); supermag.SMRunTransfer( SYSDATE, SYSDATE); COMMIT; supermag.Core.LockObject('0','DB','1'); COMMIT; END;