Hello,
i need  your help for this situation :

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,
please ??

 Regards,
 Santana
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Oracle PL/SQL" group.
To post to this group, send email to Oracle-PLSQL@googlegroups.com
To unsubscribe from this group, send email to
oracle-plsql-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/Oracle-PLSQL?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to