UTL_HTTP and inaccessible tns:destination

I'm running the OTN Dev days VM VirtualBox. Usually at home with specified network as filled with the interface settings defined as wlan0. However, yesterday, I plugged it upward on the network - so the settings remained the same, except for the interface has been changed to eth0, since this is the interface used. All right.

However, after his return, reception and departure to the top of the machine, seems no longer to be able to use utl_http to issue http requests. I get the following error:
ORA-29273: HTTP request has no
ORA-06512: at "SYS." UTL_HTTP", line 1130
ORA-12543: TNS:destination host unreachable
ORA-06512: at line 6
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.
Resolve the error and start the HTTP request. >

And it is with the execution of the following code example (or anything else):
declare
  req utl_http.req;
  res utl_http.resp;
begin

  req := utl_http.begin_request('http://google.com');
  res := utl_http.get_response(req);
  utl_http.end_response(res);

end;
I had a quick look, but the only other examples I see is people not having problems connecting to the database, however, there is no problem.

In case there is any utility, here's the tnsname.ora:
# tnsnames.ora Network Configuration File: /home/oracle/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.

LISTENER_ORCL =
  (ADDRESS = (PROTOCOL = TCP)(HOST = 0.0.0.0)(PORT = 1521))


ORCL =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 0.0.0.0)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = orcl)
    )
  )

TTORCL =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = orcl)
    )
  )
and listener.ora:
# listener.ora Network Configuration File: /home/oracle/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
# Generated by Oracle configuration tools.

LISTENER =
  (DESCRIPTION_LIST = 
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 0.0.0.0)(PORT = 1521))
    )

    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 0.0.0.0)(PORT = 80))
      (PROTOCOL_STACK =
         (PRESENTATION = HTTP)
         (SESSION = RAW)
      )
    )
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 0.0.0.0)(PORT = 21))
      (PROTOCOL_STACK =
         (PRESENTATION = FTP)
         (SESSION = RAW)
      )
    )
  )
ADR_BASE_LISTENER = /home/oracle/app/oracle
Networking works very well. I can verify this with:
$ ping google.com
PING google.com (74.125.237.8) 56 (84) bytes of data.
64 bytes from syd01s04 - in - f8.1e100 .net (74.125.237.8): icmp_seq = 1 ttl = 57 time = 12.2 ms
64 bytes from syd01s04 - in - f8.1e100 .net (74.125.237.8): icmp_seq = 2 ttl = 57 time = 13.3 ms >

and:
$ telnet google.com 80
2404:6800:4006:800:1001 train...
Telnet: connect to address 2404:6800:4006:800:1001: no route to host
74.125.237.8 by train...
Connected to google.com (74.125.237.8).
[Escape character is ' ^]'.
^]
Telnet > output
? Invalid command
Telnet > closed connection. >

There is not a lot in the virtual machine, I have just re - create, but thought that it would be better to understand what is happening! Anyone have any ideas? Much appreciated!

Trent wrote:
I'm running the OTN Dev days VM VirtualBox. Usually at home with specified network as filled with the interface settings defined as wlan0. However, yesterday, I plugged it upward on the network - so the settings remained the same, except for the interface has been changed to eth0, since this is the interface used. All right.


I'm not a network type and have never used the http packets, but since you're on VirtualBox, let me explain how to configure my VB based virtual machine. I have several running on my Win7 Home Premium laptop - running Oracle Linux 5.7 x 86-64 or Win Server 2003. Maybe this will help.

When I created a virtual machine on my laptop, I have three non-negotiable goals:
(1) it must have a fixed IP address to act as a server 'correctness '.
(2) the virtual machine should not be visible to my company or ISP network administrators.
(3) it must be able to access the internet in order to access the oracle yum public server

Unfortunately, the VB THAT manages its network, the only way to access the internet is to use NAT or bridged. Bridged means that my vm has an IP address on the local network and is therefore visible for net admins. The VB NAT work, it requires a DHCP address. (VMware implements NAT with the bridge, which allows a virtual NIC unique to have a fixed IP and always hide behind the host operating system when you talk to the local network)

Two achieve my objectives in VB I create eth0, eth1, and two network adapters.
Eth0 is configured as "host-only '. This allows me to give the virtual machine a fixed IP address, but the address is only visible by the host operating system or other virtual computers on the same network host VB.
eth1 is configured as NAT. This allows me to access the internet while hiding behind the host operating system.

