ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 运行收集统计信息dbms_stats.gather_table_stats包的bug

运行收集统计信息dbms_stats.gather_table_stats包的bug

原创 Linux操作系统 作者:paulyibinyi 时间:2007-12-28 09:39:24 0 删除 编辑
环境winxp+oracle 9.2.0.1
C:>sqlplus

SQL*Plus: Release 9.2.0.1.0 - Production on 星期四 7月 5 15:00:48 2007

Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.

请输入用户名: sys/abcdefg@test as sysdba

连接到:
Oracle9i Enterprise Edition Release 9.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
SQL> exec dbms_stats.gather_table_stats(ownname=>'paul', tabname=>'T');
BEGIN dbms_stats.gather_table_stats(ownname=>'paul', tabname=>'T'); END;

*
ERROR 位于第 1 行:
ORA-06521: PL/SQL: Error mapping function
ORA-06512: at "SYS.DBMS_STATS", line 9643
ORA-06512: at "SYS.DBMS_STATS", line 9657
ORA-06512: at line

网上查了下,说可能是bug 需要升级到9204,于是在自己电脑上升级到9204版本的数据库
C:\Documents and Settings\Paul Yi>sqlplus "/as sysdba"

SQL*Plus: Release 9.2.0.4.0 - Production on 星期四 7月 5 16:44:34 2007

Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.


连接到:
Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.4.0 - Production

SQL> EXEC dbms_stats.gather_table_stats(ownname => 'PAUL',tabname => 'T',method_opt => 'FOR ALL INDE
XED COLUMNS SIZE REPEAT',cascade => TRUE);

PL/SQL 过程已成功完成。

一切正常

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

请登录后发表评论 登录
全部评论
学习数据库

注册时间:2007-12-11

  • 博文量
    901
  • 访问量
    6805783