Sunteți pe pagina 1din 52

Oracle 1z0-064

Oracle Database 12c: Performance Management and


Tuning
Version: 4.0
Oracle 1z0-064 Exam
QUESTION NO: 1

Your database supports a mixed workload. The ERP application creates short sessions and
performs small, random I/Os; the REPORTING application executes long-running DSS queries.

You want to set a priority for the workload generated by the ERP application and optimize
resource usage for them.

Which three objectives can be achieved by the Resource Manager? (Choose three.)

A. limiting the amount of time that a session is idle and blocking other sessions of the ERP
application
B. limiting the amount of undo generated by operations performed by sessions created by the
ERP application
C. creating two resource plans with resource limits defined for the workload generated by the
applications and automatically changing resource plans based on the workload
D. allocating a lower percentage of CPU to sessions used by the REPORTING application than to
those used by the ERP application
E. limiting the physical I/O performed by the sessions or users of the ERPapplicationthat are
connected to the database

Answer: B,D,E
Explanation:

QUESTION NO: 2

Examine the partial TKPROF output for an SQL statement:

"Pass Any Exam. Any Time." - www.actualtests.com 2


Oracle 1z0-064 Exam
Which two inferences can definitely be made from this output? (Choose two.)

A. Array fetch operations were not performed for this query.


B. No hard parse was performed for this query.
C. The number of logical I/Os is almost equal to the number of physical I/Os.
D. Another transaction held a shared lock on the table, thereby causing a significant delay.

Answer: B,D
Explanation:

QUESTION NO: 3

In your database, the measured 99th percentile value is used as the maximum value. You set a
warning threshold level of 110% of maximum trigger as an alert.

What is the outcome? (Choose the best answer.)

A. It generates an error because the warning threshold cannot exceed 100%.


B. It generates an error because the percentage of maximum threshold cannot be set with a
significance-level threshold value.
C. It generates an alert when an observed metric is 99% of the 99thpercentile value as measured
over the moving window baseline.
D. It generates an alert when an observed metric is 110% of the 99thpercentile value as measured
over the moving window baseline.
E. It generates an alert when 1 in 100 observations for an observed metric exceeds the
99thpercentile value as measured over the fixed baseline.

Answer: A
Explanation:

QUESTION NO: 4

You want to capture AWR data to monitor performance variation every Monday between 9:00 AM
and 12:00 PM for three months and automatically remove the older AWR data every fortnight.

How would you achieve this? (Choose the best answer.)

A. Create AWR baselines.


B. Create SQL plan baselines.

"Pass Any Exam. Any Time." - www.actualtests.com 3


Oracle 1z0-064 Exam
C. Create repeating baseline templates.
D. Create database services and make sure that user connections use them to connect to the
database instance.
E. Create a single baseline template.

Answer: D
Explanation:

QUESTION NO: 5

Which two actions can reduce library cache latch contention for an OLTP application that
repeatedly executes queries containing a mix of literals and bind variables? (Choose two.)

A. setting theOPEN_CURSORSparameter to hold a sufficient number of concurrently open


cursors
B. coding the application such that a frequently executed statement is parsed only once and
executed repeatedly as required
C. setting theCURSOR_SHARINGparameter toEXACT
D. avoiding the granting of privileges on objects associated with cursors during peak load
E. enabling Automatic Memory Management and allocating at least 50% of the available memory
forSHARED_POOL_SIZE
F. configuring shared server connections

Answer: C,E
Reference:http://docs.oracle.com/cd/B28359_01/server.111/b28274/memory.htm

QUESTION NO: 6

You are administering a database that supports multiple applications, which make dedicated
connections to the database instance by using different services.

You execute the command to enable tracing of the ORCL1 service:

Which two statements are true? (Choose two.)

"Pass Any Exam. Any Time." - www.actualtests.com 4


Oracle 1z0-064 Exam
A. Asingle trace file is generated for all sessions mapped to theORCL1service.
B. SQL trace is enabled for all modules and actions for sessions mapped to theORCL1service.
C. An SQL trace file is generated for each session that maps to theORCL1service.
D. An SQL trace file is generated for each of the modules using theORCL1service.
E. SQL trace is not enabled for the service because a module name is not specified.

Answer: A,C
Explanation:

QUESTION NO: 7

In which three situations can dynamic statistics be used? (Choose three.)

A. when the sampling time is a small fraction of the total time for a query
B. when an execution plan is suboptimal because of complex predicates
C. when extended statistics are not available for SQL statements that use complex predicates
D. when a query is on a partitioned table with a global index
E. when index statistics are missing on a column that is used in SQL statements with highly
selective filters

Answer: B,C,D
Reference:https://docs.oracle.com/database/121/TGSQL/tgsql_statscon.htm#TGSQL341

QUESTION NO: 8

You want to generate statistics for new objects added to an OLTP application without affecting old
statistics and the sessions that currently use them.

Which two tasks would you perform to test the new statistics? (Choose two.)

A. Set theOPTIMIZER_USE_PENDING_STATISTICSinitialization parameter toTRUEfor the


session.
B. Set theSTALE_PERCENTstatistics preference to zero and then gather statistics.
C. Set thePUBLISHstatistics preference toFALSEand then gather statistics.
D. Use theDBMS_STATS.PUBLISH_PENDING_STATSprocedure to make pending statistics the
current statistics.
E. Set theNO_INVALIDATEstatistics preference toFALSEand gather statistics without affecting old
statistics.

Answer: A,B

"Pass Any Exam. Any Time." - www.actualtests.com 5


Oracle 1z0-064 Exam
Explanation:

QUESTION NO: 9

You plan to upgrade your production database from Oracle Database 11g to 12c. As part of the
upgrade, you want to introduce new indexes and materialized views. You have already created a
test system with Oracle Database 12c, having the same structure and data as the production
database, along with new schema objects to be added to the production database.

You want to identify regressed SQL statements, if any, which may have been caused by schema
changes and the change in the optimizer version.

Which two methods would you use to achieve this? (Choose two.)

A. Create an SQL Tuning Set (STS) for the SQL statements on the production database and
submit as input to the SQL Tuning Advisor on the test database.
B. Create an STS for the SQL statements on the production database and submit as input to the
SQL Performance Analyzer with theOPTIMIZER_FEATURES_ENABLEparameter first set
to11.2.0.1, and then to12.1.0.1on the test database.
C. Generate an Automatic Workload Repository (AWR) compare periods report with snapshots
taken before and after schema changes on the test database.
D. Capture the production database workload, replay it on the test system by using Database
Replay, and analyze by using the workload replay compare period report.
E. Create an STS for the SQL statements on the production database and submit as input to the
SQL Access Advisor on the test database.
F. Create an STS for the SQL statements on the production database before and after changes
and submit as input to the SQL Performance Analyzer on the test database.

Answer: A,D
Explanation:

QUESTION NO: 10

You recently joined a new team administering a database.

You notice that full table scans are performing poorly compared with full table scans on the
databases you administered in a previous job.

You decide that performance problems are caused by a misconfiguration of factors affecting full

"Pass Any Exam. Any Time." - www.actualtests.com 6


Oracle 1z0-064 Exam
table scans.

Which three factors should you investigate to determine the cause of the poorly performing Full
Table Scans (FTS)? (Choose three.)

A. value ofDB_FILE_MULTIBLOCK_READ_COUNT
B. storing query results in the result cache
C. setting of theDISK_ASYNC_IOparameter toTRUE
D. setting of theOPTIMIZER_MODEparameter toALL_ROWS
E. use of parallel queries
F. block size of the tablespaces in which the tables being scanned are stored
G. value of theOPTIMIZER_DYNAMIC_SAMPLINGparameter

Answer: A,B,C
Explanation:

QUESTION NO: 11

Examine the Time Model Statistics section of an AWR report:

Which two inferences can be definitely derived from this section? (Choose two.)

A. The available CPU resources were not utilized to their maximum capacity.
B. All sequence numbers used during this AWR time interval were cached.
C. A large number of connected user sessions were idle.
D. New child cursors were created because of new bind values or usage of literal values as well
as different bind types or sizes.
E. The DB CPU timewasnot spent exclusively for processing SQL statements.

