Oracle 5.0 Reference Manual page 1858

Table of Contents

Advertisement

20.2.3.7. Editing User Defined Functions (UDF)
To create a new User Defined Function (UDF), right-click the UDFs node under the connection node
in Server Explorer. From the node's context menu, choose the Create UDF command. This command
opens the UDF Editor.
To modify an existing UDF, double-click the node of the UDF to modify, or right-click this node and
choose the Alter UDF command from the context menu. Either of these commands opens the UDF
Editor.
The UDF editor enables you to set the following properties:
• Name
• So-name (DLL name)
• Return type
• Is Aggregate
There are text fields for both names, a combo box for the return type, and a check box to indicate if the
UDF is aggregate. All these options are also accessible using the Properties window.
The property
To save changes you have made, use either Save or Save All buttons of the Visual Studio main
toolbar, or press Control+S. Before changes are saved, you will be asked to confirm the execution of
the corresponding SQL query in a confirmation dialog.
To observe the runtime behavior of a stored routine and debug any problems, use the Stored
Procedure Debugger (available in Connector/Net 6.6 and higher). See
Stored Procedures and Functions"
20.2.3.8. Debugging Stored Procedures and Functions
The stored procedure debugger, new in Connector/Net 6.6, provides facilities for setting breakpoints,
stepping into individual statements (Step Into, Step Out, Step Over), evaluating and changing local
variable values, evaluating breakpoints, and other typical debugging tasks.
Installing the Debugger
To enable the stored procedure debugger, install Connector/Net 6.6 or higher and choose the
Complete option.
Privileges
The debugger recreates at the start of each debug session a
server. This database helps to track the instrumented code and implement observability logic in the
debugged routine. Your current connection needs to have privileges to create that database, and its
associated stored routines, functions, and tables.
The debugger makes changes behind the scenes to temporarily add instrumentation code to the stored
routines that you debug. You must have the
function, or trigger that you debug. (Including procedures and functions that are called, and triggers that
are fired, by a procedure that you are debugging.)
Starting the Debugger
To start the debugger, follow these steps:
Connector/Net Visual Studio Integration
in the Properties window is read-only.
Server
for details.
serversidedebugger
privilege for each stored procedure,
ALTER ROUTINE
1838
Section 20.2.3.8, "Debugging
database in your

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents