Too many open connections. UTL_HTTP

I'm submiiting URL for several times.

If I get the error too many open connections. How to avoid the code.

For your reference, I have attached my code.
DECLARE
  req   UTL_HTTP.REQ;
  resp  UTL_HTTP.RESP;
  value VARCHAR2(1024);
  url   VARCHAR2(4000);
  OPT   varchar2(1000);
  CURSOR MOB IS SELECT MOB FROM MOBILE_NUMBER;
BEGIN
 -- UTL_HTTP.SET_PROXY('proxy.my-company.com', 'corp.my-company.com');
 FOR I IN MOB
 LOOP
 DBMS_OUTPUT.PUT_LINE(I.MOB);
 URL:='http://www.meru.co.in/wip/sendsms?username=11|'&'||'password=11|'&'||'to='||I.MOB||'&'||'message=this%20is%20shanmugam';
 DBMS_OUTPUT.PUT_LINE(URL);
  req := UTL_HTTP.begin_REQUEST(url);
  UTL_HTTP.SET_HEADER(req, 'User-Agent', 'Mozilla/4.0');
  resp := UTL_HTTP.GET_RESPONSE(req);
  UTL_HTTP.READ_LINE(resp, value, TRUE);
    DBMS_OUTPUT.PUT_LINE(value);
  END LOOP;
  UTL_HTTP.END_RESPONSE(resp);  
EXCEPTION
  WHEN UTL_HTTP.END_OF_BODY THEN
    UTL_HTTP.END_RESPONSE(resp);
 END;
How to close the connection for each record?


Can someone help me this?

Thanks in advance.
See you soon,.
Shan

Move UTL_HTTP. END_RESPONSE (resp); inside the loop. I mean

.........
......................

 UTL_HTTP.END_RESPONSE(resp);
 END LOOP;

Tags: Database