Answer: D,E
Explanation:

"Pass Any Exam. Any Time." - www.actualtests.com 7


Oracle 1z0-064 Exam

QUESTION NO: 12

Examine the partial TOP 10 Foreground Events by Total Wait Time section of an AWR report:

What should you examine to diagnose the cause of the top three wait events? (Choose the best
answer.)

A. theV$ACTIVE_SESSION_HISTORYview
B. the Time Model Statistics section of the AWR report
C. the SQL statements based on elapsed time from the AWR report
D. the Latch Activity section
E. the Segment Statistics section of the AWR report

Answer: B
Explanation:

QUESTION NO: 13

Examine the partial AWR report taken for a time period of 60 minutes:

"Pass Any Exam. Any Time." - www.actualtests.com 8


Oracle 1z0-064 Exam

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

A. The database user calls are issuing frequent explicit commits.


B. The CPUs are busy executing server processes and background processes for a considerable
amount of CPU time.
C. The database user calls are spending most of their time in I/O for single block reads.
D. The database user calls are spending most of their time waiting for sessions that are in more
important consumer groups.

Answer: B,C
Explanation:

QUESTION NO: 14

For your database some users complain about not being able to execute transactions. Upon
investigation, you find that the problem is caused by some users performing long-running
transactions that consume huge amounts of space in the UNDO tablespace.

You want to control the usage of the UNDO tablespace only for these user sessions.

How would you avoid the issue from repeating in future? (Choose the best answer.)

A. Create a profile for the users with


theLOGICAL_READS_PER_SESSIONandLOGICAL_READS_PER_CALLlimits defined.

"Pass Any Exam. Any Time." - www.actualtests.com 9


Oracle 1z0-064 Exam
B. Create external roles to restrict the usage of theUNDOtablespace and assign them to the users.
C. Set the threshold forUNDOtablespace usage for the users.
D. Implement a Database Resource Manager plan by mapping the users to a resource consumer
group with limits defined forUNDOtablespace usage.

Answer: D
Explanation:

QUESTION NO: 15

Which two actions should you take to monitor the throughput generated by the modules of an
application? (Choose two.)

A. Use the Resource Manager.


B. Enable SQL Trace at the session level.
C. Create a service.
D. Use a dedicated server configuration.
E. Use theDBMS_APPLICATION_INFOpackage to define the current module and action so that
they appear inV$SESSION.

Answer: A,B
Explanation:

QUESTION NO: 16

You are administering a database that supports an OLTP workload. Users complain about the
degraded response time of a query. You want to gather new statistics for objects accessed by the
query and test query performance with the new statistics without affecting other sessions
connected to the instance.

The STALE_PERCENT statistic preference is set to a default value and the STATISTICS_LEVEL
parameter is set to TYPICAL.

Which two actions would you take to accomplish the task? (Choose two.)

A. Set theSTALE_PERCENTstatistic preference to a higher value than the default, and then
gather statistics.
B. Set theSTATISTICS_LEVELparameter toALLfor the instance.
C. Set theINCREMENTALpreference toTRUE, and then gather statistics.
D. Set theOPTIMIZER_USE_PENDING_STATISTICSparameter toTRUEfor the session in which

"Pass Any Exam. Any Time." - www.actualtests.com 10


Oracle 1z0-064 Exam
you want to test the query.
E. Set thePUBLISHstatistic preference toFALSE, and then gather statistics.
F. Set theNO_INVALIDATEstatistic preference toTRUE, and then gather statistics.

Answer: B,E
Explanation:

QUESTION NO: 17

Examine the structure of the EMPLOYEES table.

EMPLOYEE_ID is the primary key. No other indexes exist on this table.

View the Exhibit to examine the commands and their output.

"Pass Any Exam. Any Time." - www.actualtests.com 11


Oracle 1z0-064 Exam

Which two actions should you perform to make the cursor bind aware? (Choose two.)

A. Create a histogram on theDEPARTMENT_IDcolumn.


B. Change the defaultCURSOR_SHARINGvalue toFORCE.
C. Execute the query with the sameDEPARTMENT_IDvalue multiple times.
D. Create an index on theDEPARTMENT_IDcolumn.
E. Gather statistics for the index.
F. Regather statistics on the table.

Answer: C,D
Explanation:

QUESTION NO: 18

Examine the output of the query executed to diagnose the reason for performance degradation of
queries:

"Pass Any Exam. Any Time." - www.actualtests.com 12


Oracle 1z0-064 Exam

Which three factors will you investigate further to identify the cause of the performance
degradation? (Choose three.)

A. Check the number of disk sorts.


B. Check for the causes of the full table scans.
C. Check the number of chained or migrated rows.

Answer: A,B,C
Explanation:

QUESTION NO: 19

Examine the parameters set for your database instance:

You are asked by a developer to create a table for an application with these requirements:

"Pass Any Exam. Any Time." - www.actualtests.com 13


Oracle 1z0-064 Exam
- The table will be used for a DSS application.
- High volume bulk loads will be performed.
- The table will be used to store archival data on which large full-table scans (FTS) will be
performed.

Which attributes are the best for the tablespace in which this table should be created? (Choose
the best answer.)

A. Create it in a locally managed tablespace with ASSM enabled and assign a high value for
thePCTFREEattribute.
B. Create it in a locally managed tablespace with manual segment space management.
C. Create it in a locally managed tablespace with a bigger nonstandard block size and ASSM
enabled.
D. Create it in locally managed tablespace with ASSM enabled and an additional freelist.

Answer: C
Explanation:

QUESTION NO: 20

You are administering a database that supports a DSS workload. Automatic Shared Memory
Management is enabled for the database instance. Users issue queries to perform large soft
operations and complain about degraded performance of the queries. On investigation, you notice
that the queries are performing multipass work area executions and the I/O contention on one of
the temporary tablespaces is very high.

Which two can be possible resolutions for this issue? (Choose two.)

A. Increase the size of the large pool.


B. Increase the value of thePGA_AGGREGATE_TARGETparameter.
C. Create a temporary tablespace group and assign it to users.
D. Increase the value of thePGA_AGGREGATE_LIMITparameter.
E. Create another temporary tablespace and assign it to users.
F. Enable temporary undo.

Answer: A,D
Explanation:

QUESTION NO: 21

Examine the query and its output:

"Pass Any Exam. Any Time." - www.actualtests.com 14


Oracle 1z0-064 Exam

Which two inferences can be definitely derived from this output? (Choose two.)

A. Thedb file scattered readevent has occurred 104 times in this session for file# 12.
B. The session has completed performing a full table scan.
C. The SQL statements in this session are performing excessive disk reads.
D. The multiblock factor is 8 for this I/O but it could vary for the other I/O events.

Answer: A,C
Explanation:

QUESTION NO: 22

You are administering a database that supports an OLTP workload. An application regularly
creates global temporary tables and a large number of transactions are performed on them. You
notice that performance is degraded because of excessive generation of undo due to a large
number of transactions on the global temporary tables.

What is the recommended action to improve performance? (Choose the best answer.)

A. Increase the size of the undo tablespace and enable undo retention guarantee.
B. Increase the size of the database buffer cache.
C. Enable temporary undo.
D. Increase the size of the temporary tablespace or make it autoextensible.
E. Enable Automatic Segment Space Management (ASSM) for the undo tablespace.

Answer: A
Reference:https://docs.oracle.com/cd/B13789_01/server.101/b10739/undo.htm

QUESTION NO: 23

Your database supports an OLTP system.

Examine the parameter values configured in your database:

"Pass Any Exam. Any Time." - www.actualtests.com 15


Oracle 1z0-064 Exam
sga_max_size = 480M

sga_target = 480M

pga_aggregate_target = 160M

The CUSTOMERS table contains 8,000 rows. The CUST_ID column is the primary key and the
COUNTRY_ID column contains only three possible values: 1111, 2222, and 3333.

You execute the commands:

SQL> EXECUTE DBMS_STATS.GATHER_TABLE_STATS(‘SH’,‘CUSTOMERS’);

PL/SQL procedure successfully completed.

SQL> CREATE INDEX COUNTRY_IDX ON CUSTOMERS (COUNTRY_ID);

Index created.

You then perform a series of INSERT, UPDATE, and DELETE operations on the table.

View the Exhibit to examine the query and its execution plan.

Which two options can improve the performance of the query without significantly slowing down
the DML operations? (Choose two.)

A. creating a bitmap index on theCOUNTRY_IDcolumn

"Pass Any Exam. Any Time." - www.actualtests.com 16


Oracle 1z0-064 Exam
B. regathering statistics on theCUSTOMERStable
C. gathering statistics on theCOUNTRY_IDXindex
D. creating a histogram on theCOUNTRY_IDcolumn
E. increasing the size of the PGA
F. creating an SQL profile
G. creating aKEEPcache

Answer: A,D
Explanation:

QUESTION NO: 24

Identify two effects of the DB_FILE_MULTIBLOCK_READ_COUNT parameter on the optimizer.


(Choose two.)

A. Decreasing the value ofDB_FILE_MULTIBLOCK_READ_COUNTfrom the default increases the


cost of index probes for DSS workloads.
B. A full table scan can become cheaper than index scans if the database instance has a high
enoughDB_FILE MULTIBLOCK_READ_COUNTfor both OLTP and DSS workloads.
C. Increasing the value ofDB_FILE_MULTIBLOCK_READ_COUNTwithin OS limits lowers the
costingof an index probe that is done inconjunctionwith a nested loop for OLTP workloads.
D. In DSS workloads where full table scans may run in parallel and bypass the buffer cache,
decreasing the value ofDB_FILE_MULTIBLOCK_READ_COUNTfrom the default increases the
cost of full table scans.
E. Increasing the value ofDB_FILE_MULTIBLOCK_READ_COUNTwithin OS limits lowers the cost
of full table scans and can result in the optimizer choosing a full table scan over an index scan for
both OLTP and DSS workloads.

Answer: C,D
Explanation:

QUESTION NO: 25

Examine the query and its output:

"Pass Any Exam. Any Time." - www.actualtests.com 17


Oracle 1z0-064 Exam
Which two statements are true? (Choose two.)

A. Session 2832 had to wait 2029 seconds for a message to arrive because of a network
bottleneck.
B. Session 4208 is either idle or experiencing poor response time due to a network or resource
bottleneck on the client process.
C. Session 3346 is in wait state because it wants to lock a row in a block in which other sessions
have already locked rows, and there is no free ITL slot available in this block.
D. Session 3346 is in wait state because either it is waiting to update a row that is locked by
another session or another session is trying to insert the same key value in aUNIQUEindex.
E. Session 4208 is definitely idle and should be killed to free network resources.

Answer: A,D
Explanation:

QUESTION NO: 26

In which three situations does DB time always increase? (Choose three.)

A. when the host is CPU bound for foreground processes


B. when I/O wait time increases for foreground processes
C. when more connections are made to a database instance
D. when CPU consumption by background processes increases
E. when wait time for data to be sent over a network increases

Answer: B,C,D
Reference:http://www.oracle.com/technetwork/oem/db-mgmt/s317294-db-perf-tuning-with-db-
time-181631.pdf(page 21)

QUESTION NO: 27

Which two situations can lead to sparsely populated index blocks? (Choose two.)

A. Data is frequently inserted using direct path load into a table with an index.
B. Indexed columns in a table are frequently updated.
C. Values in an indexed column are inserted using monotonically incrementing sequences.
D. Bulk delete operations are performed on a table with indexes.
E. Online table move operations are performed frequently on a table with indexes.

Answer: D,E

"Pass Any Exam. Any Time." - www.actualtests.com 18


Oracle 1z0-064 Exam
Reference:https://books.google.com.pk/books?id=b3DIkYO2gBQC&pg=PA350&lpg=PA350&dq=si
tuations+can+lead+to+sparsely+populated+index+blocks&source=bl&ots=yVTwFKa7wH&sig=Cie
0Hgl4AuoL2NZpwqPp_X4GlpY&hl=en&sa=X&ved=0CBsQ6AEwAGoVChMI6dTNj8iSyQIVxrqUCh
1TKA1f#v=onepage&q=situations%20can%20lead%20to%20sparsely%20populated%20index%2
0blocks&f=false

QUESTION NO: 28

For which three problem categories does Automatic Database Diagnostic Monitor (ADDM) provide
analysis and recommendations by default? (Choose three.)

A. for network stack-related bandwidth contention


B. for concurrency issues because of buffer busy problems
C. for high-load PL/SQL execution and compilation, and high-load Java usage
D. for application-level lock contention.

Answer: B,C,D
Explanation:

QUESTION NO: 29

Which two statements are true about Compare Period ADDM? (Choose two.)

A. It is automatically invoked whenever the AWR Compare Period report is invoked.


B. It is automatically invoked whenever ADDM is run by default.
C. It verifies if there is any change in the workload or average resource consumption by the SQL
executed during the two specified time periods, to ensure 100% accuracy.
D. It can be used to create a comparison report between the Database Replay workload capture
report and the replay report.

Answer: B,D
Explanation:

QUESTION NO: 30

You are administering a database that supports an OLTP workload. The CURSOR_SHARING
parameter is set to EXACT for the instance. The performance of queries issued by one of the

"Pass Any Exam. Any Time." - www.actualtests.com 19


Oracle 1z0-064 Exam
modules has degraded. The queries executed by the module are almost identical in syntax. To
investigate, you analyze the latest AWR report and find a large number of latch:shared pool wait
events and also a high percentage of the hard parse elapsed time.

Which two can be reasons for this? (Choose two.)

A. The I/O performance is slow.


B. Bind variables are not used for similar queries, causing hard parses.
C. Repeated access to a small number of blocks.
D. Excessive time is spent on finding cached cursors in the library cache.
E. TheCURSOR_SHARINGparameter is set toEXACT, which does not allow similar queries to
shareacursor.

Answer: B,C
Explanation:

QUESTION NO: 31

Which two result in the latest fragmentation within segments and the least external fragmentation
within tablespaces? (Choose two.)

A. automatic segment space managed segments


B. locally managed tablespaces with uniform extent size
C. freelist managed segments with one freelist
D. dictionary managed tablespace
E. locally managed tablespaces that were converted from dictionary managed tablespaces
F. freelistmanaged segments with multiplefreelist

Answer: A,D
Reference:http://docs.oracle.com/cd/B19306_01/server.102/b14220/logical.htm

QUESTION NO: 32

Which three methods can you use to create a pre-change SQL trial to capture performance data
by using SQL Performance Analyzer? (Choose three.)

A. executing SQLstatementsin anSQL Tuning Set (STS) on a test database by using database
links to the production database.
B. generating only execution plans on a test database without actually running SQL statements.
C. generating an execution plan and statistics for selective SQL statements captured in an STS

"Pass Any Exam. Any Time." - www.actualtests.com 20


Oracle 1z0-064 Exam
D. loading performance data and execution plans from an STS.
E. generating both execution plans and statistics for each SQL statement in an STS by actually
running the SQL statements on a test database.

Answer: A,B,C
Reference:https://docs.oracle.com/cd/E11882_01/server.112/e41481/spa_pre_change.htm#RATU
G181

QUESTION NO: 33

Examine the parameters set for your database instance:

You upgrade your database to Oracle Database 12c. The database supports a mixed workload
and works with different workloads at different times. You notice in an ADDM report that the
shared pool is inadequately sized. You resize the shared pool by decreasing the sizes of other
pools, which results in inadequate sizes for other pools. You want to automate the sizing of SGA
components.

Which two actions should you perform? (Choose two.)

A. Set theSGA_TARGETparameter equal toSGA_MAX_SIZE.


