Using collections how to acheive this?

Hi All,
In my apllication we are handling two types of procedures which runs based on the jobs.
Due to some problem few records where got missed in prouduction.
We have tried to run this jobs manaually one by one and it is taking time to execute..
I have got a suggetsion from my senior to do in a collection and run this packages at a time..
Here is my exact scenerio, can you please help me out to implemnet in collections..
Steps:
Populate the missing records namely ordered, event sequence, Start date, end date, region in to plsql table/collection. ( Hard-coded since this will run the code
for a date which will take less time and take less record).
looping the plsqltable/collection for missing records
Running the procedure p_Daily with startdate and end date parameter
-- if the above executed successfully we need to execute second procedure i.e p_Region procedure by checking records in f_daily_report exist/relevant table
(Id and sequence).
Running the procedure p_region with start date and region id ( checking whether id and sequece is exist f_daily_report table).
end loop
The above steps which i have explained needs to achievd thru collections, can anybody helps me out on this.
Note:
1. All the missing jobs wil fal under differnt date rane groups.
2. For second job i.e p_region i have mentioned that it will run based on start date and region id..This job will run on three differnt region id's..We can find the
region id based on by joining f_region and d_region table. It seems that these misisng records belongs to all three regions
Hope u all understand my scenrio. can you please help me out..
Thanks in advance,
Anoo..

