i have written a test job like
begin
DBMS_SCHEDULER.CREATE_JOB
(
job_name => 'test_job'
,job_type =>'plsql_block'
,job_action => 'null'
,enabled => true
);
end;
/
after a while when the check the status
select * from user_scheduler_job_run_details where job_name='TEST_JOB';
the status is failed ,i see these two lines
ORA-20001: You are not allowed to logon from this terminal!!!
ORA-06512: at line 39
how can i resolve this error.
and
how to find the job id of a scheduled job(created using dbms_scheduler)
Best Answer
Your question contain 2 items that must have been looked at before question itself arose:
To your question:
Your job action is NULL; you need to have some procedure that does something AND also is not named as Oracle keyword or PLSQl block that must have at bare minimum begin and end - docs
Oracle error 20001 is custom error and if you want to see the code you need to contact DBA's.