Query to get script for dbms_scheduler jobs

Hi,
I created 3 dbms_scheduler jobs on customer DB earlier. Now with the latest version of Toad they have, when I try to describe these jobs it gives me an error saying ADMIN MODULE REQUIRED to describe such objects.
I contacted Toad for the same and they asked the customer to purchase ADMIN MODULE which th customer is not willing.
My problem is that I need the scipts of each of these DBMS_SCHEDULER jobs and programs, However I am not able to locate a DATA DICTIONARY that would store the source for each of them like we have for PROCEDURES etc USER_SOURCE data dictionary.
Is anyone aware of any such Data Dictionary or has a quey though which I can retrive Scheduler Jobs and Programs scripts.
Please Help.

Ok got it :)
To show details on job run:
select log_date
, job_name
, status
, req_start_date
, actual_start_date
, run_duration
from dba_scheduler_job_run_details;
To show running jobs:
select job_name
, session_id
, running_instance
, elapsed_time
, cpu_used
from dba_scheduler_running_jobs;
To show job history:
select log_date
, job_name
, status
from dba_scheduler_job_log;
show all schedules:
select schedule_name, schedule_type, start_date, repeat_interval
from dba_scheduler_schedules;
show all jobs and their attributes:
select *
from dba_scheduler_jobs;
show all program-objects and their attributes
select *
from dba_scheduler_programs;
show all program-arguments:
select *
from dba_scheduler_program_args;
Thanks

