Packages are encapsulated collections of related procedures, stored functions, and other program objects stored together in the database. Package bodies, specified subsequently, defines these objects. An package consists of two parts: a specification and a body.
Just simply click -> Package to open
an object pane for Package. A right-click displays the popup
menu or using the object pane toolbar below, allowing you to create new, edit
and delete the selected package.
Create Package (Package Specification)
To create a new package
- Select anywhere on the object pane.
- Click the
New Package from the object pane toolbar.
or - Right-click and select
New Package from the popup menu.
- Edit package properties on the appropriate tabs of the Package Designer.
To edit the existing package (manage its definition etc)
- Select the package for editing in the object pane.
- Right-click and select the
Design Package from the popup menu or simply double-click the package.
or - Click the
Design Package from the object pane toolbar.
- Edit package properties on the appropriate tabs of the Package Designer.
Delete Package
To delete a package
- Select the package for deleting in the object pane.
- Right-click and select the
Delete Package from the popup menu.
or - Click the
Delete Package from the object pane toolbar.
- Confirm deleting in the dialog window.
Create Package Body (Package Body)
To create a new package body
- Select the package for modifying in the object pane.
- Right-click and select
New Package Body from the popup menu.
- Edit package body properties on the appropriate tabs of the Package Body Designer.
To edit the existing package body (manage its definition etc)
- Select the package for editing in the object pane.
- Right-click and select the
Design Package Body from the popup menu.
- Edit package body properties on the appropriate tabs of the Package Body Designer.
Delete Package Body
To delete a package body
- Select the package for deleting in the object pane.
- Right-click and select the
Delete Package Body from the popup menu.
- Confirm deleting in the dialog window.
Run Package
To run a package in the object pane
- Select the package for executing in the object pane.
- Click the
Execute Package from the object pane toolbar.
or - Right-click and select
Execute Package from the popup menu.
- View the returned data on the DBMS Output tab.
To run a package in the Package Designer
- Create a new package/open the existing package.
- Click
Run.
- View the returned data on the DBMS Output tab.
Debug Package
To debug a package
- Select the package for debugging in the object pane.
- Right-click and select the Debug Package from the popup menu.
- Debug the package in the Debugger.
To debug a package in the Package Designer
- Create a new package/open the existing package.
- Click
Debug.
- Debug the package in the Debugger.
Maintain Package
To maintain a package
- Select the package for maintaining in the object pane.
- Right-click and select the Maintain from the popup menu.
- Compile
- Compile Debug
Achieve Package Information
To achieve a package information (Package Owner, Status, Body Status and DDL, etc)
- Select the package in the object pane.
- Right-click the selected package and choose Package Information from the popup menu to view the Object Information.
or - Choose View -> Object Information in the main menu.