You are on page 1of 3

QUESTION NO 2.

A developer has sent you multiple user SQL trace files related to the user sessi
on.
Which Oracle utility will convert this trace data into useable information?
A. TKPROF
B. UTLESTAT
C. UTLBSTAT
D. STATSPACK
E. LOG MINER
F. SQL ANALYZER
Answer: A
Explanation:
QUESTION NO 3.
A latch is defines as ________.
A. A mechanism used by the Oracle optimizer to run user queries in parallel.
B. A mechanism to prevent data files that make up the database from auto-extendi
ng.
C. A low-level serialization mechanism to protect shared data structures in the
system global area
(SGA)
D. A mechanism used by the background process PMON for cleaning up the caches an
d freeing up
resources the user processes were using.
Answer: C
Explanation: Explanation:
A latch is defines as a low-level serialization mechanism to protect shared data
structures in the
system global area (SGA). Latches are used to protect access to Oracle memory st
ructures. A latch
is a specialized type of lock that is used to serialize access to a particular m
emory structure or
serialize the execution of kernel code.
Incorrect Answers:
A: This is not a mechanism used by the Oracle optimizer to run user queries in p
arallel.
B: This is not a mechanism to prevent data files that make up the database from
auto-extending.
D: Latches are not used by background process PMON.
OCP: Oracle 9i Performance Tuning Study Guide, Joseph C. Johnson, p. 468-470 Cha
pter 9:
Tuning Contention
QUESTION NO 4.
A question about what to do first in the tuning process?
A. Tune the OS.
B. Tune database I/O.
C. Tune memory
D. Tune the network.
E. Tune the application.
F. First monitor performance
G. Tune the design.
Answer: F
QUESTION NO 5.
After new version of OLTP applications implementation for testing several QA use
rs have called to
state that response time for applications is now very low. You find the followin
g:
- The hit ratio in the buffer cache has fallen from its normal level of 88 to 90
percent and is only
averaging 75 percent when you look at several different the reports from STATSPA
CK.

- The GETHITRATIO for the library cache is 98%.


- The disk sorts are rare and there is nothing suspicious in the datafiles read/
writes section from
STATSPACK.
- Only one SQL query, specific for only one application, shows a huge amount of
physical reads.
What should you do?
A. Increase SORT_AREA_SIZE initialization parameter.
B. Set WORKAREA_SIZE_POLICY parameter to AUTO and increase
PGA_AGGREGATE_TARGET initialization parameter.
C. Investigate, why there are so many physical reads for this application.
D. Run DBMS_STATS package to compute tables/indexes statistics.
Answer: C
Explanation: Explanation:
Since only one specific query shows extensive physical reads and all other wait
events are normal
you need first to tune this query. After that different SQL statement will be on
the top of all timeconsuming
statements, which will require tuning also. Memory, disks I/O tuning should be
considered only after SQL statements response time improvement. DBMS_STATS packa
ge can
improve application response time, but it does not fix the core of the problem.
QUESTION NO 6.
After running a query using V$DISPATCHER, you increase the number of dispatchers
. What
would cause you to take this action?
A. Users are waiting on a listener process.
B. Users are waiting in dispatch processes.
C. Users are waiting on shared server processes.
D. Users are waiting on their dedicated connection process.
Answer: B
Explanation: Explanation:
Like Shared Servers, the performance of the Dispatcher process can also be monit
ored using a
busy ratio . This ratio can be calculated using the V$DISPATCHER dynamic performanc
e view.
Oracle recommends adding Dispatcher process if the Dispatcher busy rate consiste
ntly exceeds 50
percent. Another indication of Shared Server performance is the amount of time t
hat User Process
are waiting to have their requests accepted by the Dispatchers.
Incorrect Answers:
A: Listener process waiting have nothing to do with dispatchers.
C: If users are waiting on shared server processes you will not fix problem by i
ncreasing the
number of dispatchers. Number of shared servers need to be increased instead.
D: Number of dispatchers is not related with dedicated connection process.
OCP: Oracle 9i Performance Tuning Study Guide, Joseph C. Johnson, p. 300-302 Cha
pter 6:
Tuning Other SGA Areas
QUESTION NO 9.
Application Development and database configuration are closely related when a DB
A needs to tune
the database. Which statement correctly reflects a dependency that exists in the
se two areas?
A. Highly normalized tables will provide optimal query performance.
B. Uncommitted SQL are unlikely to effect database performance.
C. Every type of SQL has the same impact on DB Performance.
D. Tuning index may help avoid excessive number of Full Table Scans.
E. The impact of adding a new application to the system is directly measurable b

y doubling the
workload.
Answer: D
Explanation: Explanation:
Your main goal during tuning is to avoid a FTS, full-table scans, for large tabl
es. By using indexes
you can achieve this goal.
Incorrect Answers:
A: Highly normalized tables will not always provide optimal query performance. S
ometimes you
need to decrease normalization level to achieve better performance results.
B: Uncommitted SQL statements are effect database performance because you need t
o maintain
rollback segments for a read-consistent copy of data.
C: Every type of SQL has different impact on DB performance. For example, when S
ELECT
statement uses FTS it can be disastrous for large tables, but it will be very go
od for small lookup
tables. And vice versa, each DML operation will be slower for table with indexes
than for flat table.
E: The impact of adding a new application to the system cannot be directly measu
rable by doubling
the workload. It depends on a lot of other factors.
OCP: Oracle 9i Performance Tuning Study Guide, Joseph C. Johnson, p. 187-188 Cha
pter 3: SQL
Application Tuning and Design
QUESTION NO 10.
As a conscientious DBA you are aware that tuning should begin at the initial sta
ge of the
application development phase. Assuming you have optimal data model and data fil
e layout to
eliminate hot spots, what is the next step you should take to isolate the proble
ms that may cause
poor database performance?
A. Tune indexes
B. Increase SGA
C. Add more CPUs
D. Add more LRU latches
E. Monitor performance
Answer: E
Explanation:

You might also like