Unix Technical Forum

UTL_HTTP ORA-00018 error

This is a discussion on UTL_HTTP ORA-00018 error within the Oracle Miscellaneous forums, part of the Oracle Database category; --> Hello, I am trying to write a PL/SQL procedure that will loop through a list of URLs and determine ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database > Oracle Miscellaneous

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-08-2008, 10:08 AM
smusgrove@ircwv.com
 
Posts: n/a
Default UTL_HTTP ORA-00018 error

Hello,

I am trying to write a PL/SQL procedure that will loop through a list
of URLs and determine whether or not they actually exist. For each
URL, I'm performing the following sequence of procedure/function calls:
UTL_HTTP.BEGIN_REQUEST, UTL_HTTP.GET_RESPONSE, UTL_HTTP.END_RESPONSE.
After about 675 iterations of the loop, I get the "ORA-00018: maximum
number of sessions exceeded" exception. I'm not using persistent
connection support. The basic loop follows. I would appreciate any
help that you can provide.

Thanks,

Steve.

UTL_HTTP.SET_DETAILED_EXCP_SUPPORT (TRUE);
UTL_HTTP.SET_PERSISTENT_CONN_SUPPORT (FALSE, 1);

FOR cImages IN c_add_files LOOP
-- See if the image URL is valid.
request := UTL_HTTP.BEGIN_REQUEST (URL =>
cImages.IAF_LOCATION,
METHOD => 'GET');
UTL_HTTP.SET_HEADER (R => request,
NAME => 'User-Agent',
VALUE => 'Mozilla/4.0');
response := UTL_HTTP.GET_RESPONSE (r => request);

IF response.STATUS_CODE <> UTL_HTTP.HTTP_OK THEN
...
END IF;
UTL_HTTP.END_RESPONSE (r => response);
END LOOP;

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:16 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com