SCR.ZIP Where is it?

may you help me?
Where can I find file with j2ee classes sources?
I have installed j2ee 5.0, but didn't find something.
thnx!

Unlike J2SE, Java EE distribution does not contain its own sources. You can download corresponding source bundle from Glassfish project web site, though:
https://glassfish.dev.java.net/downloads/v1_ur1-b14.html

Similar Messages

  • SAP BO SDK -   xcodeproj-with-deps.zip Where is it?

    Hello, friends!
    I need the the xcodeproj-with-deps.zip but I really cannot find at SMP. Could you explain where I can find this file?
    It's very important in order to start our project.
    I really appreciate any answer.
    Thank you very much,
    Marcus Vinicius
    refs:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/904d325f-cd00-3110-60a4-f9fb75daf771?QuickLink=index&…

    This is for the SAP BI app.

  • Srst-2.0.zip - where is it?

    Anyone know where I might be able to find the srst-2.0.zip file? It's supposed to contain a sample AA script that I would like to use. The 3.x versions don't contain any reference to auto-attendants.

    You can download the srst-2.1.zip file from the following post.
    http://forum.cisco.com/eforum/servlet/NetProf?page=netprof&forum=Unified%20Communications%20and%20Video&topic=Unified%20Communications%20Applications&CommCmd=MB%3Fcmd%3Dpass_through%26location%3Doutline%40%5E1%40%40.1ddcabbb/3#selected_message
    Hope this helps. If so, please rate the post.
    Brandon

  • Workflow-001-DemoCommunitySeedApp.zip - where can I find this samples file

    Hi,
    All the reference links (2 of them below) to the "workflow-001-DemoCommunitySeedApp.zip" file seem to be broken.
    http://www.oracle.com/technetwork/middleware/human-workflow/learnmore/index.html
    http://download.oracle.com/technology/sample_code/hwf/workflow-001-DemoCommunitySeedApp.zip
    Can anyone suggest the best way to find this file?
    thanks,
    Kerry

    The latest versions can be found int Oracle SOA Suite samples site under the HW link.
    You can get detailed information on the installation on Oracle® Fusion Middleware Administrator's Guide for Oracle SOA Suite and Oracle Business Process Management Suite 11g Release 1 (11.1.1.7) found at http://docs.oracle.com/cd/E28280_01/admin.1111/e10226/appx_users.htm
    Regards,
    Emanuel Luiz Lariguet Beltrame

  • Workflow-001-DemoCommunitySeedApp.zip where can I get this file?

    All the links are broken. Can somebody please send it to my email [email protected]? Thanks.

    The latest versions can be found int Oracle SOA Suite samples site under the HW link.
    You can get detailed information on the installation on Oracle® Fusion Middleware Administrator's Guide for Oracle SOA Suite and Oracle Business Process Management Suite 11g Release 1 (11.1.1.7) found at http://docs.oracle.com/cd/E28280_01/admin.1111/e10226/appx_users.htm
    Regards,
    Emanuel Luiz Lariguet Beltrame

  • Where can I find appsutil zip (tar) of the whole directory (db side)?

    Hi!
    I'm finishing a documentation for One Click Clone on Apps 11.5.10.x, as I promised a long time ago.
    8(
    All most all is done, frankly is, but I want to add one more feature: automatic cloning to the empty servers! This will be really cool feature for many people!
    For that I need "apsutil.zip" (from 10gR2 64 installation on Windows 2k8 R2) and "appsutil.tar" (from 11gR2 database installation on CentOS Linux 5.x i386). Both versions are needed to make proper testing. But, if I must choose to get only one version then please let me get Linux version.
    @Hsawwan, all,
    Where to get only this directory files (zipped o tarred)? I do not want to install the whole apps just for these files....so in front appreciate to get from this lovely community.
    THX in front,
    Damir Vadas

    Damir,
    1) I wanted DB side appsutil not APPS side one.You will have to copy the appsutil.zip from the application tier node to the database tier node, this is how we get the database appsutil.zip file.
    2) In the meantime, I have downloaded from otn "V15576-01_1of3"-"V15576-01_3of3" zips, where inside DiskX\dbts\stage\ directory are db0-db4.zip files. I have extract them and I think this is it. I got "appsutility" dir with subfolders and files. From memory, looks like a bingo!OK, but this is just the original file, and you have to make sure that the appsutil.zip file is the one which is generated at the application tier node with the same patchset level.
    1) Could you please verify my note that this is OK? Please see my reply above.
    2) This is from 12R1 pack so is this OK for 11gR2 database?Again, see my reply above :)
    Thanks,
    Hussein

  • Where is bi_checkconfig.zip downloaded from?

    I think I may have a configuration issue - a variety of exceptions are raised by the BI Beans. It seams that bi_checkconfig could shed some light but I can't find it anywhere.
    Following the documentation link I found this page http://otn.oracle.com/products/bib/htdocs/tech_notes/bi_checkconfig_tn.html, which links back to the main BI page.
    bi_checkconfig.zip where r u?

    See the link on the BI Beans main page:
    Download the diagnostic tool for Oracle BI Beans 9.0.3
    Business Intelligence Beans Product Management Team
    Oracle Corporation

  • Retrieve city and state from zip code that is entered by user

    I am trying to use AJAX to retrieve city and state from a table based on a zip code that is entered by the user. Two are text fields (zip code and city) and one is a SELECT field (state).
    1. I defined an application item called TEMPORARY_APPLICATION_ITEM.
    2. I defined an application process called SET_CITY_STATE as follows:
        a. Process point: on demand
        b. type: anonymous block
        c. process text:
    <pre>
    DECLARE
    v_city VARCHAR2 (100);
    v_state VARCHAR2 (2);
    CURSOR cur_c
    IS
    SELECT city, state
    FROM ZIP
    WHERE zip = v ('TEMPORARY_APPLICATION_ITEM');
    BEGIN
    FOR c IN cur_c
    LOOP
    v_city := c.city;
    v_state := c.state;
    END LOOP;
    apex_util.set_session_state('P2_CO_CITY',v_city);
    apex_util.set_session_state('P2_CO_STATE',v_state);
    EXCEPTION
    WHEN OTHERS
    THEN
    apex_util.set_session_state('P2_CITY','Unknown city');
    apex_util.set_session_state('P2_STATE',null);
    END;
    </pre>
    3. Javascript is defined in the region header:
    <pre>
    <script language="JavaScript" type="text/javascript">
    <!--
    function pull_city_state(pValue){
    var get = new htmldb_Get(null,html_GetElement('pFlowId').value,
    'APPLICATION_PROCESS=Set_City_State',0);
    if(pValue){
    get.add('TEMPORARY_APPLICATION_ITEM',pValue)
    }else{
    get.add('TEMPORARY_APPLICATION_ITEM','null')
    gReturn = get.get('XML');
    get = null;
    //-->
    </script>
    </pre>
    4. In the HTML Form Element Attributes of the P2_CO_ZIP text item: onchange="pull_city_state(this.value)";
    The city and state are not being populated. I checked the select statement and it is retreiving the city and state in SQL WORKSHOP > SQL COMMANDS.
    I would like to use it for the mailing address as well, so I would need to make the application process / javascript a bit more generic to be used in two places.
    I placed the application on apex.oracle.com:
    Workspace: RGWORK
    Application: Online Certification Application (28022)
    Can someone assists, please.
    Thank you,
    Robert
    Edited by: sect55 on Jun 2, 2009 4:11 PM

    Hi Robert,
    Try using XML instead of session state -
    Change the application on demand process with the following script -
    >
    DECLARE
    v_city VARCHAR2 (100);
    v_state VARCHAR2 (2);
    CURSOR cur_c
    IS
    SELECT city, state
    FROM ZIP
    WHERE zip = v ('TEMPORARY_APPLICATION_ITEM');
    BEGIN
    FOR c IN cur_c
    LOOP
    v_city := c.city;
    v_state := c.state;
    END LOOP;
    OWA_UTIL.mime_header ('text/xml', FALSE);
    HTP.p ('Cache-Control: no-cache');
    HTP.p ('Pragma: no-cache');
    OWA_UTIL.http_header_close;
    HTP.prn ('<body>');
    HTP.prn ('<desc>this xml genericly sets multiple items</desc>');
    HTP.prn ('<item id="P2_CO_CITY">' || v_city || '</item>');
    HTP.prn ('<item id="P2_CO_STATE">' || v_state || '</item>');
    HTP.prn ('</body>');
    EXCEPTION
    WHEN OTHERS
    THEN
    OWA_UTIL.mime_header ('text/xml', FALSE);
    HTP.p ('Cache-Control: no-cache');
    HTP.p ('Pragma: no-cache');
    OWA_UTIL.http_header_close;
    HTP.prn ('<body>');
    HTP.prn ('<desc>this xml genericly sets multiple items</desc>');
    HTP.prn ('<item id="P2_CITY">' || 'Unknown city' || '</item>');
    HTP.prn ('<item id="P2_STATE">' || '' || '</item>');
    HTP.prn ('</body>');
    END;
    >
    in your javascript make sure you typing the application process name correctly as it is case sensitive.
    Hope this helps,
    Regards,
    M Tajuddin
    web: http://tajuddin.whitepagesbd.com

  • Where are steves "not yet documented example file"

    hello
    i am tryin go test some of the examples that are demonstrated in http://blogs.oracle.com/smuenchadf/resource/examples page
    One of them for example is #113. It URL is broken as are all other examples that i have tried (http://java.net/projects/smuenchadf/sources/samples/content/BindVariablesAppliedToDetail.zip)
    where can i find them please
    m. bani yanseen

    mohammad,
    I know that Oracle is in the process of migrating stuff from samplecode.oracle.com to the java.net infrastructure - apparently those haven't been moved yet, but the links are pointing to where they should eventually end up.
    John

  • ESA scanning for a file inside of a zip inside of another zip.

    There is a new file-encrypting ransomware called CTB-Locker going around that places a malicious .cab file inside of a .zip file inside of another .zip file.  Two questions:
    1) How far will an ESA scan depth wise into zips inside of zips.
    2) Is a .cab file considered an executable by ESA or something else?  If it is considered an executable, would a block based off of this match (attachment-filetype == “Executable”) catch this type threat?
    Reference to the CTB-Locker: https://www.f-secure.com/weblog/archives/00002788.html
    Thanks

    As an additional safe-gap measure, i would also suggest (unless of course you're receiving a lot of emails with .cab attachments normally) to put in an extra filter to quarantine emails with .cab attachments as most of the attacks seen are coming as .cab formats at the moment.
    In terms of how deep it'll look in.
    for .zip .rar filetypes, it will look as deep as you've set it.
    So if it's a viral file inside a zip (where the viral file is  an executable) it will be unable to unpack up the zip and capture the executable at the content/filter levels.
    However normally the AV engine itself (mcafee and sophos) should be able to sort it out for you assuming the viral definition is available already.

  • What are the steps to upload zipped LMS output from UPK into iLearning?

    Please would someone be kind enough to detail the steps to import zipped LMS output from UPK into iLearning or point me to where I can find this information?
    Many thanks.

    The zipped output from UPK contains a few folders within the zip file itself before you get to the area within the zip where the imsmanifest.xml file is. You need to repackage the zip so that the imsmanifest.xml and related .xsd files are at the "root" of the zip file, rather than in a directory within the zip.
    So basic steps are as follows:
    1. Extract the zip file locally to your hard drive.
    2. Navigate down the newly created folder structure until you see the imsmanifest.xml file.
    3. Add/replace the .xsd files in this location with the iLearning specific XSD files that you can get on metalink
    4. Select all the files in this directory (including the folders in this directory like "audio", "certificate", "help", "images" etc), then right click and add to a new zip file. This will ensure that the new zip file contains the imsmanifest.xml and related xsd files at the root of the zip file rather than buried in a folder.
    5. Import as SCORM 1.2 in iLearning and off you go.
    Hope that helps.
    Scott
    http://www.seertechsolutions.com

  • Where's javax.sound

    Hi
    i've downloaded j2se 1.4.1 but when i try to import javax.sound.* it says it can't find it. Do i need to import anything else eg java.lang or what? I'm pretty sure its not an optional package.
    Please help me

    You aren't easily distracted from a set opinion, huh?
    You got the same answer from me in that thread:
    http://forum.java.sun.com/thread.jsp?forum=31&thread=32
    334
    You'd have to return to your thread to notice,
    though,
    instead of posting a new one...
    I really appreciate your help docjekill, but even when i specify
    javax.sound.midi
    javax.sound.midi.spi
    javax.sound.sampled
    javax.sound.sampled.spi
    all of these i still get the same error.
    I've looked in scr.zip and found other packages, eg javax.swing etc, but no sound packages. Is the download incomplete or did it just stuff up?

  • Two similar queries and different result.

    Hi! I have a problem and
    with
    sc as (select * from nc_objects where object_type_id = 9122942307013185081 and project_id=9062345122013900768),
    cid as (select sccid.value AS CIRCUIT_ID,sc.description AS DESCRIPTION
    from sc, nc_params sccid
    where sccid.object_id = sc.object_id and sccid.attr_id = 9122948792013185590),
    caloc as ( select
    (*select value from nc_params sccid where sccid.object_id = sc.object_id and sccid.attr_id = 9122948792013185590*) as CIRCUIT_ID,
    (select sl.name from nc_objects sl join nc_references scr on sl.object_id = scr.reference
    where scr.attr_id = 3090562190013347600 and scr.object_id = sc.object_id ) as ALOCATION
    from sc),
    cbloc as ( select
    (select value from nc_params sccid where sccid.object_id = sc.object_id and sccid.attr_id = 9122948792013185590) as CIRCUIT_ID,
    (select sl.name from nc_objects sl join nc_references scr on sl.object_id = scr.reference
    where scr.attr_id = 3090562190013347601 and scr.object_id = sc.object_id ) as BLOCATION
    from sc)
    select cid.CIRCUIT_ID,cid.DESCRIPTION,ALOCATION,BLOCATION from (
    cid
    join caloc on cid.CIRCUIT_ID = caloc.CIRCUIT_ID and ALOCATION is not null
    join cbloc on cid.CIRCUIT_ID = cbloc.CIRCUIT_ID and BLOCATION is not null
    it` returns and`s all ok!
    ID desc aloc bloc
    101     TEST1     AHAS     AGUS
    102     TEST2     AKRE     AMJY
    103     TEST3     AMJS     ASSE
    109     TEST9     BAIA     AKIB
    5     (null)     WELA AGUS
    We have "sc as (select * from nc_objects where object_type_id = 9122942307013185081 and project_id=9062345122013900768)"
    and identical subquery on caloc and cbloc
    "select value from nc_params sccid where sccid.object_id = sc.object_id and sccid.attr_id = 9122948792013185590"
    If i change query on
    with
    sc as (select * from nc_objects where object_type_id = 9122942307013185081 and project_id=9062345122013900768),
    cid as (select sccid.value AS CIRCUIT_ID,sc.description AS DESCRIPTION
    from sc, nc_params sccid
    where sccid.object_id = sc.object_id and sccid.attr_id = 9122948792013185590),
    caloc as ( select
    *(select CIRCUIT_ID from cid) as CIRCUIT_ID,*
    (select sl.name from nc_objects sl join nc_references scr on sl.object_id = scr.reference
    where scr.attr_id = 3090562190013347600 and scr.object_id = sc.object_id ) as ALOCATION
    from sc),
    cbloc as ( select
    (select value from nc_params sccid where sccid.object_id = sc.object_id and sccid.attr_id = 9122948792013185590) as CIRCUIT_ID,
    (select sl.name from nc_objects sl join nc_references scr on sl.object_id = scr.reference
    where scr.attr_id = 3090562190013347601 and scr.object_id = sc.object_id ) as BLOCATION
    from sc)
    select cid.CIRCUIT_ID,cid.DESCRIPTION,ALOCATION,BLOCATION from (
    cid
    join caloc on cid.CIRCUIT_ID = caloc.CIRCUIT_ID and ALOCATION is not null
    join cbloc on cid.CIRCUIT_ID = cbloc.CIRCUIT_ID and BLOCATION is not null
    query result will be:
    ORA-01427: single-row subquery returns more than one row
    01427. 00000 - "single-row subquery returns more than one row"
    *Cause:   
    *Action:
    Can you explain why so ?
    Edited by: user12031606 on 07.05.2010 2:31
    Edited by: user12031606 on 07.05.2010 2:32

    Hi,
    Welcome to the forum!
    Whenever you post code, format it to show the extent of sub-queries, and the clauses in each one.
    Type these 6 characters:
    \(all small letters, inside curly brackets) before and after each section of formatted test; if you don't, this site will compress the spaces.
    It also helps it you reduce your query as much as possible.  For example, I think you're only asking about the sub-query called caloc, so just post caloc as if that were the entire query:select     ( select CIRCUIT_ID
         from cid
         )                as CIRCUIT_ID,
         ( select sl.name
         from nc_objects          sl
         join nc_references      scr on sl.object_id = scr.reference
         where scr.attr_id      = 3090562190013347600
         and scr.object_id      = sc.object_id
         )                as ALOCATION
    from sc
    This makes it much cleared that the query will produce 2 columns, called circuit_id and alocation.
    Compare the query above with the query below:SELECT     object_id,
         'Okay'
    FROM     sc
    The basic structure is the same: both queries produce two columns, and both queries produce one row of output for every row that is in the sc table.
    The only difference is the two items in the SELECT clause.
    The second query has a column from the table as its first column, and a literal for its second column; those are just two of the kinds of things you can have in a SELECT clause.  another thing you can have there is a +Scalar Sub-Query+ , a complete query enclosed in parentheses that produces exactly one column and at most one row.   If a scalar sub-query produces more than one row, then you get the run-time error: "ORA-01427: single-row subquery returns more than one row", as you did.
    A scalar sub-query always takes the place of a single value: "scalar" means "having only one value".  In the first example above, the main query is supposed to produce one row of output for every row in sc.  How can it do that if some of the columns themselves contain multiple rows?
    I don't know what your tables are like, or what output yu want to get from thiose tables.
    If you'd like help getting certain results from your tables, then post CREATE TABLE and INSERT statements for a little sample data, and the resutls you want to get from that sample data.  A scalar sub-query may help getting those results, or it may not.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • PL/SQL Procedure guidelines

    I need to load the records from one table and insert and/or update it into different tables based on the column values. If any one has any template or guidelines for doing similar tasks, it would be give me a proper refernce. This is what I came up with based on the reading and other online examples. My concerns are about memory, commit & rollback points and performances. If anyone could point out any potential problems or any better ways of doing it, it would be greatly appreciated. There would be 30-40,000 records per day and this procedure is scheduled to run every evening. Please bear with me for this lengthy post.
    --@test_pkg.sql;
    --exec test_pkg.load_records(200);
    create or replace package test_pkg
    is
    procedure load_records (fetch_limit in number := 200, log_lvl in number := 4);
    procedure new_record (retKey out number);
    procedure update_record(recKey in number);
    procedure ins_upd_attribute (id1 in number, id2 in char, id3 in number, val in varchar2);
    procedure log_msg(msg_type in number := 0, msg in varchar2);
    function get_fk (col5 in varchar2) return number;
    end test_pkg;
    create or replace package body test_pkg
    is
    cursor test_cur
    is
    select col1, col2, col3, col4, col5,col6, name, phone, address1, city, state, zip, birthdate,
    email, col7,lastdate, process_flag
    from table1
    where process_flag = 'N' for update of process_flag;
    type test_cur_type is table of test_cur%rowtype;
    cur_rec test_cur_type;
    LOG_OFF number := 0;
    LOG_FATAL number := 1;
    LOG_ERROR number := 2;
    LOG_WARNING number := 3;
    LOG_INFO number := 4;
    LOG_DEBUG number := 5;
    log_level number := LOG_INFO;
    i number := 1;
    last_change_user number := 261;
    last_change_date date; /* Sysdate */
    rec_num, new_rec_count, error_record_count, total_record_count number;
    start_time, end_time, processing_time number;
    procedure load_records (fetch_limit in number := 200, log_lvl in number := 4)
    is
    begin
    log_level := log_lvl;
    start_time := dbms_utility.get_time;
    log_msg(LOG_INFO, start_time||':test_pkg.load_records procedure started...');
    select sysdate into last_change_date from dual;
    new_rec_count := 0;
    col2_count := 0;
    col3_count := 0;
    col4_count := 0;
    attr_records_added := 0;
    attr_records_updated := 0;
    error_record_count := 0;
    total_record_count := 0;
    end_time := 0;
    processing_time := 0;
    open test_cur;
    loop
    fetch test_cur bulk collect into cur_rec limit fetch_limit;
    for i in 1..cur_rec.count
    loop
    rec_num := 0;
    if ((cur_rec(i).col5 > 0) and
    (cur_rec(i).col1 = 'Y') or
    (cur_rec(i).col2 = 'Y') or
    (cur_rec(i).col3 = 'Y') or
    (cur_rec(i).col4 = 'Y'))
    then
    if cur_rec(i).col1 = 'Y' then
    new_record(rec_num);
    else
    rec_num := get_fk(cur_rec(i).col5);
    end if;
    log_msg(LOG_DEBUG, 'col5<'||cur_rec(i).col5||'> rec_num<'||rec_num||'>');
    if rec_num <= 0 then
    log_msg(LOG_INFO, 'Invalid record. rec#<'||cur_rec(i).col5||'> cx<'||rec_num||'>. No matching record found in card table');
    else
    if cur_rec(i).col2 = 'Y' then
    ins_upd_attribute(rec_num, 'C', 191, 'Y');
    end if;
    if cur_rec(i).col3 = 'Y' then
    ins_upd_attribute(rec_num, 'C', 192, 'Y');
    end if;
    if cur_rec(i).col4 = 'Y' then
    ins_upd_attribute(rec_num, 'P', 193, 'Test');
    end if;
    if cur_rec(i).col6 = 'Y' then
    update_record(cur_rec(i).col5);
    end if;
    end if;
    else
    log_msg(LOG_INFO, cur_rec(i).col5||' is an invalid record...No options selected.');
    error_record_count := error_record_count + 1;
    end if;
    total_record_count := total_record_count + 1;
    end loop;
    exit when test_cur%notfound;
    end loop;
    close test_cur;
    commit;
    end_time := sys.dbms_utility.get_time;
    --processing_time := mod (((end_time - start_time) + power(2,32)), power(2,32));
    processing_time := end_time - start_time;
    log_msg(LOG_INFO, '*********** Execution Summary ***********');
    log_msg(LOG_INFO, ' New record requests: ' || new_rec_count);
    log_msg(LOG_INFO, ' Invalid option records: ' || error_record_count);
    log_msg(LOG_INFO, ' Total records processed: ' || total_record_count);
    log_msg(LOG_INFO, ' Total processing time: ' || processing_time || ' ms');
    log_msg(LOG_INFO, '*****************************************');
    exception
    when others then
    log_msg(LOG_INFO, 'Other exceptions occured...');
    --loghandler.log(sqlcode, sqlerrm,'load_records');
    end load_records;
    procedure new_record (retKey out number)
    is
    key1, key2, key3 number;
    begin
    retKey := 0;
    --log_msg(LOG_INFO, start_time||':test_pkg.new_record procedure started...');
    select value into key1 from keyTable where parameter = 'KEY1' for update;
    update keyTable set value = key1 + 1 where parameter = 'KEY1';
    select value into key2 from keyTable where parameter = 'KEY2' for update;
    update keyTable set value = key2 + 1 where parameter = 'KEY2';
    select value into key3 from keyTable where parameter = 'KEY3' for update;
    update keyTable set value = key3 + 1 where parameter = 'KEY3';
    log_msg(LOG_DEBUG, 'rec#<'||cur_rec(i).col4||'> key1<'||key1||'> key2<'||key2||'> key3<'||key3||'>');
    insert into table1 (col1, col2, col3, col4, rectype, lastchangedate, lastchangeuserid)
    values (key1, key2, key3, cur_rec(i).col4,'Unknown',last_change_date,last_change_user);
    log_msg(LOG_DEBUG, 'Table1 record inseted...');
    insert into table2 (col1, col2, col3, col4)
    values(key2, key3, key1, cur_rec(i).name);
    log_msg(LOG_DEBUG, 'Table2 record inseted...');
    insert into table3 (col1, col2, col3, phone, addr, postalcode, lastchangedate, lastchangeuserid)
    values (key3, key1, key2, cur_rec(i).phone, cur_rec(i).address1, cur_rec(i).zip, last_change_date,last_change_user);
    log_msg(LOG_DEBUG, 'Table3 record inseted...');
    retKey := key1;
    new_rec_count := new_rec_count + 1;
    exception
    when others then
    log_msg(LOG_INFO, 'Other exceptions occured...sqlcode: '||sqlcode||' sqlerrm: '|| sqlerrm);
    end new_record;
    procedure ins_upd_attribute (id1 in number, id2 in char, id3 in number, val in varchar2) is
    record_count number := 0;
    begin
    log_msg(LOG_DEBUG, start_time||':test_pkg.ins_upd_attribute procedure started...');
    select count(1) into record_count from attributeTable where col1 = id1 and col2 = id2 and col3 = id3;
    if record_count = 1
    then
    update attributeTable set value = val where col1 = id1 and col2 = id2 and col3 = id3;
    attr_records_updated := attr_records_updated + 1;
    else
    insert into attributeTable(col1,col2,col3,value ) values(id1,id2,id3,val);
    attr_records_added := attr_records_added + 1;
    end if;
    exception
    when others then
    log_msg(LOG_INFO, 'Other exceptions occured...sqlcode: '||sqlcode||' sqlerrm: '|| sqlerrm);
    end ins_upd_attribute;
    procedure update_record (recKey in number) is
    id1 number := 0;
    begin
    log_msg(LOG_DEBUG, start_time||':test_pkg.update_record procedure started...');
    select col4 into id1 from table1 where col1 = recKey;
    if id1 > 1
    then
    update tabl3 set phone = cur_rec(i).phone,
    addr = cur_rec(i).address1, postalcode =cur_rec(i).zip where id =id1;
    end if;
    exception
    when others then
    log_msg(LOG_INFO, 'Other exceptions occured...sqlcode: '||sqlcode||' sqlerrm: '|| sqlerrm);
    end update_record;
    function get_fk (recKey in varchar2) return number is
    rec_num number := 0;
    begin
    select key4 into rec_num from table1 where col4 = recKey;
    return rec_num;
    exception
    when no_data_found then
    log_msg(LOG_INFO, 'No Data found exceptions occured...recKey<'||recKey||'>');
    when others then
    log_msg(LOG_INFO, 'Other exceptions occured...sqlcode: '||sqlcode||' sqlerrm: '|| sqlerrm);
    end get_fk;
    procedure log_msg(msg_type in number := 0, msg in varchar2) is
    begin
    if msg_type <= log_level
    then
    log_msg(LOG_DEBUG, start_time||':test_pkg.ins_upd_attribute procedure started...');
    --loghandler.log(sqlcode, sqlerrm,'load_records')
    end if;
    exception
    when others then
    log_msg(LOG_INFO, 'Other exceptions occured...sqlcode: '||sqlcode||' sqlerrm: '|| sqlerrm);
    end log_msg;
    end test_pkg;
    /

    Thanks for your reply. No. I can not use insert into or merge into options. My scenario is like this.
    Read the staging table records where processed_flag is 'N'
    if (col1 !='Y' and col2 !='Y' or col3 !='Y' or col4 !='Y') and col5 = 0 then
    log this record. goto the next record.
    else
    if col1 = 'Y' then
    rec_key = new_record(rec_num);
    else
    rec_key = get_fk(col5);
    end if;
    if col2 = 'Y' then
    ins_upd_attribute(rec_key,'C', 191, 'Y');
    end if;
    if col3 = 'Y' then
    ins_upd_attribute(rec_key,'C', 192, 'Y');
    end if;
    if col4 = 'Y' then
    ins_upd_attribute(rec_key,'P', 193, 'Test');
    end if;
    if col6 = 'Y' then
    update_record(col5);
    end if;
    update the processed flag to 'Y';
    end if;
    procedure new_record(retKey out number) is
    Select the next values for 3 keys from keyTable. update keyTable column values with +1.
    Insert new records into table1, table2 and table3
    end new_record;
    procedure ins_upd_attribute (id1 in number, id2 in char, id3 in number, val in varchar2) is
    if a record exists in attributeTable then
    update the attributeTable record
    else
    insert new record into attributeTable.
    end if;
    end ins_upd_attribute;
    function get_fk (recKey in varchar2) return number is
    if a record exist in table1 then
    return record key
    else
    return 0;
    end if;
    end get_fk;
    procedure update_record (recKey in number) is
    if a record exists in table1 then
    update table3 using the key from table1
    end if;
    end update_record;
    Should I commit after processing each record in the staging table or commit after processing all records?
    Should I combine all procedures and functions into one large procedure (load_records) or leave it the way it is now? Does any one see any potential problems with my current approach? Any advice will be sincerely appreciated.
    Message was edited by:
    new2sql

  • Function returning error - change notification

    I have a function returning error text. When error occurs I get the message
    'xx error has occurred' on the screen (in notification). Is there a way to control the message text so I can display different text?

    It's something like this:
    DECLARE l_code zip.code%TYPE;
    got_error varchar2(1) := 'N';
    l_check_fld varchar2(30000);
    l_error_fld varchar2(32000);
    vErrorFields varchar2(1000);
    CURSOR check_zip IS
    select ''
    from zip
    where code = l_code;
    BEGIN
    apex_collection.create_or_truncate_collection('ZIP');
    FOR i IN 1 .. apex_application.g_f03.COUNT LOOP
    vErrorFields := '';
    /* Code MUST be entered */
    if (apex_application.g_f03(i) is null and
    (apex_application.g_f04(i) is not null or
    apex_application.g_f05(i) is not null))then
    got_error := 'Y';
    vErrorFields := vErrorFields || ',f03';
    l_error_fld := l_error_fld || 'Row ' || to_char(i) || ':' ||' <span style="color: red">Code cannot be <strong>blank.</strong></span><br>';
    end if;
    END LOOP;
    if got_error = 'N' then
    apex_collection.delete_collection('ZIP');
    end if;
    RETURN l_error_fld;
    END;

Maybe you are looking for