Can check the scheduler is correct

{BEGIN
DBMS_SCHEDULER.CREATE_JOB (
job_name => 'my_job1',
job_type => 'PLSQL_BLOCK',
job_action => ' DECLARE
Type ty_tab1 is table of tb_fn%rowtype index by PLS_INTEGER;
ltab1 ty_tab1;
BEGIN
DELETE FROM tb_snap;
SELECT *
BULK COLLECT
into ltab1
FROM tb_fn;
FOR i in ltab1.first..ltab1.last
LOOP
INSERT
INTO tb_snap(user_id
,trans_id)
VALUES(ltab1(i).user_id
,ltab1(i).trans_id);
END LOOP;
COMMIT;
END;',
start_date => '17-DEC-12 1.00.00AM US/Pacific',
repeat_interval => 'FREQ=Monthly',
enabled => TRUE
END}
{my requirement is
Create a script to update the tb_snap table, update involves
          1. truncating the table in tb_snap table
          2. Inserting the data from tb_fn table to tb_snap table.
          3. This should be done on the last day of the month for every month.
{kinly help me out now to solve the error}

{BEGIN
DBMS_SCHEDULER.CREATE_JOB (
job_name => 'my_job1',
job_type => 'PLSQL_BLOCK',
job_action => ' DECLARE
Type ty_tab1 is table of tb_fn%rowtype index by PLS_INTEGER;
ltab1 ty_tab1;
BEGIN
DELETE FROM tb_snap;
SELECT *
BULK COLLECT
into ltab1
FROM tb_fn;
FOR i in ltab1.first..ltab1.last
LOOP
INSERT
INTO tb_snap(user_id
,trans_id)
VALUES(ltab1(i).user_id
,ltab1(i).trans_id);
END LOOP;
COMMIT;
END;',
start_date => '17-DEC-12 1.00.00AM US/Pacific',
repeat_interval => 'FREQ=Monthly',
enabled => TRUE
END}
{my requirement is
Create a script to update the tb_snap table, update involves
1. truncating the table in tb_snap table
2. Inserting the data from tb_fn table to tb_snap table.
3. This should be done on the last day of the month for every month.
{above i mentioned the requirements based on it, i wrote code for it, but i ever created dbms_scheduler so i dont no whether the code is correct for the requirement. any1 can help me to check}

Similar Messages

  • I bought an iphone 4s from a pawn shop,i need to check and make sure the phone is clear to be activated in my name,i was told you can check the IMEI number,i have the number,but what do i do with it?

    I bought an iphone 4s from a pawn shop,i need to check and make sure the phone is clear to be activated in my name,i was told you can check the IMEI number,i have the number,but what do i do with it?

    Who is the carrier the iPhone is carrier locked with?
    If the carrier has a blacklist for lost/stolen cell phones, it would be the carrier you need to contact.

  • Is there anyway we can check the validity of dump file in Unix system

    Hi,
    I have taken export of 2 tables which are huge in volume. one of the table seems to be successfully exported yet another one failed due to space scarcity. Since both the tables share a single dumpfile.
    I wanted to know.
    1. Can we use the same dumpfile to import the table which is successfull or it can not be used because the second table got error while exporting?
    2. Is there any way we can check the validity of dumpfile in unix plateform.
    Your reply is highly appreciated.

    784786 wrote:
    Hi,
    I have taken export of 2 tables which are huge in volume. one of the table seems to be successfully exported yet another one failed due to space scarcity. Since both the tables share a single dumpfile.
    I wanted to know.
    1. Can we use the same dumpfile to import the table which is successfull or it can not be used because the second table got error while exporting?No. It is better to take another backup of the same
    >
    2. Is there any way we can check the validity of dumpfile in unix plateform.
    Please check the export log backup. If it says that export terminated successfully, then the dump may be fine.

  • Is there a tool which can check the version of latest version available?

    I need a tool which can check the version of latest firmware available for UCS servers. The point is avoid running old firmwares.
    If the tool can download the firmware that's like cherry on the cake.

    Hi Marsbar,
    =COUNTIF(range,"done") will return the number of cells in the specified range containing only the string "done"
    If the range is a single column, (eg. column E):
    =COUNTIF(E,"done")
    The formula is in cell A1 of the table, but may be placed anywhere (except in column E, unless it is in a Header row or Footer row).
    Regards,
    Barry

  • Where we can check the logs if system or application fails.

    Dear Support,
    If we are facing any system oriented issue or application oriented issue,where we can check the logs in the computer.
    This logs will help us for me to identify the error code and also to fix the resolution of the error for the same.
    Regards
    Pradeep.R

    Hello Pradeep.R,
    I can’t find a log to trace both application as system logs at the same time.
    We could try the following workaround.
    Open two Event Viewers and separately check the application and system logs based on time.
    Best regards,
    Fangzhou CHEN
    Fangzhou CHEN
    TechNet Community Support

  • Where we can check the Sales order cancel reason?

    Hi,
    We are developing a custom report for Sales Order Booked Vs Cancelled. In this report we want to display the reason for canceling the order. We are selecting the reasons while canceling the sales order. But the reasons are not showing in the tables. Where we can check the reason for canceling? Is there any table?
    Regards,
    Prabhu.S.J

    Check this query:
    SELECT FLT.MEANING, OER.REASON_TYPE, OER.REASON_CODE, FLV.MEANING, OER.COMMENTS, OER.CREATION_DATE, OER.REASON_ID, OER.ENTITY_ID, OER.ENTITY_CODE, OER.VERSION_NUMBER, OER.HEADER_ID from OE_REASONS OER, FND_LOOKUP_VALUES FLV, FND_LOOKUP_TYPES_VL FLT WHERE FLV.LANGUAGE = userenv('LANG') and FLV.VIEW_APPLICATION_ID = 660 and FLT.VIEW_APPLICATION_ID = 660 and FLT.SECURITY_GROUP_ID = fnd_global.lookup_security_group(FLT.LOOKUP_TYPE, FLT.VIEW_APPLICATION_ID) and FLV.SECURITY_GROUP_ID = fnd_global.lookup_security_group(FLV.LOOKUP_TYPE, FLV.VIEW_APPLICATION_ID) and FLV.LOOKUP_TYPE=FLT.LOOKUP_TYPE and OER.REASON_TYPE=FLV.LOOKUP_TYPE and OER.REASON_CODE=FLV.LOOKUP_CODE;
    It might help you.

  • How we can check the output in script

    hi friends,
    iam raju. new to sap.plz any one reply to my question.
    Thanks,
    raju

    Hi Sreenivasulu,
    You can check the output of script in two ways.
    1. Directly executing your print program u can see the output of SAP Script.
    2. IF you are using any standard scripts you then need to use t-code to see the output.
    Ex: if you are copied standard SAP Script (purchase order ) <b>MEDRUCK</b> this is the standard purchase order script.
    Copy this into your Zmedruck edit it as per ur requirement then you have to assaig this script to standard print program of purchase order using <b>NACE</b> transaction. Replace MEDRUCK with Zmeduck which u hv edited. Then for Purchase order the T-code is<b> ME9F</b>  give the purchase order no and check the output. There you can see the chages you have done in the script.
    Hope this will help you.
    <b>reward if useful</b>
    Regards,
    sunil kairam.

  • Where I can check the internal table memory that have the system?

    Hi
    I have some jobs that cancel with this error:  No storage space available for extending an internal table.
    Where I can check the amount of space memory that have the system and if I can resolve this problem if I put a commit work or something like that?
    The dump stop when I make a import:
    IMPORT TIMES DHIST3 SUM3 FROM DATABASE MONI(DB) ID MONIKEY.
    Thanks for the help!

    hi,
    goto:
    sm04 - goto- memory
    A.
    Message was edited by:
            Andreas Mann

  • How to check the scheduled process chain in SM37

    Hi Experts,
    Can anyone tell me how do I check whether my process chain has been scheduled or not.
    I checked in sm37 all the jobs that are under released status. Im getting about 10 jobs.
    I dont know which one is belogs to my process chain as they do not have the process chain names.
    Can anyone please let me know how do I confirm whether one of the released jobs below to my process chain.
    Thanks in advance.

    Hi,
    To find this out, in sm37, select the job and click on step button in toolbar. You would find the program name RSPROCESS.
    Click on this job and then go to menu bar and select goto-> variant.
    In the variant, you can see the process chain that has been used for this job.

  • Strange error while scheduling but can see the scheduled report

    Hi,
      When I schedule a Deski Report from my Favorite folder to my repository folder the instance fails and has this error message
    destination DLL disabled. []: [CrystalEnterprise.Smtp] .
    But when I see inbox I can see the report scheduled in required format.
    For information - I m using XIR3.1 SP2 and using a server group for scheduling this.
    Please help me identifying why the schedule fails.

    Hi,
         Please note, the error occurred when system tryng to push your completed scheduled report into a particular destination. In you case, the Repository Folder Path.
         Regardless, the solution provided by the previous post contained the same solutions you need to apply.
         In summary, you need to make sure you have permission to that particular path where the report will eventually reside.
    Regards,
    Ken

  • Where we can check the Confirmation of gross weight .

    hi,
    iam executing the fm SD_DELIVERY_UPDATE_PICKING_1 , in that i want Confirmation of gross weight  and Confirmation of netweight values, can any body tell me  where we can check that fields.
    thanks in advance.

    not sure if this can help u
    LIKP-NTGEW
    LIKP-BTGEW

  • Where we can check the changes that we have done in the Projects

    Dear Friends,
    I have done few changes in the project WBS element after saving the Project, Now I want to check what all the changes that I have done in the WBS.
    In which transaction I can check these changes apart from u201CCN60u201D, and please explain step by step what all the customizing setting are required to check these changes.
    In Projects is it possible to check the way we are checking the changes in PO and Sales Orders.
    Regards,
    Sai

    Nitin Patoliya,
    Thanks for the inputs, I have tried as you suggested there it is showing system status Created and released, but Iu2019m not getting the information as I required. Here exactly what Iu2019m looking is If I have done any changes in the Project, Eg: after saving the Project if I have changed the Business area, profit center u2026.etc, I need the information when I have changed this data and at what level (WBS, Network or Activity).
    Regards,
    Sai

  • How to check the pdf whetther correct ?

    Hi Guru,
    I am writing the send PDF attached mail program which is using the function 'SO_DOCUMENT_SEND_API1'.Now i found that there has one problem, it is the attached file can not be opened. the Adobe showed me a dialog : "the file format is incorrect....".
    Has somebody can tell me how to correct this problem ?
    thanks a lot !
    Carlos Zhang

    How did this problem get solved? I too face the same issue but could not find a solution.. appreciate any words...
    Thanks,
    Saravanan

  • Does as3.0 can check the performance of computer

    I want to check the client cpu in flex,to make the client to
    know if the computer can run the application.
    any ideas,thank you!

    See
    http://blog.flexexamples.com/about-you/

  • I have unchecked all the toolbars from the top of my screen but now I cannot get them back as the right click does not bring the same menu where I can check the toolbars back. I had unchecked address bar too so now I am wondering how to get these back. I

    i think i covered all the details.
    == This happened ==
    Just once or twice

    In Firefox 3.6 on Windows you can hide the menu bar via "View > Toolbars" or via the right click context menu on a toolbar.
    Press and hold the Alt key down to bring up the menu bar.
    Go to "View > Toolbars" or right-click the menu bar or press Alt+V T to select which toolbars to show or hide.
    See also [[Menu bar is missing]]

Maybe you are looking for

  • How To Hide or Delete (Newsstand) From Yor IPONE or Other

    How To Delete (Newsstand) From IOS 5 or Other? That Is Easy To Hide it But You Can't Delete With Out Cydia But I Think The Best Way To us is Hide From Your Screen And That Is Easy!! When You Want To Creat New Locations To Icon From Screen Try To Put

  • Windows Vista: changes in ISAKMP

    Has anybody experienced problems with Windows Vista? We have hundreds of customers which successfully connect to our Cisco router from Windows XP. They manually (via wizard) create VPN-connection using their login, pswd and preshared key (all other s

  • Java.lang.NullPointerException when executing search

    I am doing the hibernate tutorial at http://www.roseindia.net/struts/struts-hibernate/struts-web-modules.shtml and have made the following hibernate config files and have deployed it on with the following hibernate config file to make the connection

  • Best way to backup iMovie to External HD

    I have transferred to my computer many hundreds of hours of video in real time using a ADVC110 unit connected to my computer and various VCR machines.  Once all the videos were imported into Events, I created at least 20 Projects just to consolidate

  • App Store sub menus empty

    I have an IPAD 3 with IOS6. When I go to the App Store application, more and select a sub group most are empty. If I select music or entertainment it just show my apple id and redeem. Anyone else see this?