Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Package with no body

Re: Package with no body

From: DA Morgan <damorgan_at_psoug.org>
Date: Tue, 06 Feb 2007 15:47:13 -0800
Message-ID: <1170805631.694076@bubbleator.drizzle.com>


astalavista wrote:
> Hi,
>
> I have a package with no body associated,
> but the package works (Oracle 9.2.0.6)
> how is it possible ?
>
> Thanks in advance

Possible? It is common.

SQL> SELECT object_type, COUNT(*)

   2 FROM dba_objects
   3 WHERE object_type LIKE 'PACKAGE%'
   4 GROUP BY object_type;

OBJECT_TYPE COUNT(*)

------------------- ----------
PACKAGE                    851
PACKAGE BODY               795

Package headers are used to define constants, variables, exceptions, and data types. No package body is used or required.

You can find demos of this functionality in Morgan's Library at www.psoug.org under PACKAGES, USER DEFINED.

Likely there are other things about packages of which are unfamiliar so also look up PRAGMA SERIALLY_REUSABLE and the INITIALIZATION section.

HTH

-- 
Daniel A. Morgan
University of Washington
damorgan_at_x.washington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Received on Tue Feb 06 2007 - 17:47:13 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US