Unix Technical Forum

Package with no body

This is a discussion on Package with no body within the Oracle Database forums, part of the Database Server Software category; --> Hi, I have a package with no body associated, but the package works (Oracle 9.2.0.6) how is it possible ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-26-2008, 03:57 AM
astalavista
 
Posts: n/a
Default Package with no body

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


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-26-2008, 03:57 AM
fitzjarrell@cox.net
 
Posts: n/a
Default Re: Package with no body

On Feb 6, 2:32 pm, "astalavista" <nob...@nowhere.com> 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


How would anyone know without seeing your code? Post it and possibly
an answer will appear.


David Fitzjarrell


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-26-2008, 03:57 AM
DA Morgan
 
Posts: n/a
Default Re: Package with no body

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@x.washington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:44 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com