B. Set theSGA_TARGETparameter to the sum ofDB_CACHE_SIZE,SHARED_POOL,
andLARGE_POOL_SIZE.
C. Set theMEMORY_MAX_TARGETparameter to the sum ofDB_CACHE_SIZE,SHARED_POOL,
andLARGE_POOL_SIZE.
D. SetDB_CACHE_SIZE,SHARED_POOL, andLARGE_POOL_SIZEto their minimum required
values.
E. Set thePGA_AGGREGATE_TARGETparameter to0andtheSGA_TARGETparameter to1.5G.

Answer: A,E

"Pass Any Exam. Any Time." - www.actualtests.com 21


Oracle 1z0-064 Exam
Explanation:

QUESTION NO: 34

Which two statements are true about DB time in V$SYS_TIME_MODEL? (Choose two.)

A. DB timecannot exceed the total elapsed time (walk clock time) since the database instance
started.
B. DB timecannot exceed the maximum number ofconcurrentsessions multiplied by the actual
elapsed time for each session.
C. DB timeincludes the time spent on client processes and background processes.
D. ReducingDBtimeallows a database instance to support more user requests by using the same
resources.
E. DB timeis always greater than or equal to theDB CPUtime.

Answer: D,E
Explanation:

QUESTION NO: 35

Examine the parameters set for your database instance:

You notice that for one particular SQL statement, the optimizer generates a new better plan than
the plans in the SQL Plan Management Base.

Which action is taken by the optimizer? (Choose the best answer.)

A. It adds the newly generated plan as an accepted but non-fixed plan.


B. It adds the newly generated plan as enabled and accepted.
C. It adds the newly generated plan as enabled but not accepted.
D. It adds the newly generated plan as a fixed plan, which will be used each time the SQL
statement is executed.

Answer: B

"Pass Any Exam. Any Time." - www.actualtests.com 22


Oracle 1z0-064 Exam
Explanation:

QUESTION NO: 36

Your database supports a DSS workload. In an application, a few complex queries that contain
multiple functions and expressions are using materialized views. You notice that some queries are
performing poorly because they are not benefiting from query rewrites.

Which three actions would you take to improve the performance of queries? (Choose three.)

A. Create an SQL Tuning Set (STS) and submit as input to the SQL Access Advisor to generate
recommendations about query rewrite and fast refresh for materialized views.
B. Use theDBMS_MVIEW.EXPLAIN_REWRITEprocedure to analyze why a query failed to rewrite.
C. Create an STS and submit as input to the SQL Performance Analyzer to get recommendations
about improving the performanceof queries.
D. Use theDBMS_ADVISOR.TUNE_MVIEWprocedureto get recommendations about
rewritingmaterialized views.
E. Use theDBMS_ADVISOR.QUICK_TUNEprocedure to analyze queries based on the usage of
query rewrite with materialized views.

Answer: A,C,E
Explanation:

QUESTION NO: 37

Examine the parameters set for a database instance:

The database supports a mixed workload. Users complain about the increased response time of a
few DSS queries. During investigation, you execute the query:

"Pass Any Exam. Any Time." - www.actualtests.com 23


Oracle 1z0-064 Exam

Based on the output, which two are possible ways to improve the performance of the queries?
(Choose two.)

A. Enable temporary undo.


B. Enable Automatic Memory Management.
C. Increase the number of DBWnprocesses.
D. Enable Automatic Shared Memory Management.
E. Increase the value of theSGA_TARGETparameter.
F. Increase the value of thePGA_AGGREGATE_TARGETparameter.

Answer: C,E
Explanation:

QUESTION NO: 38

In your database, the locally managed tablespace, USERS, has the default space usage alert set
to 85% for the warning level and 97% for the critical level.

Which two statements are true? (Choose two.)

A. Alerts are recorded in both Oracle Enterprise Manager Cloud Control


andDBA_OUTSTANDING_ALERTSonly when the critical threshold is exceeded.
B. Alert settings for the warning and critical levels must be disabled before taking
theUSERStablespace offline.
C. Alerts that are triggered are automatically recorded inDBA_ALERT_HISTORYafter they are
cleared.
D. Alerts are triggered when the space usage reaches the warning level, again when it reaches
the critical level, and yet again when the space usage falls below the critical level.

Answer: A,B
Explanation:

QUESTION NO: 39

"Pass Any Exam. Any Time." - www.actualtests.com 24


Oracle 1z0-064 Exam
Examine the parameters set for a database instance supporting a mixed workload:

The database instance supports shared server and dedicated server connections simultaneously.
Users complain about increased response times of a few DSS queries. During investigation, you
execute the queries:

Based on the output, which two courses of action would you recommend to improve query
performance? (Choose two.)

A. Use a parallel hint in the queries.


B. Increase the number of DBWnprocesses.
C. Increase the value of theSORT_AREA_SIZEinitialization parameter.
D. Increase the size of the temporary tablespace or add a new temporary tablespace.
E. Increase the value of thePGA_AGGREGATE_TARGETinitialization parameter.
F. Increase the size of the large pool.

Answer: C,F
Explanation:

QUESTION NO: 40

"Pass Any Exam. Any Time." - www.actualtests.com 25


Oracle 1z0-064 Exam
Your database supports a mixed workload. In an application, multiple complex queries with
functions and expressions are executing. You want to analyze the queries that are currently
cached in the library cache to receive recommendations about the usage of indexes and
materialized views.

What should you do to achieve this? (Choose the best answer.)

A. Create an STS for the queries cached in the library cache and submit it as an input to SQL
Tuning Advisor.
B. Create an STS for the queries cached in the library cache and submit it as an input to SQL
Access Advisor.
C. Capture the workload in an STS and submit to SQL Tuning Advisor for recommendations.
D. Create an STS for the queries cached in the library cache and submit it as an input to SQL
Performance Analyzer.

Answer: D
Explanation:

QUESTION NO: 41

Which two statements are true about ADDM? (Choose two.)

A. It analyzes the performance of a database instance based on the time period covered by the
most recent AWR snapshot, and generates recommendations based on hard-coded criteria.
B. It can analyze performance issues that occurred in past events provided they fall within the
AWR retention period.
C. ADDM resource utilization and cost of analysis depends on the actual load on the database and
the number of performance problems analyzed.
D. It first identifies theperformance symptoms, and then refines them to reach the root cause with
the singular aim of reducing the DB CPU metric.
E. It documents only those components and wait classes that are significantly impacting the
performance of the database.

Answer: D,E
Explanation:

QUESTION NO: 42

Examine the initialization parameters set for a database instance:

"Pass Any Exam. Any Time." - www.actualtests.com 26


Oracle 1z0-064 Exam

The database supports an OLTP workload. Applications connect to the instance using shared
server connections and perform small, random I/Os. All the data files are on the same disk. You
notice free buffer wait events for sessions in the database instance.

To solve the problem, you increase the size of the buffer cache. But after some time, you notice
sessions waiting again on free buffer waits.

What will you recommend to alleviate the issue? (Choose the best answer.)

A. Run the I/O calibration tool.


B. Configure the database instance to make asynchronous I/O available to DBWR.
C. Spread the data files over multiple disks, controllers, and I/O buses to ensure that there are no
hotspots in the I/O subsystem.
D. Configure dedicated server connections for the applications.

Answer: B
Explanation:

QUESTION NO: 43

You are administering a database that supports an OLTP workload. CURSOR_SHARING is set to
EXACT for the instance. An application is frequently executing almost identical queries that vary in
literal values in the WHERE clause, causing a large number of hard parses to occur.

Which four statements would be true if you use bind variables for these queries? (Choose four.)

A. Mutex contention in the library cache will be reduced.


B. The optimizer will use one parent cursor and one child cursor for each SQL statement with
different literal values.
C. Hard parses will be reduced for the queries.
D. The optimizer will use bind peeking and subsequent execution of the queries will always
generate the same plans irrespective of the cardinality.
E. The optimizer will generate the same plan for all bind values if no histograms exist on the
columns used in theWHEREclause of these queries.
F. The optimizer will use bind peeking and use the literal value to determine the execution plan for

