Package Dialog¶
Use the Package dialog to create a (user-defined) package specification.
The Package dialog organizes the management of a package through the following
dialog tabs: General, Header, Body, and Security. The SQL tab displays the SQL
code generated by dialog selections.
Create Package dialog - General tab¶
Use the fields in the General tab to identify the package:
Use the
Namefield to add a descriptive name for the package. The name of a new package must not match any existing package in the same schema.Select the schema in which the package will reside from the drop-down listbox in the
Schemafield.Store notes about the package in the
Commentfield.
Click the Header tab to continue.
Create Package dialog - Header tab¶
Use the Header field to define the public interface for the package.
Click the Body tab to continue.
Create Package dialog - Body tab¶
Use the Body field to provide the code that implements each package object.
Click the Security tab to continue.
Create Package dialog - Security tab¶
Use the fields in the Security tab to assign EXECUTE privileges for the package to a role. Click the Add icon (+) to set privileges for the package:
Select the name of the role from the drop-down listbox in the
Granteefield.Click inside the
Privilegesfield. Check the boxes to the left of a privilege to grant the selected privilege to the specified user.The current user, who is the default grantor for granting the privilege, is displayed in the
Grantorfield.
Click the Add icon (+) to assign additional privileges; to discard a privilege, click the trash icon to the left of the row, and confirm the deletion in the Delete Row popup.
Click the SQL tab to continue.
Your entries in the Package dialog generate a SQL command that creates or modifies a package definition:
Create Package dialog - SQL tab¶
The example shown demonstrates creating a package named empinfo that includes
two function and two procedure.
Click the
Savebutton to save work.Click the
Cancelbutton to exit without saving work.Click the
Resetbutton to delete any changes to the dialog.