why we go for package? what are the advantages of using
instead of seperate procuderes or functions

Answers were Sorted based on User's Feedback



why we go for package? what are the advantages of using instead of seperate procuderes or function..

Answer / aravinda

package is collection of logically related pl/sql types
,items, subprograms. packages have following advantages over
procedures and functions.

Modularity, easy to design applications, information hiding,
added functionality and best performance.

we can declare global variables in packages which are valid
across application.

without invalidating the package we can modify the package body.

Is This Answer Correct ?    13 Yes 0 No

why we go for package? what are the advantages of using instead of seperate procuderes or function..

Answer / dhiraj

Packages are bunch of procedures and functions instead of
granting one by one procedure and function DBA can grant
packge to user.

Is This Answer Correct ?    7 Yes 5 No

why we go for package? what are the advantages of using instead of seperate procuderes or function..

Answer / ramakrishna

package is collection of logically related pl/sql types
,items, subprograms. packages have following advantages over
procedures and functions are

1.reduces number of acces to database.since, When you call
a packaged PL/SQL construct for the first time, the whole
package is loaded into memory. Thus, later calls to
constructs in the same package require no disk input/output
(I/O).

2.we can have overloading,public and private,encapsulation
features (like java) in package

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More SQL PLSQL Interview Questions

What is keys and its types?

0 Answers  


How many tables can you join in sql?

0 Answers  


What is forward declaration in pl sql?

0 Answers  


can we use out parameter in a function?Give an example.

4 Answers   Logica CMG, TCS,


how to remove records from table? no name 1 a 2 b 1 a 2 b 3 c

8 Answers   Oracle,






what is denormalization. : Sql dba

0 Answers  


What is raid? How does it help storage of databases?

0 Answers  


What is output spooling in sql*plus?

0 Answers  


Which one of the following pairs of aggregate functions do you use with character fields? 1. COUNT(field) and MAX(field) 2. AVG(field) and COUNT(field) 3. MIN(field) and SUM(field) 4. AVG(field) and MAX(field) 5. COUNT(field) and SUM(field)

6 Answers   HCL,


Can we connect to postgresql using sql developer?

0 Answers  


Name the tables where characteristics of Package, procedure and functions are stored ?

3 Answers  


what is inline command?

2 Answers  


Categories