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!

Oracle Procedure best practices

DB_JanitorApr 12 2009 — edited Apr 13 2009
Hi All! I'm a SQL Server DBA, and I'm learning Oracle as I'm planning to become an Oracle DBA for many reasons.

I need the experts opinion on something here. To give you some perspective: it's very common to use stored procedures in SQL Server to return result sets, rather than ad hoc SQL because it is more manageable and secure (and at times performs better).

Can the same be said for Oracle Procedures, or is this completely different? I cringe at the idea of having to include ad hoc SQL in the application layer rather than calling a procedure which executes code stored inside Oracle.

So experts, how do you handle this? Do you have actual SQL code in your applications? Is it true that Oracle Procedures can only return result sets with cursors?

Thank you very much for putting up with my novice questions. :)

Justin
This post has been answered by Satyaki_De on Apr 13 2009
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 11 2009
Added on Apr 12 2009
14 comments
1,617 views