OCP 1Z0 053 221
来源:互联网 发布:淘宝零成本自动赚钱txt 编辑:程序博客网 时间:2024/06/08 13:41
221.To generate recommendations to improve the performance of a set of SQL queries in an application,
you execute the following blocks of code:
BEGIN dbms_advisor.create_task(dbms_advisor.sqlaccess_advisor,'TASK1'); END;/
BEGIN dbms_advisor.set_task_parameter('TASK1','ANALYSIS_SCOPE','ALL');
dbms_advisor.set_task_parameter('TASK1','MODE','COMPREHENSIVE');
END;
/
BEGIN
dbms_advisor.execute_task('TASK1');
dbms_output.put_line(dbms_advisor.get_task_script('TASK1'));
END;
/
The blocks of code execute successfully; however, you do not get the required outcome.
What could be the reason?
A. A template needs to be associated with the task.
B. A workload needs to be associated with the task.
C. The partial or complete workload scope needs to be associated with the task.
D. The type of structures (indexes, materialized views, or partitions) to be recommended need to be
specified for the task.
Answer: B
正确用法如下
http://docs.oracle.com/cd/E11882_01/appdev.112/e40758/d_advis.htm#ARPLS65117
you execute the following blocks of code:
BEGIN dbms_advisor.create_task(dbms_advisor.sqlaccess_advisor,'TASK1'); END;/
BEGIN dbms_advisor.set_task_parameter('TASK1','ANALYSIS_SCOPE','ALL');
dbms_advisor.set_task_parameter('TASK1','MODE','COMPREHENSIVE');
END;
/
BEGIN
dbms_advisor.execute_task('TASK1');
dbms_output.put_line(dbms_advisor.get_task_script('TASK1'));
END;
/
The blocks of code execute successfully; however, you do not get the required outcome.
What could be the reason?
A. A template needs to be associated with the task.
B. A workload needs to be associated with the task.
C. The partial or complete workload scope needs to be associated with the task.
D. The type of structures (indexes, materialized views, or partitions) to be recommended need to be
specified for the task.
Answer: B
正确用法如下
http://docs.oracle.com/cd/E11882_01/appdev.112/e40758/d_advis.htm#ARPLS65117
Examples
DECLARE task_id NUMBER; task_name VARCHAR2(30); workload_name VARCHAR2(30);BEGIN task_name := 'My Task'; workload_name := 'My Workload'; DBMS_ADVISOR.CREATE_TASK(DBMS_ADVISOR.SQLACCESS_ADVISOR, task_id, task_name); DBMS_ADVISOR.ADD_SQLWKLD_REF(task_name, workload_name); DBMS_ADVISOR.EXECUTE_TASK(task_name);END;/
0 0
- OCP 1Z0 053 221
- OCP 1Z0 053 1
- OCP 1Z0 053 2
- OCP 1Z0 053 3
- OCP 1Z0 053 4
- OCP 1Z0 053 5
- OCP 1Z0 053 6
- OCP 1Z0 053 7
- OCP 1Z0 053 8
- OCP 1Z0 053 9
- OCP 1Z0 053 10
- OCP 1Z0 053 11
- OCP 1Z0 053 12
- OCP 1Z0 053 13
- OCP 1Z0 053 14
- OCP 1Z0 053 15
- OCP 1Z0 053 16
- OCP 1Z0 053 17
- ReportStudio入门教程(七十一) - 显示时间进度(文字版)
- light oj 1068(数位dp)
- 序列化 Serializable
- 【bug记录】Eclipse中修改文件保存后,总是提示Could not clean server of obsolete files
- 十大电子论坛推荐
- OCP 1Z0 053 221
- UVa 110 Meta-Loopless Sorts 解题报告(暴力)
- android系统在虚拟机中锁屏后无响应的解决方案
- UML那些事儿:六类UML图
- GARPVLAN注册协议
- Android Wear 开发入门——如何创建一个手机与可穿戴设备关联的通知(Notification)
- poj 1442
- windows 上安装 libevent
- 【Unity 3D】学习笔记四十三:布料