"Pass Any Exam. Any Time." - www.actualtests.com 27


Oracle 1z0-064 Exam
these queries.

Answer: A,B,C,D
Explanation:

QUESTION NO: 44

Examine an extract from a PGA Memory Advisory for your database:

Which two inferences are correct? (Choose two.)

A. Automatic management of PGA memory is disabled.


B. The current PGA size requires the use of a temporary tablespace for sorting operations.
C. The current PGA size is sufficient and does not require the memory manager to allocate more
memory.
D. PGA size should be increased at least four times its current size for significant improvement in
performance and disk space management.

Answer: B,D
Explanation:

QUESTION NO: 45

Your database supports an OLTP workload during the day and batch processing at night. You
want to monitor performance metrics to detect any degradation of performance in both types of
workloads over a time period of 30 days.

"Pass Any Exam. Any Time." - www.actualtests.com 28


Oracle 1z0-064 Exam
Examine this list of possible steps:

1. Create a fixed baseline.

2. Create a baseline template.

3. Create a new moving window baseline.

4. Increase the retention period default value to 30 days.

5. Increase the size of the existing moving window baseline to 30 days.

6. Create warning and critical alerts for the relevant metrics.

7. Enable adaptive thresholds to detect the workload patterns and specify a high-significance-level
threshold type.

8. Enable adaptive thresholds to detect the workload patterns and set different threshold values as
a percentage of the maximum value.

Which option represents the required steps in the correct order? (Choose the best answer.)

A. 5, 7
B. 2, 4, 3
C. 3, 4, 8
D. 4, 5, 7
E. 5, 1, 6, 8

Answer: E
Explanation:

QUESTION NO: 46

You execute this query twice in a session:

Then you query V$SQL_SHARED_CURSOR for details about child cursors as shown.

"Pass Any Exam. Any Time." - www.actualtests.com 29


Oracle 1z0-064 Exam

Which two statements are true? (Choose two.)

A. No statistics were collected during the first execution of the query.


B. A subsequent execution of the query in this session is likely to undergo a soft parse.
C. The second execution of the query was hard parsed because the estimated cardinality was
inaccurate.
D. A subsequent execution of the query in this session will undergo a hard parse.
E. The second execution of the query was hard parsed because extended statistics were collected
after the first execution of the query.

Answer: B,C
Explanation:

QUESTION NO: 47

Which three statements are true about using Real-Time Database Operations? (Choose three.)

A. TheSTATISTICS_LEVELinitialization parameter must be set toALLto enable automatic SQL


monitoring for all long-running queries.
B. TheCONTROL_MANAGEMENT_PACK_ACCESSinitialization parameter must be set
toDIAGNOSTIC+TUNUNGto use Real-Time Database Operations.
C. TheSTATISTICS_LEVELinitialization parameter can be set toTYPICALorALLto enable Real-
Time Database Operations.
D. Real-Time Database Operations can be enabled only at the system level.
E. Real-Time DatabaseOperations can be created by using
theDBMS_MONITORorDBMS_SESSIONpackages.
F. Database operation monitoring starts automatically when a database operation consumes at
least five seconds of the CPU or I/O time in a single execution.

Answer: A,B,C
Explanation:

QUESTION NO: 48

"Pass Any Exam. Any Time." - www.actualtests.com 30


Oracle 1z0-064 Exam
For which two requirements can you always use the V$ACTIVE_SESSION_HISTORY view?
(Choose two.)

A. to investigate intermittent performance problems in a session, only when the problem lasted
less than five minutes in the last twelve hours
B. to find the exact number of executions of a specific query in a session in the last two minutes
C. to identify which module in an application was being executed in a session
D. to identify a scheduler job that is not responding
E. to find the amount of Program GlobalArchitecture (PGA) memory being currently consumed by
a session

Answer: C,E
Explanation:

QUESTION NO: 49

To investigate the slow response time of queries on the TRANS table, you gathered the table
statistics and executed the query:

The table is stored in a tablespace that has Automatic Segment Space Management (ASSM)
enabled. The tablespace is created with a standard block size of 8192 bytes.

Which three can be reasons for the slow response time of the queries? (Choose three.)

A. Row size is too large to fit into a single block during insert operations.
B. Row moves from one data block to another data block because the row grows too large to fit in
the original block.
C. The table is subject to frequent insert, update,and delete DML activity leading to sparsely
populated blocks.
D. The value ofPCTUSEDis set to a value lower than the default, causing row changing.
E. The value ofPCTFREEis set to a value lower than the default, causing row chaining.

Answer: A,B,D
Explanation:

"Pass Any Exam. Any Time." - www.actualtests.com 31


Oracle 1z0-064 Exam
QUESTION NO: 50

You observe that queries are performing poorly on the SALES_RECORDS table in your database.
On investigation, you find that at the end of each day the contents of the SALES_RECORDS
table are moved to the SALES_HISTORY table. The delete operations cause the table to be
sparsely populated.

The SALES_RECORDS table is created in a tablespace using Automatic Segment Space


Management (ASSM) and row movement is enabled. The table must be accessible 24x7.

Which two tasks would you recommend to improve the performance? (Choose two.)

A. PerformEXPORT, DROP, andIMPORToperations on theSALES_RECORDStable.


B. Shrink theSALES_RECORDStable by using theALTER TABLE…SHRINKSPACEcommand.
C. Move theSALES_RECORDStable to a different location by using theALTER
TABLE…MOVEcommand.
D. Deallocate the space in theSALES_RECORDStable by using theALTER
TABLE…DEALLOCATE UNUSEDcommand.
E. Move theSALES_RECORDStable to a tablespace by using manual segment space
management.
F. Reorganize theSALES_RECORDStable online by using theDBMS_REDEFINITIONpackage.

Answer: B,D
Explanation:

QUESTION NO: 51

You have been asked to assess if using column store compression (previously known as hybrid
columnar compression or HCC) would help improve the performance of queries on some large
tables.

Which three aspects should you consider before you choose this compression method? (Choose
three.)

A. Check whether direct path load operations are used to insert rows in the table.
B. Check whether the table is frequently queried using fulltablescans as column store
compression only minimizes I/O during full table scans.
C. Check whether the table is frequently updated because it will have overhead for insert and
update operations.
D. Check whether the table has LOB columns as it will minimize I/O for the queries.
E. Check whether the table blocks aresparselypopulated as this will defragment the blocks.

"Pass Any Exam. Any Time." - www.actualtests.com 32


Oracle 1z0-064 Exam
Answer: A,B,D
Explanation:

QUESTION NO: 52

You define the warning threshold for the tablespace usage metric for the USERS tablespace to be
60% and the critical threshold to be 80%.

Which two sources should you check for the alert information when either the warning or the
critical threshold is exceeded? (Choose two.)

A. the alert log


B. Oracle Enterprise Manager Cloud Control
C. DBA_ALERT_HISTORY
D. DBA_OUTSTANDING_ALERTS
E. DBA_ACTIVE_SESSION_HISTORY
F. DBA_THRESHOLDS

Answer: A,F
Explanation:

QUESTION NO: 53

You want to capture the performance of your database during the last ten days of the first quarter
of the current financial year, so that you can compare this performance against the remaining
quarter ends of the current financial year.

Which method should you use? (Choose the best answer.)

A. Create a static baseline that can be used with AWR compare reports.
B. Create a new moving window baseline and enable adaptive thresholds for relevant metrics.
C. Use a repeating baseline template to create and drop baselines based on a repeating time
schedule and set adaptive thresholds at a high significance level.
D. Use fixed baseline templates to create a new moving window baseline and set relevant warning
alerts that are computed as a percentage multiple of the maximum value observed for the data in
the moving window baseline.

Answer: D
Explanation:

"Pass Any Exam. Any Time." - www.actualtests.com 33


Oracle 1z0-064 Exam

QUESTION NO: 54

Your database supports multiple applications. The applications run on the middle tier and use
connection pooling for connecting to the database.

You notice that the sessions created by the applications are competing for resources. You want to
statistically measure the workload and set priorities.