Similar Messages

  • Spool list is not getting created for background job

    I am creating background job using JOB_OPEN and then submitting my z-report using submit statement and then closing job using JOB_CLOSE. for this job is getting creating in sm37 and also gets finished but it does not create spool list showing output.
    Any idea how to do this?
    Thanks in advance.

    DATA: lv_jobname TYPE tbtcjob-jobname,
            lv_jobcount TYPE tbtcjob-jobcount,
            lv_variant TYPE variant,
            wa_var_desc TYPE varid,
            wa_var_text TYPE varit,
            it_var_text TYPE TABLE OF varit,
            it_var_contents TYPE TABLE OF rsparams.
      REFRESH: it_var_contents, it_var_text.
      CLEAR: wa_var_desc, wa_var_text.
      CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
        EXPORTING
          curr_report     = sy-cprog
        TABLES
          selection_table = it_var_contents
        EXCEPTIONS
          not_found       = 1
          no_report       = 2
          OTHERS          = 3.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      CONCATENATE sy-datum sy-timlo INTO lv_variant.
      wa_var_desc-mandt       = sy-mandt.
      wa_var_desc-report      = sy-cprog.
      wa_var_desc-variant     = lv_variant.
      wa_var_desc-transport   = 'F'.
      wa_var_desc-environmnt  = 'B'.
      wa_var_desc-version     = '1'.
      wa_var_desc-protected   = 'X'.
      wa_var_text-mandt = sy-mandt.
      wa_var_text-langu = sy-langu.
      wa_var_text-report = sy-cprog.
      wa_var_text-variant = lv_variant.
      lv_jobname = lv_variant.
      CONCATENATE 'Batch Job Variant -'(006)
                  sy-uname INTO wa_var_text-vtext.
      APPEND wa_var_text TO it_var_text.
    Create the varaint for the back ground job.
      CALL FUNCTION 'RS_CREATE_VARIANT'
        EXPORTING
          curr_report               = sy-cprog
          curr_variant              = lv_variant
          vari_desc                 = wa_var_desc
        TABLES
          vari_contents             = it_var_contents
          vari_text                 = it_var_text
        EXCEPTIONS
          illegal_report_or_variant = 1
          illegal_variantname       = 2
          not_authorized            = 3
          not_executed              = 4
          report_not_existent       = 5
          report_not_supplied       = 6
          variant_exists            = 7
          variant_locked            = 8
          OTHERS                    = 9.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    Open the job.
      CALL FUNCTION 'JOB_OPEN'
        EXPORTING
          jobname          = lv_jobname
        IMPORTING
          jobcount         = lv_jobcount
        EXCEPTIONS
          cant_create_job  = 1
          invalid_job_data = 2
          jobname_missing  = 3
          OTHERS           = 4.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
               WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    submitt the job in background mode.
      CALL FUNCTION 'JOB_SUBMIT'
        EXPORTING
          authcknam               = sy-uname
          jobcount                = lv_jobcount
          jobname                 = lv_jobname
          report                  = sy-repid
          variant                 = lv_variant
        EXCEPTIONS
          bad_priparams           = 1
          bad_xpgflags            = 2
          invalid_jobdata         = 3
          jobname_missing         = 4
          job_notex               = 5
          job_submit_failed       = 6
          lock_failed             = 7
          program_missing         = 8
          prog_abap_and_extpg_set = 9
          OTHERS                  = 10.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
               WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    close the job.
      CALL FUNCTION 'JOB_CLOSE'
        EXPORTING
          jobcount             = lv_jobcount
          jobname              = lv_jobname
          strtimmed            = 'X'
        EXCEPTIONS
          cant_start_immediate = 1
          invalid_startdate    = 2
          jobname_missing      = 3
          job_close_failed     = 4
          job_nosteps          = 5
          job_notex            = 6
          lock_failed          = 7
          invalid_target       = 8
          OTHERS               = 9.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
               WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    Hope this will be helpful..

  • DDL for DBMS_SCHEDULER job

    How do I generate the DDL for an existing DBMS_SCHEDULER job? I've tried using DBMS_METADATA.GET_DDL, but that doesn't seem to work with the scheduler jobs.

    Susan's method is probably the best.
    Another slightly more clunky way is to export the user's schema (using expdp) and then use impdp with the SQLFILE option, so the generated file will then contain the DDL to create the job.
    Note than none of these methods will work if you have set non-varchar2 (i.e. object) argument values for the job.
    Hope this helps,
    Ravi.

  • SQL query to get DDL for Adding PK.

    Guys,
    I'm looking for SQL query that gets me the "ALTER TABLE <TABLE_NAME> ADD CONSTRAINT <constraint_name> PRIMARY KEY (X,Y,...);" statments of all tables in my schema containing Primary Keys.
    Could someone help me with the query please?
    Regards,
    Bhagat

    You need this
    SELECT 'ALTER TABLE '||table_name||' ADD CONSTRAINT '||constraint_name||' PRIMARY KEY ('||column_name||');'
      FROM ( SELECT uc.table_name
                   ,uc.constraint_name
                   ,RTRIM (XMLAGG (XMLELEMENT (ucc, column_name || ',')).extract ('//text()'), ',')  column_name
              FROM user_constraints        uc
                  ,user_cons_columns       ucc
             WHERE uc.constraint_type      = 'P'
               AND uc.constraint_name      = ucc.constraint_name
          GROUP BY uc.table_name
                  ,uc.constraint_name
    ORDER BY table_name;   Regards
    Arun

  • Calling first query to get parameters for second query

    Newbie trying to convert an Oracle Report to BI. The report has 1 parameter from the user, which is plugged into a query that returns grouped data (4 values, 1 row). This data is then used in multiple places (not just where clause) in a second query to get the data for the report. Can anyone please point me in the right direction to accomplish this?
    I have looked at using a before trigger possibly to get the first query values but am not sure how to then pass those values back to be used by the second query.
    Thank you for ANY suggestions!

    Hello,
    you use any fields in additional querys as parameters.
    If you use XML-data-template, it would look like this:
    <dataTemplate name="INVOICE_REPORT" description="Invoice Report" Version="1.0">
      <parameters>
        <parameter name="P_INVOICE_HEADER_ID" dataType="number"/>
      </parameters>
      <dataQuery>
        <sqlStatement name="QUERY_INVOICE">
          <![CDATA[
    select ivh.invoice_header_id    
         , ivh.invoice_number
         , ivh.customer_id           // here you select the field which is a parameter for next query
          -- ... additional fields ... --
      from tbl_invoices ivh
      where ivh.invoice_header_id = :P_INVOICE_HEADER_ID
        -- and additonal conditions --
    ]]>
        </sqlStatement>
        <sqlStatement name="QUERY_CUSTOMER">
          <![CDATA[
    SELECT c.account_number
         , c.customer_name
         , c.customer_city
          -- ... additional fields ... --
      FROM tbl_customers c
      where c.customer_id = :CUSTOMER_ID // here is the parameter
        -- and additonal conditions --
    ]]>
        </sqlStatement>
      </dataQuery>
      <dataStructure>
        <group name="GRP_HEADER" source="QUERY_INVOICE">
          <element name="INVOICE_HEADER_ID" value="INVOICE_HEADER_ID"/>
          <element name="INVOICE_NUMBER" value="INVOICE_NUMBER"/>
          <group name="GRP_LINE" source="QUERY_INVOICE">
            <element name="ACCOUNT_NUMBER" value="ACCOUNT_NUMBER"/>
            <element name="CUSTOMER_NAME" value="CUSTOMER_NAME"/>
            <element name="CUSTOMER_CITY" value="CUSTOMER_CITY"/>
          </group>
        </group>
      </dataStructure>
    </dataTemplate>          The behavoir is much similar to oracle report
    Regards
    Alexander
    Edited by: alexander.steinbeisz on Dec 7, 2009 12:20 PM
    Edited by: alexander.steinbeisz on Dec 7, 2009 12:21 PM

  • Getting 'Skipped for Optimization' job state with %complete less than 100 - PWA PS 2010

    I am getting Job State = Skipped for Optimization for
    Job Type = Status Update with %Complete = 16%.. Now this job type shouldn't be skipped for optimization as per the understanding that MS is intelligently skipping duplicate jobs. Moreover there are no pre and post jobs in queue for
    the same project. What could be the reason here? using PWA PS 2010

    Eaman,
    I saw that you posted  the question in another thread as well. If you see Brian's reply from here, the Status Update job could also be skipped, and it is not necessarily a duplicate job.
    See here: http://social.technet.microsoft.com/Forums/projectserver/en-US/cefa327b-2ada-4a50-aacf-b9d1f2082a45/status-update-skipped-for-optimization-job-state-at-20-in-project-server-queue?forum=projectserver2010general
    Prasanna Adavi,PMP,MCTS,MCITP,MCT http://thinkepm.blogspot.com

  • Best way to schedule and get notification for plsql job

    hi
    i would like to execute a procedure on weekly basis and want to be notified if the job fails
    which is correct way of doing this?
    1. create user defined metric and call the procedure this way
    2. create scheduler job dbms_scheduler
    the other question is while I have exception handling within plsql procedure, how will the grid agent or dbms_scheduler distinguish between success and failure ?
    do I have to set a variable or execute special command as part of exception handling ?

    Have you researched the ADD_JOB_EMAIL_NOTIFICATION procedure of DBMS_SCHEDULER?
    http://docs.oracle.com/cd/E11882_01/appdev.112/e25788/d_sched.htm#BABBFBGI
    This procedure adds e-mail notifications for a job. E-mails are then sent to the specified list of recipients whenever any of the specified job state events is raised.For more information about monitoring jobs, including a description of job logs and job email notifications, look here:
    http://docs.oracle.com/cd/E14072_01/server.112/e10595/scheduse008.htm
    You can configure a job to send e-mail notifications when it changes state. The job state events for which e-mails can be sent are listed in Table 28-13. E-mail notifications can be sent to multiple recipients, and can be triggered by any event in a list of job state events that you specify. You can also provide a filter condition, and only job state events that match the filter condition generate notifications. You can include variables like job owner, job name, event type, error code, and error message in both the subject and body of the message. The Scheduler automatically sets values for these variables before sending the e-mail notification.

  • Query to get data for current week+13

    Hi Friends,
    I have two tables
    BACKLOG_WEEK_AFTER_ATP (LE)
    BACKLOG_ATP_GT_CW (RE)
    ** First I have to query whats the current week and year and it should come in this format ---- 2011-WK30
    columns in table BACKLOG_WEEK_AFTER_ATP are:
    ITEM_NUMBER      QUANTITY
    1N5418                 20
    1N5614                 30
    1N5806SM               10
    1N5811                  0
    2PFF6                  60columns in table BACKLOG_ATP_GT_CW are:
    ITEM_NUMBER     QUANTITY        YEAR_WEEK
    1N5418                30        2011-WK30
    1N5418                 5        2011-WK31
    1N5614                30        2011-WK32
    1N5806SM              30        2011-WK33
    1N5811                20        2011-WK32
    3EX473K1              20        2011-WK30My report should look like
    ITEM_NUMBER    2011-WK30  2011-WK31  2011-WK32  2011-WK33  ...............till 13th week
    1N5418                10         -5         -5         -5  ...............till 13t week
    1N5614                30         30          0          0  ................till 13th week
    1N5806SM              10         10         10         20  ................till 13th week
    1N5811                 0          0         20         20  ................till 13th week
    2PFF6                 60         60         60         60  ................till 13th week
    3EX473K1              20         20         20         20  ................till 13th weekTo get this report i have these conditions to keep in mind.
    1) If item_number not present in LE table and present in RE table then repeat what it is in RE table till 13th week
    2) If item_number not present in RE table and present in LE table then repeat what it is in LE table till 13th week
    3) If item_number present in LE and also present in RE table then do subtraction for RE - LE for that particular item_number till 13th week.
    4) If item_number is there in LE table but not present in RE table for current_week+1(today week comes as 29th week) then repeat the same which is there in LE table. If item is found in RE table for (example 32th week) then subtract RE -LE for that particular item_number
    Thanks in advance.
    Regards

    Hello,
    If you don't need the PIVOT display, then this may help you :
    with le as
    (select '1N5418' item_number, 20 quantity from dual union all
    select '1N5614' item_number, 30 quantity from dual union all
    select '1N5806SM' item_number, 10 quantity from dual union all
    select '1N5811' item_number, 0 quantity from dual union all
    select '2PFF6' item_number, 60 quantity from dual ),
    re as
    (select '1N5418' item_number, 30 quantity, '2011-WK30' year_week from dual union all
    select '1N5418' item_number, 5 quantity, '2011-WK31' year_week from dual union all
    select '1N5614' item_number, 30 quantity, '2011-WK32' year_week from dual union all
    select '1N5806SM' item_number, 30 quantity, '2011-WK33' year_week from dual union all
    select '1N5811' item_number, 20 quantity, '2011-WK32' year_week from dual union all
    select '3EX473K1' item_number, 20 quantity, '2011-WK30' year_week from dual
    row_gen as (
    select item_number, calc_year_week,
           row_number() over(partition by item_number order by calc_year_week) rn
    from
        (select le.item_number from le union select item_number from re) item,
        (select to_char(level*7+sysdate,'YYYY-"WK"WW') calc_year_week from dual connect by level<=13) week)
    select item_number, calc_year_week, calc_qty
    from row_gen, le, re
    where row_gen.item_number=le.item_number(+)
    and row_gen.item_number=re.item_number(+)
    and row_gen.calc_year_week=re.year_week(+)
    model
    partition by (row_gen.item_number)
    dimension by (rn)
    measures (calc_year_week, year_week, le.quantity le_qty,re.quantity re_qty,0 calc_qty )
    rules  (
    calc_qty[1]  =
        case when re_qty[cv()] is null then le_qty[cv()]
        when le_qty[cv()] is null then re_qty[cv()]
        else  re_qty[cv()]-le_qty[cv()]
    end,     
    calc_qty[rn>1] order by rn =
        case when re_qty[cv()] is null then calc_qty[cv()-1]
        else re_qty[cv()] - calc_qty[cv()-1]
        end           )
    order by 1,2;I am not sure this is the simplest way to do it, but the results seem to match your example.
    Regards,
    Sylvie
    Edited by: Troll35 on Jul 19, 2011 3:08 PM

  • Export of report/query to a file for background job runs

    I have a requirement to automate the export of a report or query to a file  so when a background job runs a  new file is generated to the drive. 
    This cannot be a customized solution for 1 report, it must be able to adapt to other reports or queries as well.
    Any help will be highly appreciated.
    Thank you,
    Thamina

    Hi,
    SAP have created a standard program RSTXPDFT4 to convert your Sapscripts spools into a PDF format.
    Specify the spool number and you will be able to download the sapscripts spool into your local harddisk.
    It look exactly like what you see during a spool display.
    Please note that it is not restricted to sapsciprts spool only.  Any reports in the spool can be converted using the program 'RSTXPDFT4'.
    Regards,
    Pavan

  • Query Builder - Getting Universelist for one specific Group

    Hi All,
               I am in need of a query string (in query builder) that will return me All the universes for a specific group.Is it possible to do and if possible what will be the way to do this?
    Thanks in advance for your help,
    Anirban

    Hi Anirban,
    What is the BusinessObjects version you are using ( i.e. BO XIR2 or BOXI 3.0)?
    Regards,
    Deepti Bajpai

  • Query to get total for missing Dates

    Hi All
    Please help in writing this query.
    I have a table with the below values
    Tx_code -- TX_date --- Amount -- Accumlated_amt
    101 -- 01-Jul-2011 -- 100 -- 100
    102 -- 01-Jul-2011 -- 300 -- 300
    103 -- 01-Jul-2011 -- 500 -- 500
    101 -- 02-Jul-2011 -- 150 -- 250
    103 -- 02-Jul-2011 -- 100 -- 600
    101 -- 03-Jul-2011 -- 250 -- 500
    103 -- 03-Jul-2011 -- 50 -- 650
    I want the output as below
    101 -- 01-Jul-2011 -- 100 -- 100
    102 -- 01-Jul-2011 -- 300 -- 300
    103 -- 01-Jul-2011 -- 500 -- 500
    101 -- 02-Jul-2011 -- 150 -- 250
    102 -- 02-Jul-2011 -- 0 -- 300
    103 -- 02-Jul-2011 -- 100 -- 600
    101 -- 03-Jul-2011 -- 250 -- 500
    102 -- 03-Jul-2011 -- 0 -- 300
    103 -- 03-Jul-2011 -- 50 -- 650
    For Tx_code 102 is available in 01-Jul-2011 but not in 02-Jul-2011 and 03-Jul-2011
    But i want this row in my output for all other dates.
    Below are my database version info
    Oracle Database 10g Release 10.2.0.1.0 - Production
    PL/SQL Release 10.2.0.1.0 - Production
    "CORE     10.2.0.1.0     Production"
    TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    Thanks
    Rak

    There you are:SQL>WITH t AS
      2       (SELECT 101 AS tx_code, TO_DATE('01-Jul-2011', 'DD-MON-YYYY') AS tx_date, 100 AS amount,
      3               100 AS accumlated_amt
      4          FROM DUAL
      5        UNION ALL
      6        SELECT 102, TO_DATE('01-Jul-2011', 'DD-MON-YYYY'), 300, 300
      7          FROM DUAL
      8        UNION ALL
      9        SELECT 103, TO_DATE('01-Jul-2011', 'DD-MON-YYYY'), 500, 500
    10          FROM DUAL
    11        UNION ALL
    12        SELECT 101, TO_DATE('02-Jul-2011', 'DD-MON-YYYY'), 150, 250
    13          FROM DUAL
    14        UNION ALL
    15        SELECT 103, TO_DATE('02-Jul-2011', 'DD-MON-YYYY'), 100, 600
    16          FROM DUAL
    17        UNION ALL
    18        SELECT 101, TO_DATE('03-Jul-2011', 'DD-MON-YYYY'), 250, 500
    19          FROM DUAL
    20        UNION ALL
    21        SELECT 103, TO_DATE('03-Jul-2011', 'DD-MON-YYYY'), 50, 650
    22          FROM DUAL)
    23  SELECT   c.tx_code AS tx_code, c.tx_date AS tx_date, NVL(t.amount, 0) AS amount,
    24           (SELECT MAX(t.accumlated_amt)KEEP (DENSE_RANK FIRST ORDER BY tx_date DESC)
    25              FROM t
    26             WHERE t.tx_code = c.tx_code AND t.tx_date <= c.tx_date) AS accumlated_amt
    27      FROM (SELECT b.tx_code, tx_date
    28              FROM (SELECT     a.min_date + LEVEL - 1 AS tx_date
    29                          FROM (SELECT MIN(tx_date) AS min_date, MAX(tx_date) AS max_date
    30                                  FROM t) a
    31                    CONNECT BY LEVEL <= max_date - min_date + 1) a,
    32                   (SELECT DISTINCT tx_code
    33                               FROM t) b) c,
    34           t
    35     WHERE t.tx_code(+) = c.tx_code AND t.tx_date(+) = c.tx_date
    36  ORDER BY c.tx_date, c.tx_code
    37  /
       TX_CODE TX_DATE       AMOUNT ACCUMLATED_AMT
           101 01-JUL-11        100            100
           102 01-JUL-11        300            300
           103 01-JUL-11        500            500
           101 02-JUL-11        150            250
           102 02-JUL-11          0            300
           103 02-JUL-11        100            600
           101 03-JUL-11        250            500
           102 03-JUL-11          0            300
           103 03-JUL-11         50            650Urs

  • Can i get script for the standard program 'Generate cycle count requests'

    Actually we have huge records available in *'Cycle count open requests listing'* report and its because of the *'Generate cycle count requests'* program created many records on particular date in mtl_cycle_count_entries table. Can anyone help to provide the script or the logic on what basis the Generate cycle count requests' program retrieving data

    Make sure that toolbars like the "Navigation Toolbar" and the "Bookmarks Toolbar" are visible: "View > Toolbars"
    *Open the Customize window via "View > Toolbars > Customize"
    *Check that the "Bookmarks Toolbar items" is on the Bookmarks Toolbar
    *If the "Bookmarks Toolbar items" is not on the Bookmarks Toolbar then drag it back from the toolbar palette in the customize window to the Bookmarks Toolbar
    **If other missing items are in the toolbar palette then drag them back from the Customize window on the toolbar
    *If you do not see an item on a toolbar and in the toolbar palette then click the "Restore Default Set" button to restore the default toolbar set up
    If the menu bar is hidden then press the F10 key or hold down the Alt key to make the menu bar appear.
    Make sure that toolbars like the "Navigation Toolbar" and the "Bookmarks Toolbar" are visible: "View > Toolbars"
    *Open the Customize window via "View > Toolbars > Customize"
    *Check that the "Bookmarks Toolbar items" is on the Bookmarks Toolbar
    *If the "Bookmarks Toolbar items" is not on the Bookmarks Toolbar then drag it back from the toolbar palette in the customize window to the Bookmarks Toolbar
    **If other missing items are in the toolbar palette then drag them back from the Customize window on the toolbar
    *If you do not see an item on a toolbar and in the toolbar palette then click the "Restore Default Set" button to restore the default toolbar set up

  • Query to get summary for two types of row data

    Hi Friends,
    I have tried using aggregate functions and thought of using analytic functions and still trying... But I am sure some analytic function expert can quickly help me out in this.
    With this data.
    BID_ELMT_SEQ_ID     PRF_NO          BID_REQ_DT          BID_ATRB_TYP_CD          BID_ATRB_VAL
    3575758          1          1/24/2011 2:27:32 PM     MINDAYS               1
    3575758          1          1/24/2011 2:27:32 PM     WRAPDAYS          1-0
    3575759          2          1/24/2011 2:27:32 PM     MINDAYS               1
    3575759          2          1/24/2011 2:27:32 PM     WRAPDAYS          1-0
    3575760          3          1/24/2011 2:27:32 PM     MINDAYS               1
    3575760          3          1/24/2011 2:27:32 PM     WRAPDAYS          1-0
    3575761          4          1/24/2011 2:27:32 PM     MINDAYS               1
    3575761          4          1/24/2011 2:27:32 PM     WRAPDAYS          1-0 Is it possible to retrieve an output similar to this ? In short , the row values of BID_ATRB_TYP_CD to be grouped into two columns and values fetched for this
    BID_ELMT_SEQ_ID     PRF_NO          BID_REQ_DT          MIN_DAYS_VAL     WRAP_DAYS_VAL
    3575758          1          1/24/2011 14:27          1          1-0
    3575759          2          1/24/2011 14:27          1          1-0
    3575760          3          1/24/2011 14:27          1          1-0
    3575761          4          1/24/2011 14:27          1          1-0 Regards,
    SSN

    Looks pretty simple to me - I haven't tried it yet.
    Can you share what you have tried so far and what has been the outcome of that effort?

  • Email notification for GRID job output

    Is it possible to get the job output in the email notification? I can currently get the job status but not the output.

    it may be bit tricky to include in your email notifications, but its possible to trace back to GRID JOB output.
    1. Get job JOB execution ID
    2. Get Latest output_id from job execution ID.
    3. You can do a select from
    SELECT output FROM MGMT_JOB_OUTPUT WHERE output_id=&OUTPUT_ID
    its explained in metalink note
    Note 300690.1 - Troubleshooting Script for Problematic Job Output in EM 10g Grid Control

  • Report to get data for current_week+1 till 13th week

    Hi Friends,
    I have two tables
    BACKLOG_WEEK_AFTER_ATP (LE)
    BACKLOG_ATP_GT_CW (RE)
    ** First I have to query whats the current week and year and it should come in this format ---- 2011-WK30
    columns in table BACKLOG_WEEK_AFTER_ATP are:
    ITEM_NUMBER      QUANTITY
    1N5418                 20
    1N5614                 30
    1N5806SM               10
    1N5811                  0
    2PFF6                  60columns in table BACKLOG_ATP_GT_CW are:
    ITEM_NUMBER     QUANTITY        YEAR_WEEK
    1N5418                30        2011-WK30
    1N5418                 5        2011-WK31
    1N5614                30        2011-WK32
    1N5806SM              30        2011-WK33
    1N5811                20        2011-WK32
    3EX473K1              20        2011-WK30My report should look like
    ITEM_NUMBER    2011-WK30  2011-WK31  2011-WK32  2011-WK33  ...............till 13th week
    1N5418                10         -5         -5         -5  ...............till 13t week
    1N5614                30         30          0          0  ................till 13th week
    1N5806SM              10         10         10         20  ................till 13th week
    1N5811                 0          0         20         20  ................till 13th week
    2PFF6                 60         60         60         60  ................till 13th week
    3EX473K1              20         20         20         20  ................till 13th weekTo get this report i have these conditions to keep in mind.
    1) If item_number not present in LE table and present in RE table then repeat what it is in RE table till 13th week
    2) If item_number not present in RE table and present in LE table then repeat what it is in LE table till 13th week
    3) If item_number present in LE and also present in RE table then do subtraction for RE - LE for that particular item_number till 13th week.
    4) If item_number is there in LE table but not present in RE table for current_week+1(today week comes as 29th week) then repeat the same which is there in LE table. If item is found in RE table for (example 32th week) then subtract RE -LE for that particular item_number
    Thanks in advance.
    Regards

    User_Apex wrote:
    Hi Friends,
    I have two tables
    BACKLOG_WEEK_AFTER_ATP (LE)
    BACKLOG_ATP_GT_CW (RE)
    ** First I have to query whats the current week and year and it should come in this format ---- 2011-WK30
    columns in table BACKLOG_WEEK_AFTER_ATP are:
    ITEM_NUMBER     QUANTITY
    1N5418                     20
    1N5614                     30
    1N5806SM                 10
    1N5811                       0
    2PFF6                        60columns in table BACKLOG_ATP_GT_CW are:
    ITEM_NUMBER     QUANTITY        YEAR_WEEK
    1N5418                     30                2011-WK30
    1N5418                     5                 2011-WK31
    1N5614                     30                2011-WK32
    1N5806SM                 30                2011-WK33
    1N5811                      20                2011-WK32
    3EX473K1                   20               2011-WK30My report should look like
    ITEM_NUMBER    2011-WK30  2011-WK31  2011-WK32  2011-WK33 ------ till 13th week
    1N5418                 10             -5                -5              -5     ...............till 13t week
    1N5614                 30             30               0                0     ................till 13th week
    1N5806SM              10            10              10              20    ................till 13th week
    1N5811                   0              0               20              20   ................till 13th week
    2PFF6                     60            60              60               60  ................till 13th week
    3EX473K1                20             20              20              20  ................till 13th weekTo get this report i have these conditions to keep in mind.
    1) If item_number not present in LE table and present in RE table then repeat what it is in RE table till 13th week
    2) If item_number not present in RE table and present in LE table then repeat what it is in LE table till 13th week
    3) If item_number present in LE and also present in RE table then do subtraction for RE - LE for that particular item_number till 13th week.
    4) If item_number is there in LE table but not present in RE table for current_week+1(today week comes as 29th week) then repeat the same which is there in LE table. If item is found in RE table for (example 32th week) then subtract RE -LE for that particular item_numberNot an APEX question: use {forum:id=75} forum.
    Query to get data for current week+13

