开发者

ORACLE XE clear Top Sql Statistics

The "top" SQL statements represent the SQL statements that are executed most ofte开发者_运维问答n, that use more system resources than other SQL statements, or that use system resources more frequently than other SQL statements. Viewing the top SQL statements report that is available in the Oracle Database XE graphical user interface enables you to focus your SQL tuning efforts on the statements that can have the most impact on database performance.

But how do I clear the information currently held?


Try to flush the shared pool:

ALTER SYSTEM FLUSH SHARED_POOL;

Because the shared pool contains the SQL cache, cleaning it, also it's going to clear the other data.

Of course, be carefull because it also flush other useful data:

  • Cached data dictionary information and
  • Shared SQL and PL/SQL areas for SQL statements, stored procedures, function, packages, and triggers.

References:

  • ALTER SYSTEM - Oracle® Database SQL Language Reference 11g Release 2 (11.2)
  • Shared pool - Oracle® Database Concepts 11g Release 2 (11.2)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