175
http://www.gratisexam.com/ Oracle.Passguide.1z0-054.v2014-12-01.by.Gerald.197q Number : 1Z0-054 Passing Score : 800 Time Limit : 120 min File Version : 14.5 http://www.gratisexam.com/ Exam Code: 1Z0-054 Exam Name: Oracle Database 11g: Performance Tuning

Oracle.Passguide.1z0-054.v2014-12-01.by.Gerald - GRATIS ......2014/12/13  · Failed to commit: ORA-13541: system moving window baseline size (1296000) greater than retention (1036800)

  • Upload
    others

  • View
    6

  • Download
    0

Embed Size (px)

Citation preview

  • http://www.gratisexam.com/

    Oracle.Passguide.1z0-054.v2014-12-01.by.Gerald.197q

    Number: 1Z0-054Passing Score: 800Time Limit: 120 minFile Version: 14.5

    http://www.gratisexam.com/

    Exam Code: 1Z0-054

    Exam Name: Oracle Database 11g: Performance Tuning

  • http://www.gratisexam.com/

    Passguide

    QUESTION 1After running SQL Performance Analyzer (SPA), you observe a few regressed SQL statements in the SPA output.

    Identify the two actions that you would suggest for these regressed SQL statements. (Choose two.)

    A. Running SQL Access AdvisorB. Adding them to SQL Plan BaselineC. Submitting them to SQL Tuning AdvisorD. Running Automatic Database Diagnostic Monitor (ADDM)

    Correct Answer: BCSection: (none)Explanation

    Explanation/Reference:

    QUESTION 2View the Exhibit exhibit1 to examine the series of SQL commands and parameter settings.

    View the Exhibit exhibit2 to examine the plans available in the SQL plan baseline.

    The first plan (in red) is created when OPTIMIZER_MODE is set to ALL_ROWS and the second plan (in blue) is created when OPTIMIZER_MODE is set toFIRST_ROWS.

    Which SQL plan baseline would be used if the SQL query in exhibit1 is executed again when the value of OPTIMIZER_MODE is set to FIRST_ROWS?

    Exhibit 1 (exhibit):

  • http://www.gratisexam.com/

    Exhibit 2 (exhibit):

    A. the second plan, because it is a fixed planB. the first plan, because it is an accepted plan

  • http://www.gratisexam.com/

    C. the second plan, because it is the latest generated plan in FIRST_ROW modeD. A new plan, because the second plan in FIRST_ROW mode is not an accepted plan

    Correct Answer: BSection: (none)Explanation

    Explanation/Reference:

    QUESTION 3You work as a DBA for a company and you have the responsibility of managing one of its online transaction processing (OLTP) systems. The databaseencountered performance-related problems and you generated an Automatic Workload Repository (AWR) report to investigate it further. View the Exhibits andexamine the AWR report.

    What could be the problem in this database?

    Exhibit 1 (exhibit):

    Exhibit 2 (exhibit):

  • http://www.gratisexam.com/

    Exhibit 3 (exhibit):

  • http://www.gratisexam.com/

    Exhibit 4 (exhibit):

  • http://www.gratisexam.com/

  • http://www.gratisexam.com/

    A. Java pool is not configured.B. The CPU in the system is slow.C. The shared pool size is inadequate.D. The database buffer cache is inadequate.E. The OPEN_CURSORS parameter is set to a small value.

    Correct Answer: CSection: (none)Explanation

    Explanation/Reference:

    QUESTION 4You are working on an online transaction processing (OLTP) system. You detected free buffer waits events for your database instance running in a machine thathas multiple CPUs. You increased the database buffer cache size as the first step. After a few hours of work on the database, further investigation shows that thesame event is being recorded.

    http://www.gratisexam.com/

    What would be your next step to avoid this event in future?

    A. Decrease the value of the DBWR_IO_SLAVES parameter.B. Set the USE_INDIRECT_DATA_BUFFERS parameter to TRUE.C. Increase the value of the DB_WRITER_PROCESSES parameter.D. Increase the value of the DB_FILE_MULTIBLOCK_READ_COUNT parameter.

    Correct Answer: CSection: (none)Explanation

    Explanation/Reference:

  • http://www.gratisexam.com/

    QUESTION 5You are working on a development database that was upgraded to Oracle Database 11g from Oracle Database 9i. An ADDM finding in this database says that theshared pool is inadequately sized, as shown in the Exhibit.

    You diagnosed that this is due to different kinds of workloads and this occurs only during peak hours. You tried to resize this by shrinking the database buffer cachebut that caused inadequate buffer cache problems. The following are the related parameter settings:

    SQL> show parameter sgaNAME TYPE VALUE------------------------------ --------------- ----------------- lock_sga boolean FALSEpre_page_sga boolean FALSEsga_max_size big integer 300Msga_target big integer 0SQL> show parameter targetNAME TYPE VALUE------------------------------ --------------- ----------------- .....fast_start_mttr_target integer 0memory_max_target big integer 0memory_target big integer 0pga_aggregate_target big integer 100Msga_target big integer 0

    You want to balance the memory between the System Global Area (SGA) components within SGA without affecting the size of the Program Global Area (PGA).

    Which action would solve this problem?

    Exhibit:

    A. Set the SGA_TARGET parameter to 300M.B. Set the SGA_MAX_SIZE parameter to 400M.C. Set the MEMORY_TARGET parameter to 100M.

  • http://www.gratisexam.com/

    D. Set the MEMORY_MAX_TARGET parameter to 300M.

    Correct Answer: ASection: (none)Explanation

    Explanation/Reference:

    QUESTION 6You observed that some of the queries are performing poorly on the SALES_RECORDS table in your database.On further investigation, you find that at the end of each day the contents of the SALES_RECORDS table are transferred to the SALES table and deleted from theSALES_RECORDS table. The deleted operations cause the table to be sparsely populated. You decided to use the ALTER TABLE...SHRINK SPACE COMPACTcommand to shrink the table.

    Why would you choose this method? (Choose all that apply.)

    A. because it can be used during peak hoursB. because it avoids unnecessary cursor invalidationC. because it adjusts the high-water mark (HWM) immediatelyD. because you have long-running queries that might span the shrink operationE. because it does not allow any data manipulation language (DML) operations, thereby making the shrink operation faster

    Correct Answer: ABDSection: (none)Explanation

    Explanation/Reference:

    QUESTION 7View the Exhibit and examine a portion of the output obtained from the following query:

    SQL> SELECT * FROM v$sys_time_model;

    Select three correct interpretations of the time model statistics. (Choose three.)

    Exhibit:

  • http://www.gratisexam.com/

    A. DB time includes the wait time of all the nonidle and idle user sessions.B. SQL execute elapsed time includes the time spent in performing fetches of query results.C. DB CPU includes the CPU time spent on database user-level calls and background CPU time.D. SQL execute elapsed time includes components of the hard parse elapsed time like bind elapsed time.E. DB time includes the connection management call elapsed time excluding the background process time.

    Correct Answer: BDESection: (none)Explanation

    Explanation/Reference:

    QUESTION 8A batch workload that historically completed in the maintenance window between 10:00 PM and midnight is currently showing poor performance and completing at2 AM. To help in the diagnosis of the performance degradation, the senior DBA in your organization asks you to execute the awrddrpt.sql script to produce aCompare Periods report.

    Which two statements are true about the report produced by this script? (Choose two.)

    A. It is refreshed automatically based on the moving window baseline.B. It compares details between any two selected time periods of the same duration.C. It normalizes the statistics by the amount of time spent on the database for each time period.

  • http://www.gratisexam.com/

    D. It compares details between two consecutive time periods of the same or different durations and is refreshed every 60 minutes.

    Correct Answer: BCSection: (none)Explanation

    Explanation/Reference:

    QUESTION 9You plan to use adaptive thresholds as part of the performance tuning activity. You decide to increase the window size of the default moving window baseline for allmetric observations and comparisons in your database. The following error occurs when you try to increase the window size through Enterprise Manager:Failed to commit: ORA-13541: system moving window baseline size (1296000) greater than retention (1036800) ORA-06512: at"SYS.DBMS_WORKLOAD_REPOSITORY", line 601 ORA-06512: at line 2

    Which action would allow you to perform the preceding task successfully?

    A. increasing the flashback retention periodB. increasing the retention period for SQL Management BaseC. increasing the undo retention period for the database instanceD. increasing the Automatic Workload Repository (AWR) retention period

    Correct Answer: DSection: (none)Explanation

    Explanation/Reference:

    QUESTION 10Identify two correct statements about the Active Session History (ASH) data. (Choose two.)

    A. A part of SGA memory is used to store ASH data as rolling buffer.B. The ASH data can be analyzed between any two small time intervals.C. All ASH data in memory are flushed to disk by MMON in every 3 seconds.D. All ASH data in memory are flushed to disk by MMNL process whenever the buffer is full.

    Correct Answer: ABSection: (none)

  • http://www.gratisexam.com/

    Explanation

    Explanation/Reference:

    QUESTION 11A user in a session executed the following SQL statement to set the optimizer mode:ALTER SESSION SET OPTIMIZER_MODE = ALL_ROWS

    http://www.gratisexam.com/

    What impact would it have on the goal of the optimizer for that session? (Choose all that apply.)

    A. Statement level OPTIMIZER_MODE hints take precedence over the session-level setting.B. The OPTIMIZER_MODE parameter set at instance level takes precedence over the session-level value.C. The optimizer uses a cost-based approach, regardless of the presence of statistics; it optimizes with a goal of best response time.D. The optimizer uses a cost-based approach for all SQL statements in the session, regardless of the presence of statistics; it optimizes with a goal of best

    throughput.

    Correct Answer: ADSection: (none)Explanation

    Explanation/Reference:

    QUESTION 12Examine the initialization parameter values for the instance given below:NAME TYPE VALUE------------------------------------ ----------- ------------------optimizer_capture_sql_plan_baselines boolean FALSEoptimizer_dynamic_sampling integer 2optimizer_features_enable string 11.1.0.6optimizer_index_caching integer 0optimizer_index_cost_adj integer 100

  • http://www.gratisexam.com/

    optimizer_mode string ALL_ROWSdb_file_multiblock_read_count integer 64

    You notice that the one of the queries is using a full table scan (view Exhibit1) instead of index unique scan (view Exhibit2). The index is present on the column thatis accessed in the WHERE clause of the query. The cost for a full table scan is more than that for an index unique scan.

    Why would the optimizer choose full table scan over index unique scan? (Choose all that apply.)

    Exhibit 1 (exhibit):

    Exhibit 2 (exhibit):

  • http://www.gratisexam.com/

    A. The OPTIMIZER_INDEX_COST_ADJ initialization parameter is set to a low value.B. The OPTIMIZER_INDEX_COST_ADJ initialization parameter is set to a high value.C. The DB_FILE_MULTIBLOCK_READ_COUNT initialization parameter is set to a low value.D. The statistics for the table and all the indexes associated with the table are not current.

    Correct Answer: BDSection: (none)Explanation

    Explanation/Reference:

    QUESTION 13The columns CUST_CITY, CUST_STATE_PROVINCE, and COUNTRY_ID are frequently used together in the WHERE clause of the queries. The CUSTOMERStable is a big table with 20 GB of data. You notice that the selectivity for these three columns varies from the selectivity that the optimizer calculates.

    What would you recommend to influence the selectivity calculated by the optimizer?

    A. creating function-based indexes by concatenating all the columnsB. updating histogram statistics for these columns by using the DBMS_STATS.GATHER_TABLE_STATS procedureC. using the DBMS_STATS.CREATE_EXTENDED_STATS function to create a virtual column and create index on the virtual columnD. using the DBMS_STATS.CREATE_EXTENDED_STATS function to create a virtual column and the DBMS_STATS.GATHER_TABLE_STATS procedure to

    collect statistics on the virtual column

  • http://www.gratisexam.com/

    Correct Answer: DSection: (none)Explanation

    Explanation/Reference:

    QUESTION 14View Exhibit1 to examine the description of the CUSTOMERS table.

    You observed that optimizer selectivity is not accurate when the CUST_STATE_PROVINCE and COUNTRY_ID columns are used together in the WHERE clauseof a query. View Exhibit2 to examine the query execution plan and the commands executed to gather the statistics.

    The optimizer predicts that 20 rows will be processed rather than the 3,341 rows, which is the actual number of rows returned from the table.

    What can you do to make the optimizer detect the actual number of rows?

    Exhibit 1 (exhibit):

  • http://www.gratisexam.com/

    Exhibit 2 (exhibit):

  • http://www.gratisexam.com/

    A. Set the STATISTICS_LEVEL parameter to ALL.B. Set the OPTIMIZER_USE_PENDING_STATISTICS parameter to FALSE.C. Create extended statistics for the CUST_STATE_PROVINCE and COUNTRY_ID columns.D. Increase the STALE_PERCENT value for the CUSTOMERS table by using the DBMS_STATS.SET_TABLE_PREFS procedure.

    Correct Answer: CSection: (none)Explanation

    Explanation/Reference:

    QUESTION 15

  • http://www.gratisexam.com/

    View Exhibit1 to examine the description of the CUSTOMERS table.

    The CUSTOMERS table has been updated heavily today. In a frequently used SQL statement, you notice that estimated rows and the actual number of rowsfetched differ greatly. The COUNTRY_ID column has an index.View Exhibit2 and examine the query execution plan.

    What would you recommend to improve the optimizer's estimation?

    Exhibit 1 (exhibit):

    Exhibit 2 (exhibit):

  • http://www.gratisexam.com/

    A. setting the STATISTICS_LEVEL parameter to ALLB. setting the OPTIMIZER_USE_PENDING_STATISTICS parameter to FALSEC. creating extended statistics for the CUST_LAST_NAME, CUST_ID, and CUST_TOTAL columnsD. updating the statistics for the CUSTOMERS table by using the DBMS_STATS.GATHER_TABLE_STATS procedure

    Correct Answer: DSection: (none)Explanation

    Explanation/Reference:

    QUESTION 16You are working on a decision support system (DSS). The index is available on the COUNTRY_ID column of the CUSTOMERS table.View the Exhibit and examine

  • http://www.gratisexam.com/

    the parameter settings and the query execution plan.

    Why is the query using a full table scan instead of an index scan?

    Exhibit:

  • http://www.gratisexam.com/

  • http://www.gratisexam.com/

    A. because the histogram statistics for the COUNTRY_ID column are not updatedB. because the index statistics for the index on the COUNTRY_ID column are not currentC. because the DB_FILE_MULTIBLOCK_READ_COUNT initialization parameter is set to a higher valueD. because the optimizer predicts that most of the blocks in the table are accessed.

    Therefore, it uses a full table scan, even though indexes are available.

    Correct Answer: DSection: (none)Explanation

    Explanation/Reference:

    QUESTION 17View Exhibit1 and examine the indexes on the CUSTOMERS table.

    The statistics for the CUSTOMERS table have been updated recently by using the following command:SQL> EXECDBMS_STATS.GATHER_TABLE_STATS('SH','CUSTOMERS',method_opt=>'FOR ALL INDEXED COLUMNS SIZE AUTO');

    View Exhibit2 to examine a query plan. Even though the index is present on the COUNTRY_ID and CUST_GENDER columns, the query uses a full table scan.

    What could be the reason?

    Exhibit 1 (exhibit):

  • http://www.gratisexam.com/

    Exibit 2 (exhibit):

  • http://www.gratisexam.com/

    A. because the histogram statistics for the COUNTRY_ID column are not updatedB. because the DB_FILE_MULTIBLOCK_READ_COUNT initialization parameter is set to a high valueC. because the optimizer calculates the cost of accessing blocks by using a full table scan to be less as compared to index scans, even though indexes are

  • http://www.gratisexam.com/

    availableD. because indexes on CUST_GENDER and COUNTRY_ID columns are of different types, the index on the CUST_GENDER column is bitmap index, and on

    COUNTRY_ID columns is btree index.

    Correct Answer: CSection: (none)Explanation

    Explanation/Reference:

    QUESTION 18You are working on an online transaction processing (OLTP) system. The CUST table in the SH schema was populated by direct load and after that it has gonethrough a lot of updates and deletions. The statistics for the CUST and SALES tables were updated recently.View the Exhibit and examine the query plan.The queryis performing a lot of I/O for a query that fetches only 168 rows. To investigate further, you queried the ALL_TABLES view to find out PCTUSED, PCTFREE, andthe number of rows in the CUST table, as given below:

    SQL> SELECT table_name ,blocks, pct_used, pct_free, num_rows FROM all_tablesWHERE table_name = 'CUST';

    TABLE_NAME BLOCKS PCT_USED PCT_FREE NUM_ROWS ---------- ---------- ---------- ---------- ---------- CUST 13768 80 111060

    What would you recommend to reduce the I/O?

    Exhibit:

  • http://www.gratisexam.com/

    A. reorganizing the table to use fewer blocksB. rebuilding the index on the CUST_FIRST_NAME columnC. increasing the value for the PCTFREE attribute for the CUST tableD. increasing the value for the PGA_AGGREGATE_TARGET initialization parameter

    Correct Answer: ASection: (none)Explanation

  • http://www.gratisexam.com/

    Explanation/Reference:

    QUESTION 19Your system has been upgraded from Oracle Database 10g to Oracle Database 11g. You imported SQL Tuning Sets (STS) from the previous version that containsimportant SQL statements. You are not sure about the elapsed time that the SQL statements will have in the new system due to the version change of theoptimizer.

    Which tool provides a comparative report with respect to the elapsed time in both versions of the optimizer?

    A. SQL Access AdvisorB. SQL Tuning Advisor (STA)C. SQL Performance Analyzer (SPA)D. Automatic Workload Repository (AWR) compare period report

    Correct Answer: CSection: (none)Explanation

    Explanation/Reference:

    QUESTION 20Which three statements are true about performance analysis by SQL Performance Analyzer? (Choose three.)

    A. It detects changes in SQL execution plans.B. It shows only the overall impact on workload.C. It produces results that can be used to create the SQL plan baseline.D. It generates recommendations to run SQL Tuning Advisor to tune regressed SQL statements.E. The importance of SQL statements to be analyzed is based on the size of the objects accessed.

    Correct Answer: ACDSection: (none)Explanation

    Explanation/Reference:

    QUESTION 21

  • http://www.gratisexam.com/

    The database application developers are planning to make some major schema changes such as creating new indexes and materialized views. They want to checkthe net impact of these changes on the workload performance. This activity has to be performed in the production database, so they want only the query part of thedata manipulation language (DML) statements to be executed so that the side effects to the database or user data can be prevented.

    What should they use to achieve this?

    A. Database ReplayB. SQL Tuning AdvisorC. SQL Access AdvisorD. SQL Performance Analyzer

    Correct Answer: DSection: (none)Explanation

    Explanation/Reference:

    QUESTION 22You upgraded database from the Oracle Database 10g to Oracle Database 11g. To test the performance SQL on the upgraded database. You want to build thebefore-change performance data by using SQL Performance Analyzer.

    Which method would allow the task to execute quickly?

    A. the EXPLAIN PLAN methodB. the TEST EXECUTE methodC. the COMPARE PERFORMANCE methodD. the OPTIMIZER_USE_SQL_PLAN_BASELINE parameter set to TRUE

    Correct Answer: ASection: (none)Explanation

    Explanation/Reference:

    QUESTION 23Examine the following block that executes a SQL Performance Analyzer task:

    begin

  • http://www.gratisexam.com/

    dbms_sqlpa.execute_analysis_task(task_name => 'SPA_SKD4', execution_type => 'TEST EXECUTE', execution_name => 'before');end;

    Which two statements are true about the execution? (Choose two.)

    A. It generates execution plans and execution statistics.B. It executes only the query part of the DML statements.C. The test plans are generated and added to plan baseline.D. The test plans are executed, but not generated if they are available in the plan baseline.

    Correct Answer: ABSection: (none)Explanation

    Explanation/Reference:

    QUESTION 24You plan to collect statistics for an important table in your database to help improved query performance. You are uncertain about the optimizer behavior after thestatistics have been collected because currently there are no statistics for indexes or partitions on the table. You wish to test the performance effect of the newlycollected statistics.

    How would you prevent the optimizer from using the newly collected statistics for other sessions immediately after statistics collection?

    A. Set the PUBLISH preference to FALSE for the table.B. Set the NO_VALIDATE preference to TRUE for the table.C. Set the OPTIMIZER_DYNAMIC_SAMPLING parameter to 0.D. Set the OPTIMIZER_USE_SQL_PLAN_BASELINES parameter to FALSE for the session.E. Set the OPTIMIZER_USE_PENDING_STATISTICS parameter to FALSE for the session.

    Correct Answer: ASection: (none)Explanation

    Explanation/Reference:

    QUESTION 25You have the automatic optimizer statistics gathering enabled for a 24x7 database as part of the automatic maintenance task. You observed that a few tables are

  • http://www.gratisexam.com/

    being updated regularly, but not being queried often. However statistics are being gathered for these tables automatically and regularly, thereby affecting thedatabase performance.

    What would you do to increase the interval of statistics collection for these tables so that the statistics collection jobs spend less time during the automaticmaintenance task?

    A. Set the OPTIMIZER_USE_PENDING parameter statistics to TRUE.B. Increase the value of the STALE_PERCENT preference for these tables.C. Mark those associated indexes that are less frequently used as invisible.D. Increase the value of the ESTIMATE_PERCENT preference for these tables

    Correct Answer: BSection: (none)Explanation

    Explanation/Reference:

    QUESTION 26You have the automatic optimizer statistics gathering enabled for a 24x7 database as part of the automatic maintenance task. Because the automatic optimizerstatistics collection runs during maintenance window(in the night), the statistics on tables that are significantly modified throughout the day becomes stale. Thisleads to poor query performance on these tables and you want to minimize the overhead in statistics collection.

    Identify a solution to this problem.

    A. Change the STALE_PERCENT preference to zero for the tables.B. Set the OPTIMIZER_USE_PENDING parameter statistics to TRUE.C. Set the OPTIMIZER_DYNAMIC_SAMPLING parameter to zero during day time.D. Gather statistics on the table when the tables have a representative number of rows, and then lock the statistics.

    Correct Answer: DSection: (none)Explanation

    Explanation/Reference:

    QUESTION 27You observe that suboptimal execution plans for the queries are being generated on a table that previously used less resources. You have collected statistics onthese tables two days ago. The optimizer statistics retention period is set to 31 days. You are able to find the timestamp information about statistics update from the

  • http://www.gratisexam.com/

    DBA_TAB_STATS_HISTORY view. Because it is a frequently queried table, you would like the optimizer to generate better plans.

    Which action would enable you to use the previous set of statistics on the objects that may lead to better execution plans?

    A. restoring statistics from statistics history up to the desired timeB. deleting all AWR snapshots collected after the time of desired statistics collectionC. applying the flashback table technique until the time of desired statistics collectionD. setting the OPTIMIZER_PENDING_STATISTICS parameter to TRUE to use the previous version of statistics

    Correct Answer: ASection: (none)Explanation

    Explanation/Reference:

    QUESTION 28The SALES table in your database undergoes frequent changes. While observing the statistics for the table in the middle of the day, you find a change since the lastobservation. But the information about the statistics collection is not recorded in the DBA_TAB_STATS_HISTORY.

    Identify the reason for this.

    A. The AWR retention time was set to zero.B. The STATISTICS_LEVEL parameter was set to BASIC.C. Some of the statistics were collected using the ANALYZE command.D. There were user-defined statistics that were set by using the DBMS_STATS.SET_TABLE_STATS procedure.

    Correct Answer: CSection: (none)Explanation

    Explanation/Reference:

    QUESTION 29You have a range-partitioned table in your database. Each partition in the table contains the sales data for a quarter. The partition related to the current quarter ismodified frequently, whereas other partitions undergo fewer data manipulations. The preferences for the table are set to their default values. You collect statisticsfor the table using the following command at regular intervals:SQL> EXECUTE DBMS_STATS.GATHER_TABLE_STATS('SH','SALES',GRANULARITY=>'AUTO');

  • http://www.gratisexam.com/

    You need statistics to be collected more quickly. How do you achieve this?

    A. Set the PUBLISH preference to TRUE for the partition table.B. Set the NO_VALIDATE preference to TRUE for the partition table.C. Set the INCREMENTAL preference to TRUE for the partition table.D. Increase the value of the STALE_PERCENT preference for the partition table.

    Correct Answer: CSection: (none)Explanation

    Explanation/Reference:

    QUESTION 30Which is the correct description of SQL profiling while using SQL Tuning Advisor?

    http://www.gratisexam.com/

    A. It is a set of recommendations by the optimizer to create new indexes.B. It is auxiliary information collected by the optimizer for a SQL statement to eliminate estimation error.C. It is a set of recommendations by the optimizer to refresh stale statistics to avoid bad execution plan.D. It is a set of recommendations by the optimizer to restructure a SQL statement to avoid bad execution plan.

    Correct Answer: BSection: (none)Explanation

    Explanation/Reference:

    QUESTION 31You used SQL Tuning Advisor for a long-running SQL statement that suggested a SQL profile which can be used by the query subsequently for a better execution

  • http://www.gratisexam.com/

    plan. After implementing the profile, you altered the profile to include it in a category as follows:

    SQL> EXEC DBMS_SQLTUNE.ALTER_SQL_PROFILE ( name=> 'SYS_SQLPROF_0146ced728214000', attribute_name => 'CATEGORY', value => 'DEV2').

    But the performance has not improved for the user session. The profile is enabled and on investigating the query plan, you find that the query from the user sessiondoes not use the SQL profile. View the Exhibit and examine the parameters for the user session.

    What could be the reason for this?

    Exhibit:

    A. The CONTROL_MANAGEMENT_PACK_ACCESS parameter is not set to DEV2.B. The OPTIMIZER_MODE parameter is set to ALL_ROWS for the user session.C. The SQLTUNE_CATEGORY parameter is set to DEFAULT for the user session.D. The OPTIMIZER_USE_PLAN_BASELINES parameter is set to TRUE for the user session.

    Correct Answer: CSection: (none)Explanation

    Explanation/Reference:

    QUESTION 32You used SQL Tuning Advisor for a long-running SQL statement that suggested a SQL profile which can be used by the query subsequently for better executionplan. View the Exhibit. But you want certain user sessions not to use this SQL profile for their queries.

    How would you implement this?

    Exhibit:

  • http://www.gratisexam.com/

    A. Alter the SQL profile to change the category of the SQL profile.B. Set the OPTIMIZER_USE_PENDING_STATISTICS to TRUE the desired sessions.C. Use database resource manager to prevent the use of the SQL profile by these user sessions.D. Use database resource manager to preUse the resource management feature in profiles of these users to prevent the use of the SQL profile.

    Correct Answer: ASection: (none)Explanation

    Explanation/Reference:

    QUESTION 33View the Exhibit and examine the result of Automatic SQL Tuning for a period. None of the recommended SQL profiles are implemented.

    What would you do to allow the Automatic SQL Tuning implement the SQL profiles automatically?

    Exhibit:

  • http://www.gratisexam.com/

    A. Set the OPTIMIZER_MODE parameter to ALL_ROWS for the database instance.B. Set the SQLTUNE_CATEGORY parameter to DEFAULT for the database instance.C. Set the OPTIMIZER_CAPTURE_SQL_PLAN_BASELINES parameter to TRUE for the database instance.D. Use the DBMS_SQLTUNE.SET_TUNING_TASK_PARAMETERS procedure to set ACCEPT_SQL_PROFILES to TRUE.

    Correct Answer: DSection: (none)Explanation

    Explanation/Reference:

  • http://www.gratisexam.com/

    QUESTION 34You receive a recommendation for a SQL statement through the automatic SQL tuning process that suggests implementing a SQL profile. You implement the SQLprofile. The tables associated with the SQL statement grow, and indexes are created and dropped on these tables.

    What would happen to the SQL profile that is created for the SQL statement?

    A. It becomes outdated immediately after the tables change.B. It is maintained automatically along with the changes in the tables.C. The profile will be used for the changed plans of the SQL statement.D. The plan for the SQL statement is frozen until it is regenerated by the SQL Tuning Advisor.

    Correct Answer: CSection: (none)Explanation

    Explanation/Reference:

    QUESTION 35Identify the type of recommendation that can automatically be implemented by the Automatic Tuning Advisor as part of automatic SQL tuning task?

    A. recommendation for SQL profilesB. recommendation about effective indexingC. recommendation about stale or no statisticsD. recommendation about the structure of SQL statements

    Correct Answer: ASection: (none)Explanation

    Explanation/Reference:

    QUESTION 36A user session executes a query and the plan for the query is shown in the Exhibit as Plan-1. After verifying with the SQL Access advisor, an index is created on thetable in the JOB_ID column and the query is executed again. A new plan is generated against the second query shown in the Exhibit as Plan-2. When explainingthe plan for the second query, you observe that the optimizer uses the first plan instead of the second. The following parameters are set for the user session:

    OPTIMIZER_CAPTURE_SQL_PLAN_BASELINES=TRUE

  • http://www.gratisexam.com/

    OPTIMIZER_USE_SQL_PLAN_BASELINES=TRUESQLTUNE_CATEGORY=DEFAULT

    Why does the optimizer not use the second plan?

    Exhibit:

    A. because the second plan is not verifiedB. because the second plan is not part of the SQL plan baseline

  • http://www.gratisexam.com/

    C. because the SQLTUNE_CATEGORY parameter is set to DEFAULTD. because the explain plan option in the user session does not allow the new plan because SQLTUNE_CATEGORY parameter is set to DEFAULT

    Correct Answer: ASection: (none)Explanation

    Explanation/Reference:

    QUESTION 37View the Exhibit and examine the plans in the SQL plan baseline.You observe that the last two SELECT statements (outlined in red and blue) are identical, but havetwo different plans. Also, the second plan (in blue) is not being used by the optimizer.

    Which two steps do you perform to ensure that the optimizer uses the second plan (in blue) if the plan is more efficient? (Choose two.)

    Exhibit:

    A. Mark the second plan (in blue) as fixed.B. Use SQL Tuning Advisor to tune the plan.C. Use SQL Access Advisor to tune the plan.D. Use the DBMS_SPM.EVOLVE_SQL_PLAN_BASELINE function to evolve the plan.

    Correct Answer: BDSection: (none)Explanation

    Explanation/Reference:

    QUESTION 38Identify the two direct sources from where SQL plans can be loaded into the SQL plan baselines. (Choose two.)

  • http://www.gratisexam.com/

    A. Cursor cacheB. Stored outlineC. SQL Tuning SetD. Automatic Workload Repository (AWR) snapshots

    Correct Answer: ACSection: (none)Explanation

    Explanation/Reference:

    QUESTION 39Your system is upgraded from Oracle Database 10g to Oracle Database 11g. You imported SQL Tuning Sets (STS) from the previous version. After running theSQL Performance Analyzer for optimizer version change, you observe performance regression for a few SQL statements.

    What would you suggest to avoid performance regression for these SQL statements?

    A. Include the old plans in the SQL plan baseline.B. Use DBMS_SPM.EVOLVE_SQL_PLAN_BASELINE to evolve plans.C. Set the OPTIMIZER_USE_PENDING_STATISTICS parameter to TRUE.D. Increase the value for the OPTIMIZER_DYNAMIC_SAMPLING parameter.

    Correct Answer: ASection: (none)Explanation

    Explanation/Reference:

    QUESTION 40The OPTIMIZER_CAPTURE_SQL_PLAN_BASELINES parameter is set to TRUE for a 24x7 database instance. The space consumption has significantlyincreased by the automatically captured plan baselines. You are suggested to run the following block:

    BEGIN dbms_spm.configure('SPACE_BUDGET_PERCENT', 30);END;

    After a few weeks of work, you observe warnings on exceeding space usage by SQL Management Base (SMB) in alert log file. Which two actions can be solutions

  • http://www.gratisexam.com/

    for this? (Choose two.)

    A. increasing the AWR retention periodB. purging the older SQL management objectsC. increasing the size of the SYSTEM tablespaceD. increasing the size of the SYSAUX tablespace

    Correct Answer: BDSection: (none)Explanation

    Explanation/Reference:

    QUESTION 41Your company wants to migrate a single instance Oracle 11g Release 1 database to a RAC environment. The database supports middle-tier applications usingconnection pooling for connecting to database.Being a part of the performance management team, you want to test the performance of the SQL statements and the peak workload of the applications in the newenvironment before upgrading the production system.Given below are some of the steps in random order to accomplish the task:

    1) Capture the real workload on the existing system.2) Create a SQL Tuning Set (STS) for the statements executed by the application.3) Transport STS on the test environment and use SQL Tuning Advisor to compare the before and after performance.4) Replay the workload on the test environment.5) Analyze the divergence after replay.6) Use Automatic Workload Repository (AWR) to capture the information for top SQL on the existing system.7) Transport STS on the test environment and use SQL Performance Analyzer to compare the before and after performance.

    Identify the correct steps required to perform the test.

    A. 2 and 3 onlyB. 6 and 7 onlyC. 1, 4, and 5 onlyD. 2, 3, and 5 onlyE. 2, 3, 4, and 5 only

    Correct Answer: CSection: (none)Explanation

  • http://www.gratisexam.com/

    Explanation/Reference:

    QUESTION 42You are working on an online transaction processing (OLTP) system. The middle-tier applications use connection pooling to connect to the database. Presently, youhave a single-node database. The company plans to migrate the database to a RAC environment. Before you move to a RAC environment, you want to test theperformance of the SQL statements and the peak workload on the new environment. To accomplish the Database Capture for replay, you identified the peakworkload period on the existing system and started the Database Capture.

    Which client requests to the database can be captured as part of the workload capture? (Choose all that apply.)

    A. flashback queryB. distributed transactionsC. logging in and logging out of sessionsD. all DDL statements having bind variablesE. direct path load of data from external files

    Correct Answer: CDSection: (none)Explanation

    Explanation/Reference:

    QUESTION 43You are a DBA in ABC Corp. You are working on a DSS system.. The applications directly connect to the database to perform transactions. The application usersalso perform direct loads. The company wants to upgrade from Oracle Database 10g version 10.2.0.1 to Oracle Database 11g. You want to test the performance ofthe SQL statements in the new environment before upgrading the production database. To accomplish this, you set up the test database with Oracle Database 11g,with the same data and schemas as in production.

    What would you recommend to accomplish the task?

    A. gathering all the SQL statements and using SQL Tuning Advisor on the test database for performance analysisB. capturing the workload on the production database, replaying it on the test machine, and comparing the performanceC. creating a SQL Tuning Set by capturing the SQL workload on the production database and using SQL Performance Analyzer for performance analysisD. configuring AWR to capture the maximum number of SQL statements, transporting it to the test system, and using SQL Access Advisor for performance

    analysis

    Correct Answer: C

  • http://www.gratisexam.com/

    Section: (none)Explanation

    Explanation/Reference:

    QUESTION 44You are a DBA in ABC Corp. You are working on an online transaction processing (OLTP) system.The applications running on the database use connection poolingto connect to the database to perform transactions. The company wants to upgrade the CPU and the memory for the machine on which the database is running. Totest the realistic workload on the new machine with increased CPU and memory, you identified the peak workload time for the database and captured the workloadon the production system.You set up the test machine with the upgraded CPU and memory and installed the database with the same version as production.

    Which three actions would you perform to accomplish the realistic replay of the peak workload on the test machine? (Choose three.)

    A. Preprocess the captured workload for the specified target database version.B. Set up as many replay clients as there are actual clients to the production system.C. Set up all the replay clients on the same machine on which the test database is running.D. Resolve all external references such as database links, external tables, and directory objects.E. Restore the replay database to match the capture database at the start of the workload capture.

    Correct Answer: ADESection: (none)Explanation

    Explanation/Reference:

    QUESTION 45You are a DBA in ABC Corp. You are working on an online transaction processing (OLTP) system.The applications running on the database use connection poolingto connect to the database to perform transactions. The company wants to upgrade the CPU and the memory for the machine on which the production database isrunning. To test the realistic workload on the new machine with increased CPU and memory, you identified the peak workload time for the database and capturedthe workload on the production system. You set up the test machine with the upgraded CPU and memory, and performed the following operations for replay:

    1) You preprocessed the captured workload.2) You restored the replay database to match the capture database at the start of the workload capture.3) You resolved all external references.4) You set up replay clients.

    You have the following replay considerations:1) load testing to be performed

  • http://www.gratisexam.com/

    2) all the sessions to connect immediately3) user waits between issuing calls to be kept to a minimum

    What replay options would you choose to accomplish the replay?

    A. SYNCHRONIZATION = FALSE, THINK_TIME_SCALE = 0,CONNECT_TIME_SCALE = 0 and THINK_TIME_AUTO_CORRECT = FALSE

    B. SYNCHRONIZATION = TRUE, THINK_TIME_SCALE = 100,CONNECT_TIME_SCALE = 0 and THINK_TIME_AUTO_CORRECT = FALSE

    C. SYNCHRONIZATION = FALSE, THINK_TIME_SCALE = 100, CONNECT_TIME_SCALE = 100 andTHINK_TIME_AUTO_CORRECT = TRUE

    D. SYNCHRONIZATION = TRUE, THINK_TIME_SCALE = 100,CONNECT_TIME_SCALE = 100 andTHINK_TIME_AUTO_CORRECT = FALSE

    Correct Answer: ASection: (none)Explanation

    Explanation/Reference:

    QUESTION 46You are a DBA in ABC Corp. You are working on an online transaction processing (OLTP) system.The applications running on the database use connection poolingto connect to the database to perform transactions. The company wants to upgrade the CPU and the memory for machine on which the production database isrunning. To test the realistic workload on the new machine with increased CPU and memory, you identified the peak workload time for the database and capturedthe workload on the production system.You set up the test machine with the upgraded CPU and memory, and performed the following operations for replay:

    1) You preprocessed the captured workload.2) You restored the replay database to match the capture database at the start of the workload capture.3) You resolved all external references.4) You set up replay clients.

    You have the following replay considerations:

    1) minimal data divergence to be ensured2) all sessions to connect immediately.3) user waits between issuing calls to be kept to a minimum

    What replay options would you choose to accomplish the replay?

  • http://www.gratisexam.com/

    A. SYNCHRONIZATION = TRUE, THINK_TIME_SCALE = 0,CONNECT_TIME_SCALE = 0 andTHINK_TIME_AUTO_CORRECT = TRUE

    B. SYNCHRONIZATION = TRUE, THINK_TIME_SCALE = 0,CONNECT_TIME_SCALE = 100 andTHINK_TIME_AUTO_CORRECT = TRUE

    C. SYNCHRONIZATION = TRUE, THINK_TIME_SCALE = 100,CONNECT_TIME_SCALE = 0 andTHINK_TIME_AUTO_CORRECT = FALSE

    D. SYNCHRONIZATION = TRUE, THINK_TIME_SCALE = 100,CONNECT_TIME_SCALE = 100 andTHINK_TIME_AUTO_CORRECT = TRUE

    Correct Answer: ASection: (none)Explanation

    Explanation/Reference:

    QUESTION 47View the Exhibit and examine the output for the WRC command-line utility that you executed to estimate the number of replay clients.

    Identify three prerequisites for completing the replay. (Choose three.)

    Exhibit:

  • http://www.gratisexam.com/

    A. The replay database should be in the RESTRICTED mode.B. You need to start at least 21 replay clients on six CPUs to start the replay.C. The replay directory must have all the replay files that have been preprocessed.D. The user should be able to use the workload replay package and should have the DBA role.E. The replay options for think_time_scale and connect_time_scale must be set to 100 each.

    Correct Answer: BCDSection: (none)Explanation

    Explanation/Reference:

    QUESTION 48Examine the output of the following query:

    SQL> SELECT c.name,a.addr,a.gets,a.misses,a.sleeps,

  • http://www.gratisexam.com/

    2 a.immediate_gets,a.immediate_misses,b.pid3 FROM v$latch a, v$latchholder b, v$latchname c4 WHERE a.addr = b.laddr(+) and a.latch# = c.latch#5 AND c.name LIKE '%latch_name%' ORDER BY a.latch#;

    LATCH NAME ADDR GETS MISSES SLEEPS IMMEDIATE_GETS IMMEDIATE_MISSES ------------ -------- -------- ------- ------ -------------- ----------------shared pool 20016544 8520540 14112 3137 0 0

    You calculated the Gets-to-Misses ratio, which is .99834, and this ratio is dropping over a period of time.

    Which two actions can improve this? (Choose two.)

    A. reducing hard parsesB. increasing the size of the shared poolC. using only dedicated server connectionsD. setting the CURSOR_SHARING parameter to EXACTE. encouraging the use of more literal SQL statements

    Correct Answer: ABSection: (none)Explanation

    Explanation/Reference:

    QUESTION 49Examine the output of the following query:

    SQL>; SELECT c.name,a.addr,a.gets,a.misses,a.sleeps,2 a.immediate_gets,a.immediate_misses,b.pid3 FROM v$latch a, v$latchholder b, v$latchname c4 WHERE a.addr = b.laddr(+) and a.latch# = c.latch#5 AND c.name LIKE '%latch_name%' ORDER BY a.latch#;

    LATCH NAME ADDR GETS MISSES SLEEPS IMMEDIATE_GETS IMMEDIATE_MISSES ------------ -------- -------- ------- ------ -------------- ----------------shared pool 20016544 8520540 14112 3137 0 0

    Which two conclusions can you draw from this? (Choose two.)

  • http://www.gratisexam.com/

    A. The latch was requested in no wait mode.B. The latch was requested in willing-to-wait mode.C. The shared pool operations to allocate and free memory in it caused the misses.D. Automatic Memory Management is not enabled because the IMMEDIATE_GETS and IMMEDIATE_MISSES columns have zero in them.

    Correct Answer: BCSection: (none)Explanation

    Explanation/Reference:

    QUESTION 50Examine the output of the query given below:

    SQL> SELECT mutex_type, location, sum(gets), sum(sleeps)FROM v$mutex_sleep_historyGROUP BY mutex_type, location;

    MUTEX_TYPE LOCATION SUM(GETS) SUM(SLEEPS)-------------- ------------------------------------- ---------- -----------Library Cache kglhdgn1 62 8669586 4538Library Cache kglget2 2 2016618 24Cursor Stat kkocsStoreBindAwareStats [KKSSTALOC8] 2975 1Cursor Pin kkslce [KKSCHLPIN2] 666831 678Library Cache kgllkdl1 85 3369224 110Library Cache kglpnal1 90 224199 13Library Cache kglic1 49 42068 10Library Cache kglpin1 4 9620087 374Library Cache kglpndl1 95 2065089 799 rows selected.

    Which statement is true?

    A. Each row in the output represents a SQL statement that had to wait for mutexes.B. The Cursor Stat and Cursor Pin SLEEPS indicate that the CURSOR_SHARING parameter is set to EXACT.C. The GETS column shows the number of times a mutex/location was requested by the requesting session while being held by the blocking session.D. The sum of numbers in the GETS and SLEEPS columns indicates the number of times a mutex/location was requested by the requesting session while being

    held by the blocking session.

  • http://www.gratisexam.com/

    Correct Answer: CSection: (none)Explanation

    Explanation/Reference:

    QUESTION 51Examine the query output shown below:

    SQL> SELECT sum(pins), sum(reloads), sum(reloads)/sum(pins)FROM v$librarycache;

    SUM(PINS) SUM(RELOADS) SUM(RELOADS)/SUM(PINS)---------- ------------ ----------------------16479 16000 0.9709327

    Which statement describes the correct interpretation of the reloads-to-pin ratio and the action to be taken?

    A. This ratio is reasonable. However, decrease the shared pool size for better performance.B. This ratio is very high and the shared pool size should be increased immediately to reduce this ratio.C. This ratio is reasonable. However, this needs monitoring. Increase the shared pool size only if the ratio crosses 1.D. This ratio is reasonable. However, this needs monitoring. Increase the shared pool size only if the ratio falls below 0.1.

    Correct Answer: BSection: (none)Explanation

    Explanation/Reference:

    QUESTION 52You work as a DBA for a company and manage an online transaction processing (OLTP) system. You received complaints about the performance degradation ofSQL statements executed by the application that uses this database.View the Exhibit and examine the output of the queries executed to investigate theperformance issues.

    Which two actions can improve performance? (Choose two.)

    Exhibit:

  • http://www.gratisexam.com/

    A. increasing the size of the shared poolB. setting the CURSOR_SHARING parameter to EXACTC. decreasing the value set for the OPEN_CURSORS parameterD. replacing literals with bind variables in SQL statements with the PLAN_HASH_VALUE 1337874392E. replacing literals with bind variables in SQL statements with the PLAN_HASH_VALUE 1445457117

    Correct Answer: AESection: (none)Explanation

  • http://www.gratisexam.com/

    Explanation/Reference:

    QUESTION 53You work as a consultant DBA for various clients. A performance issue in one of the online transaction processing (OLTP) systems is reported to you and youreceived the Automatic Workload Repository (AWR) report generated in the database. The main sections of the AWR report are shown in the Exhibits.View the Exhibit named DBTIME and note % DB Time.

    View the Exhibit named TIMEMODEL and note what has contributed to % DB Time.

    View the Exhibit named EFFICIENCY and examine the various percentages shown.

    Identify the option that has the correct answers for the questions given below:1) Which factor indicates the main problem?2) What is the main problem?3) What solution would you recommend?

    Exhibit 1 (exhibit):

    Exhibit 2 (exhibit):

  • http://www.gratisexam.com/

    Exhibit 3 (exhibit):

    A. 1) The Exhibit DBTIME shows that the DB CPU event consumed very high % DB Time.2) The CPU is very slow.3) Increase the number of processors.

  • http://www.gratisexam.com/

    B. 1) hard parse elapsed time has the majority time in parse time elapsed, which is shown in the TIMEMODEL Exhibit.2) This is due to inadequate Database Buffer Cache.3) Increase the size of database buffer cache.

    C. 1) sql execute elapsed time and parse time elapsed are consuming very high % DB Time in the TIMEMODEL Exhibit.2) There are too many soft parses.3) Investigate the HOLD_CURSOR parameter setting in the application and set it appropriately.

    D. 1) % Non-Parse CPU is low and Soft Parse % is also low in the EFFICIENCY Exhibit. This shows that very few statements are found in the cache.2) There are too many hard parses.3) Investigate the CURSOR_SHARING parameter setting and set it appropriately.

    Correct Answer: DSection: (none)Explanation

    Explanation/Reference:

    QUESTION 54You work as a consultant DBA for various clients. A performance issue in one of the online transaction processing (OLTP) systems is reported to you and youreceived the Automatic Workload Repository (AWR) report generated in the database. The main sections of the AWR report is shown in the Exhibits.View the Exhibit named DBTIME and note % DB Time.

    View the Exhibit named TIMEMODEL and note what has contributed to % DB Time.

    View the Exhibit named EFFICIENCY and examine the various percentages shown.

    Which option describes the correct understanding of the main problem?

    Exhibit 1 (exhibit):

  • http://www.gratisexam.com/

    Exhibit 2 (exhibit):

    Exhibit 3 (exhibit):

    A. The Exhibit DBTIME shows that the DB CPU event consumed very high % DB Time, which indicates that the CPU is very slow.

  • http://www.gratisexam.com/

    B. sql execute elapsed time and parse time elapsed are consuming very high % DB Time in the TIMEMODEL Exhibit. This indicates too many soft parses.C. hard parse elapsed time has the majority time in parse time elapsed, which is shown in the TIMEMODEL Exhibit. This indicates inadequate database buffer

    cache.D. % Non-Parse CPU: and Soft Parse %: are low in the EFFICIENCY Exhibit, which shows that very few statements are found in the cache. This indicates that

    there were too many hard parses.

    Correct Answer: DSection: (none)Explanation

    Explanation/Reference:

    QUESTION 55You work as a DBA for a company and you have the responsibility of managing one of its online transaction processing (OLTP) systems. The databaseencountered performance-related problems and you generated an Automatic Workload Repository (AWR) report to investigate it further.View the Exhibits and examine the AWR report.

    Which is the appropriate solution to the problem in this database?

    Exhibit 1 (exhibit):

    Exhibit 2 (exhibit):

  • http://www.gratisexam.com/

    Exhibit 3 (exhibit):

  • http://www.gratisexam.com/

    Exhibit 4 (exhibit):

  • http://www.gratisexam.com/

  • http://www.gratisexam.com/

    A. increasing the size of the shared poolB. adding one more CPU to the systemC. setting the CURSOR_SHARING parameter to EXACTD. configuring Java pool because it is not configured

    Correct Answer: ASection: (none)Explanation

    Explanation/Reference:

    QUESTION 56You work on an online transaction processing (OLTP) database in which the SALES table has 10,000 rows but only four distinct products are sold. View the Exhibitnamed HIST to check the distribution of values in the table and the histograms on the table.

    View the Exhibits named QUERY-1 and QUERY-2 that show details in the V$SQL view for the queries executed on the SALES table.

    You check the plan table and notice that both the queries that executed on the SALES table used index range scan. The second query retrieved most of the rows inthe table but used index range scan.

    Why would the second query use the same plan?

    Exhibit 1 (exhibit):

  • http://www.gratisexam.com/

    Exhibit 2 (exhibit):

  • http://www.gratisexam.com/

    Exhibit 3 (exhibit):

    A. because the plan was bind awareB. because the bind peeking never happenedC. because the OPEN_CURSORS parameter is set to a very low valueD. because the optimizer did not consider selectivity due to the use of bind variables

  • http://www.gratisexam.com/

    Correct Answer: DSection: (none)Explanation

    Explanation/Reference:

    QUESTION 57You work on an online transaction processing (OLTP) database in which the SALES table has 10,000 rows but only four distinct products are sold. View the Exhibitnamed HIST to check data distribution in the table and the histograms on the table.

    View the Exhibit named QUERY-1 that shows details in the V$SQL view for the query executed on the SALES table having product id 1.

    Further, you query the SALES table thrice more in the following order:- query rows having product ID 4- query rows having product ID 2- query rows having product ID 4

    View the Exhibit named QUERY-n to see the details about these queries.

    What do you infer from this?

    Exhibit 1 (exhibit):

  • http://www.gratisexam.com/

    Exhibit 2 (exhibit):

  • http://www.gratisexam.com/

    Exhibit 3 (exhibit):

    A. The second plan was created because the first plan was aged out.B. The CURSOR_SHARING parameter value was changed to EXACT after the second query was executed.C. The third plan was created because the first plan was aged out and the second plan had different selectivity.D. The first two executions used the same plan because at parse time the optimizer did not consider selectivity as the cursor was not yet considered bind-aware.

    Correct Answer: DSection: (none)Explanation

    Explanation/Reference:

  • http://www.gratisexam.com/

    QUESTION 58You are working for a company that uses huge applications to manage its customer details. During your regular performance checks, you executed the followingquery:

    SQL> show parameter shared_pool_reserved_sizeNAME TYPE VALUE------------------------------ --------------------- -----------------shared_pool_reserved_size big integer 6920601

    SQL> SELECT free_space, used_space, request_misses, request_failures from V$SHARED_POOL_RESERVED;

    FREE_SPACE USED_SPACE REQUEST_MISSES REQUEST_FAILURES ---------- ---------- -------------- ---------------- 6469776 555528 0 113

    You observed that REQUEST_FAILURES is 113 but not increasing, and also that REQUEST_MISSES is not increasing.

    What would you interpret from this?

    A. The reserved pool is very large. Consider reducing the size of the shared pool.B. The reserved pool is large and has free space to satisfy requests. Consider reducing the size of the reserved pool.C. The reserved pool is very small and is not finding enough memory to satisfy requests.

    Increase the size of the shared pool.D. The reserved pool is very small and is not finding enough memory to satisfy requests.

    Increase the size of the reserved pool.

    Correct Answer: BSection: (none)Explanation

    Explanation/Reference:

    QUESTION 59You work for a company as a DBA. The company has an application to manage the details of its business and customer base. However, application users complainthat updating the SALES record takes more time than it used to earlier. On investigation, you notice that the application performance degrades when a call is madeto the UPDATE_INV procedure. Further, you execute the following query to investigate:

    SQL> SELECT name, type, sharable_mem, kept2 FROM v$db_object_cache

  • http://www.gratisexam.com/

    3 WHERE sharable_mem > 40004 AND EXECUTIONS > 55 AND (type='FUNCTION' OR type='PROCEDURE')6 /

    http://www.gratisexam.com/

    NAME TYPE SHARABLE_MEM KEPT------------------- -------------- --------------- -----------GETEMKEY FUNCTION 13695 YESUPDATE_INV PROCEDURE 14766 NOSETEMUSERCONTEXT PROCEDURE 13703 YESDECRYPT FUNCTION 17790 YESUPDATE_DEPT PROCEDURE 18765 NO

    What would you do to improve the performance?

    A. Enable the result cache if not already enabled.B. Flush the shared pool to make space for this procedure.C. Keep the UPDATE_INV procedure by using the DBMS_SHARED_POOL.KEEP procedure.D. Increase the size of the keep buffer pool to accommodate the UPDATE_INV procedure.E. Ask the developers to modify and use literals instead of bind variables in the UPDATE_INV procedure.

    Correct Answer: CSection: (none)Explanation

    Explanation/Reference:

    QUESTION 60You work for a small manufacturing company as a DBA. The company has various applications to manage the details of its business and customer base. Thecompany has only one sales outlet where the operator updates the SALES table in the sales application with the details when a product is sold. The company hasmany other applications for various other businesses that use the same database. The sales operator, while generating a report, noticed that there are some gapsgenerated in the serial number in the SLNO column during peak hours of business. On investigating, you find that the SLNO column in the SALES table uses the

  • http://www.gratisexam.com/

    SLNSEQ sequence to generate the serial numbers when a record is inserted.During peak hours, you noticed the following:When the operator entered the sales details the last time, the sequence number was 1056300, but when you checked the sequence as follows, you found a gap of100 numbers:

    SQL> SELECT sequence_name, last_number FROM user_sequences WHERE sequence_name='SLNSEQ';

    SEQUENCE_NAME LAST_NUMBER------------------------------ -----------SLNSEQ 1056400

    You observed this behavior many times and only during peak hours. What could be the problem and solution for this?

    A. The reserved pool is not configured. Configure the reserved pool.B. The keep buffer pool is not configured. Configure the keep buffer pool.C. The sequence was created with a CACHE of 100 numbers. Re-create the sequence with a higher CACHE number.D. The sequence is aging out of the shared pool. Keep the sequence in the shared pool using the DBMS_SHARED_POOL.KEEP procedure.

    Correct Answer: DSection: (none)Explanation

    Explanation/Reference:

    QUESTION 61You work as a DBA for a company and as a performance improvement measure, you implemented the result cache in your database. Many users in the companysay that performance has improved on the queries they use, but some users complain that they have not got any performance benefit on the queries they use. Youchecked all the queries they use and the following is one of them:

    SQL> SELECT /*+ RESULT_CACHE */ slnoq.currval as "SLNO", prod_id, pdname, cust_nameFROM sales WHERE sl_date < sysdate;

    View the Exhibit and examine the testing performed to check this.

    Why is the result cache not used? (Choose all that apply.)

    Exhibit:

  • http://www.gratisexam.com/

    A. because the query uses SYSDATEB. because the query uses an alias for a columnC. because the query uses the SLNOQ.CURRVAL sequenceD. because the table might have an index on the SL_DATE column

  • http://www.gratisexam.com/

    Correct Answer: ACSection: (none)Explanation

    Explanation/Reference:

    QUESTION 62You work as a DBA for a company and as a performance improvement measure, you implemented the result cache in your database.View the Exhibit named SETTING and note the result cache settings.

    Many users in the company state that performance has improved on the queries they use but some users complain that they have not got any performance benefiton the queries they use.You checked all the queries they use and the following is one of them:

    SQL> SELECT slnoq.currval as "SLNO", prod_id, pdname,2 cust_name FROM sales WHERE sl_date < sysdate;

    View the Exhibit named TEST and examine the testing performed to check this.

    Why is the result cache not used? (Choose all that apply.)

    Exhibit 1 (exhibit):

    Exhibit 2 (exhibit):

  • http://www.gratisexam.com/

  • http://www.gratisexam.com/

    A. because the query uses SYSDATEB. because the query uses an alias for a columnC. because the query uses the SLNOQ.CURRVAL sequenceD. because the CLIENT_RESULT_CACHE_SIZE parameter is set to 0

    Correct Answer: ACSection: (none)Explanation

    Explanation/Reference:

    QUESTION 63In which case is the database buffer cache NOT used?

    A. when physical I/Os are performed to read from data filesB. when the database writer process writes to the SYSTEM tablespaceC. when the server process writes sort data to the temporary tablespaceD. when the database writer process writes undo data to the undo tablespace

    Correct Answer: CSection: (none)Explanation

    Explanation/Reference:

    QUESTION 64Which two statements are true about the database buffer cache? (Choose two.)

    A. A buffer can be written to by many processes at the same time.B. A buffer containing a block that is identical to the block on disk is called free buffer.C. A buffer containing a block that is being accessed by a process is called dirty buffer.D. A buffer available to be overwritten with a different database block at any time is called a dirty buffer.E. A buffer can contain a different version of a block that is available in a different buffer of the same cache.

    Correct Answer: BESection: (none)

  • http://www.gratisexam.com/

    Explanation

    Explanation/Reference:

    QUESTION 65You work as a DBA and you have the responsibility of managing a large online transaction processing (OLTP) system. You used the following query during theperformance tuning activity:

    SQL> SELECT (1-((phy.value-phyd.value) / (cur.value + con.value))) * 100 2 "Cache Hit ratio"3 FROM v$sysstat cur, v$sysstat con, v$sysstat phy, v$sysstat phyd4 WHERE cur.name = 'db block gets'5 AND con.name = 'consistent gets'6 AND phy.name = 'physical reads'7 AND phyd.name = 'physical reads direct';

    Cache Hit Ratio---------------98.43

    Which understanding of this ratio is correct?

    A. 98.43% of times the requests have found free buffers.B. 98.43% of the total number of requests used the buffer cache.C. 98.43% of times the requests were satisfied by performing physical I/Os.D. 98.43% of times the requests have found the required data blocks in the buffer cache.

    Correct Answer: DSection: (none)Explanation

    Explanation/Reference:

    QUESTION 66You work as a DBA and have the responsibility of managing a large online transaction processing (OLTP) system. You used the following query during theperformance tuning activity:

    SQL> SELECT (1-((phy.value-phyd.value) / (cur.value + con.value))) * 100 2 "Cache Hit ratio"

  • http://www.gratisexam.com/

    3 FROM v$sysstat cur, v$sysstat con, v$sysstat phy, v$sysstat phyd4 WHERE cur.name = 'db block gets'5 AND con.name = 'consistent gets'6 AND phy.name = 'physical reads'7 AND phyd.name = 'physical reads direct';

    Cache Hit Ratio---------------98.43

    What can you conclude based on this ratio?

    A. The database performance is very good because of reduced logical I/Os.B. The database performance cannot be determined based only on this ratio.C. Good database performance is guaranteed because very few physical I/Os are performed.D. The database performance is very good because most of the requested data blocks are found in the buffer cache.

    Correct Answer: BSection: (none)Explanation

    Explanation/Reference:

    QUESTION 67You work as a DBA and have the responsibility of managing a large online transaction processing (OLTP) system. You used three queries to check the databaseperformance as shown in the Exhibit.View the Exhibit and analyze the output.

    What conclusion can you draw from this?

    Exhibit:

  • http://www.gratisexam.com/

    A. There are many physical I/Os happening.B. There are many full table scans happening.C. The data blocks are aging out of the buffer cache very fast.D. There are many cursors trying to access the same data blocks.E. The DBWn processes are not freeing sufficient buffers to meet the demand.

    Correct Answer: DSection: (none)Explanation

    Explanation/Reference:

  • http://www.gratisexam.com/

    QUESTION 68Examine the following information from the AWR report:

    Top 5 Timed Events~~~~~~~~~~~~~~~~~~ % TotalEvent Waits Time (s) Call Time-------------------------------------- ------------ ----------- ---------CPU time 559 88.80log file parallel write 2.181 28 4.42SQL*Net more data from client 516.611 27 4.24db file parallel write 13.383 13 2.04db file sequential read 563 2 .27

    Which could cause waits on the db file sequential read event?

    A. too many full table scansB. too large a database buffer cacheC. too many waits occurring while reading multiple blocks synchronouslyD. too many index range scans occurring which refers to blocks not in the database buffer cache

    Correct Answer: DSection: (none)Explanation

    Explanation/Reference:

    QUESTION 69Which two symptoms related to the database buffer cache together indicate that there are many full table scans happening? (Choose two.)

    A. too many buffer busy waitsB. very low buffer cache-hit ratioC. very high buffer cache-hit ratioD. many waits on the db file scattered read event

    Correct Answer: BDSection: (none)Explanation

  • http://www.gratisexam.com/

    Explanation/Reference:

    QUESTION 70What indicates that the rate of writing data blocks to the disk is very slow?

    A. very high cache-hit ratioB. increasing number of free buffer waitsC. increasing number of buffer busy waitsD. waits on latch: cache buffers chains event

    Correct Answer: BSection: (none)Explanation

    Explanation/Reference:

    QUESTION 71You work as a database administrator to manage an online transaction processing (OLTP) system.The application code was recently tuned for optimumperformance and users acknowledged the performance improvement. However, the users are now again complaining that the application response time has gonedown considerably. You used a few queries to investigate the problem and a couple of important queries are shown in the Exhibit. View the Exhibit and analyze theoutput shown.

    Which actions would improve the performance? (Choose all that apply.)

    Exhibit:

  • http://www.gratisexam.com/

    A. increasing the number database writersB. decreasing the number of database writersC. increasing the size of the database buffer cacheD. decreasing the size of the database buffer cacheE. decreasing the value set to the FAST_START_MTTR_TARGET parameter

    Correct Answer: ACSection: (none)Explanation

    Explanation/Reference:

    QUESTION 72You are working on an online transaction processing (OLTP) system. You are investigating the reasons for performance degradation in the database. View theExhibit named TOP5EVENTS and note the top five events.

  • http://www.gratisexam.com/

    View the Exhibit named TOPSQL and note the problems related to these statements.

    View the Exhibit named INSTACT and note the table scans.

    Which is the most appropriate solution?

    Exhibit 1 (exhibit):

    Exhibit 2 (exhibit):

    Exhibit 3 (exhibit):

  • http://www.gratisexam.com/

    A. Create indexes on short tables.B. Use the CACHE hint to access long tables.C. Keep the long tables in the keep buffer pool.D. Keep the short tables in the keep buffer pool.E. Keep the short tables in the recycle buffer pool.

    Correct Answer: DSection: (none)Explanation

    Explanation/Reference:

    QUESTION 73

  • http://www.gratisexam.com/

    You are working on an online transaction processing (OLTP) system. You are investigating the reasons for performance degradation in the database. View theExhibit named TOP5EVENTS and note the top five events.

    View the Exhibit named TOPSQL and note the problems related to these statements.

    View the Exhibit named INSTACT and note the table scans.

    Which two are appropriate solutions to improve performance? (Choose two.)

    Exhibit 1 (exhibit):

    Exhibit 2 (exhibit):

    Exhibit 3 (exhibit):

  • http://www.gratisexam.com/

    A. Enable the large pool.B. Keep the long tables in the keep buffer pool.C. Keep the short tables in the keep buffer pool.D. Set the CACHE property on the table for the long tables.E. Set the CACHE property on the table for the short tables.

    Correct Answer: CESection: (none)Explanation

    Explanation/Reference:

    QUESTION 74

  • http://www.gratisexam.com/

    You observed very low cache-hit ratio in your database as shown below:

    SQL> SELECT (1-((phy.value-phyd.value) / (cur.value + con.value))) * 1002 "Cache Hit ratio"3 FROM v$sysstat cur, v$sysstat con, v$sysstat phy, v$sysstat phyd4 WHERE cur.name = 'db block gets'5 AND con.name = 'consistent gets'6 AND phy.name = 'physical reads'7 AND phyd.name = 'physical reads direct';

    Cache Hit Ratio---------------68.43

    After further investigation, you decided to increase the database buffer cache size. You are using theBuffer Cache Advisor to check the appropriate size for the buffer cache. View the Exhibit and examine the graph shown by the advisory.

    What can you infer from the graph?

    Exhibit:

  • http://www.gratisexam.com/

    A. The buffer cache size can be set to 12 MB for optimal performance.B. The buffer cache size can be set to more than 16 MB to get more benefit.

  • http://www.gratisexam.com/

    C. The buffer cache size can be set to more than 16 MB but there would be no benefit from it.D. The buffer cache size cannot be set to more than 16 MB because the SGA_MAX_SIZE value does not allow that.

    Correct Answer: BSection: (none)Explanation

    Explanation/Reference:

    QUESTION 75You are working in an online transaction processing (OLTP) environment. You received many complaints from users about degraded performance. Your seniorDBA asked you to execute the following command to improve the performance:

    SQL> ALTER TABLE subscribe_log STORAGE(BUFFER_POOL recycle);

    You checked the data in the SUBSCRIBE_LOG table and found that it is a large table having one million rows. Which factor could be a reason for thisrecommendation?

    A. The keep pool is not configured.B. The automatic Program Global Area (PGA) is not configured.C. The CURSOR_SPACE_FOR_TIME initialization parameter is set to FALSE.D. The most of the rows in SUBSCRIBE_LOG table are accessed once a week.E. All the queries on the SUBSCRIBE_LOG table are rewritten using a materialized view.

    Correct Answer: DSection: (none)Explanation

    Explanation/Reference:

    QUESTION 76View the Exhibit and analyze the content of V$BUFFER_POOL_STATISTICS.

    Why does the query on the EMP table not access buffers from the keep pool?

    Exhibit:

  • http://www.gratisexam.com/

    A. because the query used SCOTT.EMP instead of EMPB. because the query with * always uses the default poolC. because the query with * always forces physical I/Os that bypass the keep poolD. because the blocks of the EMP table are already available in one of the other buffer pools

    Correct Answer: DSection: (none)Explanation

    Explanation/Reference:

    QUESTION 77You queried V$SYSTEM_EVENT in your online transaction processing (OLTP) environment to check the following wait events:

    Event Total Seconds Total Average Wait

  • http://www.gratisexam.com/

    Name Waits Waiting Timeouts (in secs)------------------------------ ------------ -------- ------------ ---------direct path read temp 18.274 11.312 16.282 .619direct path write temp 3.251 416 25 .127

    Which step would be appropriate to improve the performance?

    A. Increase the number of I/O slaves.B. Increase the size of the Database Buffer Cache.C. Increase the size of the Program Global Area (PGA).D. Increase the number of database writer (DBWn) processes.

    Correct Answer: CSection: (none)Explanation

    Explanation/Reference:

    QUESTION 78You queried V$SYSTEM_EVENT in your online transaction processing (OLTP) environment to check the following wait events:

    Event Total Seconds Total Average WaitName Waits Waiting Timeouts (in secs)------------------------------ ------------ -------- ------------ ---------direct path read temp 18.274 11.312 16.282 .619direct path write temp 3.251 416 25 .127

    What do these wait events indicate?

    A. The DBWn processes are not creating free buffers fast enough.B. The buffer cache is too small and block replacement is excessive.C. The aggressive checkpointing policy is causing too many writes to disk.D. The work areas are too large to fit in memory and are, therefore, written to disk.

    Correct Answer: DSection: (none)Explanation

    Explanation/Reference:

  • http://www.gratisexam.com/

    QUESTION 79The users in your online transaction processing (OLTP) environment complain that the query response time has increased considerably. On investigation, you findthat the Program Global Area (PGA) is undersized and using temporary segments for sort operations. You plan to increase the size of the PGA and there is ampleamount of memory available to you. You used the PGA advisor to check the correct size for PGA. View the Exhibit and examine the content of the PGA advisor.

    What size of PGA would give the maximum benefit?

    Exhibit:

    A. 125 MBB. 3009 MBC. 8024 MBD. 1003 MBE. 1204 MBF. 1404 MB

    Correct Answer: BSection: (none)Explanation

    Explanation/Reference:

  • http://www.gratisexam.com/

    QUESTION 80View the Exhibit and examine the content of the V$PGA_TARGET_ADVICE_HISTOGRAM view.

    What would you infer from this?

    Exhibit:

    A. If the PGA size is set to 4 MB, then all the work areas would execute in optimal mode.B. If the PGA size is doubled, then all the work areas that are less than 2 MB would execute in optimal mode.C. If the PGA size is set to 32 MB, then the number of work areas would reduce. So it is the appropriate size for PGA.D. If the size of the Program Global Area (PGA) is set to more than 64 MB, then all the work areas would execute in optimal mode. So it is the appropriate size for

    PGA.

    Correct Answer: BSection: (none)Explanation

    Explanation/Reference:

  • http://www.gratisexam.com/

    QUESTION 81The users in your online transaction processing (OLTP) environment complain that the query response time has increased considerably. You checked the ProgramGlobal Area (PGA)- related information in the AWR report to investigate it further.View the Exhibit named PGAHIT and note the PGA cache-hit percentage.

    View the Exhibit named PGAADV and analyze the content.

    If you want to increase the size of PGA, you have sufficient memory available in the system. What would be the correct decision?

    Exhibit 1 (exhibit):

    Exhibit 2 (exhibit):

    A. Double the size of PGA.B. Increase the size of PGA to 120 MB.

  • http://www.gratisexam.com/

    C. Increase the size of PGA to 160 MB or more.D. Leave the PGA at its current size and investigate other possible causes.

    Correct Answer: CSection: (none)Explanation

    Explanation/Reference:

    QUESTION 82The users in your online transaction processing (OLTP) environment complain that the response time of the application has increased dramatically.To investigatethe problem, view the Exhibit and examine the queries you executed.

    What do you infer?

    Exhibit:

  • http://www.gratisexam.com/

    A. Cursor sharing is not enabled.B. The large pool is not configured.C. The temporary tablespace is full.D. The value set for the SHARED_POOL_SIZE initialization parameter is too small.E. The value set for the PGA_AGGREGATE_TARGET initialization parameter is too small.

    Correct Answer: ESection: (none)

  • http://www.gratisexam.com/

    Explanation

    Explanation/Reference:

    QUESTION 83You work in an online transaction processing (OLTP) environment and users are experiencing slow response time on their queries. These users connect asFINANCE to run their application and run hundreds of sessions. Your investigation shows that there is lot of I/O contention happening on only one temporarytablespace and there is no load on other temporary tablespaces. View the Exhibit and examine the details.After some time you observed that sort operations are running out of temporary space.

    What would be a long-term solution?

    Exhibit:

    A. Change the temporary tablespace assigned to this user ID.B. Create and assign temporary tablespace group to this user ID.C. Increase the size of the temporary tablespace assigned to this user ID.D. Make the bigger temporary tablespace the default temporary tablespace ID.

    Correct Answer: BSection: (none)Explanation

    Explanation/Reference:

  • http://www.gratisexam.com/

    QUESTION 84You work in an online transaction processing (OLTP) environment and users are experiencing slow response time on their queries. These users connect asFINANCE to run their application and run hundreds of sessions. Your investigation shows that there is lot of I/O contention happening on only one temporarytablespace and there is no load on other temporary tablespaces. View the Exhibit and examine the details. After some time you observed that the sort operationsare running out of temporary space.

    What would be a long-term solution?

    Exhibit:

    A. Configure the large pool if it is not done already.B. Change the temporary tablespace assigned to this user ID.C. Create and assign temporary tablespace group to this user ID.D. Increase the number of database writer (DBWn) processes ID.E. Make the bigger temporary tablespace the default temporary tablespace ID.

    Correct Answer: CSection: (none)Explanation

    Explanation/Reference:

    QUESTION 85View the Exhibit and examine the content. ALLOCATED_SPACE and FREE_SPACE are not matching with the TABLESPACE_SIZE value.

    What would you conclude from this?

  • http://www.gratisexam.com/

    Exhibit:

    A. A new temporary file is added to the tablespace.B. The temporary space was not sufficient for sort operations.C. The temporary space allocated to large sort operations is not deallocated.D. TEMP_L is a default temporary tablespace because the numbers show some overhead on this tablespace.

    Correct Answer: CSection: (none)Explanation

    Explanation/Reference:

    QUESTION 86View the Exhibit and examine the content.

    ALLOCATED_SPACE and FREE_SPACE indicate that a large amount of space is allocated to the temporary tablespace that is being used.

  • http://www.gratisexam.com/

    http://www.gratisexam.com/

    Which action would reclaim the space and refresh these values?

    Exhibit:

    A. shrinking the tablespaceB. closing all the current sessionsC. restarting the database instanceD. forcing a checkpoint or waiting for a checkpoint to occur

    Correct Answer: ASection: (none)Explanation

    Explanation/Reference:

  • http://www.gratisexam.com/

    QUESTION 87Examine the output of the following query:

    SQL> SELECT tablespace_name, tablespace_size, allocated_space, free_space2 FROM DBA_TEMP_FREE_SPACE;

    TABLESPACE_NAME TABLESPACE_SIZE ALLOCATED_SPACE FREE_SPACE------------------------------ --------------- --------------- ----------TEMP_L 157286400 144048128 157220864TEMP 105906176 105906176 0

    After some time you executed the same command and observed a different output, as shown below:

    SQL> SELECT tablespace_name, tablespace_size, allocated_space, free_space2 FROM DBA_TEMP_FREE_SPACE;

    TABLESPACE_NAME TABLESPACE_SIZE ALLOCATED_SPACE FREE_SPACE------------------------------ --------------- --------------- ----------TEMP_L 131072 65536 65536TEMP 105906176 105906176 0

    Why has the output changed?

    A. because checkpoint occurredB. because the TEMP_L tablespace was shrunkC. because the database instance was restartedD. because no sort operations are running currently

    Correct Answer: BSection: (none)Explanation

    Explanation/Reference:

    QUESTION 88You are working on a database that was upgraded to Oracle Database 11g from Oracle Database 9i. An ADDM finding in this database says that the shared pool isinadequately sized, as shown in the Exhibit.

  • http://www.gratisexam.com/

    You diagnosed that this is due to different kinds of workloads and this occurs only during peak hours. The following are the related parameter settings:

    SQL> show parameter sganame TYPE VALUE------------------------------ --------------- -----------------lock_sga boolean FALSEpre_page_sga boolean FALSEsga_max_size big integer 300Msga_target big integer 0SQL> show parameter targetname TYPE VALUE------------------------------ --------------- -----------------.....fast_start_mttr_target integer 0memory_max_target big integer 0memory_target big integer 0pga_aggregate_target big integer 100Msga_target big integer 0

    You want to balance the memory between the System Global Area (SGA) components within the SGAdepending on the workloads.

    Which two options would solve this problem? (Choose two.)

    Exhibit:

    A. Set the SGA_TARGET parameter to 300M.B. Set the SGA_MAX_SIZE parameter to 400M.C. Set the MEMORY_MAX_TARGET and MEMORY_TARGET parameters to 400M.D. Set the MEMORY_MAX_TARGET and MEMORY_TARGET parameters to 100M.E. Set the PGA_AGGREGATE_TARGET parameter to 200M and the SGA_MAX_SIZE parameter to 400M.

  • http://www.gratisexam.com/

    Correct Answer: ACSection: (none)Explanation

    Explanation/Reference:

    QUESTION 89View the Exhibit and examine the content of the V$SGA_RESIZE_OPS view.

    The Shared Pool was shrunk when the Default Buffer Cache required more memory. Why did the Java Pool not shrink when the Default Buffer Cache grew?

    Exhibit:

    A. because it is not an auto-tuned componentB. because it uses memory available outside the total SGA sizeC. because it always requires three granules and cannot be reducedD. because it has less free memory than the Database Buffer CacheE. because it cannot be shrunk below the value set to the JAVA_POOL_SIZE parameter

    Correct Answer: ESection: (none)Explanation

    Explanation/Reference:

  • http://www.gratisexam.com/

    QUESTION 90View the Exhibit and examine the content of the V$SGA_RESIZE_OPS view.

    You executed the following command to increase the size of the Large Pool:SQL> ALTER SYSTEM SET large_pool_size=8M;System altered.

    Which component would shrink to increase the size of the Large Pool?

    Exhibit:

    A. the Java PoolB. the Shared PoolC. KEEP Buffer CacheD. Default Buffer Cache

    Correct Answer: DSection: (none)Explanation

    Explanation/Reference:

  • http://www.gratisexam.com/

    QUESTION 91You are hired by ABC Pvt Ltd., and assigned the task of managing one of its development databases. The company has recently upgraded this database to OracleDatabase 11g from Oracle Database 10g.You noticed that SGA is undersized as shown in Exhibit 1.

    To investigate further, you checked the related parameters as shown in Exhibit 2.

    You executed the following command to solve the problem:ALTER SYSTEM SET MEMORY_TARGET=800M;

    What would happen?

    Exhibit 1 (exhibit):

    Exhibit 2 (exhibit):

  • http://www.gratisexam.com/

    A. The implementation of AMM fails because the MEMORY_MAX_TARGET parameter is not set.B. It implements AMM by setting MEMORY_TARGET and

    MEMORY_MAX_TARGET parameters to 800M.C. It implements Automatic Memory Management (AMM) by setting MEMORY_TARGET to 768M and the MEMORY_MAX_TARGET parameter to 800M.D. The implementation of AMM fails because the MEMORY_TARGET parameter cannot be set to a value less than the sum of the current

    PGA_AGGRAGATE_TARGET and SGA_MAX_SIZE values.

    Correct Answer: ASection: (none)Explanation

    Explanation/Reference:

    QUESTION 92You work for ABC Pvt Ltd. The company has recently upgraded one of its development databases to Oracle Database 11g from Oracle Database 10g. You noticedthat the System Global Area (SGA) is undersized as shown in the Exhibit. To investigate further, you checked the related parameters as shown below:

  • http://www.gratisexam.com/

    SQL> show parameter sga_max_sizeNAME TYPE VALUE------------------------------ --------------- -----------------sga_max_size big integer 500M

    SQL> show parameter targetNAME TYPE VALUE------------------------------ --------------- ------------------archive_lag_target integer 0db_flashback_retention_target integer 1440fast_start_io_target integer 0fast_start_mttr_target integer 0memory_max_target big integer 0memory_target big integer 0pga_aggregate_target big integer 384Msga_target big integer 384M

    Which is the best solution that you would recommend?

    Exhibit:

    A. Increase the value of the SGA_MAX_SIZE parameter.B. Set MEMORY_MAX_TARGET and MEMORY_TARGET parameters.C. Reduce the value of the PGA_AGGREGATE_TARGET parameter.D. Increase the value of both SGA_TARGET and PGA_AGGREGATE_TARGET parameters.E. Diagnose further to identify which component in SGA is undersized and then resize it.

    Correct Answer: BSection: (none)

  • http://www.gratisexam.com/

    Explanation

    Explanation/Reference:

    QUESTION 93View the Exhibit and analyze the output of a query execute