Oracle performance tuning examination part 3

Oracle performance tuning examination part 3
Question 1
Which two are valid modes for a process requesting latches?
A. Scheduled
B. Deferred
C. Immediate
D. Pre- Emptive
E. Willing- to- Wait
Solution) C, E.
Question 2
Which three SQL statements can use the NOLOGGING mode to reduce redo operations?
D. Conventional Path INSERT
Solution) B, C, E.
Question 3
Which three statements about rebuilding indexes are true?
a. The ALTER INDEX REBUILD command is used to change the storage characteristics of an index.
b. Using the ALTER INDEX REBUILD is usually faster than dropping and recreating an index because it uses the fast full scan feature.
C. Oracle8i allows for the creation of an index or re- creation of an existing index while allowing concurrent operations on the base table.
d. When building an index, the NOLOGGING and UNRECOVERABLE keywords can be used concurrently to reduce the time it takes to rebuild.
Solution) A, B, C.

Question 4
Which statement about the amount of undo generated is  true?
A. The amount is the same for any DML operation.
B. Deletes are inexpensive, because only the ROWID must be stored.
C. Inserts are inexpensive, because only the ROWID must be stored.
D. Updates are inexpensive, because only the new column value must be stored.
Solution) C.

Question 5
Where can you find the non default parameters when the instance is started ?
A. Alert log
B. Online redo log
C. Archiver redo log
D. SYSTEM users trace file
Solution) A.
Question 6
Which action could result in less frequent checkpoints?
A. Increasing the number of redo log groups.
B. Increasing the value of DB_ BLOCK_ SIZE parameter.
C. Decreasing the value of the REDO_LOG_BUFFERS parameter.
D. Increasing the value of the FAST_ START_ IO_ TARGET parameter.
Solution) D.

Question 7
What are  two benefits of using locally managed tablespaces with segment space management set to auto?

a. It eliminates the need to set PCTFREE.
b. It eliminates any need to set PCTFREE or FREELISTS.
c. It eliminates any need to set PCTUSED or FREELISTS.
d. It improves the speed of space allocation and deallocation.

Solution) C, D.
Question 8
Which three guidelines should you follow regarding the performance of redo logs?
a Avoid using RAID 5 for redo logs.
b. Place redo logs on disks without any other files.
c. Manually stripe redo log files across several disks.
d. Place redo log files on disks with non- Oracle files.
e. Place members of the same group on different physical disks.
Solution) A, B, E.
Question 9
What are two possible causes of lock contention?
a. Uncommitted changes.
b. Too many rollback segments.
c. Shared pool is sized too large.
d. Other protocols imposing unnecessarily high locking levels.
Solution) A, D.
Question 10
Which view would you query to monitor cumulative total waits for all events and all sessions?
Solution) D
Question 11
The alert log file for a database instance indicated that the checkpoints are frequently failing to complete.
Which action would be a remedy in this  situation?
a. Increase the number of archiver ( ARCn) processes.
b. Increasing the number of members for all log groups.
d. Increasing the number of log writer ( LGWR) processes.
d. Increasing the number of database writer ( DBWn) processes.
Solution) D.

Question 12
Which component will NEVER allocate memory from the large pool?
a. Oracle Library Cache.
b. Oracle Parallel Query.
c. Oracle Recovery Manager.
d. Oracle Multithreaded Server.
Solution) A.
Question 13
Which single dynamic views is the most useful for determining bugger cache performance when using multiple buffer pools?
Solution) D
Question 14
Which three actions will cause queries to place a tables blocks at the most- recently used end of the LRU list?
a. Creating a table with the CACHE option.
b. Querying the table by using a CACHE hint.
c. Ensuring the query performs a full table scan.
d. Defining the table without the option for caching.
e. Altering an existing table to set the CACHE option.
Solution) A, C, E.

Question 15
Which type of change to an application is most likely to improve performance of the library cache?
a. Adding more frequent COMMIT statements.
b. Replacing bind variables with constraints.
c. Reusing as much generic code as possible.
d. Replacing database constraints with triggers.
Solution) C.
Question 16
What is the main reason to create a reverse key index on a column?
a. The column is populates using a sequence.
b. The column contains many different values.
c. The column is mainly used for value range scans.
d The column implementing an inverted list attribute.
Solution) a

Question 17
The cost- based optimizer can choose between a nested loops join and a sort merge join operation. All tables are analyzed and the OPTIMIZER_ MODE is set to FIRST_ ROWS. Which executation plan will be the result?
a. The sort-merge join
b. The nested loops join
c. This depends on some sort parameter values.
d. This depends on the number of rows in each table.
Solution) B.

Question 18
Which type of table is the best candidate to be cached?
a. Small table rarely retrieved with a full table scan.
b. Large table rarely retrieved with a full table scan.
c. Small table frequently retrieved with a full table scan.
d. Large table frequently retrieved with a full table scan.
Solution) C.

Question 19
What  can you use the values in the GETS and GETMISSES columns of V$ROWCACHE to determine the hit ratio for?
a. Library cache.
b. Dictionary cache.
c. Entire shared pool.
d. Large objects such as PL/ SQL packages.
Solution) B.
Question 20

User John creates an index with this statement:

CREATE INDEX dept_indx On dept ( empno);
In which tablespace would the index be created?
a. SYSTEM tablespace.
b. John default tablespace.
c. Tablespace will rollback segments.
d. Same tablespace as the EMPLOYEE table.
Solution) B.
Question 21
You pinned an object in the shared pool using the DBMS_ SHARED_ POOL package.Which command could you use to unpin this object, assuming you are in a SQL * Plus session?
b. EXECUTE dbms_shared_ pool.unping;
c. EXECUTE dbms_ shared_ pool.unkeep;
d. EXECUTE dbms_library_cache.unpin;
Solution) C.

Question 22
The NOLOGGING mode in SQL statements is a tool used to reduce redo operations, but NOLOGGING does not apply to every operation for which the attribute is set. Which three SQL statements can use the NOLOGGING mode to reduce redo operations?
d. Conventional Path INSERT
Solution) B, C, E.
Question 23
Data dictionary information is held in memory longer than library cache data. Which is most likely to be true as a consequence of this?
a. You do not need to monitor library cache usage.
b. You have to tune the database buffer cache regularly.
c. You have to rune the library cache and dictionary cache independently.
d. Good hit ratios in the library cache imply acceptable hit ratios in the dictionary cache.
e. Good hit ratios in the dictionary cache imply acceptable hit ratios on the database buffer cache.
Solution) D.