What action must you perform to achieve this? (Choose the best answer.)

A. Create services for the applications and set a relative priority by assigning them to application
users and using theDBMS_MONITOR.SERV_MOD_ACT_TRACE_ENABLEprocedure to trace the
services.
B. Create services for the applications and set a relative priority by assigning them to application
users and using theDBMS_MONITOR.SESSION_TRACE_ENABLEprocedure to trace the
services.
C. Create services for the applications and settherelativepriority of services within an instance by
mapping the services directly to consumer groups.
D. Create services for the applications and set a relative priority by assigning themtoapplication
users.

Answer: A
Explanation:

QUESTION NO: 55

You plan to upgrade your production database from Oracle Database 11g to 12c and also to
introduce new objects to the database. You also want to upgrade the hardware. You have already
created a test system with the upgrades to be made to the production database. As part of the
testing, you want to:

- analyze and compare the overall database workload with concurrency and transaction
characteristics
- findSQL statements that might get regressed because of the upgrade
- analyze execution plans for SQL statements for which performance might get regressed
- analyze the impact of new schema objects on database performance

Which two tools would you recommend to achieve the objective? (Choose two.)

"Pass Any Exam. Any Time." - www.actualtests.com 34


Oracle 1z0-064 Exam
A. Database Replay
B. SQL Tuning Advisor
C. SQL Access Advisor
D. Automatic Database Diagnostic Monitor (ADDM) compare periods report
E. SQL Performance Analyzer
F. Automatic Workload Repository (AWR) compare periods report

Answer: B,E
Explanation:

QUESTION NO: 56

Which two are prerequisites for running the I/O calibration tool? (Choose two.)

A. The database must be inMOUNTstate.


B. The database should be opened in restricted mode.
C. For determining latency time, theSTATISTICS_LEVELparameter must be set toTYPICALorALL.
D. The disks to be tested must be configured to use asynchronous I/O for data files.
E. The database instance must be started using anSPFILE.

Answer: A,E
Explanation:

QUESTION NO: 57

You are administering a database that supports a mixed workload. Many applications are running
on the middle tier that use connection pools to connect to the database instance. Application users
perform OLTP operations during the day and another application performs batch job operations at
night. You want to measure and prioritize the two workloads.

Which action would you take to achieve this? (Choose the best answer.)

A. Create database services for the applications, assign individual sessions created by the
applications to consumer groups, and then set a priority.
B. Assign profiles to users running the batch operations and make sure that a priority is set for
resource limits in profiles.
C. Create database services for the applications and assign different profiles to the sessions to set
a relative priority for resource usage.
D. Create database services for the applications, create a job class associated with the service,
batch the jobs, and then create jobs by using the job class.

"Pass Any Exam. Any Time." - www.actualtests.com 35


Oracle 1z0-064 Exam
Answer: C
Explanation:

QUESTION NO: 58

Users complain about increased response time for queries in your production database that
supports an OLTP workload. On investigation, you notice a large number of db file scattered read,
latch: cache buffers lru chain, and latch: cache buffers chains wait events:

Identify three possible reasons for the increased response time. (Choose three.)

A. too many sort operations being performed


B. repeated simultaneous access to a block or small number of blocks
C. the shared pool is inadequately sized
D. queries not using indexes and performing full table scans
E. queries repeatedly fetching blocks that are not in the database buffer cache
F. cursors are closed explicitly after each execution

Answer: B,C,E
Explanation:

QUESTION NO: 59

Examine the parameters set for a database instance:

An application performs a large number of identical queries on small lookup tables very frequently.
Users complain about the slow response time of queries on these tables. On investigation, you
notice that buffers are getting aged out of the buffer cache. To mitigate the issue, you increase the
value of the SGA_MAX_SIZE and SGA_TARGET parameters, but after some time, you notice the

"Pass Any Exam. Any Time." - www.actualtests.com 36


Oracle 1z0-064 Exam
same issue again.

Which two would you recommend as long-term solutions for this issue? (Choose two.)

A. increasing the size of the database buffer cache


B. configuring Automatic Memory Management
C. configuring theKEEPbuffer pool and altering tables to use theKEEPpool
D. pinning the cursors of the queries in the library cache
E. configuring the result cache for the instance

Answer: A,B
Explanation:

QUESTION NO: 60

Which three statements are true about the interpretation of an execution plan? (Choose three.)

A. The cost of the entire plan is indicated by the line with Id 0 and always includes both I/O and
CPU resources.
B. TheROWScolumn indicates the cardinality of each operation and is always calculated by
dividing the total number of rows in the table by the number of distinct values in the column used
in theWHEREclause predicate.
C. ATABLE ACCESS FULLin theOperationcolumn for a query with aWHEREclause occurs only if
no index exists for the filter column.
D. AnINDEX UNIQUE SCANin theOperationcolumn always implies that only one row will be
returned.
E. AHASH JOINin theOperationcolumn always implies that two tables are joined by using an
equijoin.

Answer: A,B,C
Explanation:

QUESTION NO: 61

Examine this list of possible tasks:

1. Ensure that STATISTICS_LEVEL is set to TYPICAL or ALL.

2. Ensure that TIMED_STATISTICS is set to TRUE.

"Pass Any Exam. Any Time." - www.actualtests.com 37


Oracle 1z0-064 Exam
3. Set MAX_DUMP_FILE_SIZE to UNLIMITED and DIAGNOSTIC_DEST to an appropriate
destination.

4. Ensure that SQL_TRACE is set to TRUE.

5. Enable tracing at the database instance level by using the


DBMS_MONITOR.DATABASE_TRACE_ENABLE procedure.

6. Enable tracing in the required session by using the DBMS_SESSION.SET_SQL_TRACE


procedure.

7. Run TKPROF with the EXPLAIN parameter on the output trace file.

8. Run the trcsess utility on the output trace files, and then run TKPROF on the output of the
trcsess utility.

Select the minimum tasks to perform, in the correct order, to generate both a formatted trace file
with timing information and an explain plan for each SQL statement for all sessions. (Choose the
best answer.)

A. 1, 2, 5, 8
B. 1, 3, 6, 7
C. 2, 4, 5, 8
D. 1, 3, 4, 5, 6, 7
E. 1, 2, 4, 8

Answer: C
Explanation:

QUESTION NO: 62

Examine the command to change a parameter value from the default to 50:

SQL> ALTER SYSTEM SET OPTIMIZER_INDEX_COST_ADJ = 50;

What is the effect of changing the value of the parameter? (Choose the best answer.)

A. It influences the optimizer to use full table scans instead of index scans as the estimated cost of
full table scan is reduced.
B. It influences the optimizer to use bitmap indexes as the estimated cost of conversion from
bitmap to rowid is reduced.
C. It influences the optimizer to always use fast full index scans as the estimated cost of using an
index is reduced.

"Pass Any Exam. Any Time." - www.actualtests.com 38


Oracle 1z0-064 Exam
D. It influences the optimizer to use indexes instead of full table scans as the estimated cost of
using an index is reduced.

Answer: A
Reference:http://www.dba-oracle.com/oracle_tips_cost_adj.htm

QUESTION NO: 63

You are administering a database that supports an OLTP workload. An application performs a
large number of small transactions. Users complain about increased response times for
transactions. On investigation, you find that the cache hit ratio is 69%. Examine a partial output
from V$SYSTEM_EVENT:

Which four can be possible reasons for the increased response time? (Choose four.)

A. The database buffer cache is inadequately sized.


B. DBWR is not writing the dirty buffers fast enough.
C. A large number of blocks are fetched from disks frequently.
D. Several full table scans are performed by transactions.
E. Blocks are aging out of the buffer cache frequently.
F. Many sessions are waiting for buffers that are currently being read into the buffer cache by
other sessions.

Answer: B,C,E,F
Explanation:

QUESTION NO: 64

Which two statements are true about gathering statistics? (Choose two.)

A. If an application has only SQL statements with bind variables, it is better to drop existing
histograms, disable creation of histograms, and allow the optimizer to select the best execution

"Pass Any Exam. Any Time." - www.actualtests.com 39


