053第478题

478.Identify the two direct sources from where SQL plans can be loaded into the SQL plan baselines.

(Choose two.)

A. Cursor cache

B. Stored outline

C. SQL Tuning Set

D. Automatic Workload Repository (AWR) snapshots

Answer: AC

You can evolve an existing SQL plan baseline by manually loading plans from the shared
SQL area or from a SQL tuning set
. When you manually load plans into a SQL plan baseline, the database adds these loaded plans as accepted plans

15.2.1.2.1 Loading Plans from SQL Tuning Sets and AWR Snapshots

To load plans from a SQL tuning set, use the LOAD_PLANS_FROM_SQLSET function
of the DBMS_SPM package. The following example loads the plans stored in
the SQL tuning set named tset1:

DECLARE
  my_plans PLS_INTEGER;
BEGIN
  my_plans := DBMS_SPM.LOAD_PLANS_FROM_SQLSET( sqlset_name => ‘tset1‘);
END;
/

To load plans from Automatic Workload Repository (AWR), load the plans stored in
AWR snapshots into a SQL tuning set before using theLOAD_PLANS_FROM_SQLSET function
as described in this section.

15.2.1.2.2 Loading Plans from the Shared SQL Area

To load plans from the shared SQL area, use the LOAD_PLANS_FROM_CURSOR_CACHE function
of the DBMS_SPM package. In the following example, Oracle Database loads
the plans located in the shared SQL area for the SQL statement identified by its sql_id:

DECLARE
  my_plans PLS_INTEGER;
BEGIN
  my_plans := DBMS_SPM.LOAD_PLANS_FROM_CURSOR_CACHE( sql_id => ‘99twu5t2dn5xd‘);
END;
/

版权声明:本文为博主原创文章,未经博主允许不得转载。

时间: 2024-11-13 06:42:59

053第478题的相关文章

053第383题

383.At the request of a user, you issue the following command to restore a dropped table: flashback table "BIN$F2JFfMq8Q5unbC0ceE9eJg==$0" to before drop; Later, the user notifies you that the data in the table seems to be very old and out of da

053第246题

246.The OPTIMIZER_USE_PLAN_BASELINES parameter is set to TRUE. The optimizer generates a plan for a SQL statement but does not find a matching plan in the SQL plan baseline. Which two operations are performed by the optimizer in this scenario? (Choos

053第256题

256.Sales details are being stored on a daily basis in the SALES_2007 table. A large amount of data is added to the table daily. To save disk space, you issued the following command: ALTER TABLE sales_2007 COMPRESS FOR ALL OPERATIONS; What would be t

053第170题

170.ASM supports all but which of the following file types? (Choose all that apply.) A. Database files B. Spfiles C. Redo-log files D. Archived log files E. RMAN backup sets F. Password files G. init.ora files Answer: FG Files that are stored in Orac

053第455题

455.When a job exceeds the date specified in its END_DATE attribute, which of the following will happen? (Choose all that apply.) A. The job will be dropped automatically if the value of the AUTO_DROP attribute is TRUE. B. The job will only be disabl

053第502题

502.A database is running In ARCHIVBXXMS mode. It has two online redo log groups and each group has one member. A LGWR Input/output (I/O) fells due to permanent media failure that has resulted In the loss of redo log file and the LWGR terminates caus

053第423题

423.Which of the following describes how a distributed resumable transaction behaves? A. The resumable setting on the initiating session determines the resumable conditions for the entire distributed transaction. B. The resumable setting for the init

053第85题

85.You executed the following command to drop a user: DROP USER scott CASCADE; Which two statements regarding the above command are correct? (Choose two.) A. All the objects of scott are moved to the Recycle Bin. B. Any objects in the Recycle Bin bel

053 第561题

561.If you issue the command shutdown abort prior to trying to put the database in ARCHIVELOG mode, what will be the result when you issue the command alter database archivelog? A. The alter database archivelog command will fail. B. The alter databas