Please help on uploading a CSV file on APEX through file browse

Hi All,
I need to upload a csv file in the table through file browse button.For that i have created the below process and function.This method is working perfectly fine when the file size is small.But i need to upload the file of 16 MB size and when i try to upload that file it gives error wwv_flow.accept error.Any expert of APEX please help me out on this error.As i am very new to APEX and i need to get this done as early as possible.Please provide any solution ,i will be really grateful to the person.
function_
create or replace function hex_to_decimal
--this function is based on one by Connor McDonald
--http://www.jlcomp.demon.co.uk/faq/base_convert.html
( p_hex_str in varchar2 ) return number
is
v_dec number;
v_hex varchar2(16) := '0123456789ABCDEF';
begin
v_dec := 0;
for indx in 1 .. length(p_hex_str)
loop
v_dec := v_dec * 16 + instr(v_hex,upper(substr(p_hex_str,indx,1)))-1;
end loop;
return v_dec;
end hex_to_decimal;
Process_
     DECLARE
     v_blob_data BLOB;
     v_blob_len NUMBER;
     v_position NUMBER;
v_clob_data CLOB := 'anything';
dest_offset NUMBER := 1;
src_offset NUMBER := 1;
blob_csid NUMBER := dbms_lob.default_csid;
lang_ctx INTEGER := dbms_lob.default_lang_ctx;
warning INTEGER;
     v_raw_chunk RAW(10000);
     v_char CHAR(1);
     c_chunk_len number := 1;
     v_line VARCHAR2 (32767) := NULL;
     v_data_array wwv_flow_global.vc_arr2;
     v_rows number;
     v_sr_no number := 1;
     BEGIN
     delete from scg_recievables2;
     -- Read data from wwv_flow_files</span>
     select blob_content into v_blob_data
     from wwv_flow_files
     where last_updated = (select max(last_updated) from wwv_flow_files where UPDATED_BY = :APP_USER)
     and id = (select max(id) from wwv_flow_files where updated_by = :APP_USER);
     v_blob_len := dbms_lob.getlength(v_blob_data);
     v_position := 1;
-- Read and convert binary to char</span>
     WHILE ( v_position <= v_blob_len ) LOOP
     dbms_lob.converttoclob(v_clob_data, v_blob_data, v_blob_len, dest_offset,src_offset,blob_csid,lang_ctx,warning);
v_char := dbms_lob.getlength(v_clob_data);
     v_line := v_line || v_char;
     v_position := v_position + c_chunk_len;
     -- When a whole line is retrieved </span>
     IF v_char = CHR(10) THEN
     -- Convert comma to : to use wwv_flow_utilities </span>
     v_line := REPLACE (v_line, ';', ':');
     -- Convert each column separated by : into array of data </span>
     v_data_array := wwv_flow_utilities.string_to_table (v_line);
if IsNumber(substr(v_data_array(9),1,1)) = 1 then
v_data_array(9) := substr(v_data_array(9),1,11);
else
v_data_array(9) := '01-JAN-1900';
end if;
v_data_array(9) := NVL(v_data_array(9),'01-JAN-1900');
     -- Insert data into target table </span>
     EXECUTE IMMEDIATE 'insert into scg_recievables2 (Account_receivable_number, the_account_number, bill_history_tran, service_number, item_type, the_amount_billed, the_remaining_amount,source_of_payment)
     values (:1,:2,:3,:4,:5,:6,:7,:8,:9)'
     USING
     v_data_array(1),
     v_data_array(2),
     v_data_array(3),
     v_data_array(4),
     v_data_array(5),
     v_data_array(6),
     v_data_array(7),
     v_data_array(8);
     -- Clear out
     v_line := NULL;
     v_sr_no := v_sr_no + 1;
     END IF;
     END LOOP;
     END;

As noted, this confuses the issue, since a possible answer was posted in the OTHER thread.. Check your server logs, you are probably timing out.. From prior threads with a similar issue:
Have a look at the httpd.conf file (or get your system administrator to look at it) and see what the value of TimeOut is set to. You may need to increase it in order to export large tables via APEX.
http://www.apacheref.com/ref/http_core/Timeout.html
Thank you,
Tony Miller
Webster, TX
A lady came up to me on the street, pointed at my suede jacket and said "Do you know a cow was murdered to make that jacket?"
"I didn't know there were any witnesses", I replied " Now I'll have to kill you too"

