The CURS0R_SHARING and OPTIMIZER_CAPTURE_SQL_PLAN_BASELINES parameters are set to default. The top five wait events in an awr report are due to a large number of hard parses because of several almost identical SQL statements. Which two actions could reduce the number of hard parses?
Correct Answer: C,E
To reduce the number of hard parses due to several almost identical SQL statements, you can take the following actions: * C (Correct):Increasing the size of the library cache can help reduce hard parses by providing more * memory to store more execution plans. This allows SQL statements to be shared more effectively. * E (Correct):Setting theCURSOR_SHARINGparameter toFORCEwill cause Oracle to replace literals in SQL statements with bind variables, which can significantly reduce the number of hard parses by making it more likely that similar SQL statements will share the same execution plan. The other options do not directly impact the number of hard parses: * A (Incorrect):Creating the KEEP cache and caching tables accessed by the SQL statements can improve performance for those tables, but it does not directly reduce the number of hard parses. * B (Incorrect):Creating the RECYCLE cache and caching tables accessed by the SQL statements can make it more likely that objects will be removed from the cache quickly, which does not help with hard parse issues. * D (Incorrect):SettingOPTIMIZER_CAPTURE_SQL_PLAN_BASELINEStoTRUEcan help stabilize SQL execution plans but will not reduce the number of hard parses. This parameter is used to automatically capture SQL plan baselines for repeatable SQL statements, which can prevent performance regressions due to plan changes. References: * Oracle Database Performance Tuning Guide:Minimizing Hard Parses * Oracle Database SQL Tuning Guide:CURSOR_SHARING
Question 7
A database instance is suffering poor I/O performance on two frequently accessed large tables. No Big Table caching occurs in the database. Examine these parameter settings: Which are two actions either one of which will allow Big Table caching to occur?
Correct Answer: C,D
Big Table caching is a feature that allows frequently accessed large tables to be cached in memory to improve I/O performance. From the parameter settings provided, Big Table caching is not occurring because DB_BIG_TABLE_CACHE_PERCENT_TARGETis set to 10, which is the minimum threshold for enabling the feature, but the size of the cache is too small for the big tables to be effectively cached. To enable Big Table caching, one of the following actions could be taken: * C (Correct):IncreasingDB_BIG_TABLE_CACHE_PERCENT_TARGETto at least 25. This action would allocate a larger percentage of the buffer cache for storing big tables, which could allow for caching large tables and thus improve I/O performance. * D (Correct):IncreasingDB_CACHE_SIZEto 1G. Since the size of the buffer cache is a determining factor for how much data can be cached, increasing this parameter would provide more memory space for big tables to be cached. Options A, B, E, and F will not enable Big Table caching because: * A:IncreasingDB_BIG_TABLE_CACHE_PERCENT_TARGETto 50 without adjusting the overall size of the cache might still not be sufficient if theDB_CACHE_SIZEis not large enough to hold the big tables. * B:SettingDB_KEEP_CACHE_SIZEto at least 50M only specifies a separate buffer pool for objects with the KEEP cache attribute and does not affect Big Table caching. * E:andF:Changing thePARALLEL_DEGREE_POLICYtoADAPTIVEorAUTOinfluences the behavior of parallel execution but does not directly enable or influence Big Table caching. References: * Oracle Database Performance Tuning Guide:Big Table Caching * Oracle Database Reference:DB_BIG_TABLE_CACHE_PERCENT_TARGET * Oracle Database Reference:DB_CACHE_SIZE
Question 8
SGA_TARGET and PGA_AGGREGATE_TARGET are configured to nonzero values. MEMORY_target is then set to a nonzero value but memory_MAX_TARGET is not set. Which two statements are true?
Correct Answer: F,G
When MEMORY_TARGET is set to a nonzero value, Oracle automatically manages the memory allocation between the System Global Area (SGA) and the Program Global Area(PGA). If MEMORY_MAX_TARGET is not explicitly set, Oracle will behave in the following manner: * MEMORY_MAX_TARGET will default to the value of MEMORY_TARGET, assuming the platform allows for the value of MEMORY_TARGET to be increased dynamically. This means that MEMORY_TARGET represents both the initial allocation and the maximum limit for the dynamically managed memory unless MEMORY_MAX_TARGET is specified differently. * If MEMORY_TARGET is set to a value that is less than the sum of the current values of SGA_TARGET and PGA_AGGREGATE_TARGET, Oracle will use the higher sum as the default value for MEMORY_MAX_TARGET to ensure that there is adequate memory for both areas. The database instance will not start if MEMORY_TARGET is not sufficient to accommodate the combined SGA and PGA requirements. References * Oracle Database Administrator's Guide 19c: Automatic Memory Management * Oracle Database Performance Tuning Guide 19c: Using Automatic Memory Management
Question 9
For which two actions can SQL Performance Analyzer be used to assess the impact of changes to SQL performance?
Correct Answer: C,D
SQL Performance Analyzer (SPA) can be used to assess the impact of different types of changes on SQL performance. These changes can include database initialization parameters, which can significantly affect how SQL statements are executed and therefore their performance. SPA allows you to capture a workload before and after the change and compare the performance of each SQL statement. Database consolidation, including moving to pluggable databases (PDBs), can also affect SQL performance. SPA can analyze the SQL workload to see how consolidation impacts performance, by comparing metrics such as elapsed time and CPU time before and after the consolidation. References: * Oracle Database SQL Tuning Guide, 19c * Oracle Database Performance Tuning Guide, 19c
Question 10
You need to collect and aggregate statistics for the ACCTG service and PAYROLL module, and execute: Where do you find the output of this command?
Correct Answer: A
When you enable statistics gathering for a specific service and module using DBMS_MONITOR. SERV_MOD_ACT_STAT_ENABLE, the output is aggregated and can be viewed using the V$SERV_MOD_ACT_STATS dynamic performance view. This view contains the cumulative statistics of database activity broken down by service and module, which is exactly what you collect when executing the provided command. * B (Incorrect): While many types of trace files are located in the Diagnostic Destination directory ( $ORACLE_BASE/diag), the aggregated statistics for services and modules are not written to trace files but are instead viewable through dynamic performance views. * C (Incorrect): The V$SERVICE_STATS view provides service-level statistics but does not provide the combined service/module-level breakdown. * D (Incorrect): The output of the PL/SQL block is not written to a file in the current working directory; it is stored in the data dictionary and accessible via dynamic performance views. References: * Oracle Database PL/SQL Packages and Types Reference: DBMS_MONITOR * Oracle Database Reference: V$SERV_MOD_ACT_STATS