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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Packages vs. Procedure

Re: Packages vs. Procedure

From: Kurt Laugesen <kul_at_post3.tele.dk>
Date: Fri, 25 Sep 1998 11:35:19 +0200
Message-ID: <6ufo1e$3vog$1@news-inn.inet.tele.dk>


You could add:
4) If you use functuins in SQL they will need a 'pragma restrict_references' which - to my knowledge - only can be used in a package header. Regards
Kurt

tomscott_at_nospam.abac.com wrote in message <360abc95.529529633_at_news1.abac.com>...
>>When is it necessary to use packages? For the time beeing I found only the
>>advantage if I use global variables. Is that right?
>
>Packages offer a couple more benefits:
>1) They are loaded into memory in such a way that the code is shared,
>but each user gets their own set of variables. Thus, if you are using
>packaged procedures that refer to other procedures within the package,
>there's no need to load the procedures separately.
>2) They are much easier to maintain. For example, the current project
>I'm working on has about 20 packages. If all these were anonymous
>procedures, there would be around 250 of them, a real nightmare to
>maintain.
>3) Packages come about as close as you can get to object oriented
>development within a RDBMS. They have encapsulation and polymorphism.
>The only thing they lack is inheritance. (I guess this is the
>equivalent of a Microsoft object. :-) )
Received on Fri Sep 25 1998 - 04:35:19 CDT

Original text of this message

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