General SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesGeneral SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old June 23rd, 2004, 05:25 AM
Elixir Elixir is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 4 Elixir User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Angry Oracle 8i Maximum Cursor Open Exceeds?

CREATE OR REPLACE PACKAGE types
AS
TYPE ref_cursor IS REF CURSOR;

END;
/

CREATE OR REPLACE FUNCTION findEmployees
RETURN types.ref_cursor
AS
emp_csr types.ref_cursor;

BEGIN
OPEN emp_csr FOR
SELECT * FROM Employee_Detail;
RETURN emp_csr;
END;

I call the above-mentioned function from Java CallableStatement and I did close the ResultSet but when I call that CallableStatement up to 50 times...
An Exception occured...that is Maximum Cursor Open Exceeds..
I think I should have closed the cursor at the end of the function but I can't managed to close it.

Reply With Quote
  #2  
Old June 30th, 2004, 10:40 AM
Elixir Elixir is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 4 Elixir User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Please show me some clues to be able to call a function from oracle which return the ref cursor up to unlimited times.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesGeneral SQL Development > Oracle 8i Maximum Cursor Open Exceeds?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT