Oracle Database - Triggers, Partitioning, and Performance
Covers advanced Oracle database topics including triggers, INTERVAL partitioning, REGEXP functions, and SQL performance tuning techniques.
Questions
Which two parameters can be set to tell the Oracle to use OMF (Oracle Managed Files)?
- DB_CREATE_FILE_DEST
- DB_CREATE_ONLINE_LOG_n
- USER_DUMP_DEST
- LOG_ARCHIVE_DEST
Why is searching for large-table full-table scans critical to SQL tuning?
- They indicate an optimized execution plan.
- They may be able to be tuned to use an index
- The full-table scan should be normalized from the database design
- A full-table scan is always sub-optimal.
Which character is used to continue a statement in SQL*Plus?
- / '
- * '
- - '
- = '
Which Oracle access method is the fastest way for Oracle to retrieve a single row?
- Primary key access
- Access via unique index
- Table access by ROWID
- Full table scan
To produce a meaningful result set without any cartesian products, what is the minimum number of conditions that should appear in the WHERE clause of a four-table join?
- 8
- 3
- 2
- 4
What best describes the relationship between indexes and SQL performance?
- Indexes are only used in special cases
- Indexes are used to make table storage more efficient
- Indexes rarely make a difference in SQL performance
- Indexes exist solely to improve query speed
Which is a major problem with SQL?
- SQL cannot support object-orientation
- The same query can be written in many ways, each with vastly different execution plans.
- SQL syntax is too difficult for non-computer professionals to use
- SQL creates excessive locks within the database
What was a problem with navigational data access languages?
- The user had to have knowledge of the table and index structures
- Navigational data access was far slower than declarative access.
- Navigational access languages required the coder to embed their queries inside a procedural language shell.
- Navigational languages were far slower then SQL
Which of the following are valid table-partitioning methods?
- Range
- Freelist
- Hash
- Index
INTERVAL PARTITIONING IS NOT SUPPORTED FOR INDEX-ORGANIZED TABLES.
- True
- False
CAN WE SPECIFY MULITPLE PARTITIONING KEY COLUMNS IN INTERVAL PARTITIONING TECHNIQUE
- True
- False
CAN WE SPECIFY VARCHAR DATATYPE FOR THE PARTITIONING KEY IN INTERVAL PARTITIONING TECHNIQUE
- True
- False
IS IT POSSIBLE TO SPECIFY THE EXECUTION ORDER OF TRIGGERS IN ORACLE 10G
- True
- False
CAN SIMPLE_INTEGERS CONTAIN NULL VALUES
- True
- False
REGEXP_COUNT TAKES STRING AND REGULAR EXPRESSION AND RETURNS NUMBER OF TIMES THE EXPRESSION IS PRESENT IN THE STRING
- True
- False
INTERVAL PARTITIONING IS A PARTITIONING TECHNIQUE BASED ON
- HASH
- MODULUS
- RANGE
- RANDOM
Need to create a trigger on the EMP table that monitors every row that is changed and place this info into the AUDIT_TABLE What type of Trigger to be used ?
- FOR EACH ROW trigger on the EMP table
- Statement-level Trigger on the EMP table
- FOR EACH ROW trigger on the AUDIT_TABLE table
- Statement-level Trigger on the AUDIT_TABLE
what part of DB trigger determines the number of times the trigger body executes ?
- Trigger type
- Trigger body
- Trigger event
- Trigger Timing
Examine this code CREATE OR REPLACE TRIGGER SECURE_emp BEFORE LOGON ON EMP BEGIN ............. END WHAT TYPE OF TRIGGER IS IT ?
- DML trigger
- Invalid Trigger
- Application Trigger
- System Event trigger
CREATE OR REPLACE TRIGGER update_emp AFTER UPDATE ON EMP BEGIN INSERT INTO AUDIT_TABLE values(user ,sysdate ); END ; you issue an update command in the EMP tables that result in a update of 10 rows. How many rows are inserted into the AUDIT_TABLE ?
- 1
- 10
- none
- Value equal to number of rows in EMP table