Skip to Main Content
Advanced Oracle PL/SQL Programming with Packages
book

Advanced Oracle PL/SQL Programming with Packages

by Steven Feuerstein
October 1996
Intermediate to advanced content levelIntermediate to advanced
687 pages
16h 41m
English
O'Reilly Media, Inc.
Content preview from Advanced Oracle PL/SQL Programming with Packages

2.4. Organizing Package Source Code

Most Oracle shops still rely on SQL*Plus to create and compile PL/SQL programs. This means that the source code resides in one or more operating system files. To avoid losing control of that source, you should adopt some simple conventions for the extensions of your files. The approach I have taken is shown in the table below.

File ExtensionDescription
procname.spThe definition of a stored procedure.
funcname.sfThe definition of a stored function.
pkgname.sppA stored package definition that contains the code for both the package specification and the package body.
pkgname.spsThe definition of a stored package specification only.
pkgname.spbThe definition of a stored package body only.
scriptname.sqlAn anonymous PL/SQL block or a SQL*Plus script (SQL statement plus SQL*Plus commands).
procname.wpThe wrapped[2] definition of a stored procedure.
funcname.wfThe wrapped definition of a stored function.
pkgname.wppA stored package definition that contains the wrapped code for both the package specification and the package body.
pkgname.wpsThe wrapped definition of a stored package specification only.
pkgname.wpbThe wrapped definition of a stored package body only.
scriptname.sqlAn anonymous PL/SQL block or a SQL*Plus script (SQL statement plus SQL*Plus commands).

[2] As of PL/SQL Release 2.2, you can "wrap" your PL/SQL source code into an encrypted format. This format can be compiled into the database, but is not readable. Wrapped code is primarily of value ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Oracle Database 12c PL/SQL Programming

Oracle Database 12c PL/SQL Programming

Michael McLaughlin
Oracle PL/SQL for DBAs

Oracle PL/SQL for DBAs

Arup Nanda, Steven Feuerstein
Expert Oracle PL/SQL

Expert Oracle PL/SQL

Ron Hardman, Michael McLaughlin

Publisher Resources

ISBN: 1565922387Supplemental ContentCatalog PageErrata