With the above configuration, my vm can access the internet, it can not be seen by my network admins, it has a fixed IP address which can be referenced by clients running on the host, including sqlplus and PuTTY operating system. I create an entry for it in the local hosts file on the host operating system and the vm itself.

Tags: Database

Similar Questions

  • Problems with UTL_HTTP and problems of access to the network

    I have a similar problem to what is already on the next thread

    https://forums.Oracle.com/thread/2454508

    But were unable to come to any solution so more need help!

    I have this all works well from my local laptop, but I am not able to run our test (behind a layer switch 7) Server

    -- Testing for google.com
    
    BEGIN
      DBMS_NETWORK_ACL_ADMIN.create_acl (
        acl          => 'google.xml',
        description  => 'Google ACL Control List',
        principal    => 'TEST_USER',
        is_grant     => TRUE,
        privilege    => 'connect');
    /
    
    BEGIN
      DBMS_NETWORK_ACL_ADMIN.assign_acl (
        acl         => 'google.xml',
        host        => 'google.com');
    END;
    /
    
    
      COMMIT;
    END;
    /
    

    Run the following as TEST_USER

    SQL> select utl_http.request('google.com') from dual              
                                                                      
       1 select utl_http.request('google.com') from dual              
                *                                                     
    ORA-29273: HTTP request failed                                    
    ORA-06512: at "SYS.UTL_HTTP", line 1722                           
    ORA-24247: network access denied by access control list (ACL)     
    ORA-06512: at line 1                                              
    
    

    which suggests that the ACL is the problem, but if I use the tcpportping function

    SQL> select tcpportping('google.com',80) from dual   
                                                         
    TCPPORTPING('GOOGLE.COM',80)                         
    ----------------------------                         
                               0                         
                                                         
    1 row selected                                       
                                                         
    Elapsed time: 00:00:00.424                           
    

    It works very well.  If I tried tcpportping with a different host...

    SQL> select tcpportping('google.co.uk',80) from dual           
                                                                   
       1 select tcpportping('google.co.uk',80) from dual           
                *                                                  
    ORA-29260: network error: not connected                        
    ORA-06512: at "SYS.UTL_TCP", line 212                          
    ORA-06512: at "SYS.UTL_TCP", line 432                          
    ORA-06512: at "TEST_USER.TCPPORTPING", line 47            
    ORA-24247: network access denied by access control list (ACL)  
    ORA-06512: at line 1                
                              
    

    which makes me think that ACL is not the real issue for "select utl_http.request ('google.com') from dual" as tcpportping does not an ACL problem, but it does for a (supposed) different host.

    I can run nslookup to user o/s DB

    [oracle@test2 ~]$ nslookup google.com
    Server:         8.8.8.8
    Address:        8.8.8.8#53
    
    
    Non-authoritative answer:
    Name:   google.com
    Address: 173.194.34.98
    Name:   google.com
    Address: 173.194.34.100
    Name:   google.com
    Address: 173.194.34.102
    Name:   google.com
    Address: 173.194.34.99
    Name:   google.com
    Address: 173.194.34.97
    Name:   google.com
    Address: 173.194.34.103
    Name:   google.com
    Address: 173.194.34.104
    Name:   google.com
    Address: 173.194.34.96
    Name:   google.com
    Address: 173.194.34.101
    Name:   google.com
    Address: 173.194.34.110
    Name:   google.com
    Address: 173.194.34.105
    

    and telnet ok

    [oracle@test2 ~]$ telnet google.com 80
    Trying 173.194.34.103...
    Connected to google.com (173.194.34.103).
    Escape character is '^]'.
    GET / HTTP/1.0
    
    
    HTTP/1.0 302 Found
    Location: http://www.google.co.uk/?gws_rd=cr&ei=aKlKUvKDH8K80QXM1oGABg
    Cache-Control: private
    Content-Type: text/html; charset=UTF-8
    Set-Cookie: PREF=ID=636a9a715d3e713a:FF=0:TM=1380624744:LM=1380624744:S=UmAm64le9UZRtDQE; expires=Thu, 01-Oct-2015 10:52:24 GMT; path=/; domain=.google.com
    Set-Cookie: NID=67=vydxBJQUOyjK20AY5G_h7yd23MWHY9L1dxCNRTnkwaVilDsEdMViDB9bbkecMILO7U9SBpTQqGpwBR9y0pL1qcdj0Mx_Rdh_Gu0D3KiunmSIV1nrRdV4Q3T3Y4MKDFLz; expires=Wed, 02-Apr-2014 10:52:24 GMT; path=/; domain=.google.com; HttpOnly
    P3P: CP="This is not a P3P policy! See http://www.google.com/support/accounts/bin/answer.py?hl=en&answer=151657 for more info."
    Date: Tue, 01 Oct 2013 10:52:24 GMT
    Server: gws
    Content-Length: 261
    X-XSS-Protection: 1; mode=block
    X-Frame-Options: SAMEORIGIN
    Alternate-Protocol: 80:quic
    
    
    <HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
    <TITLE>302 Moved</TITLE></HEAD><BODY>
    <H1>302 Moved</H1>
    The document has moved
    <A HREF="http://www.google.co.uk/?gws_rd=cr&ei=aKlKUvKDH8K80QXM1oGABg">here</A>.
    </BODY></HTML>
    Connection closed by foreign host.
    [oracle@test2 ~]$
    

    Then nslookup/ping/telnet of o/s DB user is ok - UTL_TCP (using the TcpPortPing function) is ok - but UTL_HTTP returns errors in the ACL?

    Help please?

    PS - If I run as user SYS utl_http it fails also

    SQL> Session [1] SYS@ORACLE_TEST                    
    SQL> select utl_http.request('google.com') from dual    
                                                            
       1 select utl_http.request('google.com') from dual    
                *                                           
    ORA-29273: HTTP request failed                          
    ORA-06512: at "SYS.UTL_HTTP", line 1722                 
    ORA-12543: TNS:destination host unreachable             
    ORA-06512: at line 1                                    
    

    Hey guys,.

    Problem solved!  Thanks a lot to Billy, thomaso and Anar for help.

    It turns out that the problem was a whole linux http_proxy variable incorrect!  I could find that by using curl on the linux command line and send the trace to a file "curl--trace-ascii debugdump.txt http://www.google.co.uk. The trace file showed a misuse of the http_proxy variable. Once I disconnected the variable and restarted the database - everything was fine. Just a shame it wasn't better logging of oracle - error message was really a Kipper.

    * Embarrassed * sorry guys!

    See you soon,.

    Brent

  • ORA-12543: TNS:destination host unreachable

    Dear all,

    I installed the database and the client on OEL 6.3 different from the box. When connecting through client database, I am getting error, following

    Machine 2 (client a) (Hostname - test.otm63app) (IP - 192.168.56.3).

    [oracle@test ~] $ sqlplus "sysdba@otm63db."
    SQL * more: Production release 11.2.0.1.0 Sun Apr 28 01:38:37 2013
    Copyright (c) 1982, 2009, Oracle. All rights reserved.

    Enter the password:
    ERROR:
    ORA-12543: TNS:destination host unreachable

    Enter the user name: sysdba
    Enter the password:
    ERROR:
    ORA-12162: TNS service name: net is incorrectly specified

    Enter the user name: sysdba
    Enter the password:
    ERROR:
    ORA-12162: TNS service name: net is incorrectly specified


    SP2-0157: unable to connect to ORACLE after 3 attempts, coming out of SQL More *.

    Below is the output of tnsping.

    [oracle@test ~] $ tnsping otm63db
    AMT Ping utility for Linux: Version 11.2.0.1.0 - Production on April 28, 2013 01:41:13
    Copyright (c) 1997, 2009, Oracle. All rights reserved.
    Use settings files:
    /Data/app/Oracle/product/11.2.0/Client_1/network/admin/SQLNET.ora

    TNSNAMES adapter used to resolve the alias
    Try to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = test.otm63db) (PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = otm63db)))
    AMT-12543: TNS:destination host unreachable

    Below is the text of,.

    *[Oracle@test admin] $ cat sqlnet.ora*
    sqlnet.ora # Network Configuration file: /data/app/oracle/product/11.2.0/client_1/network/admin/sqlnet.ora
    # Generated by Oracle configuration tools.

    NAMES. DIRECTORY_PATH = (TNSNAMES, EZCONNECT)

    ADR_BASE = / data/app/oracle

    *[Oracle@test admin] $ cat tnsnames.ora*
    otm63db =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = test.otm63db) (PORT = 1521))
    )
    (CONNECT_DATA =
    (SERVICE_NAME = otm63db)
    )
    )

    Below is,

    [oracle@test ~] $ cat/etc/hosts
    192.168.56.3 test.otm63app
    192.168.56.2 test.otm63db

    Below is the ping to DB,.

    [oracle@test ~] $ ping test.otm63db
    PING test.otm63db (192.168.56.2) 56 (84) bytes of data.
    64 bytes from test.otm63db (192.168.56.2): icmp_seq = 1 ttl = 64 time = 0,824 ms
    64 bytes from test.otm63db (192.168.56.2): icmp_seq = 2 ttl = 64 time = 1.34 ms
    64 bytes from test.otm63db (192.168.56.2): icmp_seq = 3 ttl = 64 time = 0,626 ms
    64 bytes from test.otm63db (192.168.56.2): icmp_seq = 4 ttl = 64 time = 1.50 ms
    64 bytes from test.otm63db (192.168.56.2): icmp_seq = 5 ttl = 64 time = 2.14 ms
    64 bytes from test.otm63db (192.168.56.2): icmp_seq = 6 ttl = 64 time = 0,672 ms
    -test.otm63db ping statistics-
    6 packets transmitted, 6 received, 0% packet loss, time 5220ms
    RTT min/avg/max/leg = 0.626/1.184/2.144/0.541 ms

    Machine 1 (a database) (Hostname - test.otm63db) (IP - 192.168.56.2).

    [*[Oracle@test ~] $ cat/etc/hosts *.
    192.168.56.2 test.otm63db
    127.0.0.1 localhost
    192.168.56.3 test.otm63app

    [*[Oracle@test ~] $ cat /data/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora*
    listener.ora # Network Configuration file: /data/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
    # Generated by Oracle configuration tools.

    ADR_BASE_OTM63DB = / data/app/oracle

    OTM63DB =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = test.otm63db) (PORT = 1521))
    )
    )

    [*[Oracle@test ~] $ cat /data/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora*
    tnsnames.ora # Network Configuration file: /data/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.

    OTM63DB =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = test.otm63db) (PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = otm63db)
    )
    )

    Please help me to solve this error.

    Thank you

    user12167361 wrote:
    Dear all,

    I installed the database and the client on OEL 6.3 different from the box. When connecting through client database, I am getting error, following

    Machine 2 (client a) (Hostname - test.otm63app) (IP - 192.168.56.3).

    [oracle@test ~] $ sqlplus "sysdba@otm63db."
    SQL * more: Production release 11.2.0.1.0 Sun Apr 28 01:38:37 2013
    Copyright (c) 1982, 2009, Oracle. All rights reserved.

    V11.2.0.1 is NOT certified on OEL 6.3; only V11.2.0.3 is certified.

    Enter the password:
    ERROR:
    ORA-12543: TNS:destination host unreachable

    See below

    >

    Enter the user name: sysdba
    Enter the password:
    ERROR:
    ORA-12162: TNS service name: net is incorrectly specified

    Enter the user name: sysdba
    Enter the password:
    ERROR:
    ORA-12162: TNS service name: net is incorrectly specified

    SP2-0157: unable to connect to ORACLE after 3 attempts, coming out of SQL More *.

    Below is the output of tnsping.

    [oracle@test ~] $ tnsping otm63db
    AMT Ping utility for Linux: Version 11.2.0.1.0 - Production on April 28, 2013 01:41:13
    Copyright (c) 1997, 2009, Oracle. All rights reserved.
    Use settings files:
    /Data/app/Oracle/product/11.2.0/Client_1/network/admin/SQLNET.ora

    TNSNAMES adapter used to resolve the alias
    Try to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = test.otm63db) (PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = otm63db)))
    AMT-12543: TNS:destination host unreachable

    I suspect that Firewall (iptables) blocking the packets between the client and DB Server

  • HP TouchSmart 610 BIOS, all elements are gray and inaccessible?

    Hello

    HP TouchSmart 610-1010sc

    BIOS HP version 6.09 (FRIEND BIOS 2.6 x)

    I am able to get into the BIOS with F10, but every time he asks: ' "user CURRENT password:".

    When I type the password (empty) computer gives 2 long beeps and it enters BIOS.

    But the PROBLEM is that all the elements are disabled...

    Which means that all the items are grayed. If I look at the instructions of the BIOS (HP bios for motherboard F01 settings) there are many editable parameters (BLUE) as boot disks, lan onboar elements, load default configuration etc.

    But in my computer, everything is visible, but GRAY and inaccessible. I can't access or modify anything even not "Load setup defaults". Only active items are "Exit ignorant changes" and "Exit save changes."

    What's not here?

    How can I access BIOS so that I can change the settings normally?

    Finally the BIOS and boot LOGO obtained works!

    I noticed that, after CMOS, reset all the product data in the SYSTEM IDs inside the HP BIOS section me wiped out.

    So I had to enter my BIOS by CTRL + F10 instead of normal F10, so that the ID SYSTEM fields are editable.

    Then just re-typed all the information of two stickers found the back of the computer.

    First content SERIES only and PART SKU No.. Second was BUILD ID, BYTES and NAME OF THE PRODUCT FUNCTIONALITY.

    NOTICE! Note that you can type BYTES of FUNCTIONALITY that once, when recording it will be grayed out out/no editable.

    After saving these changes to the BIOS and restart the computer, the LOGO is the settings the computer BIOS and fully accessible back once more

  • My DVD containing all my music has become corrupted and inaccessible, I can save?

    It was about half full, I transferred (or attempted) of my hard drive.  When I then tried to use the DVD, again showed as being only half full, but is not available to show what is on it, or to play music.

    Hi Anne,.

    Thanks for posting your query in Microsoft Community Forum!

    According to the description of the problem, it seems that music on DVD damaged and inaccessible.

    To guide you in the right direction, I need a little more information of the computer with the problem. Please help me answer the following questions:

    1. what version of Windows is installed on the computer?

    2. what happens when you try to access the music?

    3. do you get an error message?

    4 have you checked the DVD in another computer?

    5 have have there been recent changes made on the computer before the show?

    Your response is very important for us to ensure a proper resolution. Please get back to us with the information above to help you accordingly.

  • The error that says that I have not installed hard drive when I start the computer. Also, when I clicked on my D drive, he told me to the disc is damaged and inaccessible

    Original title:

    When I start my computer, a message on the screen says I have no hard drive installed. my computer will load eventually after many attempts and when I clicked on my D drive, where all recovery files are kept, it tells me that the disc is damaged and inaccessible.  Can someone help me before I'm locked out of the computer for good?  Thanks in advance Andy D.

    Determine the manufacturer of HD computer. Go to the manufacturer's website and download their software/utility to check the Dowload HD it and burn it to CD or DVD according to the instructions. Boot from the disc newly manufactured. Run the utility to verify. If necessary, replace the HD and restore backups.

    Tom Ferguson

  • How to cancel "Make this folder private" when the check box is greyed out and inaccessible?

    I am running XP Home edition w/SP3.  I am the only user account so I should have administrator privileges, but when I try to cancel "Make this folder private" checkbox is greyed out and inaccessible.  I tried the solution of http://windowsxp.mvps.org/undoprivate.htm nothing works.  When I start safe mode and follow the instructions of the Security Watch tab the 'total control' checked but greyed out as boxes.  I try to get access to my home network.

    Pulling my hair out!

    Bart

    See if this helps: you can not select the Option "make this folder private"

  • Why is the 'Documents and Settings' folder hidden and inaccessible?

    I used PC backup for backing up my XP files.  When I restore the files on my Windows 7 computer, I tried to bring it back to the "C:\Users\name\Desktop\test".  There is now a "Documents and Settings" folder hidden and inaccessible in my "C:\Users\name\Desktop\test".  How can I view/delete this folder?

    Short answer:  Because there isn't actually.  Please do not try to access it, you will help break your operating system if you try, and you will lose the ability to run several programs or worse.

    Why?  The tale:
    The Documents and Settings folder does not really exist in Windows 7.  This is only to fool the bad programs by redirecting to the right place (the Users folder).  Apparently he also deceived you.  It is not a real issue, do not try to access it.

    Or if you prefer, here's the long Version:
    First of all, the Documents and Settings folder came into existence in Windows 2000.  In order to shorten the path name (there is a limit to how many long letters we) as well as to create other languages of the operating system for use throughout the world, this folder has been renamed a few users in 2006 with the release of Windows Server and Windows Vista.
    Programs built the right way, that is not the real name or spelling (or language) of the book by fine user path, because they use the variable %UserProfile%.  However, many programs have been built the wrong way.  They are absolutely dependent on the existence of a folder called "Documents and Settings", spelled in English.  This program will crash if they do not find the file they want.  So to keep these plant program, Microsoft has created a record of false (called a junction Point) that redirects these programs on the folder of the user.  So if a program think he saved a file in c:\documents and settings\joe\desktop- the file will actually be saved to c:\users\joe\desktop.  The program never knows that he cheated.
    What you need to do:  Go to your Folder Options, tell him to Hide protected operating system files, and then use your computer normally.
  • Help with utl_http and https API

    Hi all
    I am trying to write a pl/sql procedure to call the google translate API. I paid for a key and the url itself works without any problem, but I'm fighting to get my call from pl/sql.

    I created a function on my server as suggested by Billy Verreynne here: Re: error on HTTPS using UTL_HTTP

    It was extremely helpful as I can now see the url that goes to google.

    This is the code I use to call the function of Billy is:
    set serveroutput ON
    select * from TABLE(webbrowser('https://www.googleapis.com/language/translate/v2?key=mykeyblahblah&q=Automobile&source=en&target=ja')); 
    (1) my first question: Why am I get invited to enter variable bind by sqldeveloper? These are hard-coded in the url, I'm passing, so I don't know why I get invited to these.

    By Billy function, which is getting sent to google:
    HTTP: GET https://www.googleapis.com/language/translate/v2?key=mykeyblahblahAutomobile=Automobileen=enja=ja
    I'm getting ORA-29268: error the client HTTP 400 - Bad request, obviously from the url get passed to google makes no sense, i.e. the ampersands are get and removed the bind variable I entered replace the names of the parameters.

    (2) so my second question, what am I doing wrong and how can I get the URL to keep signs and identifiers in parameters?

    The first thing that is obvious is that I have a lot to learn here. There seems to be that many tutorials online to UTL_HTTP and even the docs of Oracle are a little sparse.

    For what it's worth my portfolio is ok and the proxy are set that correctly, so I know I'm getting to google, I'm just passing through a bad url.

    This isn't the last function, I'm just trying to take the baby steps so I just call the pl/sql API and retrieve a readable result. If anyone can help point me in the right direction, I would be very grateful.

    If it helps, here's the function I created using the code of Billy:
    create or replace
    function WebBrowser( url varchar2 ) return TStrings pipelined is
    --
    -- BASIC PL/SQL WEB BROWSER TEMPLATE
    -- supports http, https and proxy servers
     
            -- fixed constants
            C_NO_PROXY_FOR  constant varchar2(4000) := 'localhost';
            C_WALLET        constant varchar2(4000) := 'file:/blahblah';
            C_WALLET_PASS   constant varchar2(4000) := 'Welcome';
     
            -- Proxy settings that can be made arguments in the WebBrowser() call
            proxyServer     varchar2(30) := 'www-proxy.com';
            -- not all proxy servers use authentication, but many corporate proxies do, in
            -- which case you need to specify your auth details here
            -- (make it nulls if not applicable)
            proxyUser       varchar2(50) := NULL;
            proxyPass       varchar2(50) := NULL;
     
            -- our local variables
            proxyURL        varchar2(4000);
            request         UTL_HTTP.req;
            response        UTL_HTTP.resp;
            buffer          varchar2(4000);
            endLoop         boolean;
    begin
            -- our "browser" settings
            PIPE ROW( 'Setting browser configuration' );
            UTL_HTTP.set_response_error_check( TRUE );
            UTL_HTTP.set_detailed_excp_support( TRUE );
            UTL_HTTP.set_cookie_support( TRUE );
            UTL_HTTP.set_transfer_timeout( 30 );
            UTL_HTTP.set_follow_redirect( 3 );
            UTL_HTTP.set_persistent_conn_support( TRUE );
     
            -- set wallet for HTTPS access
            PIPE ROW( 'Wallet set to '||C_WALLET );
            UTL_HTTP.set_wallet( C_WALLET, C_WALLET_PASS );
     
            -- configure for proxy access
            if proxyServer is not NULL then
                    PIPE ROW( 'Proxy Server is '||proxyServer );
                    proxyURL := 'http://'||proxyServer;
     
                    if (proxyUser is not NULL) and (proxyPass is not NULL) then
                            proxyURL := REPLACE( proxyURL, 'http://',  'http://'||proxyUser||':'||proxyPass||'@' );
                            PIPE ROW( 'Proxy URL modified to include proxy user name and password' );
                    end if;
     
                    PIPE ROW( 'Proxy URL is '|| REPLACE(proxyURL,proxyPass,'*****') );
                    UTL_HTTP.set_proxy( proxyURL, C_NO_PROXY_FOR );
            end if;
     
            PIPE ROW( 'HTTP: GET '||url );
            request := UTL_HTTP.begin_request( url, 'GET', UTL_HTTP.HTTP_VERSION_1_1 );
     
            -- set HTTP header for the GET
            UTL_HTTP.set_header( request, 'User-Agent', 'Mozilla/4.0 (compatible)' );
     
            -- get response to the GET from web server
            response := UTL_HTTP.get_response( request );
     
            -- pipe the response as rows
            endLoop := false;
            loop
                    exit when endLoop;
     
                    begin
                            UTL_HTTP.read_line( response, buffer, TRUE );
                            if (buffer is not null) and length(buffer)>0 then
                                    PIPE ROW( buffer );
                            end if;
                    exception when UTL_HTTP.END_OF_BODY then
                            endLoop := true;
                    end;
     
            end loop;
            UTL_HTTP.end_response( response );
     
            return;
     
    exception when OTHERS then
            PIPE ROW( SQLERRM );
    end;
    Thank you!
    John

    John K. says:

    (1) my first question: Why am I get invited to enter variable bind by sqldeveloper? These are hard-coded in the url, I'm passing, so I don't know why I get invited to these.

    No bind variable. As bathtubs say these are substitution variables. Something that SQL * more supported for several year and something that is incorporated as a feature of some GUI for Oracle customers.

    Substitution variables are generally used in the installation scripts. You run a script (since SQL * the command-line) and passes command line parameter - these parameters are variables + & 1 + for the parameter 1, + & 2 + for the 2nd, etc..

    The script can then use these in the DDL statements (that do not support the bind variable) - e.g. create user & 1 identified by & 2....

    The customer to DEFINE in SQL command * more active/disable/configure the use of substitution variables. The default character to identify the variable substitution is "+ & +". So your problem with the URL being mutilated by your customer.

    I always use SET DEFINE OFF to disable the calendering customer my sending code on the server for execution. Another option is to use a different character to identify the substitution variables. The installation script Oracle Apex (quite large and quite complex) has the problem of the use of '&' in the code and need to also use substitution variables, as. So the installation uses the "+ ^ + ' character. I suggest to disable the substitution, or affecting a unusual as tank ' ^ ' or ' ~ '.

  • Problem with my file in the SupportVIs directory found deployment package and not the Destination directory specified

    I have a little problem with a package of teststand.  I wrote a few screws to provide a wrapper around a custom DLL to provide the error handling. These screws use the following call library functions as indicated below.

    After installing my application, some of my screws are my DLL custom in the correct destination directory and other parts that are in the Directory Support screw which creates the deployment. The problem is that the DLL must be installed in a specific directory, because it uses the other files that are in this place-related directories.

    Currently I work around this problem by running the installer, and then manually delete the DLL to the folder of the SupportVIs dirctory.

    Does anyone have any suggestions on how to fix this?.

    Hey,.

    So, what seems to happen, is that your VI sees that DLL as a dependency and wants to keep with her VI.  I can't find a way to the deployment tool to do what you ask, however, here are two ideas that could solve your problem in other words.

    Do you need to have your DLL in the precise place?  If this is not the case, why not in your VI on your call library function, check specify a path on the chart.  Then, on your diagram, you generate a path relative to the location of the VI.  In this way, it's okay if your DLL is located in the support of screw

    Another idea would be after that installation is created, you can create a batch file that runs the installation and then automatically delete the DLL support VI place.

  • AMT-12560: error adapter TNS:protocol and 00530-TNS: Protocol adapter error

    I just installed oracle 11g on my windows xp professional box. What user and password I will use. Should what username and password I use to connect to sql plus?
    When I use 'Scott' 'Tiger' it gives me ORA-12560: TNS:protocol adapter error occurred errorwhen I try to start the service I get

    LSNRCTL > start
    From tnslsnr: Please wait...

    Cannot open the service < OracleOraDb11g_home1TNSListener >, error 1060.
    Failed to start the service, error 203.
    AMT-12560: TNS:protocol adapter error
    AMT-00530: Protocol adapter error

    I can access the database on the same machine. Also should I have an ORACLE_HOME for sql more work or it is not necessary?

    Do State lsnrctl and after its release? try to do this sqlplus "virtue sysdba" and make sure that you have entered right tns in tnsnames.ora as in the example I posted here earlier. "."

    Concerning
    OrionNet

  • Why deleted folders still appear but greyed out/italics and inaccessible?

    I deleted several folders in my IMAP account, but always appear in my list of files, they are grayed out and italic. I can't reach the mail folder and the error "the operation failed. "The e-mail server for account # a replied: folder does not exist" How can I get rid of this file permanently?

    I found that it's usually easier to unsubscribe to see the folder, then delte the file via webmail.
    If you are unsubscribed to see the folders?

  • Behind a firewall for Internet connections and wireless and inaccessible

    My netbook (XP) was attacked by viruses and therefore the firewall has blocked the internet and wireless connections. I installed the new Norton protection and this shows the machine also Ok. Here's the question - how can I activate the connections again? I realize that he is probabl; is really easy, but I just can not understand. Your help is appreciated. Thank you, Steve.

    You can try to disable the Windows Firewall:

    http://www.Webcam123.com/en/FAQ/xp_firewall.html

    If you have installed the new Norton protection, I don't think that you need more Windows Firewall.

  • Re: Unable to get the Satellite L650 for system and inaccessible boot repair

    Computer laptop satellite L650 ~ Windows 7.

    I have problems with the laptop being very slow to start for several months until he was able to start. It took to PC World and they said I had a virus and they had reinstalled the software back to the HDD factory settings. Worked well for a few weeks as falied to start. Restored from Windows recovery option by pressing F8 at startup upward. Worked fine for a few weeks until last week. Repeat the process and works very well.

    Monday, I installed Adobe Photoshop and Tuesday night cell phone has been slow to start up again, so uninstalled Photoshop. Stop it installed some updates of Windows. Last night, when I walk it came with a messgae saying doing xxxxx of the registry changes, and then could not start. Now when I press F8 and select "Repair your computer" Windows starts to load files and then get to the System Recovery Options ~ Select UK keyboard and press next and then I get a window saying: "you must login to access the System Recovery Options. If you havingtrouble connect, contact your administrator for the computer for assistance. Click OK to restart the computer. »

    I did not have this on reinstalls previous and I can't get around it. Help!

    Hello

    In the past, I got several laptop computers several times and this option is still available. Please check follow document - http://aps2.toshiba-tro.de/kb0/HTD1303440001R01.htm - Toshiba and you will see that this option is available.

    If you have created a Windows login password you must use it, otherwise leave it blank and just press OK. Don t change same keyboard layout just click on next.

    Please let us know if you've had success with it. E later can discuss how do for faster laptop to start.

  • El Capitan 10.11.2 updated and inaccessible photo library

    I've seen questions similar to this one, but none quite match. Photos worked El Capitan. But after the update to El Capitan 10.11.2, I can't pictures to locate the library system, although it is still visible in my pictures folder. (I have several bookstores, how I manage with PowerPhotos). I use an iMac late 2009.

    When I opened the Photos, I get this message:

    Sometimes this message at the same time:

    I can't choose ', open ' because I can't do this active window or get the buttons to act; I have to select "Exit" in the window "unexpected error".

    I tried to press the Option key when opening the pictures; same result.

    Also, I've used my photo library system for my desktop and screen saver. After update, the office always displays photos of the library. In the system, under the screen saver preferences, the 'Source' menu does not include Photos. I tried to select "Choose a folder", then selecting different libraries of Photos, but it does not work. In desktop preferences, there is a similar lack of power to choose to use a library of Photos, but he continued to use the one I had chosen before the update.

    As I said, I still see libraries in [user name] / photos. This includes the system library I was using before the update (and which is apparently still used for office). They all have a normal appearance in Finder, including update, size, showing as a number of GB, etc.. In PowerPhotos, however, the library system shows as having zero points. Other libraries appear as normal in PowerPhotos, but PowerPhotos does not seem to have a function allowing you to switch which deals with pictures of libraries such as the library system. Trying to open a library other that the library system in Photos, either by PowerPhotos or from the Finder, generates the same error messages above. (The same with trying to open the library system from the Finder).

    I don't know what version of El Capitan I was running before the upgrade. I always installed updates to OS x I use as soon as the alert informs you that one was available.

    Start in Safe Mode, Mac OS x: Safe Mode bootand try from there.  If you succeed, reboot normally and try again.

Maybe you are looking for