Utl_http.request_pieces

Hello, I am trying to use this function to call a report from a PL/SQL-DB procedure. First time works but the second or third i get
OWS-05101: Execution failed due to Oracle error 3113
ORA-03113: end-of-file on communication channel
I am using Oracle6i as CGI, and PL/SQL cartridge running on AOS 4.08 and DB 8i.
Do I have to setup reports as a Cartridge too, for this to work?.
Thanks.

Had the same issue again... Problem was I was trying to run the procedure in DEBUG mode in Toad. That caused this weird error. Ran the procedure from the editor in a plsql anon block and it ran fine...
....?

Similar Messages

  • Utl_http.request_pieces Exception

    Hi
    oracle 10g
    I am trying to construct a report server request url dynamically and call utl_http.request_peices to execute the url to run the report from my package. The URL string that is constructed by the package, runs sucessfully if I run the URL from the browser, but the utl_http.request_peices call bombs with utl_http.request_failed exception. When I used utl_http.get_detialed_sqlerrm to display the error this is what I found
    http requestfailedORA-06553: PLS-103: Encountered the symbol "=" when expecting one of the following: etc
    My url string is of type
    http://<myserver>/reports/rwservlet?SRCN9659pdf_tst2&DESNAME<mypath>/<myrename>_2485_LeakId_1_20080714141944.pdf&OUTPUTIMAGEFORMAT=JPEG&p_sonris_inspection_line_id=2485&p_lr_seq_num=1
    I stepped thru, added awatch and copied the url_str variable and executed the same in the browser. It ran successfully. But fails with the above mentioned error with utl_http.request_pieces call.
    Any ideas?
    Thanks

    Had the same issue again... Problem was I was trying to run the procedure in DEBUG mode in Toad. That caused this weird error. Ran the procedure from the editor in a plsql anon block and it ran fine...
    ....?

  • ORA-29261: bad argument using UTL_HTTP.REQUEST_PIECES

    I am running Oracle 10gR2.
    I keep getting ORA-29261: bad argument when setting the proxy either by the UTL_HTTP.SET_PROXY or UTL_HTTP.REQUEST_PIECES code. I have searched this forum and found no resolutions. I have set this proxy in the browser and it works fine. The following are excerpts of my code:
    Begin
       utl_http.set_proxy('http://myproxy/theProxyFile');
    End;The error is:
    ORA-29261: bad argument
    ORA-06512: at "SYS.UTL_HTTP", line 22
    ORA-06512: at "SYS.UTL_HTTP", line 888
    ORA-06512: at line 2
    I get the same error when trying to set the proxy via UTL_HTTP.REQUEST_PIECES.
    Thanks in advance,
    Becky
    Edited by: Becky Eisen on Aug 8, 2011 10:15 AM
    Edited by: Becky Eisen on Aug 8, 2011 10:21 AM

    After submitting this, I realized that I needed to look in the Proxy file for the actual proxy! Duh.

  • Clarification regarding UTL_HTTP.REQUEST_PIECES

    Hi all,
    I am having a java program which will keep on listening in particular port.
    And i am having a stored procedure which uses the UTL_HTTP.REQUEST_PIECES package to post the message.
    RES_PIECES utl_http.html_pieces;
    VURL VARCHAR2(2000) := 'http://1.1.1.1:8080/FileName.htm?msg='abcd';
    RES_PIECES := UTL_HTTP.REQUEST_PIECES(VURL);
    But here, when the java application picks the message,it is showing that the message is posted in GET method and not in POST method.
    I want the messages to be posted in POST METHOD.
    Is there any other option which i need to set for this.
    Please clarify.
    Regards
    Nathan

    Actually Michael is exactly correct.Naturally ;)
    Seriously Eric,
    If I had to guess, I think Nathan is trying to accomplish a machine-to-machine poor man's Web Service, making use of the UTL_HTTP package. Using a <FORM method="POST"> is entirely dependent upon human interactivity...
    I did one of these with PayPal, which worked quite well.
    If I am right about my guess, the next logical question could be, who cares whether it is GET or POST, as long as it works? Since it is machine-to-machine, does it really matter? Of course it does, if moderate to large amounts of data need to be passed, as query strings have their limitations... In the example given by Nathan, it should matter, though.
    Michael O'Neill
    Publisher of the PigiWiki
    clever-idea.com

  • URGENT: Content Services using PL/sql utl_http

    I'm using Oracle Collaboration Suite Content Services Version 10.1.2.0.0 (Oracle 10g Enterprise Edition Release 10.1.0.4.0).
    Using PL/sql, I want to be able to retrieve a html document stored in a folder in Content Services, and store the contents of that document in a table.
    I can retrieve and store the contents of the document if it stored anywhere - I just can't when the document resides in Content Services.
    Within PL/sql I am authenticating using utl_http.set_authentication, then using utl_http.request_pieces.
    I'm not getting an error message, just the "<" character stored in my table.
    Can I not use utl_http.request_pieces for retrieving a document in Content Services?
    Thanks
    Paul

    HI Michiel
    I am also trying to achieve something similar to that. I am trying to call a web service that sends an xml attachment over MTOM? Kindly, let me know if this was achievable from your end? I mean how did the issue got resolved.
    thanks
    vijay

  • Downloading of PPT using UTL_HTTP

    Hi All,
    I want one solution such a way that we have some urls stored in our database, so we are going to retrive the data that are in ppt format from this urls and store it in the ppt format in our database and my problem is the urls are password protected thats why when we use utl_http package we are getting blank ppt getting saved. So i want a solution as to how can we authenticate in the process ,while retrieving data from url.Can anybody please help me.
    Thanks
    Edited by: dil84 on Jan 19, 2009 11:45 PM

    Hello,
    Take a look at the following thread -
    Re: UTL_HTTP.REQUEST_PIECES on a page that needs log in
    Hope this helps,
    John
    Blog: http://jes.blogs.shellprompt.net
    Work: http://www.apex-evangelists.com
    Author of Pro Application Express: http://tinyurl.com/3gu7cd
    REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone!

  • Max Concurrent connections supported by UTL_HTTP

    Hi,
    Can anyone help me out to find how many concurrent connections can UTL_HTTP.REQUEST_PIECES support. Is there any parameter that governs max no.of connections? If so, pls post the parameter name.

    Assaf:  as always, thanks so much for the info!
    When you say double-sided, do you mean a memory stick which has chips on both sides; as in 8 chips on each side?
    I bought the Kingston memory one stick of 128MB PC100/PC133 which has chips on one side.  I also bought the 256MB PC100/PC133 which has chips on both sides.
    I currently have both these memory sticks in the MS 6119 and they appear to be working well.  I am running Prime95 torture test just to make sure everything is working as it should be.
    Currently I have the following memory in the MS 6119:
    Bank 0 - the original PC100 128MB stick which has 8 chips on each side.
    Bank 1 - the Kingston (KVR133Q/128R) PC100/PC133 128MB with 8 chips on one side.
    Bank 2 - the kingston (KVR 133Q/256R) PC100/PC133 256MB with 8 chips on both sides.
    The total is, of course is 512MB - and appears to be working just fine.  Windows LOVES RAM  :D

  • Accessing PL/SQL table in SQL query

    Hello,
    Is it possible to use plain SQL to query PL/SQL table? In my case this table is returned by UTL_HTTP.REQUEST_PIECES function, which is defined as:
    create or replace package utl_http is
    type html_pieces is table of varchar2(2000) index by binary_integer;
    function request_pieces (url in varchar2,
    max_pieces natural default 32767)
    return html_pieces;
    pragma restrict_references (request_pieces, wnds, rnds, wnps, rnps);
    Generally, I want to access chunks of external data for comparison without using PL/SQL. Thanks ahead for ideas. Ideally, I need working example because my attempts to use TABLE & CAST failed.

    I was going to suggest you could try and create your own wrapper around utl_http and use a database type, but then I remembered this excellent thread which covers it better than I ever could - Billy, hope you don't mind passing on your good work!
    Re: Error using UTL_HTTP over HTTPS

  • Need code for call a report from stored produre in oracle9i(using rwclient)

    dear all,
    i need a stored procedure to run the report 9i(.rdf) from pl/sql.But i have code in older version(rwcgi60).So i want stored procedure for rwclient.
    The below code not working in oracle9i version.its very urgent.Thanks in advance..
    create table report
    (id number not null primary key,
    filename varchar2(100) not null,
    report_connection_id number not null,
    destype varchar2(5) not null)
    create table report_connection
    (id number not null primary key,
    user_id varchar2(100) not null,
    pass varchar2(100) not null,
    database_server varchar2(50) not null,
    report_server varchar2(50) not null)
    alter table cm.report add foreign key (report_connection_id) references cm.report_connection (id)
    insert into report_connection values (1, 'scott', 'tiger', 'orcl', 'Rep60_Dev');
    insert into report values (1, 'test.rdf', 1, 'PDF');
    commit;
    procedure pr_example (p_id report.id%type) is
    cursor cur_data is
    select r.filename,
    c.user_id,
    c.pass,
    r.destype,
    c.database_server,
    c.report_server
    from report r,
    report_connection c
    where r.report_connection_id = c.id
    and r.id = p_id;
    v_blob blob;
    v_url varchar2(2000);
    v_pieces utl_http.html_pieces;
    v_buffer raw(2000);
    v_buffer_size integer := 2000;
    begin
    for v_rec in cur_data loop
    v_url := 'yourserver.domain.com/dev60cgi/rwcgi60.exe?report=' || v_rec.filename || '&desformat=' ||
    v_rec.destype || '&userid=' || v_rec.user_id || '/' || v_rec.pass || '@' || v_rec.database_server ||
    '&server=' ||v_rec.report_server || '&destype=cache';
    if v_rec.destype = 'PDF' then
    owa_util.mime_header('application/pdf', false);
    htp.p('content-disposition: filename='||v_rec.filename);
    owa_util.http_header_close;
    --you can add a bunch of elsif logic here for different destypes and setting the correct mime type.
    end if;
    --sets transfer timeout to be one hour
    utl_http.set_transfer_timeout(3600);
    --runs the report
    v_pieces := utl_http.request_pieces(v_url,64000);
    v_blob := empty_blob();
    dbms_lob.createtemporary(v_blob,true);
    for i in 1 .. v_pieces.count loop
    v_buffer := utl_raw.cast_to_raw(v_pieces(i));
    v_buffer_size := utl_raw.length(v_buffer);
    if v_buffer_size > 0 then
    dbms_lob.writeappend(v_blob, v_buffer_size, v_buffer);
    end if;
    end loop;
    wpg_docload.download_file(v_blob);
    end loop;
    end;
    Now run this url:
    http://yourserver.domain.com/pls/dad_name/pr_example?p_id=1
    regards
    mani

    JosAH wrote:
    A couple of years ago Sun supplied their javax.comm package (mysteriously versioned as version 2)
    but they stopped it for the PC Windows.
    There's an alternative: rxtx which offers an identical API as Sun did and their own native implementation for serial and parallel port handling; I have used both and the rxtx version is clearly superior to Sun's old version: http://www.rxtx.org
    This question popped up recently.
    tschodt wrote in [http://forums.sun.com/thread.jspa?messageID=10863769#10863769:}
    [Java Communications API|http://java.sun.com/products/javacomm/]
    Implementations of the API are currently available for Solaris SPARC, Solaris x86, and Linux x86.follow the Download link to find
    Sun no longer offer's the Windows platform binaries of javax.comm, however javax.comm 2.0.3 can be used for the Windows platform, by using it in conjunction with the Win32 implementation layer provided by the RxTx project. To use that, download javax.comm for the 'generic' platform (which provides the front-end javax.comm API only, without platform specific back-end implementations bundled). Then acquire the Windows binary implementation rxtx-2.0.7pre1 from http://www.rxtx.org.

  • User Authentication for subfolder not working in Web Browser

    We are using Oracle Application Server 10.1.2.3 and Database Server 10.2.0.5 for our application.
    One of the functionalities of the Application is to send emails with attachments.
    The logic is that the Application would generate the attachment file on the Application Server.
    Then a database package uses Oracle's utl_http package/procedures(more specifically utl_http.request_pieces where the single argument is a URL) to pick up the file from the Application Server via URL, attach the file and send the email.
    Exchange and Relay Server is also set in the Application.
    The problem is that the folder containing the folder which stores the attachments is having user authentication set.
    Example : The main folder is /apps/interface, this folder requires a valid user when it is accessed via URL on a web browser.
    Alias created in httpd.conf
    Alias /int-dir/ "/apps/interface/"
    The folder /apps/interface/email/ is the folder where the attachment files are generated and stored.
    Application Server : 10.12.213.21
    Database Server : 10.12.213.22
    Email Server : 10.12.213.44
    Configuration as per httpd.conf
    Alias /int-dir/ "/apps/interface/"
    <Location /int-dir/>
    AuthName "Interface folder"
    AuthType Basic
    AuthUserFile "/u01/app/oracle/as10g/oasmid/Apache/Apache/conf/.htpasswd"
    require user scott
    </Location>
    <Location /int-dir/email>
    Options Indexes Multiviews IncludesNoExec
         Order deny,allow
         Deny from all
         Allow from 10.12.213.21
         Allow from 10.12.213.22
         Allow from 10.12.213.44
    </Location>
    Using the above configuration the Application is able to attach the files and send the email, however, when we access the following URL :
    http://10.12.213.21:7778/int-dir/ - it prompts for user authentication
    However if we use the following URL :
    http://10.12.213.21:7778/int-dir/email/ - it does not prompt for user authentication, and all the files in the folder are displayed in the browser.
    I have tried so many things including AllowOverride, .htaccess, but i am not able to get user authentication for the email folder.
    Please help me if you can.
    Thanking you in advance,
    GLad to give any more information that i can.
    dxbrocky

    Thanks for your response.  I fixed the problem by selecting "full site" or "full website" at bottom of the web page.  After making this selection the zoom function returned.  Thanks again for your interest.

  • How to get digital signature for Google Map geocoding V3 in PL/SQL?

    Hi, Gurus:
        Could anyone provide me an example about how to generate digital signature for Google Maps service v3 in PL/SQL? We tried to upgrade our program using Google maps service from v2 to v3. We are using PL/SQl on background to send request to Google for geocoding. We found some sample code to register with digital signature, but none of them is based on PL/SQl. Notice I used Google business client ID "gme-XXX" and wallet.
    https://developers.google.com/maps/documentation/business/webservices/auth#digital_signatures
    Google Maps API - more URL signing samples
    Here is my code for V2. I notice in order to get signature, I need to use HMAC-SHA1 algorithm.
    procedure Get_Geocoding(P_s_Address in varchar2, P_s_Geocoding out varchar2, P_n_accuracy out number, P_b_success out boolean) is
      l_address varchar2(4000);
      l_url varchar2(32000);
      l_response varchar2(3200);
      n_first_comma number;
      n_second_comma number;
      n_level_length number;
    BEGIN
      /* TODO implementation required */
      l_address:=APEX_UTIL.URL_ENCODE(P_s_Address);
      l_address := replace(l_address,' ','+');
      l_url := 'http://maps.google.com/maps/geo?q='||l_address||'&'||'output=csv'||'&'||'client=gme-XXX';
    l_response := utl_http.request(l_url, APEX_APPLICATION.G_PROXY_SERVER, '/u02/app/oracle/admin/apexsb/wallet', 'XXXXXXXX');
      n_level_length:=0;
      n_first_comma:=instr(l_response,',',1,1);
      n_second_comma:=instr(l_response,',',1,2);
      n_level_length:=n_second_comma-n_first_comma-1;
      P_n_accuracy:=0;
      if n_level_length>0 then
      P_n_accuracy:=to_number(substr(l_response,n_first_comma+1, n_level_length));
      end if;
      l_response:=substr(l_response,instr(l_response,',',1,2)+1);
      --dbms_output.put_line('In function: l_response ='||l_response);
      P_s_Geocoding:=l_response;
      if (P_s_Geocoding<>'0,0') then
      P_b_success:=true;
      --dbms_output.put_line('true');
      else
      P_b_success:=false;
      --dbms_output.put_line('false');
      end if;
    END;
    Thanks!

    Hi, guys:
        I tried to generate digital signature for Google map service
         Maps for Business: Generating Valid Signatures - YouTube
        Generating an HMAC-SHA-1 Signature Using Only PL/SQL
          OAuth and the PL/SQL | Data Warehouse in the Cloud
       but I got error message from Google:
    Unable to authenticate the request. Provided 'signature' is not valid for the provided client ID. Learn more: https://developers.google.com/maps/documentation/business/webservices/auth
       I think there is something wrong with my code to generate signature, as if I remove the part regarding client and signature, it will work, can anyone help me on this problem?
    /*Procedure Get_Geocoding is used to get geocoding with accuracy level for V3 business account, you can find Google map digital signature descrirption from
    https://developers.google.com/maps/documentation/business/webservices/auth#digital_signatures
    if geocoding is 0,0, procedure returns false to indicate failure of get geocoding*/
    procedure Get_Geocoding2(P_s_Address in varchar2, P_s_Geocoding out varchar2, P_n_accuracy out number, P_b_success out boolean) is
      --private key for Google business account, this is provided by Google with client name.
      l_private_key_src varchar2(200):='xxxxxxxxxxxxxxxxxxx';
      l_private_key_b64_alter varchar2(200):= translate(l_private_key_src,'-_','+/');
      l_private_key_bin raw(2000);
      l_client_name varchar2(100):='gme-xxx';
      l_signature_mac raw(2000);
      l_signature_b64 varchar2(200);
      l_signature_b64_alter_back varchar2(200);
      l_Google_service_domain varchar2(200):='http://maps.googleapis.com';
      l_address varchar2(4000);
      l_url varchar2(32000);
      l_path varchar2(32000);
      l_response varchar2(32000);
      l_page UTL_HTTP.HTML_PIECES;
      n_actual_length number;
      json_obj json;
      json_tempobj json;
      jl_listOfValues json_list;
      json_geom_obj json;
      json_loc json;
      l_lat  VARCHAR2(40);
      l_lng  VARCHAR2(40);
      l_status VARCHAR2(255);
      json_accuracy json;
      --temp_string varchar2(10000);
      n_first_comma number;
      n_second_comma number;
      n_level_length number;
      BEGIN
    /* TODO implementation required */
    l_private_key_bin := utl_encode.base64_decode(UTL_I18N.string_to_raw(l_private_key_b64_alter, 'AL32UTF8'));
    l_address:=APEX_UTIL.URL_ENCODE(P_s_Address);
    --dbms_output.put_line(l_address);
    l_address := replace(l_address,' ','+');
    l_path := '/maps/api/geocode/json?address='||l_address||'&'||'sensor=true';
    dbms_output.put_line(l_path);
    l_signature_mac :=DBMS_CRYPTO.mac(UTL_I18N.string_to_raw(l_path, 'AL32UTF8'), DBMS_CRYPTO.hmac_sh1,l_private_key_bin);
    l_signature_b64:= UTL_RAW.cast_to_varchar2(UTL_ENCODE.base64_encode(l_signature_mac));
    l_signature_b64_alter_back:=translate(l_signature_b64,'+/','-_');
    dbms_output.put_line(l_signature_b64_alter_back);
    --get response from Google map service
    l_url:=l_Google_service_domain||l_path||'&client='||l_client_name||'&signature='||l_signature_b64_alter_back;
    --l_url:=l_Google_service_domain||l_path;
    dbms_output.put_line(l_url);
    l_page:=utl_http.request_pieces( l_url, 99999);
    for i in 1..l_page.count loop
    l_response:=l_response||l_page(i);
    end loop;
    n_actual_length:=length(l_response);
    dbms_output.put_line(n_actual_length);
    dbms_output.put_line(l_response);
    --parse JSON result
    json_obj:=new json(l_response);
    l_status := json_ext.get_string(json_obj, 'status');
    IF l_status = 'OK' then
    jl_listOfValues := json_list(json_obj.get('results'));
    json_tempobj := json(jl_listOfValues.get(1));
    json_geom_obj := json(json_tempobj.get(3));
    json_loc := json_ext.get_json(json_geom_obj, 'location');
    l_lat := to_char(json_ext.get_number(json_loc, 'lat'));
    l_lng := to_char(json_ext.get_number(json_loc, 'lng'));
    P_s_Geocoding:=l_lat||','||l_lng;
    dbms_output.put_line('##########'||P_s_Geocoding);
    case json_ext.get_string(json_geom_obj, 'location_type')
    when 'ROOFTOP' then P_n_accuracy:=9;
    when 'RANGE_INTERPOLATED' then P_n_accuracy:=7;
    when 'GEOMETRIC_CENTER' then P_n_accuracy:=5;
    else P_n_accuracy:=3;
    end case;
    P_b_success:=true;
    else
    P_b_success:=false;
    P_n_accuracy:=0;
    P_s_Geocoding:='0,0';
    end if;
      END;

  • Show pdf with wpg_docload

    I am trying to:
    Call a procedure in the db from Forms (904) through web.show_document, using a DAD, which will save a pdf-report (904) in a blob and after that show it in the new window. I get the pdf-report from a url to the report servers cache.
    The report is saved in the table but when I try to call wpg_docload to show it I get a message from acrobat reader saying that the document doesn't begin with %PDF- but when I store the same pdf-report locally, I can see the %PDF- in the beginning of the file.
    This is what my procedure looks like:
    procedure blob_ex(p_url) is
    v_buffer raw(2000);
    v_buffer_size integer := 2000;
    v_offset integer := 1;
    v_length number;
    v_pieces utl_http.html_pieces;
    v_blob blob;
    v_url varchar2(2000);
    begin
    v_blob := empty_blob();
    dbms_lob.createtemporary(v_blob,true);
    v_pieces := utl_http.request_pieces(p_url,64000);
    for i in 1 .. v_pieces.count loop
    v_buffer := utl_raw.cast_to_raw(v_pieces(i));
    v_buffer_size := utl_raw.length(v_buffer);
    dbms_lob.writeappend(v_blob, v_buffer_size, v_buffer);
    end loop;
    insert into
    blobtable(id, report_file) values
    (seqence.nextval
    ,v_blob);
    commit;
    owa_util.mime_header('application/pdf', FALSE);
    owa_util.http_header_close;
    wpg_docload.download_file(v_blob);
    end;
    Does anyone have a solution on this problem, or can anyone see what I am doing wrong?

    hi
    i want javascript code, which show pdf with bookmark on ios(ipad).
    i am developing a native app in ios with objective c. In my app i need read & show PDF with bookmark.
    So if any javascript availble to read and show, please let me know.
    Thanks in advance for your help.

  • Download a file from the web

    Helo,
    I have to download a file from the web and copy it to the file system (ex: download from http://172.26.20.22/test.csv to \\server01\teste.csv).
    I must do this using only pl/sql and java sources, I have to do this calling a procedure from pl/sql and the server doesn't have any component installed.
    I've built a java procedure using java to download the file, but it give-me AccessControlException when trying to download.
    Can anyone tel me what permissions I should have to accomplish this? Is there any other easier way?
    Thanks.

    Thanks a lot! Your post was very helpfull.
    I create a procedure do download the file from the web and record in a network share.
    But I'm still having a problem while writing that each line in my source file generate a duplicate line in my destination one.
    Can you help me with that problem to?
    Thanks
    My procedure is below:
    create or replace procedure SP_DOWNLOAD(astr_url_orig varchar2, astr_cam_dest varchar2, astr_nome_arq_dest varchar2) is
    l_pagina utl_http.html_pieces;
    l_arquivo utl_file.file_type;
    begin
    l_pagina := utl_http.request_pieces(astr_url_orig);
    l_arquivo := utl_file.fopen(astr_cam_dest, astr_nome_arq_dest, 'W');
    for i in 1 .. l_pagina.count
    loop
    utl_file.put_nchar(l_arquivo, l_pagina(i));
    dbms_output.put_line(l_pagina(i));
    end loop;
    utl_file.fclose(l_arquivo);
    end SP_DOWNLOAD;

  • Insert XML data into a diferents fiels in a TABLE.

    We have an xml to import in to a table with XMLType of fields.
    The xml file has on field that the content of that field is a full xml file.
    Example.
    <BD>
    <J>
    <T> 1212 </T>
    </J>
    <BDI>
    <INFO><?xml version="1.0" encoding="UTF-8"?> <BuriedDropTask xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="buriedDropSchema.xsd"> <TaskName>UTFS277779</TaskName>.......
    <PhoneNumber>303303033</PhoneNumber>......
    </INFO>
    </BDI>
    </BD>
    This is just an idea and not the actual document.
    We need to insert in a table the data from <J> </J> and some fields of the ineer document like <BuriedDropTask> </BuriedDropTask> to other field in the same table to process the data.
    What is the rigth process to follow?
    The previus programmer was using utl_http.request_pieces to read the xml from an url and acummulated in a varchar2 variable. But the process is not working.
    Thank you for your help in advance.
    Jose Galan

    The XML file with <?xml?> somewhere inside the tags is not valid.
    I think, at first stage the unneeded garbage should be striped of with replace/instr/whatever.
    Then extract() functions should be applied to bulk process the XML.
        insert into tasks (id, t, task_name)
        select tasks_seq.nextval
               t,
               task_name
          from (
            select extractvalue(xml, '//J/T') t,
                   extractvalue(xml, '//BDI/INFO/TaskName') task_name
              from (
                  select extract(xml, '/BD') xml from xml_table
          )

  • Rw_server_queue problem

    Hi,
    We are using reports6i for generating xml reports. We submit the report requests through the url inside a PL/SQL block using the UTL_HTTP package. We are using rw_server package for querying the status of these requests.
    When we submit the report request using the UTL_HTTP.request(), the report server makes an entry into the rw_server_queue table which we are querying to get the status of the report request.
    Here we are facing a problem. When we submit the report requests in bulk and query the rw_server_queue table each time after we get the response back, some times we dont find the record present in the rw_server_queue table for a fraction of time.
    We were under the impression that the report server makes an entry into the rw_server_queue table in real time.
    We want to know if there is actually any delay after the report server has returned the response and before making an entry in rw_server_queue table.
    If there is any delay, how do we go about in our case as we want to get the status of the report request immediately after getting the response from the server.
    Regards,
    Milton

    I have seen the table show "ENQUEUE" or status_code of 1 many times but when looking at the report status with Report Server Queue, it shows a different status like OPENING (status_code of 2). Eventually, it will update the status but I don't rely on the code in the table for running, enqueue, or unknown. It seems like it is only reliable for status codes >= 4.
    However, utl_http.request does not return until the report finishes. For it to return quickly and then you are checking the status of the report, I am guessing you are specifying the destype=file. Try using destype=cache and use utl_http.request_pieces (returns table of varchar2(2000)) and then store the XML as a LOB in the database. Then you simply print the LOB by converting it to varchar2. Be sure to set the mime type correctly before printing it.

Maybe you are looking for

  • Error while executing the Process through GP Runtime

    Hi All,        I have created a Process        Sequential Block                Action 1                Action 2 When i am running the process in the GP Runtime , the Action is executed and the View is displayed. When we click on the Submit button whi

  • Cannot View Thumbnails in Full Screen

    I imported 195 photo from my SD memory card to iphotos. I had a problem importing a .avi file to iphotos when I was importing the 195 photos which warranted a force quit to bypass the spinning beachball. The pictures all now show in Thumbnails and wh

  • MAC PRO PROBLEM TO PRINT PDF BY Xerox ColorQube 9203 WITH ACCOUNTING

    We have Xerox ColorQube 9203 with Standard Accounting Enabled and we managed to connect to this printer. But the problem is we can print from email but we could not be able to print from Adobe Reader or any PDF. Any help

  • Add Image in WPC advanced paragraph

    Has anybody tried using the insert image button in the Advanced paragraph section of an Article in WPC. I tried it, it just doesnt add it !!

  • Opening Indesign file triggers random document opens

    I am working in Indesign CC 2014 am having a particularly odd glitch when opening documents, where, on opening they seem to trigger the opening of other Indesign documents without me even clicking anywhere - let alone wanting to open them in the firs