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 window clause?

1 Answers   TCS,


How will you delete a particular row from a Table?

7 Answers   Cap Gemini,


What does where 1 1 mean in sql?

0 Answers  


Explain what is dbms?

0 Answers  


How do I install microsoft sql?

0 Answers  






Can we write create command in the plsql block?if possible how?

2 Answers  


What is record variable?

0 Answers  


What does plv msg allows you to do?

0 Answers  


What is a full join sql?

0 Answers  


How many types of cursors supported in pl/sql?

0 Answers  


what happens if you no create privilege in a database? : Sql dba

0 Answers  


Inline the values in PL/SQL, what does it mean.?

0 Answers   MCN Solutions,


Categories