How To Export Oracle Optimizer Statistics? [ID 903729.1]

In this Document
  Goal
  Solution


Applies to:

Primavera P6 Enterprise Project Portfolio Management - Version: 5.0 and later   [Release: 5.0 and later ]
All Platforms
***Checked for relevance on 30-Sept-2011***

Goal

Cost Based Optimzation (CBO) depends on correct statistics in a database to run queries efficiently.  If the statistics are missing or stale, bad execution plans can be generated leading into slow execution of queries. Support may require a customer to send in their optimizer statistics to be analyzed if query performance is causing issues in the software. 

Solution

To obtain an Oracle export / dump of the optimizer statistics of a Primavera database follow these steps (only necessary when sending in the statistics to Oracle|Primavera):

  1. In SQLPLUS execute the following query to create a table names STATS (if the table does not exist already):

    exec dbms_stats.create_stat_table('ADMUSER', 'STATS');


  2. In SQLPLUS execute the following query to populate the STATS table with the optimzer statistics:

    exec dbms_stats.export_schema_stats('ADMUSER', 'STATS');


  3. From a DOS command prompt on the Oracle Database Server or client run the following statement to export out the STATS table:

    exp admuser/@ tables=stats file=\stats_dump.dmp

  4. Send the stats_dump.dmp to Oracle Customer Support.

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

转载于:http://blog.itpub.net/38267/viewspace-730267/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值