I have an Oracle 10g database that is accessed from an ASP.NET application. Although I used SQL Server in many different ways and Oracle for queries and reports, this is my first experience using Oracle as an OLTP database for an application.
Database-level procedures in packages usually take the form:
-- TYPE refcur IS REF CURSOR; PROCEDURE get_some_stuff(o_cursor OUT refcur, p_param1 IN INTEGER, p_param2 IN INTEGER) IS BEGIN OPEN o_cursor FOR SELECT whatever FROM whatever END
I assume this is done for the benefit of the ADO.NET layer, which is able to use the cursor from the output parameter, and I understand that this is an acceptable best practice for invoking Oracle processes from .NET.
In SQL Server, for example, we donβt have explicit reflex cursors if proc returns a result set (or multiple result sets) that is available as the output result set in both ADO.NET and SSMS, and you can just test the SP, by executing EXEC spname param1, param2 .
The problem I am facing is that I donβt know how to call them directly in SQL in Toad, for example, to be able to test the changes at the PL / SQL level before going into the application. Iβm very used to being able to implement and even remix the stored processes and functions in SQL Server so that I can reorganize the database interface layer without affecting the external interface for the application level code.
source share