- 最后登录
- 2023-8-16
- 在线时间
- 1686 小时
- 威望
- 2135
- 金钱
- 50532
- 注册时间
- 2011-10-12
- 阅读权限
- 200
- 帖子
- 5207
- 精华
- 39
- 积分
- 2135
- UID
- 2
|
2#
发表于 2012-1-30 15:12:49
ODM test:- SQL> select /*+oppo_find_me*/ 123 from dual;
- 123
- ----------
- 123
- SQL> alter system flush shared_pool;
- System altered.
- SQL> select executions from v$sqlarea where sql_text like '%oppo%' and sql_text not like '%like%';
- no rows selected
- SQL> select /*+oppo_find_me*/ 123 from dual;
- 123
- ----------
- 123
- SQL> select executions from v$sqlarea where sql_text like '%oppo%' and sql_text not like '%like%';
- EXECUTIONS
- ----------
- 1
-
- SQL> select first_load_time ,executions from v$sqlarea where sql_text like '%oppo%' and sql_text not like '%like%';
- FIRST_LOAD_TIME EXECUTIONS
- ---------------------------------------------------------------------------- ----------
- 2012-01-30/18:03:35 1
- SQL> alter system flush shared_pool;
- System altered.
- SQL> select /*+oppo_find_me*/ 123 from dual;
- 123
- ----------
- 123
- SQL> select sql_id , first_load_time ,executions from v$sqlarea where sql_text like '%oppo%' and sql_text not like '%like%';
- SQL_ID FIRST_LOAD_TIME EXECUTIONS
- ------------- ---------------------------------------------------------------------------- ----------
- gbg587ffauph4 2012-01-30/18:05:02 1
-
复制代码 |
|