 |
|
Oracle Tips by Burleson |
Chapter 2 -
Configuring Oracle Job Scheduling
Setting up a Test
Environment
op_name => 'MY_JOB_PROC',
target => l_obj,
context => 0,
sofar => i,
totalwork => l_total,
target_desc => 'MY_JOB_PROC',
units => 'loops');
DBMS_LOCK.sleep(1);
END LOOP;
DBMS_APPLICATION_INFO.set_action(
action_name => p_text || ': End.');
SYS.DBMS_SYSTEM.ksdwrt(2, 'MY_JOB_PROC End: '
|| p_text);
END;
/
SHOW ERRORS
The procedure can be tested by calling it from
SQL*Plus as follows:
SQL> exec my_job_proc('Test It!');
Once the procedure has completed, the alert log
should contain an entry that looks similar to the following:
|
Download your Oracle scripts now:
www.oracle-script.com
The
definitive Oracle Script collection for every Oracle professional DBA
|
|