I get the error message like "error - ORA-29273 report: failure of the HTTP ORA-06512: at"SYS. " UTL_HTTP", line 1130 ORA-12535: TNS:operation expired ORA-06512: 37 29273 line. 00000 - "HTTP request failed" * Cause: package UTL_HTTP The Impossible to run

I have tried the code

DECLARE

lv_url VARCHAR2 (1000): = ' http://shenzhoufellowship.org/main2/files/old/SpecialTopics/TheLoveDare.pdf';

lc_return BLOB;

lhttp_url httpuritype.

Varriables - declared to have written the LOB to pdf file-

l_file UTL_FILE. TYPE_DE_FICHIER;

l_buffer RAW (32767).

l_amount directory: = 32767;

l_pos INTEGER: = 1;

l_blob BLOB;

l_blob_len INTEGER.

BEGIN

-create URIs

lhttp_url: = httpuritype.createuri (lv_url);

-get the PDF document

lc_return: = lhttp_url.getblob ();

-Open the destination file.

l_file: = UTL_FILE. FOPEN ('MBO_INPUT_DIR', 'MBD.zip', 'wb');

-Get the total length of the BLOB

l_blob_len: = DBMS_LOB.getlength (lc_return);

-Pieces of the BLOB to read and write to the file

-full up.

While l_pos < l_blob_len LOOP

DBMS_LOB. READ (lc_return, l_amount, l_pos, l_buffer);

UTL_FILE.put_raw (l_file, l_buffer, FALSE);

l_pos: = l_pos + l_amount;

END LOOP;

-Closes the file.

UTL_FILE. FCLOSE (l_file);

EXCEPTION

WHILE OTHERS THEN

-Close the file if something goes wrong.

IF UTL_FILE.IS_OPEN (l_file) THEN

UTL_FILE. FCLOSE (l_file);

END IF;

LIFT;

END;

But make a mistake like:

Error report-

ORA-29273: HTTP request failed

ORA-06512: at "SYS." UTL_HTTP", line 1130

ORA-12535: TNS:operation expired

ORA-06512: at line 37 level

29273 00000 - "the HTTP request failed.

* Cause: The UTL_HTTP package cannot run the HTTP request.

* Action: Use get_detailed_sqlerrm to check the detailed error message.

Correct the error and restart the HTTP request.

Please suggest a solution. Is it possible to download a zip file with the same code?

[oracle@localhost ~]$ sqlplus scott/tiger

SQL*Plus: Release 11.2.0.1.0 Production on Mon Apr 6 13:59:09 2015

Copyright (c) 1982, 2009, Oracle.  All rights reserved.

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> --My Database version
SQL> ----------------------
SQL> SELECT * FROM v$version;

BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
PL/SQL Release 11.2.0.1.0 - Production
CORE    11.2.0.1.0      Production
TNS for Linux: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production

SQL> ed
Wrote file afiedt.buf

  1  DECLARE
  2        lv_url    VARCHAR2(500) := 'http://shenzhoufellowship.org/main2/files/old/SpecialTopics/TheLoveDare.pdf';
  3        lc_return BLOB;
  4        lhttp_url httpuritype;
  5        ---Varriables declared for writing the LOB to pdf file --
  6        l_file     UTL_FILE.FILE_TYPE;
  7        l_buffer   RAW(32767);
  8        l_amount   BINARY_INTEGER := 32767;
  9        l_pos      INTEGER := 1;
10       l_blob     BLOB;
11       l_blob_len INTEGER;
12     BEGIN
13       --create uri
14       lhttp_url := httpuritype.createuri(lv_url);
15       --get the PDF document
16       lc_return := lhttp_url.getblob();
17       -- Open the destination file.
18       l_file := UTL_FILE.FOPEN('SAUBHIK', 'TheLoveDare.pdf', 'wb');
19       --Get the total length of the BLOB
20       l_blob_len := DBMS_LOB.getlength(lc_return);
21       -- Read chunks of the BLOB and write them to the file
22       -- until complete.
23       WHILE l_pos < l_blob_len LOOP
24         DBMS_LOB.READ(lc_return, l_amount, l_pos, l_buffer);
25         UTL_FILE.put_raw(l_file, l_buffer, FALSE);
26         l_pos := l_pos + l_amount;
27       END LOOP;
28       -- Close the file.
29       UTL_FILE.FCLOSE(l_file);
30     EXCEPTION
31       WHEN OTHERS THEN
32         -- Close the file if something goes wrong.
33         IF UTL_FILE.IS_OPEN(l_file) THEN
34           UTL_FILE.FCLOSE(l_file);
35         END IF;
36         RAISE;
37*    END;
38  /
DECLARE
*
ERROR at line 1:
ORA-29273: HTTP request failed
ORA-06512: at "SYS.UTL_HTTP", line 1130
ORA-24247: network access denied by access control list (ACL)
ORA-06512: at line 36

