what are the advantages of package?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
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 |
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 |
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 |
What is a table?
What is a native sql query?
How we get all_group_function's(Sum,avg,count,max and min_value of a column(Sal) Using pl/sql anonymous block, with out using group function's. You shouldn't use more than one select statement in entire the program. Like cursor c is select * from <table_name>; except this you can't use another select statement. You can use no of variables as per requirement.
How to write a query to show the details of a student from students table whose
Can you join a table to itself?
How toimport .dmp file in lower version of oracle from higher version ?
How do I view tables in mysql?
What is a left inner join?
can a stored procedure call itself or recursive stored procedure? : Sql dba
How exception handling is done in advance pl/sql?
How do you use join?
Does varchar need length?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)