Joel_C wrote:
There seems to have been a spate of Off-topic postings - is it possible this might be related to the forum software acting up or is it just coincidental user error in each case?Possibly.
My hypothesis is that the unfortunate name "Application Express", the width of the APEX domain, and the excellent service provided here leads some to the belief that this is a fast-track clearing house for general Oracle/Applications/eBS questions.
(For a number of others of course it's simply a free lunch...)

Similar Messages

  • Lion 10.7.2 On both mac book pro and iMac, both with Lion 10.7.2, obtain repeated iCal event notifications from calendar or address book.  Cannot turn these off.  They repeat several times per session and every time computer is used.  How to diagnose this

    Lion 10.7.2 On both mac book pro and iMac, both with Lion 10.7.2, obtain repeated iCal event notifications from calendar or address book.  Cannot turn these off.  They repeat several times per session and every time computer is used.  How to diagnose this?

    First, uninstall "SuperTV" (whatever that is) according to the developer's instructions. It isn't working and it's filling the log with noise.
    If you have more than one user account, these instructions must be carried out as an administrator.
    Launch the Console application.
    Step 1
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left.
    Enter "BOOT_TIME" (without the quotes) in the search box. Note the timestamps of those log messages, which refer to the times when the system was booted. Now clear the search box and scroll back in the log to the last boot time when you had the problem. Post the messages logged before the boot, while the system was unresponsive or was failing to shut down. Please include the BOOT_TIME message at the end of the log extract.
    Post the log text, please, not a screenshot. If there are runs of repeated messages, post only one example of each. Don’t post many repetitions of the same message. When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    PLEASE DO NOT INDISCRIMINATELY DUMP THOUSANDS OF LINES FROM THE LOG INTO A MESSAGE. If you do that, I will not respond.
    Important: Some private information, such as your name, may appear in the log. Edit it out by search-and-replace in a text editor before posting.
    Step 2
    Still in Console, look under System Diagnostic Reports for crash or panic logs, and post the most recent one, if any. In the interest of privacy, I suggest you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if present (it may not be.) Please don’t post shutdownStall, spin, or hang logs — they're very long and not helpful.

  • Which planning function i have to use and how to write this planning fucnti

    Hi Bi Guru's,
    I have rolled out  BW SEM-BPS Planning Layout's for the Annual Budget in my organistaion.
    There are two levels of layout given for the each sales person.
    1)  Sales quantity to be entered Material and  country wise for all 12 months ( April 2009 to March 2010)
    2)  Rate per unit and to entered in second sheet, Material and country wise for the total qty entered in the first layout.
    Now i need to calculate the sales vlaue for each period and for the each material.
    Which planning function i have to use and how to write this planning fucntion.
    Please suggest me some solution ASAP.
    Thanks in Advance,
    Nilesh

    Hi Deepti,
    Sorry to trouble you...
    I require your help for the following scenario for caluclating Sales Value.
    I have Plan data in the following format.
    Country   Material    Customer    Currency    Fiscyear    Fiscper           Qty         Rate        Sales Value
    AZ          M0001      CU001          #             2009          001.2009        100.00                        
    AZ          M0001      CU002          #             2009          001.2009        200.00                        
    BZ          M0001      CU003          #             2009          001.2009        300.00
    BZ          M0001      CU003          #             2009          002.2009        400.00
    BZ          M0002      CU003          #             2009          002.2009        300.00
    AZ          M0001       #               USD          2009             #                                 10.00
    BZ          M0001       #               USD          2009             #                                 15.50
    BZ          M0002       #               USD          2009             #                                 20.00
    In the Above data the Rate lines are entered in the Second Layout, Where the user enters on the Country Material Level with 2009 value for FISCYEAR.
    I am facing problem with this type of data. 
    I want to store the sales value for each Material Qty.
    Please suggest some solution.
    Re
    Nilesh

  • Cancel iCloud plan but still having 3GB used. How to solve this?, Cancel iCloud plan but still having 3GB used. How to solve this?

    Want to cancel iCloud plan but I can't because I still have 3GB used. How to solve this guys ?

    Is the 3GB used a part of the 5BG you get for free? If so, you can delete the 3GB if you want to by going to:
    Settings>iCloud>Storage & Backup>Manage Storage> Under backups, click on the name of your iPhone then delete backup. Do the same thing on anything else that is showing as stored.
    Once you've done all of that you can delete the account if you want or you can skip all those steps and just delete the account.
    Settings>iCloud>Delete Account

  • How to acheive this scnerio in PL/SQl using collections

    Hi All,
    In my apllication we are handling two types of procedures which runs based on the jobs.
    Due to some problem few records where got missed in prouduction.
    We have tried to run this jobs manaually one by one and it is taking time to execute..
    I have got a suggetsion from my senior to do in a collection and run this packages at a time..
    Here is my exact scenerio, can you please help me out to implemnet in collections..
    Steps:
    Populate the missing records namely ordered, event sequence, Start date, end date, region in to plsql table/collection. ( Hard-coded since this will run the code
    for a date which will take less time and take less record).
    looping the plsqltable/collection for missing records
    Running the procedure p_Daily with startdate and end date parameter
    -- if the above executed successfully we need to execute second procedure i.e p_Region procedure by checking records in f_daily_report exist/relevant table
    (Id and sequence).
    Running the procedure p_region with start date and region id ( checking whether id and sequece is exist f_daily_report table).
    end loop
    The above steps which i have explained needs to achievd thru collections, can anybody helps me out on this.
    Note:
    1. All the missing jobs wil fal under differnt date rane groups.
    2. For second job i.e p_region i have mentioned that it will run based on start date and region id..This job will run on three differnt region id's..We can find the
    region id based on by joining f_region and d_region table. It seems that these misisng records belongs to all three regions
    Hope u all understand my scenrio. can you please help me out..
    Thanks in advance,
    Anoo..

    Anoo wrote:
    Hi,
    Hope you have not clear my question..The reason is i want to know how we can achieve my problem in collection
    rather than select statement.. Even though if we can get in simple statement is not advisible in my case..That is the reason why i was looking collections...
    Rather than providing data is it possible to how we can proceed in collections.That's like saying you want to write poor code that performs slowly rather than fast and performant code.
    Without clear explanations and examples of data and output, there doesn't appear to be a valid reason for using collections. The reason you're not getting many responses on your thread is because you're not explaining clearly what is required with examples. Please read {message:id=9360002} for an idea of what people need from you in order to help you.

  • Interactive Reports using collections - How to control column headings

    Hi,
    I found a link in the forum somewhere that showed a step by step how to to use collections with Interactive Reports so you can dynamically build the SQL and also control the column headings. Does anyone know where the How-To is ??
    If not, I know how to build the SQL dynamically but what is the best way to control the column headings.
    Sometimes the report will have 17 columns and other times up to 30 columns.
    Thank you, Bill

    Hi Bill,
    Without knowing more about the PL/SQL code, the underlying tables and the select statements used, it is difficult to say.
    I would firstly check that I had indexes on the right column or combination of columns. One minute sounds a lot for a query to me, but that may be ok if the tables are very large and the PL/SQL has to do a fair bit to construct the output. You could also do an Explain Plan for any query to check to see if indexes are being used if they exist - this would also show up any part of a query that takes an inordinate amount of time.
    I assume that the PL/SQL is only run once even if the page is reloaded multiple times? However, once the collection has been created, the report itself should be fairly quick as it should be just a simple select over the collection data. Switching on the debug mode should help identify which part is taking the time.
    Andy

  • How to acheive this output during the XML conversion ?.

    I am converting the data into XML. I am using Oracle8i.
    create table emp(empno number,
    ename varchar2(20),
    deptno number);
    insert into emp values(101,'Krish',10);
    insert into emp values(102,null, 10);
    insert into emp values(103,'Scott',20);
    commit;
    CREATE OR REPLACE PROCEDURE STP_TEST_XML AS
    v_context DBMS_XMLQUERY.CTXTYPE;
    v_document CLOB;
    v_error_code VARCHAR2(3) := 'OK';
    BEGIN
    v_context:= DBMS_XMLQUERY.NEWCONTEXT('SELECT * FROM EMP');
    DBMS_XMLQUERY.USENULLATTRIBUTEINDICATOR(v_context,TRUE);
    DBMS_XMLQUERY.SETROWSETTAG(v_context,'EMPIMPORT');
    DBMS_XMLQUERY.SETROWTAG(v_context,'EMP');
    v_document := DBMS_XMLQUERY.GETXML(v_context);
    DBMS_XMLQUERY.CLOSECONTEXT(V_context);
    PRINT_XML(v_document);
    END;
    CREATE OR REPLACE PROCEDURE print_xml(result IN OUT NOCOPY CLOB) is
    xmlstr varchar2(32767);
    line varchar2(2000);
    begin
    xmlstr := dbms_lob.SUBSTR(result,32767);
    loop
    exit when xmlstr is null;
    line := substr(xmlstr,1,instr(xmlstr,chr(10))-1);
    dbms_output.put_line('| '||line);
    xmlstr := substr(xmlstr,instr(xmlstr,chr(10))+1);
    end loop;
    end;
    The output is showing as below.
    <?xml version = '1.0'?>
    <EMPIMPORT>
    <EMP num="1">
    <EMPNO>101</EMPNO>
    <ENAME>Krish</ENAME>
    <DEPTNO>10</DEPTNO>
    </EMP>
    <EMP num="2">
    <EMPNO>102</EMPNO>
    <ENAME NULL="YES"/>
    <DEPTNO>10</DEPTNO>
    </EMP>
    <EMP num="3">
    <EMPNO>103</EMPNO>
    <ENAME>Scott</ENAME>
    <DEPTNO>20</DEPTNO>
    </EMP>
    </EMPIMPORT>
    But my requirement needs my output should be as below. Please let me know how to achieve this output.
    <?xml version = '1.0'?>
    <EMPIMPORT>
    <EMP num="1">
    <EMPNO>101</EMPNO>
    <ENAME>Krish</ENAME>
    <DEPTNO>10</DEPTNO>
    </EMP>
    <EMP num="2">
    <EMPNO>102</EMPNO>
    <ENAME/>
    <DEPTNO>10</DEPTNO>
    </EMP>
    <EMP num="3">
    <EMPNO>103</EMPNO>
    <ENAME>Scott</ENAME>
    <DEPTNO>20</DEPTNO>
    </EMP>
    </EMPIMPORT>

    can you please tell me how to acheive 1,2,3  instead of the chars.
    Also if I use virtual characteristic can I able to access the query structure in the user exit like the restricted key figures etc or just the records how they appear in the cube.
    Thank you guys for the quick response.

  • How to acheive this???? J2EE gurus

    Hi,
    I have servletA in one serverA and servletB in ServerB.When a request is made to servletA it should call the ServletB to get the response.
    Basically they should be chained.
    I understand that to forwarding a request to a servlet which is in a different context we have to use redirect instead of forward.if we user redirect the server issses a new request.
    How can i acheive this???
    Thanks in advance.

    The Client is imp bcos it is the one which receives
    the response.
    I would like to one thing.
    if PDA makes a request to ServletA which is on
    ServerA and the ServletA makes an HttpURLConnection
    and contacts ServletB which is on ServletB, how can i
    inlcude the response sent by servletB into ServletA
    response????
    ServletB is writing everything into response object.
    Thanks
    You could use a method like this. Though you might have to modify ot as per your requirements
    private void returnSuccessfullNotifyHttpResponse(HttpServletRequest request, HttpServletResponse response, String pushId)
                                             throws ServletException, IOException {
        String responseString =null;
        PrintWriter out=null;
        String replyTime = null;
        Calendar  date = Calendar.getInstance(TimeZone.getTimeZone("GMT"));
        String year,month,day,hour,minute,second;
        year=Integer.toString(date.get(Calendar.YEAR));
        month=Integer.toString(date.get(Calendar.MONTH) + 1 );
        if (month.length() == 1)
          month = "0" + month;
        day=Integer.toString(date.get(Calendar.DAY_OF_MONTH));
        if (day.length() == 1)
          day = "0" + day;
        hour=Integer.toString(date.get(Calendar.HOUR_OF_DAY));
        if (hour.length() == 1)
          hour = "0" + hour;
        minute=Integer.toString(date.get(Calendar.MINUTE));
        if (minute.length() == 1)
          minute = "0" + minute;
        second=Integer.toString(date.get(Calendar.SECOND));
        if (second.length() == 1)
          second = "0" + second;
        replyTime = year+ "-" + month + "-" + day+ "T" + hour+ ":" + minute + ":" + second + "Z";
        responseString=
                XML_HEADER +
                   PAP_STAG + CRLF +
                     PUSH_RESPONSE_STAG +
                       PUSH_ID + pushId + CLOSE_QUOTE + SPACE +
                      SENDER_ADDRESS + "http://" + request.getServerName() + ":"+  request.getServerPort() + request.getServletPath() + CLOSE_QUOTE + SPACE +
                      SENDER_NAME + SPACE +
                      REPLY_TIME + replyTime + CLOSE_QUOTE + CLOSE_TAG + CRLF +
                      RESPONSE_RESULT_STAG +
                        CODE + "1001" + CLOSE_QUOTE +
                        DESC + "The request accepted for processing" + CLOSE_QUOTE + CLOSE_TAG +
                      RESPONSE_RESULT_ETAG + CRLF +
                    PUSH_RESPONSE_ETAG + CRLF +
                  PAP_ETAG;
        response.setContentType("application/xml");
        //response.setHeader("Connection", "keep-alive");
        response.setStatus(response.SC_ACCEPTED);
        response.setContentLength(responseString.length());
        out = new PrintWriter (response.getOutputStream());
        out.print(responseString);
        out.close();

  • How to acheive this?

    Hi,
    I have a table X
    Date columnA columnB
    02/26/07 10 1
    02/28/07 1
    03/01/07 5 2
    03/06/07 10 100
    required out put
    Date columnA columnB
    02/26/07 10 1
    02/28/07 10 2
    03/01/07 15 4
    03/06/07 25 104
    Can some one guide me how to achieve this!

    SQL> create table x
      2  as
      3  select date '2007-02-26' mydate, 10 columna, 1 columnb from dual union all
      4  select date '2007-02-28', null, 1 from dual union all
      5  select date '2007-03-01', 5, 2 from dual union all
      6  select date '2007-03-06', 10, 100 from dual
      7  /
    Tabel is aangemaakt.
    SQL> select mydate
      2       , sum(columna) over (order by mydate) columna
      3       , sum(columnb) over (order by mydate) columnb
      4    from x
      5   order by mydate
      6  /
    MYDATE                 COLUMNA    COLUMNB
    26-02-2007 00:00:00         10          1
    28-02-2007 00:00:00         10          2
    01-03-2007 00:00:00         15          4
    06-03-2007 00:00:00         25        104
    4 rijen zijn geselecteerd.Regards,
    Rob.

  • Sample Picture - How To Acheive this Look

    Hi there, attached is a link to a home that was processed in Photoshop and I was wondering the process that is used to achieve this look...(i.e. multiple layers, tweaked curves etc..)
    Any input is appreciated! Thanks!
    http://kendrakephotography.com/original_media_viewer.asp?WebsiteID=2328&GalleryID=11622&Me diaID=356478

    Gentlemen:
    As I said: an expert architectural photographer who knows how to place washes of light on the subject, and then balance the lighting with the sky and other background. Take a look at other photos in the same series by this photographer.
    If you light it right (including possible multiple flash techniques), you don't "need" RAW or any other Photoshop corrections. Again, I've seen this kind of lighting in a number of 4x5 Ektachrome originals that had been exposed and processed normally -- before Photoshop was a dream in Adobe's eye. Such photos can be absolutely stunning.
    A pro will use Photoshop here just for cleanup and any
    minor imbalances or corrections to reach perfection. An amateur will use Photoshop here as a crutch to turn less than stellar work into something "acceptable".
    Is it possible to duplicate the effect from less-than-optimum photos with head-turning results? Anything is possible, but it depends upon how well the original subject was photographed, and how much information is in that photo that can be manipulated. But...
    Neil

  • How to acheive this?? Pls help

    Our project has almost completed the development.
    My client has requested to migrate the database.
    we are migrating from db2 to db2e.
    DB2e allows only one database connection.(limitation of db2e)
    ie i have to close the current connection object before
    getting the new Connection object.
    I cannot have a Connection pooling also.
    I have many links on my home page where every link
    needs the connection object to do some database operations.
    As i can have only one database connection, when i click
    on the links repeatedly or when i play around with the links,
    i get exceptions saying that i cannot have more than one connection
    and results in a blank page or error page.
    Currently my application has to handle this situation,
    ie even if the user clicks continuosly on all the links or plays
    around with the links it has take the last request into account
    and display accordingly
    I have a databaseConnection class which returns me a Connection object
    To achieve the above funtionality i tried making the Connection object as static, so whenever i call the function to get the Connection object i check whether the current connection object is open or is not null.
    if it is open i close and make it null and return the new connection object.
    This seems to be working to some extent but not stable.
    Iam not sure how does the server process when many requests are made and only one connection object is available at any point of the time.
    Iam not sure how to get it working and stable.
    One more solution i can think of is to declare a global variable
    which tells us whether a request has been made.depending on this
    variable i can restrict the user by clicking on the links reapeatedly.
    but this is very tedious and also i have a time constraint.
    any advice
    tks in advance

    just curious,couldn't you keep one connection open and through that connection run queries of different types?

  • How to acheive check box in SCRIPTS

    Hi All,
    I am working on SCRIPTS, I want a check box with checked in the layout after execting. I am not changing any driver program
    How to acheive this.
    Thanks in advance

    Hi,
    You can achive check boxes in scripts using this below link
    http://abapeasy.blogspot.com/2008/03/3-easy-way-to-add-checkbox-in-your.html
    with out modifying the print program u can check the check box using the PERFORM ---ENDPERFORM CONTROL COMMAND
    see this link how to use preform contorl command in script
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/cb3d07455611d189710000e8322d00/frameset.htm
    Regards
    Jagadeesh

  • How to achieve this in HFR.

    Hi All,
    I am using HFR 9.3.1 and i have some issue which i am not able to understand how to resolve it.
    I have a region dimension with the below hierarchy
    Region
    WorldWide
    Europe
    Uk
    Germany
    ROE
    SLE
    WER
    SER
    RTY
    ERR
    America
    Japan
    Asia
    Pacific
    Other
    In my HFR Report i have the Europe member in my Row and selected the Allow Expansion option to it. When i saw the Report and expanded my Europe i am able to see all the Children below it hower my requirement is that when i expand my Europe i should only see UK, Germany and ROE below it. How to acheive this.
    Kindly help me out in this regard. thanks in Advance.
    Regards,
    VJ
    Edited by: [email protected] on Jul 28, 2009 3:49 AM

    Hello -
    You may want to choose all the members that you want to display on the report instead of choosing only Europe.
    Also, you can also play around with the 'Functions' (eg Sibling function, on same level as etc) to get the report.
    Hope that helps.
    Regards

  • How to select this requirement...?

    Hi all..
    I am having two tables , Table1 and Table2.
    select * from Table1 where Table1.col1 in (select Table2.col2 from Table2 )
    Here, Table1.col1 is NUMBER datatype
    Table2.col2 is Varchar2 datatype (Its containes values like 13,54,123,8
    and we dont know how many commas will be there, it will change)
    How to acheive this.
    Thanks in advance
    Pal

    Here’s another one ( if Not on 10g  ) –
    1.     The Inner SQL basically splits the comma separated string into multiple lines
    2.     Use your outer query to join using “=” <Equal to> instead of “In”
                    operator
    SQL> select * from test3
      2  /
    COL1       COL2
    Rec1       10,22,38,34,45,101
    Rec2       20,34,37,34,49,238
      1  Select col2, 'Found No Match' str
      2  From
      3  (
      4  select substr (txt,
      5          instr (txt, ',', 1, level  ) + 1,
      6             instr (txt, ',', 1, level+1) - instr (txt, ',', 1, level) -1 ) as col2
      7  from (select ',' || col2 ||',' txt from test3 Where col1 = 'Rec2')
      8  connect by level <= length(:txt)-length(replace(:txt,',',''))+1
      9  )
    10* Where &id = col2
    SQL> /
    Enter value for id: 1
    old  10: Where &id = col2
    new  10: Where 1 = col2
    no rows selected
    SQL> /
    Enter value for id: 2
    old  10: Where &id = col2
    new  10: Where 2 = col2
    no rows selected
    SQL> /
    Enter value for id: 34
    old  10: Where &id = col2
    new  10: Where 34 = col2
    COL2                                                         STR
    34                                                           Found No Match
    34                                                           Found No Match

  • How to disable this Alarms?

    My two WAE have following alarms and donnot know how to clear it.
    A. core_dump sysmon core
    B. eth_bypass sysmon/eth2 InlinePort 1/1/wan
    eth_bypass sysmon/eth3 InlinePort 1/1/lan
    eth_bypass sysmon/eth4 InlinePort 1/0/wan
    eth_bypass sysmon/eth5 InlinePort 1/0/lan
    WAE - A : A Inline mode WAE.
    I have delfile /crash/* and reload WAE many times , but alarms still show on Central Manager.
    WAE - B : A Wccp mode WAE , and inline card donnot use for half year.one week age,central manager show this alarm,I know inline card 's four port is bypass.because is use wccp.How to disable this alarms.

    Hi Ivan,
    See if this helps:
    A: Is there anything in the following directories?
    /local1/core_dir/
    /local1/crash/
    If so, you will continue to get the Alarm until it's removed.
    B: Are you using WAAS 4.0.19? If so, your inline alarm might be CSCsl62873, which is fixed in 4.0.21 or 4.1.1 or remove the card if it's not being used.
    Hope that helps,
    Dan

Maybe you are looking for