You are on page 1of 12

1.

A package is a database object that groups logically related PL/SQL types, items, functions, and
procedures. Packages usually have two parts, a specification, and a body. The specification is the
interface to your application. The body implements the specification.

2. The CREATE PACKAGE statement creates or replaces the specification for a stored package, which is
an encapsulated collection of related procedures, functions, and other program objects stored as a unit
in the database.

2.A.

2.B.
2.C.
2.D.
3. The specification holds public declarations that are visible to your application. The body holds
implementation details and private declarations that are hidden from your application. You can
debug, enhance, or replace a package body without changing the specification. You can change a
package body without recompiling calling programs because the implementation details in the body
are hidden from your application.

3.A.
3.B.
4. Packages have a long history in software engineering, offering important features for reliable,
maintainable, reusable code, often in team development efforts for large systems.
4.A.
4.B.
5. In PL/SQL, a package is a schema object that contains definitions for a group of related
functionalities. A package includes variables, constants, cursors, exceptions, procedures, functions,
and subprograms. It is compiled and stored in the Oracle Database. Typically, a package has a
specification and a body. A package specification is mandatory while the package body can be
required or optional, depending on the package specification.

You might also like