EXP-00091: Exporting questionable statistics.问题解决!

本文解决了Oracle导出统计信息时出现的可疑统计问题。主要原因是数据库服务器与客户端的字符集设置不一致导致。通过调整Oracle用户的环境变量,使其与数据库服务器字符集保持一致来解决该问题。
从某帖子搬过来的:

Cause: Export was able to export statistics, but the statistics may not be useable. The statistics are questionable because one or more of the following happened during export: a row error occurred, client character set or NCHARSET does not match with the server, a query clause was specified on export, only certain partitions or subpartitions were exported, or a fatal error occurred while processing a table.

Action: To export non-questionable statistics, change the client character set or NCHARSET to match the server, export with no query clause, or export complete tables. If desired, import parameters can be supplied so that only non-questionable statistics will be imported, and all questionable statistics will be recalculated.

解决:
linux下的oracle用户的环境变量语言集和oralce数据库中的环境变量语言集不相同。
查看oracle的环境变量语言集:
数据库服务器字符集:
select * from nls_database_parameters
客户端字符集:
select * from nls_instance_parameters

将oracle用户的环境变量语言集改成和数据库服务器字符集一样。
export NLS_LANG=american_america.ZHS16GBK
D:\work\w\sql\mysql\mysql-5.7.29.0\exe\MySQL Server 5.7\bin> mysqld --console --datadir="D:\work\w\sql\mysql\mysql-5.7.29.0\exe\data\Data" 2025-09-14T10:58:02.945702Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). 2025-09-14T10:58:02.945768Z 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled 2025-09-14T10:58:02.945950Z 0 [Note] mysqld (mysqld 5.7.29) starting as process 6320 ... 2025-09-14T10:58:02.948687Z 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions 2025-09-14T10:58:02.948954Z 0 [Note] InnoDB: Uses event mutexes 2025-09-14T10:58:02.949108Z 0 [Note] InnoDB: _mm_lfence() and _mm_sfence() are used for memory barrier 2025-09-14T10:58:02.949270Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.11 2025-09-14T10:58:02.949603Z 0 [Note] InnoDB: Number of pools: 1 2025-09-14T10:58:02.949778Z 0 [Note] InnoDB: Not using CPU crc32 instructions 2025-09-14T10:58:02.950835Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M 2025-09-14T10:58:02.954598Z 0 [Note] InnoDB: Completed initialization of buffer pool 2025-09-14T10:58:02.985360Z 0 [Note] InnoDB: Highest supported file format is Barracuda. 2025-09-14T10:58:02.987478Z 0 [Note] InnoDB: Log scan progressed past the checkpoint lsn 235659587 2025-09-14T10:58:03.017433Z 0 [Note] InnoDB: Doing recovery: scanned up to log sequence number 236694974 2025-09-14T10:58:03.018493Z 0 [Note] InnoDB: Database was not shutdown normally! 2025-09-14T10:58:03.018593Z 0 [Note] InnoDB: Starting crash recovery. 2025-09-14T10:58:03.138492Z 0 [Note] InnoDB: Starting an apply batch of log records to the database... InnoDB: Progress in percent: 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 2025-09-14T10:58:03.643308Z 0 [Note] InnoDB: Apply batch completed 2025-09-14T10:58:03.846542Z 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1" 2025-09-14T10:58:03.846740Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables 2025-09-14T10:58:03.847401Z 0 [Note] InnoDB: Setting file '.\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ... 2025-09-14T10:58:03.872573Z 0 [Note] InnoDB: File '.\ibtmp1' size is now 12 MB. 2025-09-14T10:58:03.873424Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active. 2025-09-14T10:58:03.873527Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active. 2025-09-14T10:58:03.873811Z 0 [Note] InnoDB: Waiting for purge to start 2025-09-14T10:58:03.928961Z 0 [Note] InnoDB: 5.7.29 started; log sequence number 236694974 2025-09-14T10:58:03.929442Z 0 [Note] Plugin 'FEDERATED' is disabled. 2025-09-14T10:58:03.929686Z 0 [Note] InnoDB: Loading buffer pool(s) from D:\work\w\sql\mysql\mysql-5.7.29.0\exe\data\Data\ib_buffer_pool 2025-09-14T10:58:03.931096Z 0 [Note] InnoDB: Buffer pool(s) load completed at 250914 18:58:03 2025-09-14T10:58:03.935762Z 0 [Note] Found ca.pem, server-cert.pem and server-key.pem in data directory. Trying to enable SSL support using them. 2025-09-14T10:58:03.935863Z 0 [Note] Skipping generation of SSL certificates as certificate files are present in data directory. 2025-09-14T10:58:03.936747Z 0 [Warning] CA certificate ca.pem is self signed. 2025-09-14T10:58:03.936896Z 0 [Note] Skipping generation of RSA key pair as key files are present in data directory. 2025-09-14T10:58:03.937714Z 0 [Note] Server hostname (bind-address): '*'; port: 3306 2025-09-14T10:58:03.937902Z 0 [Note] IPv6 is available. 2025-09-14T10:58:03.937992Z 0 [Note] - '::' resolves to '::'; 2025-09-14T10:58:03.938157Z 0 [Note] Server socket created on IP: '::'. 2025-09-14T10:58:03.959608Z 0 [Note] Event Scheduler: Loaded 0 events 2025-09-14T10:58:03.959880Z 0 [Note] mysqld: ready for connections. Version: '5.7.29' socket: '' port: 3306 MySQL Community Server (GPL)
最新发布
09-15
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值