Similar Messages

  • HT204266 I erase all application of my iphone 4 with erase restore and now it's in restore mode. Now is there any way to restore my iphone without backup. Please help me. I have no need my previous file i just want my i phone ok and work smoothly as new p

    Hi,
    I erase all application of my iphone 4 with erase restore without any backup & i also lose the product serial number. Now it's in restore mode. Now is there any way to restore my iphone without backup. Please help me. I have no need my previous file I just want my iphone4 ok and work smoothly as like new ipone justlike i bought it at first time. I can't restore it. So Please help me to solv this proble.

    See Here  > without the Backup  >  http://support.apple.com/kb/HT4137

  • Please help to upload with java servlet

    I want to install a java servlet uploader on my web site and i try to do it many times but i can't beacuse i dont know what are the essentials that should be found on the server to install java servlet in right way ..
    so please help me to do this .. and tell me what i need to upload files correctly with java servlet .
    any help will be appreciated ..
    thank you !

    Hello newton ..
    I only want to know what are the requirments that let me use the java servlet on linux system .. because i want use an uploader using java servlet ..
    thank u newton ..
    any help will be appreciated

  • Please help... Photoshop crashes whem opening raw files.

    I am a professional photographer from Portugal, i have 6 macintosh to work with photoshop.
    My last machine, Mac Pro
    Identifier pattern: MacPro2, 1
    Name of processor: Quad-Core Intel Xeon
    Processor speed: 3 GHz, with 9Gb of ram, OSX 10.5.5 ..... and just installed the CS4.
    Get a crash several times a day!
    I have just installed the photoshop, format the disk before install, and run the permissions, everything ok. I have 2 other disks in raid, on a total of 1Tb to Scratch disk ...
    When I am working ... and open a file Cr2 from Canon or Nikon's NEF, or even DNG of my Hasselblad ... the machine crash.
    I dont know what to do more ...
    I bought the Photoshop CS4, because I thought that it will solve those problems. I had semilar problems with CS3.
    Now i buy a new graphics card!
    My current is: ATI Radeon X1900 XT
    and im waiting for NVIDIA GeForce 8800 GT for Mac
    What else can I do?
    Please help me to find a solution.
    Very respectfully.
    Antonio Rodrigues
    PS. sorry for my bad English.

    Around my studio we call out "I GOT CR2-ed!" "ARrrrggh!!"
    I don't hold any hope Adobe will either acknowledge or fix the problem, but I found a mostly working workaround.
    I don't need nor use Bridge, since Apple has a stable way of previewing cr2 files, and Photoshop can directly open them. I often open multiple files directly into Photoshop and found this:
    Before ever opening cr2 files, SAVE any open work. first. After selecting the files to open, WAIT until all the yellow exclamation marks have disappeared beside all images before pulling the trigger and hitting enter.This includes the large primary preview.
    Though my impatience still gets me cr2-ed occasionally, I still curse Adobe under my breath. They could at least grey out the "Open Images" button until all previews are finished, if in fact this is the culprit.

  • Please help CS 4.2 will not import ANY video file

    I've been working for days to get this fixed. Everything installs fine software wise and I am using a
    Matrox RTX2 for capture/playback but Prem CS4.2 will not import any video file type.
    My system is up to spec.
    I've seen this problem discussed but none of the (many) suggested solutions have helped.
    I've uninstalled and re-installed the OS and clean install multiple times and still I get "file format not supported" with EVERY file type.
    Please help!
    Brian

    Brian,
    Welcome to the forum.
    When issues occur with Matrox cards, updating its drivers often fix things.
    If you create a non-Matrox Project, can you then Import AV files?
    Good luck,
    Hunt

  • PLEASE HELP - Unable to restore all messages from my backup file (.bbb) - 21800 messages and I need them all

    Hi.
    This is not the first time I encountered this issue. The backup file itself is 18.5MB in size. The critical stuff is my 21800 messages (emails for 7 different email accounts). Whenever I do a restore, the DM only reads 13859 messages and unfortunately not in reverse order. So I end up with no emails for the last 7 months! BIG PROBLEM for me! I have done a selective restore. I have done a complete wipe and then a full restore (no success), then deleted all data and tried a selective restore and only selected the messages (still only around 13,500 messages).
    There appears to be a limitation around the 13500 mark for messages.
    PLEASE, PLEASE, PLEASE help.

    It's been a while since I used Apple's Backup, but you should be able to select "Restore" from within the app to find an iCal backup file. When you find your most recent backup file restore it to your main computer. An iCal backup should look like this: "iCal - 10/31/06.icbu". Once you have the file you can just double click on it and iCal will open and give a warning about overwriting your current database file. You can just select "Revert" to overwrite the current file since you have nothing in it now. Everything should then go back to the state it was in since your last backup. You might lose some of your most recent entries if they were not in the backup, but you should get back most of what you lost. Good Luck!!

  • NEWBIE PLEASE HELP..!! Problem Opening a MIDI file

    Hi all.
    Does anyone have any advice on this strange problem..??? On the Logic Pro 8 Manual it says that : +"When you open a MIDI file in Logic Pro 8, software instrument tracks are automatically created for each MIDI track"+
    My problem is that when I open a MIDI file, (Standard MIDI file) some tracks get assigned to external MIDI instruments, others get assigned to Software instruments. I can't figure out how this might happen.
    I really want to use the software instruments for each MIDI track, not the Quicktime Synthesizer...
    PLEASE HELP ME FIX THIS...!!!!
    Thanks

    Well, the thing is that I only want Logic to automatically create the software instruments tracks (EXS, EXS24, Garageband sounds, etc) every time I open a MIDI file
    As a matter of fact I have a Macbook with 10.4 OSX with Logic Pro 8 and this one DOES what it says in the manual (creating the W/W instrument tracks) I just open a MIDI file and the program does all the rest..it assigns a SW instrument for each track... However, I can't do that with my iMac....
    This problem is really driving me insane ....I'm a switcher from Cakewalk SONAR and I really want to use Logic....Please Help..!!

  • Please help me 2 find a Document for this jar file com.sap.workflow_api

    HI,
    I want to create a task in UWL using web dynpro application. For this I need to import the specified com.sap.workflow_api.jar jar file.
    This jar file is in our WEB AS Server
    path=
    server\c\usr\sap\W01\JC00\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\portal\portalapps\com.sap.workflow.apps\lib
    I have browsed all over for a good document , i got just one link :
    http://help.sap.com/saphelp_nw70/helpdata/EN/46/94b9b2b321581ce10000000a1553f7/frameset.htm
    Could you help me out with a better document for This task and  I want the complete document for this particular jar file com.sap.workflow_api.jar.
    It wolud be very helpful if I could get it at the earliest.
    Regards,
    Boopathi M

    HI Ayyapparaj,
    I have converted my project to javadoc,but i don't get any document for specific class. only I got what ever method is avilable in our controller that corssponding method come over in the java doc.
    How can i get the document for specified IWorkflow interface ? this com.sap.workflow_api jar file has IWorkflow interface. I need to know how to use this IWorkflow interface.
    How to use javadoc tool ?
    Regards,
    Boopathi M

  • Please help re upload issues!

    I attempted to upload some pictures to my website, (I use FatCow to host and the included Weebly upload software) Safari denies access to my files and gives no explanation as to why!  After consulting with the FatCow support line, they suggested using FireFox to see if that work and lo, it did and all well!  FatCow support suggested that there may a problem with Safari.  I have not knowingly changed any settings and all previous uploads have been successful using Safari!  Any thoughts?

    Ok, I have found the solution, it was as simple case of updating flash player!

  • Please help, cannot connect to Access database with a jar file

    Hi, i created a jar file from my java project, using eclipse.
    When i try open the jar through command prompt, the following error is given:
    java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Could not find
    file '(unknown)'.
    at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source)
    at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source)
    at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(Unknown Source)
    at sun.jdbc.odbc.JdbcOdbcConnection.initialize(Unknown Source)
    at sun.jdbc.odbc.JdbcOdbcDriver.connect(Unknown Source)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at Methods.con(Methods.java:15)
    at LoginScreen.getCmboLogins(LoginScreen.java:80)
    at LoginScreen.getJContentPane(LoginScreen.java:65)
    at LoginScreen.initialize(LoginScreen.java:46)
    at LoginScreen.<init>(LoginScreen.java:31)
    at DataUse.main(DataUse.java:25)
    No Connection to dataBASE
    The program runs fine within eclipse and the database is bundled in the jar.

    rohangr wrote:
    The program runs fine within eclipse Because the database isn't in the jar.
    ...and the database is bundled in the jar.That isn't going to work.
    The MS ODBC driver (which has absolutely nothing to do with java) expects to find the MS Access file in the windows file system.
    And the contents of the jar file does not fit into that requirement.

  • Need Information for transporting a file as IDOC through File Port!!!

    Hi,
    All configurations are present in the system to transfer a file as IDOC using File Port.
    Now we are creating a custom program to transfer the same. Now i have all the data in an internal table which has to be send to Non SAP system. So can i know the process how to send the same.
    I have a SAP Directory where i need to place the system. I also have all ports required.
    So please let me know how to code the same ASAP.
    Thanks and Regards,
    sagar..

    You may want to try using the IDOC Test tool WE19 in order to test out your ports and partner profiles.
    Also sending from SAP to XI / PI you might be better configuring RFC Destination / SM59.
    See this Wiki for more info...
    http://wiki.sdn.sap.com/wiki/display/XI/ALE+Configuration

  • Please help! How do i open Nikon D610 raw files in cs3 on a mac OS X 10.6

    how do i open d610 raw files in cs3 on a mac OS X 10.6
    I clearly have issues supporting these files on such an old laptop but these images are critical and I would appreciate any download advise or other??

    Download the free Adobe DNG converter, convert your files to DNG and CS3 should be able to open them.
    Photoshop Help | Digital Negative (DNG)

  • Please help i uploaded the new iso 7.1.1 software and all my application and personnel pictures disapear

    is there any chance to recover my photos as i can not recover them while i uploaded the new software iso 7.1.1

    There's a lesson there, Hak40. Always back up your phone to your computer and to iCloud before any system upgrade, and then you won't lose any data at all. 

  • Please help me out -How to share a single indd. file at the same time?

    Is there any any option for two users to work on a single indd. file at the same time. (Just like working on a shared file in Microsoft Excel).
    Note both make changes at the time on different pages.
    To save time...

    Another option, if the file is a large mupltiple page design, is to divide the document into chapters or sections. Save each section as a separate InDesign file and then combine them using a book (.indb). File > New > Book...
    Different users could edit the individual sections or chapters, and then when all is ready to go, the book can be used to package the documents, export to PDF, etc.
    Not very efficient for small documents, but it can make life easier for long documents.
    HTH
    -mt

  • PLEASE HELP WITH UPLOADING

    HOW DO YOU UPLOAD FROM JAVA ENVIRONMENT ONTO WEB SPACE......DO YOU FTP OR ANOTHER WAY ...........APPLICATION SERVER ............HOW DOES IT WORK?????????

    well if u want to upload on a webspace some websites provide their own pages for uploading and if they havent then they must have provided ftp username and password , buy using any ftp software u can upload on that web space and if u want to use ur on upload module then u can create it by using java;s url class ..
    if u need to know any thing abt that u can ask me
    take care and have fun
    bye

