Job Scheduler [message #492318] |
Sat, 29 January 2011 06:09 |
muktha_22
Messages: 527 Registered: December 2009
|
Senior Member |
|
|
Hi All,
Need your guidence.
1) I created a script file as below:
create table table1 (name varchar2(5),age number(2))
2) And i created a JOB as below:
begin
dbms_scheduler.create_job(
job_name => 'ARC_MOVE_2′,
job_type => 'EXECUTABLE',
job_action => '/home/arup/dbtools/scriptname.sql',
repeat_interval => 'FREQ=MINUTELY; INTERVAL=30′,
enabled => true,
comments => 'Move Archived Logs to a Different Directory'
);
end;
It was successfully ran, but there is no table created with the name "TABLE1".
please need your help...
Regards:
Muktha
|
|
|
|
Re: Job Scheduler [message #492329 is a reply to message #492318] |
Sat, 29 January 2011 08:58 |
|
Michel Cadot
Messages: 68729 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
'/home/arup/dbtools/scriptname.sql' is not an executable, I doubt the job successfully executed.
In addition, it is not even a correct SQL script.
(By the way, what does the comment (and job name) has to do with the script purpose?)
Regards
Michel
[Updated on: Sat, 29 January 2011 08:58] Report message to a moderator
|
|
|
|
Re: Job Scheduler [message #492335 is a reply to message #492329] |
Sat, 29 January 2011 09:31 |
John Watson
Messages: 8962 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
Quote:'/home/arup/dbtools/scriptname.sql' is not an executable, We don't know that! The bizarre nature of the call to CREATE_JOB makes it unwise to make assumptions about the sanity of name.
Also,
Quote:because table would now exist & next run would error out We don't know this, either: there could well be another job, perhaps called CREATE_DATABASE or something equally sensible, that in fact drops the table shortly after creation.
I don't think it is safe to assume anything in this topic.
|
|
|
|
Re: Job Scheduler [message #492471 is a reply to message #492337] |
Mon, 31 January 2011 06:21 |
muktha_22
Messages: 527 Registered: December 2009
|
Senior Member |
|
|
Hi All,
I created that Script to test the SCHEDULER.
If it is not correct,
please guide me..
I just want to run any of a Scheduler to test.
Regards:
Muktha
|
|
|
|
|
Re: Job Scheduler [message #493595 is a reply to message #492473] |
Tue, 08 February 2011 23:14 |
muktha_22
Messages: 527 Registered: December 2009
|
Senior Member |
|
|
Hi All,
please help me on the below requirements:
1) I Just want to check SCHEDULER with simply creating some tables.
2) Also can you provide me docs for Taking BACKUPS with DBMS_SCHEDULER?
Regards:
Muktha
|
|
|
|
Re: Job Scheduler [message #493600 is a reply to message #493596] |
Tue, 08 February 2011 23:54 |
muktha_22
Messages: 527 Registered: December 2009
|
Senior Member |
|
|
Hi Blackswan,
For explaining some newcomers,
1) I just need to create a SCHEDULER for create a Table in next 2 min.
Regards:
Muktha
|
|
|
|
Re: Job Scheduler [message #493615 is a reply to message #493600] |
Wed, 09 February 2011 01:39 |
|
Michel Cadot
Messages: 68729 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
muktha_22 wrote on Wed, 09 February 2011 06:54Hi Blackswan,
For explaining some newcomers,
1) I just need to create a SCHEDULER for create a Table in next 2 min.
Regards:
Muktha
See DBMS_JOB for this.
Regards
Michel
[Updated on: Wed, 09 February 2011 01:40] Report message to a moderator
|
|
|