ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Invalidate a cursor - don't need to flush shared pool

Invalidate a cursor - don't need to flush shared pool

原创 Linux操作系统 作者:tangbufan 时间:2009-04-25 04:59:00 0 删除 编辑

I read from somewhere that issuing harmless DDL, for examples comment and grant statements could be a good way to invalidate a cursor. I have not got chance to verify it until today. I set up a test and find that the following method can invalidate a cursor.

- flush the shared_pool
- grant: i.e. grant select on t to system;
- comment: i.e. comment on table t is 'I am a table';
- dbms_stats.gather_table_stats (no_invalidate should not be true);

test case see: http://oracle-study-notes.blogspot.com/2009/04/how-to-invalidate-curosr.html

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/21335783/viewspace-591766/,如需转载,请注明出处,否则将追究法律责任。

上一篇: DEGREE 的类型
下一篇: SQL Profile
请登录后发表评论 登录
全部评论

注册时间:2009-04-08

  • 博文量
    4
  • 访问量
    4734