Creating PL/SQL Functions, Procedures, and Packages

To create a PL/SQL function, procedure, or package:

  1. Select View | Connection Navigator .
  2. Expand Database and select a database connection.
  3. In the connection, expand a schema.
  4. Right-click a folder corresponding to the object type ( Procedures, Packages, Functions).
  5. Choose New PL/SQL object_type. The Create PL/SQL dialog appears for the function, package, or procedure.
  6. Enter a valid name for the function, package, or procedure and click OK.

A skeleton definition will be created and opened in the Code Editor. Edit the subprogram to define it.


Creating, Editing and Using PL/SQL Programs

 

Copyright © 1997, 2004, Oracle. All rights reserved.