Schedule/procedure

Hello guys,
I´m having some trouble by running a job:
BEGIN
dbms_scheduler.create_job (
job_name=>'test_minuto', job_type => 'PLSQL_BLOCK', job_action => 'exec tempo2', start_date=> SYSTIMESTAMP, repeat_interval=> 'freq=minutely', end_date=>null, comments => 'testando 123');
END;
and the procedure tempo2 :
create procedure tempo2 as
begin
insert into armazena values ((select to_char(sysdate, 'fmDD/MM/YYYY - HH24:MI:SS ' ) horario from dual), system.seq_test.nextval);
commit;
end;
I checked the table USER_SCHEDULER_JOB_RUN_DETAILS and noticed that the job is running but its status shows 'FAILED' and its ADDITIONAL_INFO shows:
ORA-06550: line ORA-06550: line 1, column 475:
PLS-00103: Encountered the symbol "TEMPO2" when expecting one of the following:
:= . ( @ % ;
Does anyone knows what i am doing wrong ?
Thanks
Edited by: BrunoSales on 12/04/2012 09:23

BrunoSales wrote:
Hello guys,
I´m having some trouble by running a job:
BEGIN
dbms_scheduler.create_job (
job_name=>'test_minuto', job_type => 'PLSQL_BLOCK', job_action => 'exec tempo2', start_date=> SYSTIMESTAMP, repeat_interval=> 'freq=minutely', end_date=>null, comments => 'testando 123');
END;
and the procedure tempo2 :
create procedure tempo2 as
begin
insert into armazena values ((select to_char(sysdate, 'fmDD/MM/YYYY - HH24:MI:SS ' ) horario from dual), system.seq_test.nextval);
commit;
end;
Not part of your immediate problem, but why are you converting sysdate to a character string and inserting that into your table? If you want that first column of table ARMAZENA to have a date, then it should be declared a DATE and you just insert sysdate:
insert into armazena values (sysdate horario, system.seq_test.nextval);And it is pointless to put a column alias on that, so we can reduce it even further
insert into armazena values (sysdate, system.seq_test.nextval);And you should NEVER put user defined objects into the SYSTEM schema, so should be
insert into armazena values (sysdate, appschema.seq_test.nextval);>
I checked the table USER_SCHEDULER_JOB_RUN_DETAILS and noticed that the job is running but its status shows 'FAILED' and its ADDITIONAL_INFO shows:
ORA-06550: line ORA-06550: line 1, column 475:
PLS-00103: Encountered the symbol "TEMPO2" when expecting one of the following:
:= . ( @ % ;
Does anyone knows what i am doing wrong ?
Thanks
Edited by: BrunoSales on 12/04/2012 09:23

Similar Messages

  • How to schedule procedure in DBMS_JOBS?

    Hi,
    i have one stored procedure .. i want to schedule that procedure to run every 15 of the month at 2AM... plz help

    Oracle recommends (from 10.1 onwards?) that you use DBMS_SCHEDULER instead of DBMS_JOB. DBMS_SCHEDULER provides a much richer set of features then the old DBMS_JOB does.
    user2017273 wrote:
    it will run every month 15th 2AM like 15-oct-2010 2AM,15-Nov-2010 2AM,....? plz confirmFor example if you were using DBMS_SCHEDULER there is a procedure called EVALUATE_CALENDAR_STRING which you can use to undeniably confirm the schedule does what you expect. For example in your case:
    SQL> DECLARE
      2  start_date        TIMESTAMP;
      3  return_date_after TIMESTAMP;
      4  next_run_date     TIMESTAMP;
      5  BEGIN
      6  start_date := SYSTIMESTAMP;
      7  return_date_after := start_date;
      8  FOR i IN 1..5 LOOP
      9    DBMS_SCHEDULER.EVALUATE_CALENDAR_STRING(
    10      'FREQ=MONTHLY;BYMONTHDAY=15;BYHOUR=2;BYMINUTE=0;BYSECOND=0;',
    11      start_date, return_date_after, next_run_date);
    12  DBMS_OUTPUT.PUT_LINE('next_run_date: ' || next_run_date);
    13  return_date_after := next_run_date;
    14  END LOOP;
    15  END;
    16  /
    next_run_date: 10/15/2010 02:00:00.100000 AM
    next_run_date: 11/15/2010 02:00:00.100000 AM
    next_run_date: 12/15/2010 02:00:00.100000 AM
    next_run_date: 01/15/2011 02:00:00.100000 AM
    next_run_date: 02/15/2011 02:00:00.100000 AM
    PL/SQL procedure successfully completed.So in your case your DBMS_SCHEDULER job would look like this:
      DBMS_SCHEDULER.create_job (
        job_name        => 'test_job',
        job_type        => 'PLSQL_BLOCK',
        job_action      => 'BEGIN your_procedure; END;',
        start_date      => SYSTIMESTAMP,
        repeat_interval => 'FREQ=MONTHLY;BYMONTHDAY=15;BYHOUR=2;BYMINUTE=0;BYSECOND=0;',
        end_date        => NULL,
        enabled         => TRUE,
        comments        => 'Some job to run on the 15th of every month at 2am');Hope this helps!
    Edited by: Centinul on Sep 30, 2010 10:54 AM
    I know you haven't identified your version, but I wanted to make the comment just in case you are on more recent versions of Oracle.

  • Scheduling procedure with remote db = logon denied

    I´m having two DBs (db1 and db2) which are connected by a database link and a non-dba user "xyz" in both DBs.
    I´m starting a procedure in db1, which catches data from a table in db2 and combines it with data from db1 - it works perfectly fine.
    Now I want to automate this procedure with the scheduler, so I´m getting the privileges (GRANT CREATE JOB TO user xyz) => works perfectly fine, too.
    Whats the problem?
    The procedure runs in the given time interval, but I´m always getting a ORA-01017 error invalid username /password; logon denied.
    If the procedure runs manuel (outside the scheduler) it works perfectly.
    Do I need additional privileges or is there something wrong with the db link? (e.g. the username and pw will not be committed).
    Sorry to bother you with these questions - if you need additional info, please let me know.
    Regards!
    forget to mention: If I´m running the scheduler with a procedure, that accesses only local table, it works...but if I try to access a remote table (which is normally outside the scheduler no problem) it doesn´t work.
    Edited by: user10537960 on 08.02.2011 06:17

    The mystery has been solved: the DB link was created by another user, thats why the remote connect didn´t work - now I´ve created a fully qualified link and it works :)

  • WBS Scheduling procedure --

    Good Morning Experts ..
    Please explain me all the steps to be  required  in WBS scheduling at user end ..
    as per me in our scenario - we are doing-
    1.first of all we assign the activitis to WBS then we make the relationship between them then we scheduled them from planning board.
    whenever activity is completed we confirm that from Project builder ..
    is this right procedure ?
    if you have some document with screen shot please provide me .
    Regards

    Hi Robert,
    Please check the link below.
    http://help.sap.com/saphelp_47x200/helpdata/en/4c/2276a246e611d189470000e829fbbd/frameset.htm
    It will give you more idea on the said subject.
    Regards
    Tushar Vhora
    P.S. Reward points for useful answer

  • Troubleshooting a scheduled Procedure

    Dear All,
    If I schedule a procedure from my sqlplus client, I would be able to know if there were any problems the procedure has encountered while it is running ex. any runtime errors or any network issues that cause the procedure to fail...
    But is there any way to know where and why a procedure got failed when I schedule it on the server? (The server is Oracle8i)
    Regards
    RK Veluvali
    Message was edited by:
    RK Veluvali

    You want to run a procedure from SQLPLUS through a schedule (say crontab?) and want to know (email? logfile?) if there were any errors?
    You could spool to a file before executing the procedure and check (grep?) it for errors (ORA-, TNS-, etc) for errors and email the logfile to yourself and/or write a wrapper script that calls SQLPLUS that does the same and catches any problems running SQLPLUS.
    You may be better off scheduling the procedure through an anonymous PL/SQL through database control (10g) and checking errors, notifications if it fails this way. More of an out-of-the-box solution.

  • Problem scheduling procedure to run at 3 different times

    I created the following statement to have a simple procedure to run at 3 different time.
    repeat_interval => 'freq=DAILY; BYHOUR=12,13,14;',
    The job runs the moment I schedule it but I did not see it kick off at the other times.
    What did I do wrong and I check the time of the db
    The complete scheduling statement.
    begin
    Dbms_Scheduler.create_job(
    job_name => 'DEMO_HALL_TEST_SCHEDULE',
    job_type => 'STORED_PROCEDURE',
    job_action => 'HR.a_simple_subprogram',
    start_date      => SYSTIMESTAMP,
    repeat_interval => 'freq=DAILY; BYHOUR=12,13,14;',
    enabled => TRUE,
    comments => 'Demo for job schedule.');
    END;
    /PROCEDURE
    create or replace
    procedure a_simple_subprogram
    is
    begin
      null;
    end;

    Hi,
    you didn't set the minutes. So they are derived from the start date. Probably the job will start at some time between 12 and 13
    SQL> select job_name, start_date, next_run_date, repeat_interval from user_scheduler_jobs;
    JOB_NAME                       START_DATE                       NEXT_RUN_DATE                    REPEAT_INTERVAL
    DEMO_HALL_TEST_SCHEDULE        03.01.13 13:09:06,873025 +01:00  03.01.13 14:09:06,600000 +01:00  freq=DAILY; BYHOUR=12,13,14;
    DEMO_HALL_TEST_SCHEDULE_2      03.01.13 13:09:09,384254 +01:00  03.01.13 14:00:09,400000 +01:00  freq=DAILY; BYHOUR=12,13,14; byminute=0;Excerpt from Oracle® Database PL/SQL Packages and Types Reference, DBMS_SCHEDULER
    >
    Start Dates and Repeat Intervals The Scheduler retrieves the date and time from the job or schedule start date and incorporates them as defaults into the repeat_interval. For example, if the specified frequency is yearly and there is no BYMONTH or BYMONTHDAY clause in the repeat interval, then the month and day that the job runs on are retrieved from the start date. Similarly, if frequency is monthly but there is no BYMONTHDAY clause in the repeat interval, then the day of the month that the job runs on is retrieved from the start date. If present, BYHOUR, BYMINUTE, and BYSECOND defaults are also retrieved from the start date, and used if those clauses are not specified.

  • Script to schedule a procedure

    hii,
    i want the script to execute a procedure on daily basis at a particular time(at 10pm daily).my data base version is 9.2.0.6.0.
    How i can check wheather my scheduled procedure is executed or not

    Hi,
    In addition, pay attention about possible job execution failures.
    Scheduled jobs
    SELECT job, next_date, next_sec, failures, broken FROM dba_jobs;
    JOB   NEXT_DATE NEXT_SEC FAILURES B
    14144 24-OCT-02 16:35:35 0        N
    41762 01-JAN-00 00:00:00 16 Y
    2 rows selected.
    Jobs currently in execution
    SELECT sid, r.job, log_user, r.this_date, r.this_sec
    FROM dba_jobs_running r, dba_jobs j
    WHERE r.job = j.job;
    SID   JOB        LOG_USER      THIS_DATE THIS_SEC
    25    341        SCOTT         24/04/03  16:45:12
    1 rows selected.Cheers

  • How to schedule macros to open a report , refresh and update database?

    Hi,
    We have the below set of steps that work on a deski environment. It works fine on XI R3.1 Fix pack 1.5, but I am unable to schedule and get the macros to run although i've included the entire macros code in - Private Sub DocumentAfterRefresh()
    Refresh of report
    Step 1 : Report is Refreshed. Refreshed data contains 10 Report Names to be opened by the Macros and the prompt values that these reports need to be refreshed with.
    Macros Functionality:
    Step 1 : Opens 1st report of the 10 reports from the repository in deski thick client, updates the database by setting a flag on the processing to Y or N for the report being processed.
    Step 2 : Refreshes the report with the prompt values obtained from the first refresh in the report, saves the refreshed data to a CSV or PDF at a location.
    Step 3 : Updates the database if the report has been genrated or not and then deletes the local copy of the output csv and pdf.
    The above steps repeat over and over again until all 10 reports open up, get refreshed and update the database.
    Now all of this works on Deski thick client/refresh and macros.
    However, when i schedule it, the macros doesnot seem to be running.
    Is the above scenario even possible to replicate via a schedule process..? 
    Note : The reports need to be retained in Deski itself.
    PLz help...!

    Scheduling Background Jobs 
    Use
    You can define and schedule background jobs in two ways from the Job Overview:
    Directly from Transaction SM36. This is best for users already familiar with background job scheduling.
    The Job Scheduling Wizard. This is best for users unfamiliar with SAP background job scheduling. To use the Job Wizard, start from Transaction SM36, and either select Goto ® Wizard version or simply use the Job Wizard button.
    Procedure
    Call Transaction SM36 or choose CCMS ® Jobs ® Definition .
    Assign a job name. Decide on a name for the job you are defining and enter it in the Job Name field.
    Set the job’s priority, or "Job Class":
    High priority: Class A
    Medium priority: Class B
    Low priority: Class C
    In the Target server field, indicate whether to use system load balancing.
    For the system to use system load balancing to automatically select the most efficient application server to use at the moment, leave this field empty.
    To use a particular application server to run the job, enter a specific target server.
    If spool requests generated by this job are to be sent to someone as email, specify the email address. Choose the Spool list recipient button.
    Define when the job is to start by choosing Start Condition and completing the appropriate selections. If the job is to repeat, or be periodic, check the box at the bottom of this screen.
    Define the job’s steps by choosing Step, then specify the ABAP program, external command, or external program to be used for each step.
    Save the fully defined job to submit it to the background processing system.
    When you need to modify, reschedule, or otherwise manipulate a job after you've scheduled it the first time, you'll manage jobs from the Job Overview.
    Note: Release the job so that it can run. No job, even those scheduled for immediate processing, can run without first being released.
    For a simple job scheduling procedure, see the R/3 Getting Started Guide.

  • DBMS scheduler jobs running twice

    Hi,
    I have 4 DBMS scheduler jobs , which checks for a specific job status in DB and sends an email , when i started the schedule for the first week the jobs executed fine from next week I am getting two emails from each job , when i check the logs USER_SCHEDULER_JOB_RUN_DETAILS I see only one run , which seems weird to me so i disabled one job and left the three jobs in schedule , next time i got two emails from 3 jobs and one from disabled job . After checking logs i see that there is no entry of the disabled job execution . I am not sure where is the problem i can't find any log from where the disabled job executing. Please help me
    Job schedule is to run every Saturday
    Interval setup :
    start_date => trunc(SYSDATE)+ 8.5/24,
    repeat_interval => 'TRUNC(LEAST(NEXT_DAY(SYSDATE,''SATURDAY'') )) + 8.5/24'
    Suresh

    Hi,
    I tried to schedule the same jobs using DBMS_JOB but i still get the same problem , I created the procedure with all code in and scheduled it using dbms job , first day it run once second day it run twice ( sending two emails) Inow i am not sure if issue is with my code or scheduler
    Procedure
    Declare
    v_count number;
    v_Recipient VARCHAR2(400) := '[email protected]';
    v_Subject VARCHAR2(80) := 'TEST_Email';
    v_Mail_Host VARCHAR2(30) := 'localhost';
    v_Mail_Conn utl_smtp.Connection;
    crlf VARCHAR2(2) := chr(13)||chr(10);
    BEGIN
    select count(*) into v_count from TEC_CODERETURN@RPRD where interface like 'FOR002B' and trunc(rundate) =trunc(sysdate);
    if v_count = 0
    then
    v_Mail_Conn := utl_smtp.Open_Connection(v_Mail_Host, 25);
    utl_smtp.Rcpt(v_Mail_Conn, '[email protected]');
    UTL_SMTP.OPEN_DATA(v_Mail_Conn);
    utl_smtp.WRITE_RAW_DATA(v_Mail_Conn, UTL_RAW.CAST_TO_RAW(
    'Date: ' || to_char(sysdate, 'Dy, DD Mon YYYY hh24:mi:ss') || UTL_TCP.CRLF ||
    'From: ' || '[email protected]' || UTL_TCP.CRLF ||
    'Subject: '|| v_Subject || UTL_TCP.CRLF ||
    'To: ' || v_Recipient || UTL_TCP.CRLF ||
    'This is a test Alert'|| UTL_TCP.CRLF
    UTL_SMTP.CLOSE_DATA(v_mail_conn);
    utl_smtp.Quit(v_mail_conn);
    end if;
    EXCEPTION
    WHEN utl_smtp.Transient_Error OR utl_smtp.Permanent_Error then
    raise_application_error(-20000, 'Unable to send mail: '||sqlerrm);
    END;
    DBMS job creation
    DECLARE
    jobno NUMBER;
    BEGIN
    DBMS_JOB.submit
    (job => jobno,
    what => 'TEST_ALERT;',
    next_date => trunc(sysdate)+0.1/24,
    interval => 'SYSDATE + 1',
    no_parse => TRUE );
    DBMS_OUTPUT.put_line ('Created Job - the job number is:' || TO_CHAR (jobno));
    COMMIT;
    END;
    Suresh

  • Discoverer 3.1.25: getting error ORA-06550 when scheduling report

    Hello,
    we are still using the Discoverer version 3 (release 3.1.25). I know that this version is out of support, but that doesn't harm use from using it...
    The Discoverer has been working fine for the last couple years. At the beginning of every month the same already defined reports are getting generated. But with the beginning of the year 2010 we are getting the error:
    ORA-06550: line 1, column 93:
    PLS-00201: identifier 'EUL$BATCH_PACKAGE0100112082923.RUN' must be declared
    ORA-06550: line 1, column 93:
    PL/SQL: Statement ignored
    ORA-06512: at "SYS.DBMS_JOB" line 79
    The numbers "0100112082923" after the identifier "EUL$BATCH_PACKAGE" specify the date and time:
    082923: 08 hour, 29 minutes, 23 seconds
    0100112: 010 year, 01 month, 12 day
    The reason of that error is that the mentioned Package/Packagebody EUL$BATCH_PACKAGE*0*100112082923 doesn't exist in the database. But as a matter of fact the Package/Packagebody 'EUL$BATCH_PACKAGE100112082923 does exist. The Discoverer creates the Package/Packagebody without the "0" after the identifier "EUL$BATCH_PACKAGE" in the database, but wants to use the Package/Packagebody with the "0" after the identifier "EUL$BATCH_PACKAGE". Seems like a bug to me - does anybody have the same problem?
    Until the year 2009 the year was specified with just two digits (09) - now the year seems to get specified with 3 digits (010) - but in the database just two digits are used. Is there any property table or button where this gets defined?
    Any help will be appreciated!

    Seems like if I have found the bug by myself...
    In the procedure SubmitJob(...) of the package EUL$BATCH_REPOSITORY the name of the scheduled procedure gets generated with the hardcoded string
    "EUL$BATCH_PACKAGE0". The zero after "PACKAGE" is only correct when the year ends with one digit (e.g. 2001, 2002, ..., 2009). When shortening the
    string to "EUL$BATCH_PACKAGE" everything works fine again...
    Rgds

  • How to schedule another program by giving report name and variant name?

    I want to create a program for Scheduling another program using function 'FASU_V_CREATE_VARIANT_RFC'
    (FASU_V_CREATE_VARIANT_RFC : This function used for creating the variant ) by giving
    1) Report name
    2) varaint name
    Could anybody please help me.??

    Scheduling Background Jobs 
    Use
    You can define and schedule background jobs in two ways from the Job Overview:
    Directly from Transaction SM36. This is best for users already familiar with background job scheduling.
    The Job Scheduling Wizard. This is best for users unfamiliar with SAP background job scheduling. To use the Job Wizard, start from Transaction SM36, and either select Goto ® Wizard version or simply use the Job Wizard button.
    Procedure
    Call Transaction SM36 or choose CCMS ® Jobs ® Definition .
    Assign a job name. Decide on a name for the job you are defining and enter it in the Job Name field.
    Set the job’s priority, or "Job Class":
    High priority: Class A
    Medium priority: Class B
    Low priority: Class C
    In the Target server field, indicate whether to use system load balancing.
    For the system to use system load balancing to automatically select the most efficient application server to use at the moment, leave this field empty.
    To use a particular application server to run the job, enter a specific target server.
    If spool requests generated by this job are to be sent to someone as email, specify the email address. Choose the Spool list recipient button.
    Define when the job is to start by choosing Start Condition and completing the appropriate selections. If the job is to repeat, or be periodic, check the box at the bottom of this screen.
    Define the job’s steps by choosing Step, then specify the ABAP program, external command, or external program to be used for each step.
    Save the fully defined job to submit it to the background processing system.
    When you need to modify, reschedule, or otherwise manipulate a job after you've scheduled it the first time, you'll manage jobs from the Job Overview.
    Note: Release the job so that it can run. No job, even those scheduled for immediate processing, can run without first being released.
    For a simple job scheduling procedure, see the R/3 Getting Started Guide.

  • DBMS_schedular.create_job procedure

    HI ,
    I am trying write a scheduler for one of the Pl/SQL package...
    Here is the package i m trying to schedule...This works absolutely fine
      --- Spec
    create or replace package my_pack
    as
    begin
    procedure common_proc(var_num number);
    end;
      --- Body
    create or replace package body my_pack
    as
      procedure insert_tbl1(v_num number)
       is
        begin
           insert into tbl1 values (....)
              select ....from src_tbl where col1 = v_num and ...and...;
       end;
       procedure insert_tbl2(v_num number)
        is
        begin
           insert into tbl2 values (....)
              select ....from src_tb1 where col1 = v_num and ...and...;
       end;      
       procedure insert_tbl3(v_num number)
        is
        begin
           insert into tbl3 values (....)
              select ....from src_tb1 where col1 = v_num  and ...and...;
       end;
       procedure insert_tbl4(v_num number)
        is
        begin
           insert into tbl4 values (....)
              select ....from src_tb1 where col1 = v_num  and ...and...;
       end;  
      procedure common_proc(var_num number )
      as
       begin
            insert_tbl1(var_num);
            insert_tbl2(var_num);
            insert_tbl3(var_num);
            insert_tbl4(var_num);
       end;            
    end my_pack;
    Here is the procedure for scheduling the above package...
      create or replace procedure  schedule(s_num in number )
         as
       var_1 varchar2; -- sqlstr
       var_2 varchar2;  -- v_jobn
       begin
         var_1 := 'my_pack.common_proc('''||s_num||''');';
         dbms_output.put_line(var_1);
         var_2 := 'my_pack_'||to_char(s_num);
         dbms_output.put_line('job name :'||var_2);
         dbms_schedular.create_job(
                                       job_name => var_2
                                      ,job_type => 'PLSQL_BLOCK'
                                      ,job_action => 'begin '||var_1||' end; '
                                      ,start_date => NULL
                                      ,repeat_interval => NULL
                                      ,enabled => TRUE
                                      ,comments => null
                                      ,auto_drop => TRUE 
       exception
         when others then
         raise;
       end schedule;
    When i compile the above schedule procedure, i get the following error
       PLS-00201: identifier 'DBMS_SCHEDULER' must be declared
    ANy idea why ???Next question,
    - how would i test this scheduler?? do i need to run the procedure with passing the parameter or how would i know whether schedular is kicked off or running or any place i can i see the logs ???
    - If you have any idea of making this procedure schedule to write in a efficient way, please feel free to suggest me
    last thing, i m tottally new to schedular, this is the first time i m using it..
    Your suggestions or advice or help is greatly appriciated!!!
    thank you so much !!!

    I think you are missing the privileges.
    GRANT CREATE JOB,MANAGE SCHEDULER to <user>;
    They have explained scheduler here : http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_sched.htm#i1000363
    Since you are setting the start_date to null, the job will be executed as soon as it gets created.
    You can check the status of the run by:
    SELECT * FROM USER_SCHEDULER_JOB_RUN_DETAILS
    WHERE job_name = <>
    ORDER BY log_Date DESC;
    You can see the running jobs by:
    select job_name
    , session_id
    , running_instance
    , elapsed_time
    , cpu_used
    from USER_SCHEDULER_RUNNING_JOBS;
    Note that there are "DBA" counterparts of these tables too.

  • Scheduling scripts and related overhead!!

    Hello All,
    We are in the process to make our some of the crons availability to maximum., ie it should be running all the time in case of one of our instance crash.
    We have two node rac cluster and we want to run our generateDailiy.sh, generateWeekly.sh and generateMonthly.sh script to run through DBMS shceduler. These scripts wil in turn creates PL/SQL code and execute it and fetches the data and generate reports. I know its better to use scheduled procedure than do the things in this fashion, but what to do, the things are like this at the moment:-). May be in future it can be changed.
    I have some query in this regard like:-
    1> If we are continuing like this, what is the performace impact on the database?
    2> In case one instance goes down, what will happen to rest of the transactions? While the procedure (s) called through script, are fetching data from the database
    Thanks in advance,
    Amit

    Hi,
    dbms_scheduler has a very low overhead and just these jobs will not have any performance impact.
    If an instance goes down, in-progress transactions will be aborted. This follows Oracle's data consistency models.
    For further scheduler questions you can use the scheduler forum here
    Scheduler
    Hope this helps,
    Ravi.

  • Agent scheduling

    what is the main purpose of scheduling ?Can scheduling be done only with an agent ?
    what are the different types of scheduling i.e scenario scheduling,poject scheduling ,procedure scheduling,model scheduling, and what is the difference between them ?
    Can anyone help me to schedule a practical real time scenario using an agent . is there any example with screen shots helpng teh same.
    is a table created and dropped every time we schedule a scenario or a procedure?

    851305 wrote:
    what is the main purpose of scheduling ?to run a specific task at a specified time
    Can scheduling be done only with an agent ?yes
    what are the different types of scheduling i.e scenario scheduling,poject scheduling ,procedure scheduling,model scheduling, and what is the difference between them ?you need to create scenario for scheduling
    >
    Can anyone help me to schedule a practical real time scenario using an agent . is there any example with screen shots helpng teh same.check
    http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/odi/10g/10135/creating_scheduling_scenario/creating_scheduling_scenario.htm
    odiexperts.com/scheduling-using-odi-scheduler
    is a table created and dropped every time we schedule a scenario or a procedure?not sure about this question

  • Unable to descripe the table and unable to drop the table

    Hi,
    I have a temp table that we use like staging table to import the data in to the main table through some scheduled procedures.And that will dropped every day and will be created through the script.
    Some how while I am trying to drop the table manually got hanged, There after I could not find that table in dba_objects, dba_tables or any where.
    But Now I am unable to create that table manually(Keep on running the create command with out giving any error), Even I am not getting any error (keep on running )if I give drop/desc of table.
    Can you please any one help on this ? Is it some where got stored the table in DB or do we any option to repair the table ?
    SQL> select OWNER,OBJECT_NAME,OBJECT_TYPE,STATUS from dba_objects where OBJECT_NAME like 'TEMP%';
    no rows selected
    SQL> desc temp
    Thank in advance.

    Hi,
    if this table drops then it moved DBA_RECYCLEBIN table. and also original name of its changed automatically by oracle.
    For example :
    SQL> create table tst (col varchar2(10), row_chng_dt date);
    Table created.
    SQL> insert into tst values ('Version1', sysdate);
    1 row created.
    SQL> select * from tst ;
    COL        ROW_CHNG
    Version1   16:10:03
    If the RECYCLEBIN initialization parameter is set to ON (the default in 10g), then dropping this table will place it in the recyclebin:
    SQL> drop table tst;
    Table dropped.
    SQL> select object_name, original_name, type, can_undrop as "UND", can_purge as "PUR", droptime
      2  from recyclebin
    SQL> /
    OBJECT_NAME                    ORIGINAL_NAME TYPE  UND PUR DROPTIME
    BIN$HGnc55/7rRPgQPeM/qQoRw==$0 TST           TABLE YES YES 2013-10-08:16:10:12
    All that happened to the table when we dropped it was that it got renamed. The table data is still there and can be queried just like a normal table:
    SQL> alter session set nls_date_format='HH24:MI:SS' ;
    Session altered.
    SQL> select * from "BIN$HGnc55/7rRPgQPeM/qQoRw==$0" ;
    COL        ROW_CHNG
    Version1   16:10:03
    Since the table data is still there, it's very easy to "undrop" the table. This operation is known as a "flashback drop". The command is FLASHBACK TABLE... TO BEFORE DROP, and it simply renames the BIN$... table to its original name:
    SQL> flashback table tst to before drop;
    Flashback complete.
    SQL> select * from tst ;
    COL        ROW_CHNG
    Version1   16:10:03
    SQL> select * from recyclebin ;
    no rows selected
    It's important to know that after you've dropped a table, it has only been renamed; the table segments are still sitting there in your tablespace, unchanged, taking up space. This space still counts against your user tablespace quotas, as well as filling up the tablespace. It will not be reclaimed until you get the table out of the recyclebin. You can remove an object from the recyclebin by restoring it, or by purging it from the recyclebin.
    SQL> select object_name, original_name, type, can_undrop as "UND", can_purge as "PUR", droptime
      2  from recyclebin
    SQL> /
    OBJECT_NAME                    ORIGINAL_NAME TYPE                      UND PUR DROPTIME
    BIN$HGnc55/7rRPgQPeM/qQoRw==$0 TST           TABLE                     YES YES 2006-09-01:16:10:12
    SQL> purge table "BIN$HGnc55/7rRPgQPeM/qQoRw==$0" ;
    Table purged.
    SQL> select * from recyclebin ;
    no rows selected
    Thank you
    And check this link:
    http://www.orafaq.com/node/968
    http://docs.oracle.com/cd/B28359_01/server.111/b28310/tables011.htm
    Thank you

Maybe you are looking for

  • How to make a profile page self editable

    Hi All, I want any user to be able to edit his own profile without the necessity of going through a request approval workflow for the same. To achieve this, I removed the ALL USERS role from the Self Profile Modify request template. Then created a ne

  • Black login screen, only the mouse appears.

    Hello guys, My problem is this, Windows does all the updates normally without any error during the process, but each time the system reboots the machine, Windows logo appears carrying the system and when it arrives at logon screen nothing pops up, on

  • Spotty iTunes Shared Library Connection

    I continue to have problems sharing my iTunes library between my PC and laptop (both Dells with Windows Vista). My entire collection is on my PC, but I prefer using my laptop as a mobile music library. However, at random times my PC library disappear

  • Scenario related to Assembly Process in Depot

    I have the assembly process in Depot, so I configured Depot as manufacturing plant in SAP. 1. Question is some product I will get through STO and same product will be sold to customer. How do i need to handle this scenario? Because while receiving I

  • Re Initialisation for 0CRM_SRV_IbASE_ATTR

    Hi Gurus, I have tried doing re init for the 0CRM_SRV_IbASE_ATTR but I have got error says delete the init request. But I deleted the init from the shedule in the infopackage and no data in the Datatarget as well. Please help me out from this. Thanks