SQL> conn sys as sysdba
Enter password:
Connected.
SQL> ed
Wrote file afiedt.buf

  1  BEGIN
  2    DBMS_NETWORK_ACL_ADMIN.CREATE_ACL(acl         => 'love.xml',
  3                                      description => 'Love ACL',
  4                                      principal   => 'SCOTT',
  5                                      is_grant    => true,
  6                                      privilege   => 'connect');
  7    DBMS_NETWORK_ACL_ADMIN.ADD_PRIVILEGE(acl       => 'love.xml',
  8                                         principal => 'SCOTT',
  9                                         is_grant  => true,
10                                         privilege => 'resolve');
11    DBMS_NETWORK_ACL_ADMIN.ASSIGN_ACL(acl  => 'love.xml',
12                                      host => 'shenzhoufellowship.org');
13  commit;
14* END;
15  /

PL/SQL procedure successfully completed.

SQL> conn scott/tiger
Connected.
SQL> ed
Wrote file afiedt.buf

  1  DECLARE
  2        lv_url    VARCHAR2(500) := 'http://shenzhoufellowship.org/main2/files/old/SpecialTopics/TheLoveDare.pdf';
  3        lc_return BLOB;
  4        lhttp_url httpuritype;
  5        ---Varriables declared for writing the LOB to pdf file --
  6        l_file     UTL_FILE.FILE_TYPE;
  7        l_buffer   RAW(32767);
  8        l_amount   BINARY_INTEGER := 32767;
  9        l_pos      INTEGER := 1;
10       l_blob     BLOB;
11       l_blob_len INTEGER;
12     BEGIN
13       --create uri
14       lhttp_url := httpuritype.createuri(lv_url);
15       --get the PDF document
16       lc_return := lhttp_url.getblob();
17       -- Open the destination file.
18       l_file := UTL_FILE.FOPEN('SAUBHIK', 'TheLoveDare.pdf', 'wb');
19       --Get the total length of the BLOB
20       l_blob_len := DBMS_LOB.getlength(lc_return);
21       -- Read chunks of the BLOB and write them to the file
22       -- until complete.
23       WHILE l_pos < l_blob_len LOOP
24         DBMS_LOB.READ(lc_return, l_amount, l_pos, l_buffer);
25         UTL_FILE.put_raw(l_file, l_buffer, FALSE);
26         l_pos := l_pos + l_amount;
27       END LOOP;
28       -- Close the file.
29       UTL_FILE.FCLOSE(l_file);
30     EXCEPTION
31       WHEN OTHERS THEN
32         -- Close the file if something goes wrong.
33         IF UTL_FILE.IS_OPEN(l_file) THEN
34           UTL_FILE.FCLOSE(l_file);
35         END IF;
36         RAISE;
37*    END;
38  /

PL/SQL procedure successfully completed.

SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@localhost ~]$ cd saubhik/
[oracle@localhost saubhik]$ pwd
/home/oracle/saubhik
[oracle@localhost saubhik]$ ls -l *.pdf
-rw-r--r-- 1 oracle oinstall 60055 Apr  6 14:03 TheLoveDare.pdf
[oracle@localhost saubhik]$

I love this pdf file. I would like to read this and mean while if you get an error then please post in its entirety and also think that it is an Oracle error or network.

Tags: Database

