what are the advantages of package?

Answers were Sorted based on User's Feedback



what are the advantages of package? ..

Answer / useroracle

Advantages of package:
-----------------------
A. Modularity
- Encapsulate related constructs.

B. Easier Application Design
- Code and compile specification and body separately.

C. Hiding Information
- Only the declarations in the pacakge specification
are visible and accessible to application.
- Private constructs in the package body are hidden
and inaccesible.
- All coding is hidden in the package body.

D. Added Functionality
- Persistency of variables and coursors.

E. Better Performance
- The entire package is loaded into memory when the
package is first referenced.
- There is only one copy in memory for all users.
- The dependency hierarchy is simplified.

F. Overloading
- Multiple subprograms of the same name.

Is This Answer Correct ?    55 Yes 3 No

what are the advantages of package? ..

Answer / arup ratann banerjee

The advantage of package is :---
1) Encapsulation
2) Security
3) Performance gaining
4) Overloading and polymorphism

Is This Answer Correct ?    47 Yes 8 No

what are the advantages of package? ..

Answer / suresh somayajula

Advantages of packages :

1. easier application and design
2. Information hiding
3. moularity and maintainability.

Is This Answer Correct ?    20 Yes 4 No

what are the advantages of package? ..

Answer / roopesh kumar

The main purpose for using a packege is grouping the
related objects like proc., func. etc.

For ex. we can create one package for payroll of HRMS system
that can be used for storing related proc, func. & other DB
objects.

Is This Answer Correct ?    23 Yes 8 No

what are the advantages of package? ..

Answer / pranab kumar mishra

1.Saving the rext of the create package statement in two
different sql files facilitates latter modification to the
package.Each package is easily understood & interface
between package are simple,clear& well defined.

2.package promote code reuse through the use of library that
contain stored procedure & function.so redundent coding.

3.Hiding information.

Is This Answer Correct ?    17 Yes 4 No

what are the advantages of package? ..

Answer / madhavi

The main advantage of package is one time compilation
process.while the first time of compilation the source code
is converted into P-code and stored in the database so that
for n no of time calling the pckg it does not take any
memory locations...
*Then whatevere the database objects declared in the
package specification will be globally accessible.

Is This Answer Correct ?    18 Yes 5 No

what are the advantages of package? ..

Answer / priya

Package is a group of similar types of classes, interfaces and sub-packages. .
Packages is used to categorize the classes and interfaces.
Packages provides access protection. Package removes naming collision.

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More SQL PLSQL Interview Questions

table :- city name country code abc 11 bcd 22 cde 232 def 33 write a procedure , so that when we give a phone no. eg - 1123456789 - o/p sud be city name = abc if phone no. - 2322345897 , o/p sud be =cde note - bcd and cde city name sud be diff. as dey diff only with th last no. Pls ans. this questnion.

1 Answers  


Show the two pl/sql cursor exceptions.

0 Answers  


What are the advantages of pl sql over sql?

0 Answers  


How do I view output in sql developer?

0 Answers  


we have a package and we have grants to execute that package inside of that we have table, here we don't have privileges to this table? whether this package will execute or not?

3 Answers   TCS,






What is sql*loader and what is it used for?

0 Answers  


Can I learn sql in a week?

0 Answers  


What are the attributes of SQL*PLUS ?

2 Answers   Dream Careers, Oracle,


there are .......different types of serializability

1 Answers   Wipro,


full outer join syntax

5 Answers  


Can we join more than 2 tables in sql?

0 Answers  


What are sql*plus environment variables?

0 Answers  


Categories