Maybe you are looking for

  • Reconciled amounts appears in vendor aging report

    Dear all, When we take report for reconciled transactions,reconciled amounts appears in aging days(Suppose we have ap invoice in 0-30 days and payments made in 30-60 days it's already reconciled) Why it is showing in reconciled aging report ? Jeyakan

  • How do I move video from iPhone 5 to PC?

    I was able to move one video that was only about 1:04 long. Now I need to move one thats 1:27:38.     I unlocked my iPhone, plugged it into my computer, and clicked "Trust". I was able to move the smaller one, but the larger one does not show up. Any

  • Reload servlet to a specific area on the page

    Hi, gang I have a servlet that refreshes at user defined rate and displays a bunch of different things on the page. I would like to the user to be able to click on a link that would take him to (for instance) a middle of the page, and when the servle

  • Costing problem while running Process order

    Hi, This is a  problem relating to costing of HALB material.. While doing process order for a fert material (BOM of FERT material contains a HALB and two ROH materials) a window occurs while saving ' Error when calculating costs, see log'. Why is thi

  • Multi display options for MBP using USB - Diamond BVU195 vs Sewell Minideck

    I have narrowed my search for a multidisplay option for my MBP down to 2 devices; Diamond BVU195 http://www.diamondmm.com/BVU195.php http://www.amazon.com/Diamond-BVU195-Display-Adapter-included/dp/B002GHBW4S and Sewell Mindeck http://sewelldirect.co