1Z0-084 Oracle Database 19c: Performance Management and Tuning Practice Questions
Prepare for 1Z0-084 with more than an answer.
- Exam fee
- $245 USD
- Level
- Professional
- Valid for
- No expiration
Domains covered on the exam 16
- Basic Tuning Methods and Diagnostics10%
- Using Statspack5%
- Using Log and Trace Files to Monitor Performance5%
- Using Metrics, Alerts and Baselines5%
- Using AWR-Based Tools8%
- Performing Oracle Database Application Monitoring5%
- Identifying Problem SQL Statements10%
- Influencing the Optimizer5%
- Reducing the Cost of SQL Operations8%
- Using Real Application Testing5%
- SQL Performance Management10%
- Tuning the Shared Pool6%
- Tuning the Buffer Cache8%
- Tuning the PGA6%
- Using Automatic Memory Management5%
- Using In-Memory Features5%
- 1
Which initialization parameter must be set to enable Automatic Big Table Caching?
Show answer details
Correct answer: B
The Automatic Big Table Cache feature is controlled by the
DB_BIG_TABLE_CACHE_PERCENT_TARGETinitialization parameter. Setting this parameter to a non-zero value allocates a percentage of the buffer cache to be used as a special-purpose cache for large tables, utilizing a different caching and eviction algorithm optimized for scans rather than random reads. - 2
You have identified a poorly performing SQL statement using real-time SQL monitoring (
V$SQL_MONITOR). The statement has a highBuffer Getsvalue in its report. Which advisor should you use to get automatic recommendations for improving this specific SQL statement, including potential new indexes or SQL profiles?Show answer details
Correct answer: D
The SQL Tuning Advisor is the primary tool for analyzing and providing recommendations for a single, specific SQL statement. It performs a deep analysis of the statement, its objects, statistics, and the database environment. Its recommendations can include creating new indexes, accepting a SQL Profile, gathering or modifying statistics, or restructuring the SQL. The SQL Access Advisor works on an entire workload (SQL Tuning Set) to recommend a holistic set of indexes and materialized views, while the Optimizer Statistics Advisor focuses on the health of the statistics gathering process.
- 3
A database is configured to use Automatic Shared Memory Management (ASMM) by setting
SGA_TARGET. What happens if a DBA manually sets theDB_CACHE_SIZEparameter to a specific value?Show answer details
Correct answer: C
When ASMM is enabled (
SGA_TARGET> 0), manually setting a value for an auto-tuned component likeDB_CACHE_SIZEdoes not disable auto-tuning for that component. Instead, the manually set value acts as a minimum floor. ASMM will ensure the buffer cache is at least the size specified byDB_CACHE_SIZE, but it retains the ability to dynamically allocate more memory to it (up to theSGA_TARGETlimit) or shrink it back down to the specified minimum, based on workload demands. This allows DBAs to guarantee a minimum resource allocation while still benefiting from automatic management. - 4
True or False: Using Statspack requires a Diagnostic Pack license.
Show answer details
Correct answer: B
This statement is false. Statspack is a performance monitoring tool provided by Oracle that is free to use with all editions of the Oracle database. It does not require the Diagnostic Pack license. The more advanced tools like AWR, ADDM, and ASH, which are built upon the AWR repository, do require the Diagnostic Pack license.
- 5
An ADDM report contains the following finding:
FINDING 1: SQL statements consuming significant database time were found.
IMPACT: 65% of total database timeWhat is the most appropriate next step for the DBA to take?
Show answer details
Correct answer: B
An ADDM finding is a high-level summary and recommendation. When ADDM identifies that SQL is the primary consumer of DB Time, it points to inefficient SQL statements as the root cause. The ADDM report itself will list the top SQL IDs, but the most comprehensive data is in the AWR report that ADDM analyzed. The DBA's next logical step is to go to the source data—the AWR report—and examine the 'SQL ordered by DB Time' (or similar sections like 'SQL ordered by Gets', '...by Reads') to identify the exact SQL statements that are problematic. Once identified, those statements can be targeted for tuning using tools like the SQL Tuning Advisor.
- 6
A developer is complaining that their query is running slowly. You want to see exactly how the optimizer made its decisions for this query, including transformations, cost calculations, and why it rejected alternative plans. Which method would provide this detailed internal information?
Show answer details
Correct answer: C
The optimizer trace, enabled by setting event 10053, is the definitive way to see the optimizer's 'thought process'. The generated trace file contains a wealth of information, including the initial query block, query transformations (like view merging or predicate pushing), analysis of access paths for each table, join order considerations, cost calculations for different plans, and the final chosen plan. This is far more detailed than a standard execution plan or a 10046 SQL trace, which focuses on runtime statistics like waits and binds. It is the primary tool for deep dives into why the optimizer chose a particular plan.
- 7
A query's execution plan is displayed below. What does the
TABLE ACCESS BY INDEX ROWID BATCHEDoperation signify?graph TD A[SELECT STATEMENT] --> B[HASH JOIN]; B --> C[TABLE ACCESS FULL DEPARTMENTS]; B --> D[TABLE ACCESS BY INDEX ROWID BATCHED EMPLOYEES]; D --> E[INDEX RANGE SCAN EMP_DEPT_IX];Show answer details
Correct answer: A
The
TABLE ACCESS BY INDEX ROWID BATCHEDoperation is an optimization primarily for Exadata, but available in 12c and later. It aims to improve the performance of table lookups via an index. Instead of retrieving a ROWID from the index and immediately accessing the table block (which can be inefficient for many rows), Oracle first retrieves a batch of ROWIDs from the index. It then sorts these ROWIDs by their data block address and accesses the table blocks in an optimal sequence to minimize I/O. This 'batching' process converts many single-block (random) reads into fewer, more efficient multi-block reads. - 8
A financial services application is experiencing severe performance degradation during its nightly batch processing. An AWR report for the period shows the top wait event is 'latch: cache buffers chains', with a high number of consistent gets. The primary table involved in the batch job is frequently accessed via a non-selective index. Which action is the most direct and effective way to mitigate this specific latch contention?
Show answer details
Correct answer: C
'latch: cache buffers chains' contention often occurs when multiple sessions are trying to access blocks protected by the same latch, a situation commonly caused by 'hot blocks'. This is frequently a result of inefficient SQL, such as repeatedly scanning a large number of blocks through a non-selective index. The most effective solution is to fix the root cause: the SQL statement. Tuning the SQL to use a more selective index or a full table scan (if appropriate) will reduce the logical I/O and the contention on the same set of blocks. Increasing the buffer cache might slightly alleviate the symptoms but doesn't solve the underlying SQL inefficiency. Reducing block size is a major architectural change and not a direct solution. Increasing _DB_BLOCK_LRU_LATCHES is a deprecated action and not recommended.
- 9
A database is configured with Automatic Memory Management (AMM) by setting MEMORY_TARGET. After a system reboot, the database fails to start, and the alert log shows an ORA-00845 error. What is the most likely cause of this error?
Show answer details
Correct answer: B
The ORA-00845 error (MEMORY_TARGET not supported on this system) indicates that the operating system environment cannot support the Automatic Memory Management configuration. On Linux systems, AMM requires the /dev/shm shared memory filesystem to be large enough to hold the entire MEMORY_TARGET allocation. If /dev/shm is smaller than MEMORY_TARGET, the database instance cannot allocate the required shared memory and will fail to start. The correct resolution is to increase the size of /dev/shm (typically by editing /etc/fstab) to be at least the size of MEMORY_TARGET and reboot the server or remount the filesystem.
- 10
You are tasked with analyzing the performance impact of a major application upgrade before deploying it to production. The goal is to test the exact production workload against the upgraded database environment to identify any SQL regressions. Which two Oracle features should be used in combination to achieve this? (Select TWO)
Show answer details
Correct answer: A, C
