ITPub博客

首页 > Linux操作系统 > Linux操作系统 > save the status of schema and gather all stat of schemas again.

save the status of schema and gather all stat of schemas again.

原创 Linux操作系统 作者:beatony 时间:2012-01-17 15:07:50 0 删除 编辑

Hi Tony/Jerry,

1. Please save the current stats for OTC_WRHS_POSITION schema

2. Please gather all stats for OTC_WRHS_POSITION schema at 100%

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

1. 备份一个数据库 schema 的所有对象的执行计划:

SQL> execute DBMS_STATS.create_stat_table('OTC_WRHS_POSITION','OTC_WRHS_STAT_20120116');

PL/SQL procedure successfully completed.

SQL> execute DBMS_STATS.EXPORT_SCHEMA_STATS ('OTC_WRHS_POSITION','OTC_WRHS_STAT_20120116');

PL/SQL procedure successfully completed.

2. 分析schema 下的所有对象.<gather all stats for OTC_WRHS_POSITION schema at 100%>

I am now trying to use script. for analyze ,as it may takes a long time

would you please tell me on which node I can run following script?

dba_oracle_analyze -s O02OTC3 -o OTC_WRHS_POSITION -p 100 -D 8

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

上一篇: For ORA-01555,
请登录后发表评论 登录
全部评论

注册时间:2010-05-18

  • 博文量
    192
  • 访问量
    495774