A procedure or function is a schema object that consists of a set of SQL statements and other PL/SQL constructs, grouped together, stored in the database, and run as a unit to solve a specific problem or perform a set of related tasks.
Procedures and functions are identical except that functions always return a single value to the caller, while procedures do not.
Just simply click to open an object pane for Function.
A right-click displays the popup menu or using the object pane
toolbar below, allowing you to create new, edit and delete the selected function/procedure.
Create Function/Procedure
To create a new function/procedure
- Select anywhere on the object pane.
- Click the
New Function from the object pane toolbar.
or - Right-click and select
New Function from the popup menu.
- Edit function/procedure properties on the appropriate tabs of the Function/Procedure Designer.
Hint: To create new function/procedure you
can also right-click the Function node of the navigation pane
and select the New Function from
the popup menu.
To edit the existing function/procedure
- Select the function/procedure for editing in the navigation pane/object pane.
- Right-click and select the
Design Function from the popup menu or simply double-click the function/ procedure.
or - Click the
Design Function from the object pane toolbar.
- Edit function/procedure properties on the appropriate tabs of the Function/Procedure Designer.
Run Function/Procedure
To run a function/procedure in the navigation pane/object pane
- Select the function/procedure for executing in the navigation pane/object pane.
- Click the
Execute Function from the object pane toolbar.
or - Right-click and select
Execute Function from the popup menu.
- View the returned data on the DBMS Output tab.
To run a function/procedure in the Function/Procedure Designer
- Create a new function/procedure or open the existing function/procedure.
- Click
Run.
- View the returned data on the DBMS Output tab.
Debug Function/Procedure
To debug a function/procedure in the object pane
- Select the function/procedure for debugging in the object pane.
- Right-click and select the Debug Function from the popup menu.
- Debug the function/procedure in the Debugger.
To debug a function/procedure in the Function/Procedure Designer
- Create a new function/procedure or open the existing function/procedure.
- Click
Debug.
- Debug the function/procedure in the Debugger.
Maintain Function/Procedure
To maintain a function/procedure
- Select the function/procedure for maintaining in the object pane.
- Right-click and select the Maintain from the popup menu.
- Compile
- Compile for Debug
Delete Function/Procedure
To delete a function/procedure
- Select the function/procedure for deleting in the navigation pane/object pane.
- Right-click and select the
Delete Function from the popup menu.
or - Click the
Delete Function from the object pane toolbar.
- Confirm deleting in the dialog window.
Achieve Function/Procedure Information
To achieve a function/procedure information (Owner, Type and DDL, etc)
- Select the function/procedure in the navigation pane/object pane.
- Right-click the selected function/procedure and choose Function Information
from the popup menu to view the Object Information.
or - Choose View -> Object Information in the main menu.