3.10 Managing Functions
A function is a subprogram that can take parameters and return a single value. You can use Object Browser to create, view, edit, compile, download, and drop functions.
- Creating a Function
Create a function using Object Browser. - Viewing a Function
Select a function from the Object Tree and access tabs in the Object Detail View. - Editing a Function
Select a trigger from the Object Tree. - Compiling a Function
Select a function from the Object Tree and click Save and Compile. - Downloading a Function
Select a function from the Object Tree and click Download to save the function. - Dropping a Function
Select a function from the Object Tree and click Drop.
See Also:
- Oracle Database SQL Language Reference for information about PL/SQL functions
- Oracle Database PL/SQL Language Reference
Parent topic: Managing Database Objects with Object Browser
3.10.1 Creating a Function
Create a function using Object Browser.
To create a function:
Parent topic: Managing Functions
3.10.2 Viewing a Function
Select a function from the Object Tree and access tabs in the Object Detail View.
To view a function:
- In Object Browser, Object Tree, expand Functions and select a function.
- The Object Detail View appears and displays four tabs:
- Code - View the source code for the
function, or edit it manually. Available actions include:
- Download
- Save and Compile
- Drop
- Refresh
- Dependencies - View objects that use (or depend) on the current function and objects that the function depends on. Select the Refresh button to refresh the list of functions.
- Errors - View the errors related to the current function. Select the Refresh button to refresh the list of functions.
- Grants - View the details of grants
for the current function. Available buttons include:
- Grant
- Revoke
- Refresh
- Code - View the source code for the
function, or edit it manually. Available actions include:
Parent topic: Managing Functions
3.10.4 Compiling a Function
Select a function from the Object Tree and click Save and Compile.
If you edit and make changes to a function, you must compile to save your changes. Compiling re-creates the function in the database.
To compile a function in Object Browser:
Parent topic: Managing Functions
3.10.5 Downloading a Function
Select a function from the Object Tree and click Download to save the function.
To download a function:
Parent topic: Managing Functions
3.10.6 Dropping a Function
Select a function from the Object Tree and click Drop.
To drop a function in Object Browser:
Parent topic: Managing Functions