Maybe you are looking for

  • Anonymous User forms in Sharepoint 2013 Online (Office 365)

    I'm using Sharepoint 2013 online with Office 365. Is there any way for an anonymous user to communicate with the site using forms (preferably Infopath)? There are many, many versions of this question on the web, but most answers seem to talk about fe

  • How to do setting of  decimal notation and arithmatic and character note

    Hi colleagues I do have one problem And the following setting tried in SAP netweaver so do not give any hint for Netweaver The problem is stated as follows in output type in Germany they use , instead of . the dot signifies point that is . and we use

  • Output to .avi from Shake?  I'm very new to Shake and Apple.

    Hi, I have just made the switch from PC to Mac. I've got a mac mini and bought Shake solely to use the smoothcam feature to clean up the camera jitter from my videos, especially the video I took of my buddy's wedding. I got suckered into being the vi

  • How do I change the name on my Time Capsule?

    I had the blinking yellow light on my TC and after fixing that finally and AirPort did it's search, it found the TC ok but it had a different name. xxxx-Time Capsule. Now I can't get to the time capsule to backup and retrieve. I know my old name but

  • IPhoto 9.5.1 stalls as soon as slideshow is selected

    I'm running iPhoto 9.5.1 on a newer iMac running OS 10.9.5 with the 2.7 Ghz processor and 8GB of RAM. My 1 TB HD has about 800 GB  of free space. I'm trying to create a slideshow and every time I select slideshow I get the pinwheel because iPhoto sto