Archive for May, 2009
How do I get a Record Set from a Stored Procedure in Oracle
Posted by Michael Ritacco in Database Development, Oracle Database on May 30, 2009
Developers that are familiar with using MS SQL Server eventually get the opportunity to work on a project that is Oracle based. This opportunity sometimes becomes an extremely frustrating time due to the philosophical differences in the approach to database development. I believe it is hard for most developers to transition between the two database platforms, not because one is necessarily better or worse, just because it is too hard for many people to change the way they solve problems once proven methodologies have been established.
These are a few questions that are just about guaranteed to come up during the initial stages of the project:
How do I get a record set from Oracle using a stored procedure?
Using a REF_CURSOR you can return a record set/cursor from a stored procedure.
Why don’t stored procedure work the same as in SQL Server?
In most cases you just use straight SQL and do not need a stored procedure. In Oracle, using cursors and adhoc SQL is the way. In SQL Server, using cursors and adhoc SQL is to be avoided (generally speaking, there are no absolutes). Why you need to use a stored procedure for a SQL statement in Oracle must be fully explored. I am not saying you don’t need one, but the reason is not because that is the way you do it in SQL Server.
Please do not even start coding until you have read the following documents:
Oraclenotes.com is now DBAnotes.com
Posted by Michael Ritacco in Announcements & News on May 3, 2009
If you are looking for Oraclenotes.com, Do Not Panic, you are in the right place. Today we have finally made the switch from Oraclenotes.com to DBAnotes.com. Oraclenotes.com was a stand-alone website since 1999, and we appreciate all of the support we received over the past 10 years.
It was a difficult decision to consolodate the two sites, but we wanted to move forward with one domain dedicated to all things databases. This vision resulted in DBAnotes.com, and we hope you enjoy the new site.
Recent Comments