Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

The return cursor(SYS_REFCURSOR) is too much slow

771994May 12 2010 — edited May 12 2010
Hi,

I have a table :"CUSTOMER" with two thousand of records, the required
time to retrieve this information with a query is less than 2
seconds :
SELECT * FROM CUSTOMER

But i need get this information through a function that require more
than 2 MINUTES!!!

FUNCTION getCUSTOMER( ) RETURN SYS_REFCURSOR AS
CUR SYS_REFCURSOR;
BEGIN

OPEN cur FOR ' SELECT * FROM CUSTOMER ';

RETURN cur;
END;

There is any database parameter that i need change ? Any suggestion,


Regards
Sandeep
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 9 2010
Added on May 12 2010
4 comments
2,321 views