Set - 9

Question 6 :

Explain the difference between a FUNCTION, PROCEDURE and PACKAGE.

Answer :

A function and procedure are the same in that they are intended to be a collection of PL/SQL code that carries a single task. While a procedure does not have to return any values to the calling application, a function will return a single value. A package on the other hand is a collection of functions and procedures that are grouped together based on their commonality to a business function or application.

Question 7 :

Explain the use of table functions.

Answer :

Table functions are designed to return a set of rows through PL/SQL logic but are intended to be used as a normal table or view in a SQL statement. They are also used to pipeline information in an ETL process.

Question 8 :

Name three advisory statistics you can collect.

Answer :

Buffer Cache Advice, Segment Level Statistics, & Timed Statistics

Question 9 :

Where in the Oracle directory tree structure are audit traces placed?

Answer :

In unix $ORACLE_HOME/rdbms/audit, in Windows the event viewer

Question 10 :

Explain materialized views and how they are used.

Answer :

Materialized views are objects that are reduced sets of information that have been summarized, grouped, or aggregated from base tables. They are typically used in data warehouse or decision support systems.