Clob is not working for bulk data files in PL/SQL XML program

Hi Odie,
we took your help to fix the our issue before
"https://forums.oracle.com/forums/thread.jspa?threadID=2238458&tstart=105"
working fine for : program is working for smaller size data.
Issue : now we have problem with the largr size data .
getting the below error:
Arguments
P_dir_name='/tmp'
P_file_name='CCBGO.COLO_CNG.RESPONSES.20120802.00054131826'
Environment will now switch to UTF-8 code-set.
Parts of this log file may not display correctly
as a result. This is an expected behavior.
XML_REPORTS_XENVIRONMENT is :
/apps/applmgr/product/OFDEV/ofdevora/806/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
XENVIRONMENT is set to /apps/applmgr/product/OFDEV/ofdevora/806/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
American_America.UTF8
stat_low = 8B
stat_high = 0
emsg:was terminated by signal 11
Appreciated for your earlier support.
Kindly suggest .
Many Thanks,
Ramesh.

Thanks ALex,
your are true it is concurrent program error ,
but it is working for small amount of data and generating the output and it is not working for larger data.
i have placed the code which i have used kindly suggest where i am going wrong.
i am calling the .rdf through the concurrent program, i've used the below query in RDF
select
BATCHHEADER
,BATCHTRAILER
,RqUID
,Severity
,PmtRefId
,StatusDesc
,ErrorDesc
,AsOfDate
,AsOfTime
,RqUID1
,SPRefId
from table(CL_CXFRFXFH_PKG.rcacknowledgments(:P_dir_name,:P_file_name));
kindly find the below code for the package CL_CXFRFXFH_PKG.
==========================
CREATE OR REPLACE package body APPS.CL_CXFRFXFH_PKG is
function rcacknowledgments (p_directory in varchar2, p_filename in varchar2)
return TRecordTable pipelined
is
nb_rec number := 1;
tmp_xml clob;
tmp_file clob;
rec TRecord;
begin
dbms_lob.createtemporary(tmp_file, true);
tmp_file := dbms_xslprocessor.read2clob(p_directory, p_filename);
rec.BATCHHEADER := regexp_replace(tmp_file, '.*<BATCHHEADER>(.*)</BATCHHEADER>.*', '\1', 1, 1, 'n');
rec.BATCHTRAILER := regexp_replace(tmp_file, '.*<BATCHTRAILER>(.*)</BATCHTRAILER>.*', '\1', 1, 1, 'n');
loop
tmp_xml := regexp_substr(tmp_file, '<\?xml[^?]+\?>\s*<([^>]+)>.*?</\1>', 1, nb_rec, 'n');
exit when length(tmp_xml) = 0;
--dbms_output.put_line(tmp_rec);
nb_rec := nb_rec + 1;
select RqUID, Severity, PmtRefId, StatusDesc, ErrorDesc, AsOfDate, AsOfTime, RqUID1, SPRefId
into rec.RqUID
, rec.Severity
, rec.PmtRefId
, rec.StatusDesc
, rec.ErrorDesc
, rec.AsOfDate
, rec.AsOfTime
, rec.RqUID1
, rec.SPRefId
from xmltable(
'/CMA/BankSvcRq' passing xmltype(tmp_xml)
columns RqUID varchar2(3000) path 'RqUID'
, Severity varchar2(3000) path 'XferAddRs/Status/Severity'
, PmtRefId varchar2(3000) path 'XferAddRs/Status/PmtRefId'
, StatusDesc varchar2(3000) path 'XferAddRs/Status/StatusDesc'
, ErrorDesc varchar2(3000) path 'XferAddRs/Status/ErrorDesc'
, AsOfDate varchar2(3000) path 'XferAddRs/Status/AsOfDate'
, AsOfTime varchar2(3000) path 'XferAddRs/Status/AsOfTime'
, RqUID1 varchar2(3000) path 'XferAddRs/RqUID'
, SPRefId varchar2(3000) path 'XferAddRs/SPRefId'
pipe row ( rec );
end loop;
dbms_lob.freetemporary(tmp_file);
return;
end;
end;
============================================
Many Thanks,
Ramesh.

Similar Messages

  • Pl/sql Clob code not works for database table but works for collection!

    Dear friends
    I modified pl/sql code to insert large data for clob column ın ORACLE APEX , It works for collection (I modified it to work for both)
    the modified code is blod
    declare
    aClob1 clob := empty_clob;
    aClob2 clob ;
    begin
    dbms_lob.createtemporary( aClob1, false, dbms_lob.SESSION );
    for i in 1..wwv_flow.g_f01.count loop
    dbms_lob.writeappend(aClob1,length(wwv_flow.g_f01(i)),wwv_flow.g_f01(i));
    end loop;
         apex_collection.create_or_truncate_collection(p_collection_name => 'CLOB_CONTENT');
         apex_collection.add_member(p_collection_name => 'CLOB_CONTENT',p_clob001 => aClob1);
         htmldb_application.g_unrecoverable_error := TRUE;
    select cc into aClob2 from tt where id = 21 for update ;
    dbms_lob.write(aClob2,Length(aClob1),1,aClob1); commit;
    end;
    but the charcters more than 8100 not be saved to database clob column !
    regards
    Edited by: Siyavus on Jan 30, 2009 5:26 PM
    Edited by: Siyavus on Jan 30, 2009 5:29 PM

    Dear Thomas
    dbms_lob.write(aClob2,*dbms_lob.getlength*(aClob1),1,aClob1); commit;
    I tried it ( dbms_lob.getlength(aClob1) ) but the result is the same
    regards

  • Database Variant to Data.vi not working for the Date datatype with LV 8.2?

    I'm moving a large body of LV database code from LV 7.1 to 8.2 and find that the Database Variant to Data.vi is not working correctly when used with the Date datatype. It works fine with 8.0, and the common Variant to Data works also. Am I missing something? Thanks in advance for any assistance. Wes

    Thanks for the prompt reply Crystal,
    The data is stored in an Oracle database using the DATE type. I'm querying many rows along with other columns and converting each of the values as necessary for each column with the 'Database Variant to Data' vi. Only conversion to Timestamp is no longer working as of version 8.2. I recognize that plain Variant to Data works but I have many (100's) of VIs to change if that is the only solution (not the end of the world). Most often the dates are originally generated in the database using PL/SQL procedures calling SYSDATE which look like: 5/1/2006 11:56:26 AM (in TOAD anyway) which I then need to read into LV as type Timestamp.
    Regards, Wes.

  • Download software site not working for Financial Data Quality

    Hi
    Financial data quality management site download site not working. it's showing error message below error message.
    Error message: "We're sorry,the page you requested was not found.We have recorded this error (404) to help us fix the problem"
    Site: http://www.oracle.com/technetwork/middleware/bi-foundation/downloads/hyperion-fin-data-quality-111130-085525.html
    regards
    Anil

    Hi Ferro;
    As far as I can see Apple doesn't have to fix anything with Software Update because it is working perfectly for myself and the users I help to support.
    So maybe if you can give us more details; such as what error messages are you getting, what have you done so far to solve this problem.
    Allan

  • Does yahoo push not work for bulk mail folder?

    I don't seem to be having any problems with yahoo push in my Inbox, but it doesn't seem to be working for my bulk mail. I have to actually go into my bulk mail folder for it to update. Is this normal? Thanks!

    That is normal activity. Works the exact same way on tests phones we have set up. Bulk/junk mail is not something that all would like getting pushed through.

  • Repository variable is not working for prompted date

    Hi experts..
    I have created one repository variable sum(amount1), but it is not filtering according to date local.... i need to filter it according to date local.

    Thanks for reply..
    I need to calculate the value in A1 = Amount in A in each row is how much % of SUM(A) ..and want to show in chart..

  • Drill Through report not working for large data

    Hi,
    In SSRS 2008 R2, I have a main report and a drill through report from one of the main report's column. The drill through report works mostly except if the data is too large i.e. more than 1 million records. How to fix this problem?
    Thanks,
    Jkrishna

    Nope. WHat I meant was not to show the entire data in child report (ie your 1 million records). Instead add extra parameter as PageNumber. By default set it as 1 when you navigate to child report (default value)
    Then in query behind use a ROW_NUMBER based logic like below
    SELECT *
    FROM
    SELEC ROW_NUMBER() OVER (ORDER BY <combination of unique valued column(s)>) AS Rn,...
    Your existing query other columns
    )t
    WHERE Rn BETWEEN ((@PageNo-1) * 1000) + 1 AND @PageNo * 1000
    Assuming you want 1000 per page
    So when it renders it will show first 1000 records. Add a NextPage icon to report footer and when clicked add a jump to report functionality to same report but with PageNumber parameter value as
    =Parameters!PageNumber.Value + 1
    and it will then give you second page data etc 
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Edit and Continue does not work for VB Linked Files

    Hi all,It is not possible to modify source code in the files linked to a VB.NET project when the program is running (debug mode), even though Edit and Continue is enabled, along with full debug info and no optimizations is enabled. Files that are physically present in the project's hierarchy are editable without ptoblems.hierarchy example:FolderRoot\FolderRoot\Folder1: Linked Module1FolderRoot\FolderProject : Internal Forms and Modules(The Linked Module1 is external to main project but added as link at project)I found no solution for this problem.Anyone help me, please
    RegardsFilSky

    The main reason for using a linked file is for sharing. With that said your best option is to create a class project and place that file into the class project and reference this class project in any project that requires the code. One caveat, if the shared
    file is a code module add Public in front of Module, otherwise it will not be visible outside of the class project.
    So for a code module we start with
    Module Module1
    ' Your code is here
    End Module
    Add Public
    Public Module Module1
    ' Your code is here
    End Module
    Nothing needs to be done for classes.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem.

  • 'nl' Not Working for fieldSeparator in File Content Conversion

    I have a receiver communication channel where I want to create a file with each field being a new line.  The xml (Message Protocol: File) output looks like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:complus_receiver_messageType xmlns:ns0="http://graybar.com/test/complus_rec
    eiver"><cp><myrequest>AAFADFASFADFADSFDASFADFAAA</myrequest><myheader>DELADV</myheader></cp></ns0:complus_receiver_messageType>
    When I turn on Message Protocol of File Content Conversion, and follow the SAP documentation on the parameters, the 'nl' is getting sent literally.
    - I have Recordset Structure of: cp
    - I have content conversion parameters of:
    cp.fieldSeparator 'nl'
    cp.fieldNames myrequest,myheader
    cp.addHeaderLine 0
    My file output looks like this:
    AAFADFASFADFADSFDASFADFAAA'nl'DELADV0001
    Note that the 'nl' is not processing as a new line.  Ideas?

    Hi,
    Receiver FileContent conversion params dosen't have <b>fieldNames</b>
    cp.fieldNames myrequest,myheader
    so why don't u remove this and try once again...
    Recordset Structure of: cp
    cp.addHeaderLine 0
    cp.fieldSeparator 'nl'
    Hope this weblog helps you...
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    Cheers,
    Siva Maranani.

  • Classpath is not working for executable jar file

    I have created executable jar file using following command where manifest file contains Main-Class and Class-Path entries.
    jar cvfm app.jar META-INF/* lib/* *.class
    So here app.jar contains my external jar's in lib directory
    but when I move app.jar to another directory, it's doesn't get my external files.
    I'm not getting this problem as these jar's are in app.jar
    class-path entry in manifest file:
    Class-Path: lib/abc.jar lib/xyz.jar
    Pls help me where it is getting fail?
    Thanks in advance,
    Vikas

    Java doesn't handle jars within jars. Your library jars need to be outside of the executable jar as in
    dist - main.jar
          - lib  -  lib1.jar
                 -  lib2.jar

  • Continuous raster is not working for imported Illustrator files - I am working on the latest versions of both. I tried importing a simple graphic and having it continuously raster, nothing else, and it won't work.

    I set up my file in Illustrator as a video file, same size as the AfterEffects file I'm working on - but the continuous raster button doesn't work. Any ideas?

    If you have applied raster layer effects in illustrator, then it won't work because you no longer have a vector image.
    What is the zoom factor of your composition window? What is the resolution of your comp window? If you would post a screenshot of your composition with the properties of the layers in question revealed by pressing the u key twice maybe we would have a clue what you are doing wrong. It's quite difficult to come up with an answer with out some details. We need more details.

  • After upgrade from 4.6c to ECC6.0 F4 Help is not coming for few date fields

    Hi Friends
    Just now we have completed upgrade project from 4.6c to ECC6.0.
    After upgrade F4 help is not working for some date fields.
    For example its working in MB11,Its not working in va01,vf01 like that.
    In abap side we checked ...not able to find any issues in coding level, because its a standard SAP code.
    So if any solution is there to correct this issue.Kindly help me to resolve this asap.
    Thanks
    Gowrishankar
    Edited by: gowrishankar p on Nov 17, 2009 7:25 AM

    Hi
        Please refer to the SAP note 1278056 and 1278115 - PDS Display: F4-characteristic values are not selectable.  Hope this will resolve your issue.
    Regards,
    JB

  • USB not working for data

    Hi, I just realized one of the USB ports of the laptop (powerbook G4) is not working for data transmition, it only works for power, like a cooler.
    Does anybody has any idea?

    USB and FireWire Quick Assist
    http://support.apple.com/kb/HT1151?viewlocale=en_US
    Common fixes for USB device issues (unrecognized, etc.)
    http://www.macfixit.com/article.php?story=20070824012114701
     Cheers, Tom

  • What's This Help not working for one entry in each header file

    I have a large RoboHelp project that I have imported into Version 8 from a previous version. Prior to the import into Version 8, all of the What's This Help in the project was working perfectly; now, post-import, I have a problem.
    Firstly, some background information.
    My project contains a large number of individual header (.H) files, one for each dialog within the software. These header files, which have been generated and provided by our developers, contain one entry for each field on the dialog to which the header file relates. The header files are all contained within a \HTML Topics\Fields\ folder (going from the root of my Help project).
    Each header file has a corresponding text (.TXT) file. These text files contain entries that correspond to the entries in the relevant header file. The text files are also contained within the \HTML Topics\Fields\ folder.
    Below is an example of the contents of a header file:
    #define IDH_HIERARCHY_APPEARANCE_HIEARCHY_LIST          16811
    #define IDH_HIERARCHY_APPEARANCE_ADD_APPEARANCE         16812    
    #define IDH_HIERARCHY_APPEARANCE_REMOVE_APPEARANCE      16813
    Below is the contents of the corresponding text file:
    .topic IDH_HIERARCHY_APPEARANCE_ADD_APPEARANCE
    Click this button to add a new row of hierarchical appearance settings to the grid.
    .topic IDH_HIERARCHY_APPEARANCE_HIEARCHY_LIST
    Use this grid to define hierarchy appearance settings. Each row in the grid represents a level of the hierarchy. For example, the appearance settings you define for the first row apply to the top level of hierarchy, the settings you define for the second row apply to the second level, and so on.
    .topic IDH_HIERARCHY_APPEARANCE_REMOVE_APPEARANCE
    Click this button to delete the selected row of hierarchical appearance settings from the grid.
    The What's This Help that was part of the original project still works perfectly. However, after upgrading the project to RoboHelp Version 8, I have had to update the project to reflect changes to the software. As part of this work, I have imported some new header files and updated some existing ones - and edited the corresponding text files accordingly.
    The What's This Help that is covered by the header files that I have imported since the upgrade to RoboHelp Version 8 does not work correctly; in each case, the What's This Help does not work for whichever field appears at the top of the appropriate text file. The position of the entry in the corresponding header file does not make a difference.
    If I manually edit a text file to move a different entry to the top then recompile the Help project, the What's This Help does not work for the field that now appears at the top of the text file - and the What's This Help for the field that used to appear at the top of the text file now works.
    I've tried everything I can think of to fix this, but nothing has worked. It seems as if there is a problem in the way RoboHelp is compiling the header and text files.
    If I use Microsoft HTML Help Workshop to decompile the CHM file, then view the contents of the resulting, decompiled text files, the affected files appear as follows:
    .topic IDH_HIERARCHY_APPEARANCE_ADD_APPEARANCE
    Click this button to add a new row of hierarchical appearance settings to the grid.
    .topic 16811
    Use this grid to define hierarchy appearance settings. Each row in the grid represents a level of the hierarchy. For example, the appearance settings you define for the first row apply to the top level of hierarchy, the settings you define for the second row apply
    to the second level, and so on.
    .topic 16813
    Click this button to delete the selected row of hierarchical appearance settings from the grid.
    Note how the entry at the top - which relates to the What's This Help that doesn't work - appears differently to the other entries which do work. The name of the ID appears after ".topic" rather than the appropriate ID number.
    Any help that anyone can provide me with would be very much appreciated.
    Thank you,
    Mark

    Its working now. We just kept trying to reinstall the tools and restarting indesign. On the 4th time the buttons started working. I can't explain why it finally worked, just that it is working now.

  • Document library open in client application not working for img,pdf,txt files

    In an office 365 sharepoint site i have enabled open in client applicartion for document library but it is not working for image/txt/pdf files for word and excel files it is working fine. I have even turned on the feature open document in client application
    by default from site collection features also but there is no change.
    Please advice.
    Regards,
    Chaitanya

    Hi Chaitanya,
    The feature is currently designed to be used with HTTPS, and will not work as expected with the HTTP connection available on Office 365 for professionals and
    small businesses sites.
    To take advantage of this update, do the following steps:
    Wait for the update to the SharePoint Online service, which is in progress now.
    Upgrade Adobe Reader to the version 10.1.2 client.
    Add your SharePoint Online root URL/domain to the Trusted Sites security zone in Internet Explorer1 (e.g., 
    https://contoso.sharepoint.com).
    Check the Keep me signed in box when you log in to a SharePoint Online site.
    This
    SharePoint Online update is currently
    being rolled out worldwide along with several other new features.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

Maybe you are looking for

  • HH:MM:SS Time format to show in Graphs - OBIEE 11g (11.1.1.5)

    Hi, I have got a requirement to show time format in graphs. I am converting seconds to HH:MM:SS format using the formula that I found in one of the blogs. http://123obi.com/2012/06/obiee-converting-seconds-to-minuteshoursdays/ Is there better way to

  • EVDRE - Excel 2003 vs Excel 2007 performance

    We run BPC 7.0 sp6 with a user population that has a mix of Office 2003 & Office 2007 on their client machines.  We have several standard and non-standard evdre reports.  Reports that are run in 2003 take 30 - 60 seconds to expand or refresh, the sam

  • Embedding a google form into iWeb.

    I am trying to embed a google form into iWeb and the full form does not show up. I used the HTML widget and copied and pasted the google link. Thoughts?

  • Is my iPhone Faulty?

    My iPhone is a little over a week old. I've upgraded to 2.0.1. I've removed every 3rd party app. I've restored maybe 10 times - so I think that I have covered all the bases but: 1. Answering the phone is a unreliable operation. Sometimes my finger on

  • Lost my audionote apps and its data, all the photos after upgrade to latest ipad software

    Hi all, Today I upgraded my ipad software from 4.3.5 to 5.0.1 via the itunes my macbook pro. During the upgrade the system automatically backed up my ipad. However, after the upgrade, I have found out that all the data for my apps such as audionote l