Oracle 1z0-064 Exam
plans.
B. If end users query newly inserted data, it is possible to get a suboptimal execution plan even if
the automatic statistics gathering job is enabled.
C. If concurrent statistics gathering is done by using parallel execution, the Resource Manager
should be used for efficient resource management.
D. For each session that is accessing a global temporary table, the optimizer uses only the shared
statistics.

Answer: C,D
Explanation:

QUESTION NO: 65

Which two statements are true about viewing the details of Real-Time Database Operations?
(Choose two.)

A. InV$SQL_MONITORmonitoring, statistics are cumulative over several executions of the SQL


statement that is being monitored in a session.
B. SQL Developer can be used to view running database operations.
C. Oracle Enterprise Manager Database Express can be used to view running database
operations.
D. When the SQL statement that is being monitored is executing,V$SQL_MONITORis refreshed
once every minute. After the execution ends, the monitoring information inV$SQL_MONITORis
deleted immediately.
E. Oracle Enterprise Manager Cloud Control can be used to view running database operations.

Answer: A,C
Reference:http://www.dbaref.com/monitoring-active-sql

QUESTION NO: 66

In the CUSTOMERS table, the values in the CUST_STATE column are dependent on the values
in the COUNTRY_ID column. You want to make the optimizer aware of this dependency when
these columns are used together in WHERE clause predicates that contain equalities or in-lists.

Which two methods achieve this? (Choose two.)

A. gathering statistics on theCUSTOMERStable and its dependent objects, and then locking the
statistics
B. using SQL plan directives to generate an optimal plan

"Pass Any Exam. Any Time." - www.actualtests.com 40


Oracle 1z0-064 Exam
C. setting the dynamic statistics level to 4 and setting
theOPTIMIZER_USE_PENDING_STATISTICSinitialization parameter to true
D. creating column group statistics, regatheringstatistics, and ensuring that histograms exist on
both these columns

Answer: A,D
Explanation:

QUESTION NO: 67

Examine the parameter values configured in your database:

sga_max_size = 480M

sga_target = 480M

pga_aggregate_target = 160M

The CUSTOMERS table contains 8,000 rows. The CUST_ID column is the primary key and the
COUNTRY_ID column contains only three possible values: 1111, 2222, and 3333.

You execute the commands:

SQL> EXECUTE DBMS_STATS.GATHER_TABLE_STATS(‘SH’,‘CUSTOMERS’);

PL/SQL procedure successfully completed.

SQL> CREATE INDEX COUNTRY_IDX ON CUSTOMERS (COUNTRY_ID);

Index created.

You then perform several INSERT, UPDATE, and DELETE operations, significantly altering the
data in the table.

View the Exhibit to examine the query and its execution plan.

"Pass Any Exam. Any Time." - www.actualtests.com 41


Oracle 1z0-064 Exam

Which three options would improve the performance of the query? (Choose three.)

A. creating a bitmap index on theCOUNTRY_IDcolumn


B. regathering statistics on theCUSTOMERStable
C. creating a histogram on theCOUNTRY_IDcolumn
D. increasing the size of the PGA
E. creating an SQL profile
F. creating aKEEPcache

Answer: A,B,F
Explanation:

QUESTION NO: 68

You are administering a database that supports a mixed workload. You upgrade your database
from Oracle Database 11g to 12c and after the upgrade, users complain about degraded
performance of some queries. The SQL plan baselines imported from the previous version are
present for the queries and are loaded to the SQL Management Base as accepted plans. On
further investigation, you find that better plans are generated but not used by the optimizer.

Examine the parameters set for the instance:

"Pass Any Exam. Any Time." - www.actualtests.com 42


Oracle 1z0-064 Exam
Which three tasks would you perform to improve the performance of these queries? (Choose
three.)

A. Gather statistics for the objects used in the queries.


B. Use theDBMS_SPM.EVOLVE_SQL_PLAN_BASELINEfunction to evolve new plans and fix the
plans for the statements.
C. Create an SQL Tuning Set (STS) and run it through the SQL Access Advisor to generate
recommendations.
D. Create an STS and run it through the SQL Tuning Advisor to generate recommendations.
E. Set theOPTIMIZER_CAPTURE_SQL_PLAN_BASELINESparameter toTRUE.
F. Use theDBMS_SPM.ALTER_SQL_PLAN_BASELINEfunction to alter the accepted plans as
fixed plans.

Answer: A,B,C
Explanation:

QUESTION NO: 69

Examine the partial PLAN_TABLE output:

Which is the correct sequence of execution? (Choose the best answer.)

A. 3, 2, 1, 4, 0
B. 0, 1, 2, 3, 4, 1
C. 0, 4, 1, 3, 2, 1
D. 3, 2, 4, 1, 0
E. 3, 2, 4, 1, 0, 2

Answer: A
Explanation:

"Pass Any Exam. Any Time." - www.actualtests.com 43


Oracle 1z0-064 Exam

QUESTION NO: 70

Which two statements are true about Active Session History (ASH)? (Choose two.)

A. The Data Sample size available in an ASH report is dynamic and, at any given moment, is
directly related to the amount of work being performed.
B. ASH contains sampled data from all sessions that are connected to a database instance at any
given moment.
C. ASH samples data from V$SESSION every second.
D. An ASH report can be used to identify the service that may be the cause of a transient
performance problem.

Answer: C,D
Explanation:

QUESTION NO: 71

You have been asked to use table compression for two large tables. Given are the details of the
tables:

The TRANS_DET table:

- The table is used byanOLTP application.


- High volume insert and update operations are performed on the table.
- The table is frequently queried using index range scans.

The TRANS_HISTORY table:

- The table is used by a DSS application.


- High volume bulk loads are performed on the table.
- The table is used to store archival data on which large table full-table scans (FTS) are
performed.

Which row store compression would you recommend for these tables with minimal overhead on
performance? (Choose the best answer.)

A. basic table compression for both the tables


B. advanced row compression for both the tables
C. basic table compression for theTRANS_HISTORYtable and advanced row compression for
theTRANS_DETtable
D. basic table compression for theTRANS_DETtable and advanced row compression for

"Pass Any Exam. Any Time." - www.actualtests.com 44


Oracle 1z0-064 Exam
theTRANS_HISTORYtable
E. warehouse compression for theTRANS_DETtable and archive compression for
theTRANS_HISTORYtable

Answer: A
Explanation:

QUESTION NO: 72

Examine the partial Activity Over Time section of an Active Session History (ASH) report:

Which two inferences are correct? (Choose two.)

A. In the first time slot, five different sampled sessions were connected to the database instance.
B. In the second time slot, out of the nine sampled sessions connected to the database instance,
only one sampled session was idle at the time of report generation.
C. In the first time slot, only one sampled session wasusing the CPU.
D. In the second time slot, five different sampled sessions were using the CPU.
E. In the second time slot, 0.14% of the time was spent on the CPU.

Answer: A,E
Explanation:

QUESTION NO: 73

You are administering a database that supports an OLTP workload. RESULT_CACHE_MODE is


set to the default value and a result cache is configured for the instance. Multiple sessions execute
syntactically similar queries without dblinks, containing functions and expressions, on tables with
no DML activity. Some users complain about poor performance of these queries.

You investigate and find that the queries are frequently performing physical I/O, even though the
results fetched by the queries are similar.

"Pass Any Exam. Any Time." - www.actualtests.com 45


Oracle 1z0-064 Exam
Which two actions do you recommend to overcome the problem affecting these queries? (Choose
two.)

A. Set theRESULT_CAHCE_MODEparameter toFORCEfor the instance.


B. Use the result cache hint in the queries.
C. Use bind variables for similar queries instead of literals.
D. Set theRESULT_CACHE_REMOTE_EXPIRATIONparameter to a nonzero value.
E. Configure theKEEPpool and cache the queried tables used in theKEEPpool.

Answer: A,B
Explanation:

QUESTION NO: 74

A senior DBA asks you to decrease the values of the connect_time_scale and think_time_scale
replay processing parameters to 50 to preprocess the workload for replay.

