DECLARE
l_job number;
BEGIN
DBMS_JOB.SUBMIT(l_job,'DBMS_MVIEW.REFRESH(''VIEW_LICENSE_TS_MAIN_IB_NEW_MV'');');
DBMS_OUTPUT.PUT_LINE('JOB : '||l_job);
COMMIT;
END;
=========================
SELECT * FROM USER_JOBS WHERE JOB= 63362
=====================
Job locks
====================
SELECT SID, TYPE, ID1, ID2
FROM V$LOCK
WHERE TYPE = 'JQ';
No comments:
Post a Comment