You are on page 1of 5

1.

Improving performance (and by this we usually mean query performance) is always a hot item with
database administrators and users.

2. Dynamic SQL is a programming methodology for generating and running SQL statements at run
time. It is useful when writing general-purpose and flexible programs like ad hoc query systems,
when writing programs that must run database definition language (DDL) statements, or when you
do not know at compilation time the full text of a SQL statement or the number or data types of its
input and output variables.

2.A.
2.B.
3. PL/SQL sends SQL statements such as DML and queries to the SQL engine for execution, and SQL
returns the results to PL/SQL. You can minimize the performance overhead of this communication
between PL/SQL and SQL by using the PL/SQL features that are known collectively as bulk SQL. The
FORALL statement sends INSERT, UPDATE, or DELETE statements in batches, rather than one at a time.
The BULK COLLECT clause brings back batches of results from SQL. If the DML statement affects four or
more database rows, bulk SQL can improve performance considerably.

3.A.

4. Using normal (that is, serial) processing, the data involved in a single request (for example, user
query) is handled by one database process. Using parallel processing, the request is broken down into
multiple units to be worked on by multiple database processes. Each process looks at only a portion of
the total data for the request.

You might also like