Similar Questions

  • UTL_SMTP. ORA-30678: too many open connections. Why?

    Hello

    I use UTL_SMTP for sending email to support staff in some scenarios. IT everything has worked until today, we got following error in Java logs. I searched and found a similar position at [http://asktom.oracle.com/pls/asktom/f/f?p=100:11:0:P11_QUESTION_ID:255615160805 #611756800346679486]
    - Caused By (java.sql
    .SQLException: ORA-20005: prc_my_sp - ORA-30678: too many open connections
    ORA-06512: at "SYS.UTL_TCP", line 28
    ORA-06512: at "SYS.UTL_TCP", line 257
    ORA-06512: at "SYS.UTL_SMTP", line 115
    ORA-06512
    ORA-06512: at "MY_PKG", line 1378
    {code}Still, I'm not able to make out how to resolve this error.
    
    We use 
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    "CORE     10.2.0.4.0     Production"
    TNS for Solaris: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    
    Please throw some light on cause and resolution.
    
    
    
    Thanks,
    Sam
    
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        

    Yes, you need to open the connection outside of the loop.

  • error "too many concurrent connections" with Gmail

    I started all of a sudden the error "too many concurrent connections" with Gmail with one of my gmail accounss. I googled and it seems like an old problem and I tried all the recommended solutions, but none worked. I have two gmail accounts and the other continues to function properly. Suggestions!

    Reduce the number of labels has solved this problem. Seems specific to TB and GMail (google says you can have hundreds of emails - I have about 60). There are mentions of which can be found via google - but no definitive statement on the problem, with workarounds, etc.. Now I will be anxious the next time I have to add a label, not knowing if it will work or cause this problem.

  • Ulimit/too many open files

    Hey guys,.

    Just had a server go down as a result, too many files open. We could tweak the ulimit to fix. I was wondering if Foglight watches it? If yes what is the metric. If this is not the case, how can I me Dell to add it?

    Hi Daniel.

    I'm sure that you need an agent script for this. The command 'lsof' under Linux should

    helping you get the information.

    I hope this helps.

    Robert

  • Too many devices connected with my Adobe ID

    I can't download ebooks on my tablet, because he said that we need to connect on too many appliances. Is it possible that I can see what other devices connected with my Adobe ID?

    Thank you, my Adobe id activation has been reset

    Sent by Samsung Tablet

  • Server 5.0.4: Too many users connect to file sharing

    Hello

    First of all, here are my current profile:

    Mini Mac server (end of 2012)

    OS X 10.10.5

    Server 5.0.4

    Lately when I am looking at the list of users connected to the server via the tab sharing files I noticed more and more users who connect to Time Machine to back up at the same time. When there are so many users doing this that it slows everybody back down.

    Is there a way I can strangle the number of users connected at the same time?

    I don't believe it.

    Perhaps you should consider setting up more than one time server Machine and distributing users between them. It would be probably exaggerated, but in theory, you could have two or Mac connected to a San to share a storage pool and each being then a time server Machine. I'd probably use independent storage for everyone in this case well unless you already have a SAN system.

    You might also consider bonding of two or more network interfaces on the Mac mini to give it a faster network connection or more money there today Thunderbolt 10 Gbit/s Ethernet adapters.

    2 x 1 Gbit/s = 2 Gbit/s, or 1 x 10 Gbps is clearly going to be able to support more network traffic and so more users than just the single integrated to 1 Gbit/s Ethernet port. You need a network switch that also supports Ethernet 10 Gbps, or LACP aka. 802.3ad as the standard of channel binding depending on the approach you have chosen.

  • Too many network connections

    I have a router WRT54G2 connecting your desktop (by cable), two laptops (wireless) and I connect to Internet through Verizon on a DSL Modem from Westell 2200. My wired office refuses to acknowledge the WRT54G2 *, even if it connects to the internet at startup. A big problem I'm having, is that my Office XP connect to connect to the LAN, 1394 connection and Verizon Online all at once. The WRT54G2 is configured to log on w / Verizon, which would mean that we don't need to other connections, right? Disable other connections seems only temporary. When several internet connections exist, they seem to collide and create "Webpage not found" messages.

    * I also tried to install the Network Magic application that came with my router, but the configuration will not take place because "you are not currently connected to a router.

    I followed all the instructions to set up this network - please help.

    I suspect that your modem and WRT54G2 are not configured correctly.  Your Westell and the WRT54G2, by default, both use the same 192.168.1.x subnet.  Unless you have fixed this problem, both devices will not work properly together.  To resolve this issue, follow these steps:

    (1) put your entire network.

    (2) unplug the WRT54G2 Westell.

    (3) follow the instructions on the following site:

    http://www.dslreports.com/FAQ/6323

    Note: The "WAN" port BEFSR41 in the example, is the same as the port of 'Internet' on your WRT54G2.

    Please let me know how things work out for you.

  • ORA-27041 Linux error: 24: too many open files

    Hi Hussein.

    EBS R12 (12.0.6)
    RHEL 4.6


    Our user often encounter this error when opening forms apps.

    http://farm4.static.Flickr.com/3414/3656733122_affddd1ae2.jpg?v=0


    How can I solve this pls.


    Thank you very much

    Hello

    You have "hard" and "soft" defined in the file /etc/security/limits.conf as indicated in the installation document?

    Review of this thread for a similar error and fix.

    Could not open the file
    Re: Could not open the file

    Kind regards
    Hussein

  • Too many connections open for integration with QA Oracle WebLogic JMS

    Is there a document explaining the number of database connections required by the factories of connection and/or the queue? I configured a foreign server with destinations and connection factories to integrate with AQ JMS WebLogic. I have 16 destinations (14 lines and 2 subjects) and two plants (a XAQueueConnectionFactory and a XATopicConnectionFactory) connection configured. I have also 16 multilateral development banks, one for each destination, configured with max-beans-in free-pool value 1. Everything works fine. However, when the application server is started, I could see that there are 68 open database connections. This seems too high. When using OC4J we had max-connections set to 30 and it was working fine. Why are so many open connections?

    Battery stuck trace, the particular version of the WebLogic you use, uses the receiver of messages JMS QA for voting message and sets an ExceptionListener on JMS connection. (I think that your MDB is a non transactional MDB). The JMS AQ message sink uses a db of the query message connection and the implementation of the QA JMS ExceptionListener uses internally a db periodically ping the database connection. If your MDB uses two connections in your configuration.

  • Too many files open Crash

    Watching was done with support, one of our FMS crashed last night because of too many open files. Just curious, if this has happened to anyone else? This file is Foglight actually open?

    Someone at - it an agent which montors open files on a host computer? Seem that we need something like that.

    Error open files can be a bit for any java program missleading. This means in fact - handles of files that includes libraries of dynamic dynamic links, each jar file, files opened, each open network socket...

    (at least on unix systems)

    Stefan

  • Too many cards

    When I try to open a link to a Web site when using the touchpad, I get a message that says 'too many cards' what this means and how can I solve this problem

    Hi, you will find some tips below.

    Their there are several options:

    1 simply hold down the OK button for a few seconds.

    2. the error 'too many cards' historically means that your device has too many open applications and that it is running out of RAM. It could be solved by closing some applications and try again. Turn off and turn on again also clears the memory.

    "To completely close an application, drag the map to the bottom of the screen and release. The card is expected to rebound upward and on the top of the screen. »

    Otherwise, the "normal way" to close the application in standby mode and can continue to use memory. After awhile of just applications of swipping closing upward, without having to restart the Tablet/phone, could lead to continue to burn the memory until you get the "too many cards" error.

    It will be useful.

    Thank you

  • Safari cannot open my.yahoo because of too many redirects occurring.

    I have an iMac and recently installed the new OS 10.11.3.  I don't think that the OS is the problem.  Today, I have been unable to auto open my homepage through Safari.  The Prefs system says the computer is connected to my network, but it does not connect.  I was able to get to my mail via yahoo.com, but this isn't my.yahoo.com page.  Open to any suggestion.  Thank you

    Safari: "unable to open the page, too many redirects."

  • Whenever the opening of Windows Live Mail, receiving the message: "your account has been locked because you ar anyone else tried to sign in too many times with incorrect e-mail address or password."

    Original title: problem of signature in emails.

    Everytime I open my Windows Live mail I get the message "your account has been locked because you ar anyone else tried to sign in too many times with incorrect e-mail address or password."    After a few seconds, I can click on cancel and my posts are appear in the preview window.  How can I stop this from happening?

    Hi Annabelle.

    What account you have set up in Windows Live Mail?

    You can first try to connect directly to the webmail to address account email configured in a browser and check what is happening.

    If you receive the same error, then you must contact the support for the e-mail service provider.

    If you use a Microsoft Account, you can post your query in the section has Microsoft Windows Live Forums to get help.

    Hope the helps of information. Let us know if you need help with Windows related issues. We will be happy to help you.

  • too many connections

    Hello

    I created a dynamic site with dreamweaver but I did about 10 users connected at any time, however, they receive the error too many connections in the connection thrown upward file.

    I checked with the host who said he has a maximum of 25 connections and that's more than enough.

    I read a little on the net and say that you can simply remove the pconnect of the connection file.

    Why dreamweaver does not create the connection as this file and what are the advantages/disadvantages of having deleted pconnect?

    I currently have this line in my connection file:

    $conn = mysql_pconnect ($hostname_conn, $username_conn, $password_conn) or trigger_error (mysql_error (), E_USER_ERROR);

    can I just change it to this:

    $conn = mysql_connect ($hostname_conn, $username_conn, $password_conn) or trigger_error (mysql_error (), E_USER_ERROR);

    ?

    Thank you very much

    "Yes" >

    mysql_pconnect() leaves the connection open for future use by the same user. It is more effective in some cases. In other cases, obviously not the case. It seems that Adobe has formulated a hypothesis.

    W3 schools: "The connection will not be closed when the execution of the script ends (mysql_close() will not close the connection open in mysql_pconnect()).» It will remain open for future use. »

    Barry

  • Cannot connect to the macbook pro guard icloud password request which I changed it too many times I don't remember and it still does not

    Can not connect to macbook pro, that keeps asking for password to icloud I have reset too many times I do not remember. Reinstalled operating system still does not work. Think to screw up the laptop and get back to a Windows machine. Not impressed with Apple.

    To connect to your computer, you must enter your computer in password journal, not your Apple ID.

    Otherwise, provide more details on exactly what is happening on.

    Writing an effective question of communities of Apple Support

Maybe you are looking for

  • Why emails don't appear on the screen?

    e-mail messages are not displayed to the top when I open computer.

  • My 8 month old iPhone 6s has battery problems...

    My 8 month old iPhone 6s began recently to close 20%, even 30% left of life battery. The LOAD icon comes in saying that it is completely flat when I know that it is not. If I start to load, it shows that there's a lot of life left in it. I am running

  • Please help me to activate my icloud unlock bypass

    Dear Sir. I have a problem with my icloud account cannot log in. I forgot my apple ID / icloud id and my password. I already bring the Inbox (because I am the first owner) to apple store in miri, sarawak, Malaysia. They are already calling your site.

  • * Compatible DirectX 9 .0c install on my laptop A30-214 *.

    For more information:================= After many video problems, it is necessary to upgrade the BIOS (version 1.80) to use Microsoft DirectX 9 .0c with this Toshiba A30 model 214. Good luck! OlivierParis

  • Ocultar iconos en labview 7.1

    Hola, queria saber as hay that hacer para ocultar for example el United Nations table en el front panel that I need en el diagrama digital control of blocking. ES para Labview 7.1 MUCHAS gracias