关于exp statistics的问题和简单测试(82天)
发布日期:2021-06-30 13:28:39 浏览次数:2 分类:技术文章

本文共 1510 字,大约阅读时间需要 5 分钟。

在数据导出的时候,可能会碰到EXP-00091: Exporting questionable statistics.的问题,有时候会让人有点摸不到头脑,不知道该调整什么。

[ora11g@rac1 ~]$ exp n1/n1 tables=t file=t.dmp rows=n

可以通过查询字符集来判断是否和客户端的有出入。?

echo的结果不是没设置,就可能是设置的有问题。重新设置,问题就解决了。 echo $NLS_LANG [ora11g@rac1 ~]$ export NLS_LANG=AMERICAN_AMERICA.AL32UTF8 Export terminated successfully without warnings.

当然了,对于这个问题,提示导出的statistics信息有问题,来测试一下在有警告的情况下,导入是否有问题。我们换一个用户,看看统计信息是否能够导入。

[ora11g@rac1 ~]$ exp n1/n1 tables=t file=t.dmp rows=n

Export: Release 11.2.0.3.0 - Production on Fri May 23 19:53:24 2014

Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.

Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production

About to export specified tables via Conventional Path ...

Table created.

[ora11g@rac1 ~]$ imp testo/oracle file=t.dmp tables=t statistics=always

Import: Release 11.2.0.3.0 - Production on Fri May 23 19:54:01 2014

Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.

Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production

Export file created by EXPORT:V11.02.00 via conventional path

Warning: the objects were exported by N1, not by you

import done in US7ASCII character set and AL16UTF16 NCHAR character set Import terminated successfully without warnings.

可以看到,没有任何的警告,查看统计信息,发现已经导入了。尽管表里没有数据,但是由于统计信息的导入,显示数据条数还是600多万。

********** TABLE GENERAL INFO *****************

TABLE_NAME PAR TABLESPACE STATUS NUM_ROWS BLOCKS EMPTY_BLOCKS LOG MON ROW_MOVE LAST_ANAL

转载地址:https://jeanron100.blog.csdn.net/article/details/102506823 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:传输表空间及问题处理(84天)
下一篇:使用shell脚本查看数据库负载情况(81天)

发表评论

最新留言

留言是一种美德,欢迎回访!
[***.207.175.100]2024年04月17日 17时33分02秒