Online Access Free 1Z0-117 Practice Test
Exam Code: | 1Z0-117 |
Exam Name: | Oracle Database 11g Release 2: SQL Tuning Exam |
Certification Provider: | Oracle |
Free Question Number: | 125 |
Posted: | Sep 09, 2025 |
You need to upgrade you Oracle Database 10g to 11g. You want to ensure that the same SQL plans that are currently in use in the 10g database are used in the upgraded database initially, but new, better plans are allowed subsequently.
Steps to accomplish the task:
1.Set the OPTIMIZER_USE_SQL_BASELINE and OPTIMIZER_CAPTURE_SQL_PLAN_BASELINE to TRUE.
2.Bulk load the SQL Management Base as part of an upgrade using an STS containing the plans captured in Oracle Database 10g.
3.Evolve the plan baseline using the DBMS_SPM.EVOLVE_PLAN_BASELINE procedure.
4.Fix the plan baseline - using the DBMS_SPM.ALTER_SQL_PLANBASELINE
procedure.
5.Accept new, better plans using the DBMS_SPM.ALTER_SQL_PLAN_BASELINE procedure and manually load them to the existing baseline.
6.Set OPTIMIZER_CAPTURE_SQL_PLAN_BASELINES to FALSE.
Identify the required steps.
While tuning a SQL statement, the SQL Tuning Advisor finds an existing SQL profile for a statement that has stale statistics. Automatic optimizer statistics is enabled for the database.
What does the optimizer do in this situation?
You are logged in as the HR user and you execute the following procedure:
SQL > exec DBMS_STATS.SET_TABLE_PREFS ('HR', 'EMPLOYEES', 'PUBLISH', 'FALSE');
SQL> exec DBMS_STATS.GATHER_TABLE_STATS ('HR', 'EMPLOYEES');
Which statement is true about the newly gathered statistics?
A database instance is configured in the shared server mode and it supports multiple applications running on a middle tier. These applications connect to the database using different services. You enabled the statistics gathering for the service by using the following command: SQL > EXECUTE DBMS_MONITOR.SERV_MOD_ACT_STAT_ENABLE ('APPS1', NULL, NULL);
Which two statements are true regarding statistics gathered for APPS1 service?