Professional Documents
Culture Documents
Datatypes PL/SQL
31 Name the tables where characteristics of Package, procedure and functions are stored ?
It is not possible. As triggers are defined for each table, if you use COMMIT of ROLLBACK in a trigger,
it affects logical transaction processing.
33 How packaged procedures and functions are called from the following?
a. Stored procedure or anonymous block
b. an application program such a PRC C, PRO COBOL
c. SQL *PLUS
34 How many types of database triggers can be specified on a table ? What are they ?
If FOR EACH ROW clause is specified, then the trigger for each Row affected by the statement.
If WHEN clause is specified, the trigger fires according to the returned Boolean value.
BEGIN
Executable statements.
Exception.
exception handlers
end;
WHERE CURRENT OF clause in an UPDATE,DELETE statement refers to the latest row fetched from a
cursor.
Database Triggers
There are two types of cursors, Implicit Cursor and Explicit Cursor.
PL/SQL uses Implicit Cursors for queries.
User defined cursors are called Explicit Cursors. They can be declared and used.
39 Explain how procedures and functions are called in a PL/SQL block ?
Programmatic Constructs
Last Update: September 06, 2004
1 What are the different types of PL/SQL program units that can be defined and stored in ORACLE
database ?
Procedures and Functions,Packages and Database Triggers.
2 What are the differences between Database Trigger and Integrity constraints ?
A declarative integrity constraint is a statement about the database that is always true. A constraint
applies to existing data in the table and any statement that manipulates the table.
A trigger does not apply to data loaded before the definition of the trigger, therefore, it does not
guarantee all data in a table conforms to the rules established by an associated trigger.
A trigger can be used to enforce transitional constraints where as a declarative integrity constraint
cannot be used.