I have several Oracle queries that perform well when run through SQL*PLUS. However when they are executed as a part of a PL/SQL package, they take MUCH longer.
Our DBA has watched these queries take 10 minutes through PLSQL and 10 seconds through SQL*Plus.
Does anybody have any pointers on where to look for the misconfiguration?
Client - Windows 2000 Server - Linux (Oracle Enterprise)
Thanks
--
Resolution:
I wish I could have accepted everyone's answers. Several of them were quite helpful.
- The query was converting data types.
- The execution plans didn't match. (Hints fixed that.)
- The DBA was looking at the time the cursor was open instead of the query time.