Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.tools -> Oracle Stored Procedures and result sets
Hi,
I'm in the process of migrating several moderately large applications from
Sybase to Oracle. I have two questions:
create proc myProcName (@parm1 char(9)) as
select * from myTablename
where myField = @parm1
go
I know it's not that simple in Oracle but I need a clear example of how to do it.
2) Is there any performance gain from using stored procedures in Oracle to retrieve read-only data? Our experience with Sybase has been that a stored procedure gains us a performance boost on the order of a factor of 10-20 over SQL embedded in an application. If there is no similar performance gain in Oracle, is there any other reason to use a stored procedure in this manner (other than the obvious security benefits)?
Any help will be greatly appreciated,
dragon_at_email.unc.edu
Home Page: http://www.unc.edu/~dragon/
"Meddle not in the affairs of dragons,
for thou art crunchy and taste good with ketchup."
Received on Wed Apr 19 2000 - 00:00:00 CDT
![]() |
![]() |