What three could be reasons for this change? (Choose three.)

A. to reduce the elapsed time between two successive user calls from a session.
B. to decrease the number of concurrent users during replay
C. to increase the number of concurrent users during replay
D. to reduce the time of replay
E. to decrease the wait for a query, caused by noncommitted transactions

Answer: C,D,E
Explanation:

QUESTION NO: 75

Examine the parameters set for your database instance:

"Pass Any Exam. Any Time." - www.actualtests.com 46


Oracle 1z0-064 Exam
You are administering a database that supports an OLTP workload. Users complain about the
degraded performance of some queries. While diagnosing, you notice a large number of hard
parses occurring for several syntactically almost identical SQL statements that differ only in literal
values in the WHERE clause.

Which two actions would you recommend to improve performance? (Choose two.)

A. Create theKEEPcache and cache the tables used in the queries.


B. Set theCURSOR_SHARINGparameter toFORCE.
C. Use bind variables instead of literals.
D. Create SQL plan baselines for the almost identical SQL statements and loadthem into the
cursor cache.
E. Set theOPTIMIZER_CAPTURE_SQL_PLAN_BASELINESparameter toTRUE.

Answer: B,E
Explanation:

QUESTION NO: 76

Which three actions should you perform to reduce shared pool fragmentation and avoid the “ORA-
04031: unable to allocate .... bytes of shared memory” error for the shared pool? (Choose three.)

A. Configure the Server Result Cache.


B. Configure shared server mode.
C. Identify the packages or procedures that are causing the“ORA-04031:unable to allocate....bytes
of shared memory”error and use theDBMS_SHARED_POOL.KEEPto keep them in the shared
pool.
D. UseDBMS_SHARED_POOL.KEEPto keep theSYS.STANDARD, SYS.DBMS_STANDARD,
andSYS.DIUTILpackages and frequently executed compiled triggers.
E. Use more anonymous procedures.
F. Standardize the type, size, and naming conventions for bind variables and spacing conventions
for SQL statements and PL/SQL blocks.

Answer: A,B,D
Explanation:

QUESTION NO: 77

Which two statements are true about ADDM or Real-Time ADDM? (Choose two.)

"Pass Any Exam. Any Time." - www.actualtests.com 47


Oracle 1z0-064 Exam
A. ADDM can be run manually by selecting any range of AWR snapshots available within the
AWR retention period, provided they do not cover a time period when the instances were
restarted.
B. ADDM runs in Partial mode to analyze any hung database issues.
C. Real-Time ADDM can proactively detect and diagnose transient performance issues that last
for a few seconds.
D. Real-Time ADDM is automatically invoked by ADDM at the end of every hour.

Answer: B,C
Explanation:

QUESTION NO: 78

You are administering a database that supports a mixed workload. The CURSOR_SHARING
parameter is set to the default value. While analyzing the latest Automatic Workload Repository
(AWR) report, you find a large number of cursor: pin S wait on X, cursor: pin X wait on S, and
library cache mutex waits in the Top 10 foreground events section. Examine the Instance
Efficiency Percentages section in the AWR report:

Which three statements are true in this scenario? (Choose three.)

A. Sessions are waiting for mutexes in share mode on cursorsbut other sessions are holding the
mutexes in exclusive mode.
B. The CPU is spending more time in finding cursors in the library cache.
C. Cursors are not getting shared, resulting in a large number of hard parses.
D. Sessions are waiting for mutexes in exclusive mode on cursors but other sessions are holding
the mutexes in share mode.
E. The buffers required by queries are not found in the buffer cache, thereby increasing expensive
disk I/O.

Answer: B,D,E
Explanation:

"Pass Any Exam. Any Time." - www.actualtests.com 48


Oracle 1z0-064 Exam
QUESTION NO: 79

Your database supports an online transaction processing (OLTP) workload. The database uses
ASM storage. One of the ASM disks goes offline because of hardware failure. When the disk is
replaced and then added back to the diskgroup, database performance is affected by rebalance
operations.

Which two actions would you recommend to lower the impact of rebalance operations on the
performance of the database? (Choose two.)

A. Increase the number ofASMBprocesses.


B. Decrease the value of theASM_POWER_LIMITparameter.
C. Set theDISK_REPAIR_TIMEdisk attribute to a lower value.
D. Specify thePOWERclause with a lower value in anALTER DISKGROUPstatement.
E. Set theDISK_REPAIR_TIMEdisk attribute to a higher value.

Answer: B,D
Explanation:

QUESTION NO: 80

Examine the parameters:

Your database supports a mixed workload and users have dedicated server connections. Users
complain about the increased response time of a few queries that are performing large sort
operations. On investigation, you notice an increase in the number of multipass work area
executions and high number of direct path write wait events.

Which two actions could improve the performance? (Choose two.)

A. increasing the value of theSORT_AREA_SIZEparameter


B. increasing the value of thePGA_AGGREGATE_TARGETparameter

"Pass Any Exam. Any Time." - www.actualtests.com 49


Oracle 1z0-064 Exam
C. enabling Automatic Memory Management for the instance
D. increasing the size of the default temporary tablespace
E. using parallel hint in queries performing large sort operations
F. enabling Automatic Shared Memory Management for the instance

Answer: A,F
Explanation:

QUESTION NO: 81

Which two statements are true about server-generated alerts? (Choose two.)

A. They are always logged in the alert log.


B. Theyare written to a trace file if theTRACE_ENABLEDinitialization parameter is set toTRUE.
C. They are generated only when theSTATISTICS_LEVELinitialization parameter is set toALL.
D. They can be generated for user-defined metric thresholds.
E. They appear in theDBA_ALERT_HISTORYview whenever corrective action is taken for an
alert.

Answer: C,D
Explanation:

QUESTION NO: 82

Which four objectives are achieved by using Resource Manager to manage multiple concurrent
user sessions that are competing for resources? (Choose four.)

A. distributing available CPU by allocating percentages of CPU time to different users and
applications
B. limiting the degree of parallelism of any operation performed by members of a group of users
C. limiting queries based on resource consumption of runaway sessions or calls that consume
more than a specified amount of CPU, physical I/O, logical I/O, or elapsed time
D. limiting the number of concurrent sessions for a user
E. limiting the number of user sessions allowed to be concurrently active within a group of users
F. limiting the number of parallel executions that can be executed by a user

Answer: A,C,E,F
Explanation:

"Pass Any Exam. Any Time." - www.actualtests.com 50


Oracle 1z0-064 Exam
QUESTION NO: 83

Which two statements are true about the interpretation of Buffer Cache Hit Ratio in the Instance
Efficiency Percentages section of an AWR report? (Choose two.)

A. A high value indicates that the buffer cache is adequately sized for the current workload.
B. Poor hit ratios indicate that a large number of indexed lookups or small table scans arebeing
performed.
C. A low hit ratio does not necessarily imply that increasing the size of the buffer cache will
improve performance.
D. A high hit ratio may indicate that repeated scanning of the same large table or index is being
performed.
E. A low hit ratio indicates that aKEEPbuffer pool should be configured based on the size of the
largest object accessed in the buffer cache.

Answer: C,E
Explanation:

QUESTION NO: 84

Examine the Load Profile section of an AWR report:

Which two inferences can you derive from the details in this section? (Choose two.)

A. The values for Redo size and Block changes imply that only updates were performed by
transactions.

"Pass Any Exam. Any Time." - www.actualtests.com 51


Oracle 1z0-064 Exam
B. The values for Parses (SQL) and Hard parses (SQL) imply that cursor sharing occurred quite
often.
C. The values for DB Time and DB CPU imply that the database had a high proportion of idle time
during the specified snapshot interval.
D. The values for SQL Work Area and User calls imply that only sort-based operations were
performed.
E. The values for Logical reads and Physical reads imply that the number of disk reads per second
was less than the total number of DB block reads and consistent gets per second.

Answer: B,D

"Pass Any Exam. Any Time." - www.actualtests.com 52

S-ar putea să vă placă și