DBMS Jobs Vs Scripts
Hariharan R, February 05, 2007 - 10:49 am UTC
Hi Tom, That Suggestion you have given at many a place to use DBMS Jobs rather than Shell scripts and Sqlplus. But when I speak with many of database administrators, they feel the scripts have greater control than the DBMS Jobs. Can you give us some strong advantage of the DBMS Jobs rather than any shell scripts.
February 05, 2007 - 11:15 am UTC
scripts have no control - what are they talking about?
what sort of ability do you have to do complex error handling?
who is responsible to restart them when they fail?
sample code
Ervin Rodriguez, February 05, 2007 - 3:49 pm UTC
thanks Tom, it was very helpful. as i mentioned above, some tables contain bdate and loc_id column, some tables only bdate and some don't have either bdate or loc_id. how can i write an insert statement that will take care of all 3 scenerios describe above.
for example, for tables with both columns i would like to do this
insert /*+append*/ into table_name
select * from table_name where bdate = p_date and b_loc_id = loc_id
for tables with pdate and no loc_id, i would like to do this
insert /*+append*/ into table_name
select * from table_name where bdate = p_date
and for tables with none of those columns (bdate and loc_id) i would like this
insert /*+append*/ into table_name
select * from table_name
February 05, 2007 - 6:31 pm UTC
use STATIC SQL!!!!!!!
that is what I wrote.