PL/SQL and DB2 Database Concepts
Covers Oracle PL/SQL exception handling and DB2 database administration topics including tablespaces, referential integrity, query optimization, and authorization
Questions
Is any modification in logical level should not affect the view level?
- True
- False
select the valid Definition Languages in DBMS:
- Data Definition Language
- View Definition Language
- Query Definition Language
- Storage Definition Language
Low-level instruction generated by compiler are executed by DDL Interpreter.(True/False)
- True
- False
Which one of the following does not help to maintain referential integrity?
- Unique constraints
- Primary keys
- Cascading actions
- Foreign keys
When is the authorization check on DB2 objects done?
- at BIND time
- at RUN time
- at Execution time
- at End time
What is a synonym?
- A View of a table
- an alternate name for a table
- A Secondary table
- A Primary table
What is index cardinality?
- Number of distinct values a column contain
- Number of distinct values a column or columns contain
- Number of distinct values a row contain
- Number of distinct values a row or rows contain
What is filter factor?
- One divided by the number of distinct values of a column.
- Zero divided by the number of distinct values of a column.
- Zero divided by the number of distinct values of a row.
- One divided by the number of distinct values of a Rrow.
What is referential integrity?
- The relation of the primary key of a base table with foreign key of the reference table is known as referential integriety.
- The relation of the secondary key of a base table with foreign key of the reference table is known as referential integriety.
- The relation of the primary key of a secondary table with foreign key of the reference table is known as referential integriety.
- The relation of the primary key of a base table with index key of the reference table is known as referential integriety.
What is FREEPAGE and PCTFREE in TABLESPACE creation?
- PCTFREE: percentage of each page to be left free and FREEPAGE: Number of pages to be loaded with data between each free page.
- PCTFREE: percentage of each page to be loaded with data and FREEPAGE: Number of pages to be loaded with data between each free page.
- PCTFREE: percentage of each page to be left free and FREEPAGE: Number of pages to be left free with data between each loaded page.
- PCTFREE: percentage of each page to be loaded with data between each free page and FREEPAGE: Number of pages to be left free.
What are the 4 environments which can access DB2?
- TSO and CICS
- IMS and BATCH
- TSO, CICS, IMS and DB2
- TSO, CICS, IMS and VSAM
When will you chose to run RUNSTATS?
- After a load
- After mass updates
- After a deletes
- After a inserts
Each PL/SQL block can have its own exception section
- True
- False
PL/SQL Exception message consists of
- Type of Exception
- Finally block
- An Error Code
- A message
Types of PL/SQL exceptions are
- Named System Exceptions
- Unnamed System Exceptions
- Implicit Exceptions
- Explicit Exceptions
- User-defined Exceptions
Named system exceptions are:
- Not Declared explicitly
- Raised implicitly when a predefined Oracle error occurs
- caught by referencing the standard name within an exception-handling routine
- All of the above
- None of the above
To handle the exception explicity, they must be declared using Pragma EXCEPTION_INIT
- True
- False
When you declare your own exception, you must ____ it explicitly
- DECLARE
- RAISE
- PRAGMA
- INITIATE
Run-time errors arise from
- Hardware failures
- Design faults
- Coding mistakes
- None of the above
- All of the above
___ exception is raised ___ whenever your PL/SQL program violates an Oracle rule or exceeds a system-dependent limit
- internal, explicitly
- internal, implicitly
- user-defined, explicitly
- user-defined, implicitly