Similar Questions

  • Error when creating a Web Service reference. ORA-29273: HTTP request failed ORA-12535: TNS:operation expired

    I have a need to call a web service from an APEX application, so I thought I'd try to experience everything first call a web service that is accessible to the public from W3Schools.  The URL of the WSDL that I use is:

    http://www.w3schools.com/webservices/TempConvert.asmx?WSDL

    The 1st thing I try in APEX is to create a Web Service based on the above URL reference.  Problem is that I get the following error:

    ORA-29273: HTTP request failed ORA-12535: TNS:operation expired

    Any ideas?

    I even tried with some other URL WSDL and always the same exact error.

    Thanks in advance.

    Hello

    Maybe your database server have firewall that blocks to internet connection?

    Kind regards
    Jari

  • Unhandled exception in AXFCustom.launch_command_soap SQLCODE =-29273: ORA-29273: HTTP request failed error when clicking on the EBS Zoom button

    Hello

    I use Oracle EBS, whenever I click on the Zoom button I get the error at the bottom of the page below.

    Unhandled exception in AXFCustom.launch_command_soap SQLCODE =-29273: ORA-29273: HTTP request failed

    When I checked the master.log file I see the error log entry below.

    < SNIP >

    path Wallet AXFCustom.launch_command_soap = file:/u020/dba/wci-wallet/sd12t-wallet 23/03/2015-22:09:44

    23/03/2015-22:09:55 unhandled exception in AXFCustom.launch_command_soap SQLCODE =-29273: ORA-29273: HTTP request failed

    ORA-06512: at "SYS." UTL_HTTP", line 1130

    ORA-29106: could not import the PKCS #12 wallet.

    ORA-06512: at the 'APPS '. AXF_SOAPCALL', line 14

    23/03/2015-22:09:55 AXFCustom.main: output

    < / SNIP >

    Please provide your input on this.

    Thank you

    Shakeel

    Hi Shakeel,

    This error occurs when there is some value (which is unnecessary) present in the column "AXF_WalletKey."

    To resolve the above error, please follow the steps below.

    1. connect to AXF schema using SQL developer.

    2. run the command AXF diagram below.

    Call fnd_vault.put ('AXF ', 'AXFWalletKey',' ');

    commit;

    3. disconnect the session of EBS log on again and check the Zoom button.

    Kind regards

    Rahul

  • I am trying to download the trial of Acrobat DC and the error message "HTTP request failed.

    I am trying to download the trial of Acrobat DC and the error message "HTTP request failed.  I have a PC and have tried to use Chrome and IE 11, assured pop - ups are enabled for this site, etc.  Thoughts on how to proceed?

    Kindly try to download Acrobat products | Standard, Pro | DC, XI, X from there.

    Let us know if that helps.

  • access the web service WSDL (https) - ORA-29273: HTTP request failed

    I use 11g (11.2.0.1.0)

    I've already implemented a function that access a WSDL service, sending a XML request with answer. It is an HTTPS service and I had successfully setup the configuration of the ACL.
    Wallets and certificates were also imported according to the needs.
    However, it has stopped working and I get the following errors, which I can't find out why?

    ORA-29273: HTTP request failed
    ORA-06512: at "SYS." UTL_HTTP", line 1130
    ORA-12545: Connect failed because target host or object does not exist

    The same service works perfectly for an another database 11g...

    Any ideas?

    AndreasCon wrote:

    ORA-12545: Connect failed because target host or object does not exist

    This error means generally that the socket connect command failed, because the host name has not be resolved to an IP or IP connection failed.

    What is the URL that you use? It contains a host name? If so, how PL/SQL solves that one IP (use utl_inaddr.get_host_address () to determine that)?

    What is a valid IP address for the host? Connectivity to this IP address works of your Oracle (test using telnet on port https to IP) Server?

    Looks like on this server host name resolution is not working / configured correctly (saw that the code works on other servers).

  • The HTTP request failed

    Tricks to work around the error message "HTTP Request Failed" when you download Acrobat Pro on a PC running Windows 7?

    clear your adobe.com cookies or use a different browser.

    Available downloadable Setup files:

    Download and installation help links Adobe

    Help download and installation to Prodesigntools links can be found on the most linked pages.  They are essential; especially steps 1, 2 and 3.  If you click on a link that does not have these listed steps, open a second window by using the link to Lightroom 3 to see these "important Instructions".

  • I installed CS5 on macbook pro 10.9.4. I can't get the update to run to update the applications to the latest version. He said that there was an error trying to download the update and try again later.

    I installed CS5 on macbook pro 10.9.4. I can't get the update to run to update the applications to the latest version. He said that there was an error trying to download the update and try again later.

    update directly: http://www.adobe.com/downloads/updates/

  • HTTP request failed during installation

    Download the free Acrobat Pro and got the error "HTTP request failed.

    Hi email939,

    Please read https://forums.adobe.com/thread/1499014

    -try some steps such as changing browsers and disable your firewall

    -also clear the cache of your browser if you start with a fresh browser

    -check the file hosts for blocked entries https://forums.adobe.com/thread/1912777

    http://myleniumerrors.com/installation-and-licensing-problems/creative-cloud-error-codes-w ip.

    https://helpx.Adobe.com/creative-cloud/KB/creative-cloud-desktop-application-failed.html

    http://helpx.Adobe.com/creative-cloud/KB/failed-install-creative-cloud-desktop.html

    or

    A chat session where an agent can remotely look inside your computer can help

    Go to "adobe.com/getsupport" after the signature using Adobe ID, select 'always need help contact us' to the chat session started.

    I would like to know if it works.

    Kind regards

    Christian

  • Installer won't work, indicating that a file may be missing. How to get the installer to run?

    I am running Windows & and downloaded CS6 Master Collection and when I try to run the config file, I get an error indicating that a file is maybe missing and to download and run a couple of potential fixes.  I did, but I have the same error of ge.  I tried only download Photoshop 6 and run this configuration file, but get the same result.  I run other non Adobe without any problem of product configuration files.  What can I do to get the installer to run?

    Move the files to your destop configuration and click "Run as Administrator".

    If this fails, you probably have a corrupt download and should re-download the Installer file.

    For more specific help, attach a screenshot of the error message.

  • I have a plan with adobe photoshop and lightroom.  The lightroom works fine, but I can't get the photoshop to run.  I have to go back to an old copy of photoshop to do the work.  All thoughts

    I have a plan with adobe photoshop and lightroom.  The lightroom works fine, but I can't get the photoshop to run.  I have to go back to an old copy of photoshop to do the work.  All thoughts

    Thank you for your help.  I just downloaded the Photoshop CC2015 for the 7th time and it now seems to work fine.  Sorry to have bothered you... It is good to know that there are people like you who will help if necessary.

    Thanks again.

  • I use CS5.1 and cannot open it all at once. I get the prompt to get the SC6 JAVA run-time inheritance.  I installed, but still cannot open Photoshop. Any ideas?

    I use CS5.1 and cannot open it all at once. I get the prompt to get the SC6 JAVA run-time inheritance.  I installed, but still cannot open Photoshop. Any ideas?

    Would you please install Adobe Application Manager from the link below, then try again to install the application again:

    Adobe - Adobe Application Manager: for Macintosh: Adobe Application Manager

    ~ Sarika

  • Get the error: ORA-01460: letter dead or unreasonable conversion requested

    Hello

    I created a Page in Oracle APEX, I have a textarea element Page. I created a Page process on the "submit" button to insert text box data in the CLOB column in a table. If the data in the text box is less than 4,000 characters, it works fine, but if the data exceeds 4000 I get the below error:

    "Error during the processing of validation.

    "ORA-01460: letter dead or unreasonable conversion requested".

    Here's my process of Page:

    declare

    CLOB v_notes;

    Start

    v_notes: = wwv_flow_utilities.clob_to_varchar2(:P1_NOTES);

    INSERT INTO ENQ_DETAILS (ENQUIRY_TYPE,STOCKS,NOTES,CREATED_BY)

    VALUES (1,: P1_RESPONSE_ACTION, v_notes,: APP_USER);

    end;

    Can someone help me please?

    Chaitali salvation,

    Check this plugin: Enkitec CLOB support

    Kind regards

    Jitendra

  • ORA-29273: HTTP request failed ORA-06512: at "SYS." UTL_HTTP", line 1130 ORA-29024: certificate validation failure

    Hello

    I explore APEX so that I can use it for ETL in BIC. I created a RESTful service in http://apex.oracle.com using the Oracle video and available documentation and then created a database application in the apex with form and reports. It is all good but when I run the form and enter the value of the variable I get this error below.

    I think it must be something to do with the certificate or user identification information, but where can I create and import the wallet. I'm not trying to access the url outside the site of the apex.  I tried to get some information about Ko, but he talks about the creation of portfolio and import, but it does not make any sense to me.

    Hi Anjum Ara,

    Anjum Ara wrote:

    Hi Kiran

    Thank you for your response.

    I understand the part of the certificate that you mentioned, but I'm not able to get a clear picture as to where should I create the portfolio and import certificates. I use https://apex.oracle.com , I don't have access to the servers where this forum is hosted. I'm missing something basic here or I've got it all wrong.

    .

    You must configure the portfolio and ACL to the database instance where you want to consume web services HTTPS.

    In this case if you want to consume the web service on an application workspace apex.oracle.com, you must set up the portfolio and ACL on apex.oracle.com.

    And as apex.oracle.com is hosted Oracle apex Forum and it is intended for the purpose of demonstration only according to the warning posted on the site I think it is not possible to set up the wallet and the ACL because this requires access to the DBA database.

    The best possible alternative is to host your own instance of APEX.

    I hope this helps!

    Kind regards

    Kiran

  • I get an error dw20.exe reports box which appears randomly when I'm on the internet.

    I get an error reports box which opens randomly when I'm on the internet. How can I remove or whatever so I don't get my internet connection stopped whenever appears the dw20.exe on-screen error? RONALD OTOOLE

    STILL NEED AN ANSWER

    I can't follow your directions.

    Step 1 YES I DID... Press 'Ctrl', 'Alt', 'Delete' set to open Windows Task Manager. Click on 'Process' to display all processes running on your computer.

    Step 2... HE DIDN'T THERE WAS NO DW20. EXE IS DISPLAYED... Scroll down and click on "DW20.exe" if she's here. Click on "End process." If it is not active, go to the next step to disable and delete startup.

    Step 3... OK... "COMPUTER"click on the Windows "Start" button and click on 'My computer'. Scroll down and click on 'Manage' in the context menu.

    Step 4... Ok.. Click on "Services and Applications" on the left side of the window of the computer management window. Click on 'Services '.

    Step 5... I HAVE NOT POSTED "MICROSOFT APPLICATION ERROR REPORTING. Scroll down the right panel, double-click "Microsoft Application Error Reporting". Select 'Disabled' in the 'Startup Type' window and click on 'OK '. Close the services window. This deletes the startup error and it prevent the execution.

    THE DW20. EXE APPEAR RANDOMLY WHEN I BROWSE THE INTERNET OR READ EMAILS.  I have TO RESTART IE TO RETURN to the INTERNET, AND USUALLY, I DO NOT SEE the DW20. EXE ERROR AGAIN BUT SOMETIMES THE LAW OF ERROR DW20 OUT.

    Thank you for your answer
    Ron OToole
    RONALD OTOOLE

    See How to remove DW20.exe Microsoft Security MVP, 2004-2010

  • The following HTTP requests fail in the Simulator, but not on the device (4.2.1)

    Anyone had this problem before?  I do a HTTP request and then according to the return add another to my queue and the other repeatedly fails on the Simulator.  However, I tried to run on the device and everything worked perfectly.  I know this is a pretty vague description, but I was wondering if there was any problem known about.  He could make debugging in the simulator that is very difficult in the future.

    marchywka, I think it has something to do with the WiFi in the Simulator.  It works the first time, but in certain circumstances later fail.

    I couldn't understand it, but I decided to not use WiFi when it is the Simulator and use WiFi on the device.

Maybe you are looking for

  • AirPlay does not have El Capitan 10.11.2 (15 c 50)

    After the upgrade to El Capitan 10.11.2 (15 c 50) iTunes crashes when you try to connect to the airplay, n D7050 device. Computer's MacBook Pro (retina, 13-tòmmers, first half of 2015)

  • PsExec.exe Runing on labview2012 with Exec.vi system

    I have problem on this, it will signal erroe to run PsExec.exe using the 'Exec.vi system'. It works well on the Labview8.6 version, but has problems on Labview2012. Could someone help?

  • My HDMI port plays up.

    I don't know if I need to fix the port itself or make other things first before considering to have it repaired?

  • Cannot use the back button on the Web PDF pages

    I Windows 7, Internet Explorer (IE) 11 and Adobe Reader DC, all day. Whenever I go to a PDF Web page by clicking on a link in the Google search results and then want to return to the search results page by clicking the back button on the browser, it

  • How to get the dimensions of pageItems?

    Hi allI want to get the dimensions of all the parts WRT a page. So far, I am able to get the exact dimensions of the graphics framework.But in the case of a block of text, Im getting different values than expected.I'm after that...IGeometry create 1)