EXP-00091: Exporting questionable statistics

在使用EXP工具进行导出备份或迁移数据的时候有时会报很多的“EXP-00091: Exporting questionable statistics”错误,具体的现象和处理方法请观看……

1.问题现象
[oracle@RH207 exp]$ exp test/test file=test.dmf log=test.log
……忽略……
EXP-00091: Exporting questionable statistics.
EXP-00091: Exporting questionable statistics.
EXP-00091: Exporting questionable statistics.
. . exporting table                        SNP_TXT       6345 rows exported
EXP-00091: Exporting questionable statistics.
EXP-00091: Exporting questionable statistics.
EXP-00091: Exporting questionable statistics.
. . exporting table                 SNP_TXT_CROSSR       1019 rows exported
EXP-00091: Exporting questionable statistics.
EXP-00091: Exporting questionable statistics.
EXP-00091: Exporting questionable statistics.
EXP-00091: Exporting questionable statistics.
EXP-00091: Exporting questionable statistics.
EXP-00091: Exporting questionable statistics.
EXP-00091: Exporting questionable statistics.
EXP-00091: Exporting questionable statistics.
EXP-00091: Exporting questionable statistics.
EXP-00091: Exporting questionable statistics.
EXP-00008: ORACLE error 1013 encountered
ORA-01013: user requested cancel of current operation
EXP-00056: ORACLE error 1403 encountered
……忽略……

2.处理方法
指定Linux系统的NLS_LANG环境变量为数据库的数据集
1)查询数据库的字符集(方法很多只用一种)
SQL> select userenv('language') from dual;

USERENV('LANGUAGE')
----------------------------------------------------
AMERICAN_AMERICA.WE8ISO8859P1

2)设置Linux操作系统的NLS_LANG环境变量
[oracle@RH207 exp]$export NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1

Window系统的环境变量的修改方法是:
C:\>set NLS_LANG=
AMERICAN_AMERICA.WE8ISO8859P1

3.OK,处理完成,在进行EXP导出操作就不会报这个错误了

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
当使用Quarkus框架导出包含中文内容的CSV文件时,你可以按照以下步骤进行操作: 1. 首先,确保你已在项目的构建工具(如Maven或Gradle)中添加了`org.apache.commons:commons-csv`依赖项。 2. 创建一个包含中文数据的POJO类,例如`Person`类: ```java public class Person { private String name; private int age; public Person(String name, int age) { this.name = name; this.age = age; } // Getter and setter methods } ``` 3. 在需要导出CSV文件的地方,创建一个`List`来存储数据对象,然后使用`CSVPrinter`类将数据写入CSV文件。以下是一个简单的例子: ```java import org.apache.commons.csv.CSVFormat; import org.apache.commons.csv.CSVPrinter; import java.io.FileWriter; import java.io.IOException; import java.util.ArrayList; import java.util.List; public class CsvExporter { public static void exportToCsv(List<Person> persons, String filePath) throws IOException { try (FileWriter writer = new FileWriter(filePath); CSVPrinter csvPrinter = new CSVPrinter(writer, CSVFormat.DEFAULT.withHeader("Name", "Age"))) { for (Person person : persons) { csvPrinter.printRecord(person.getName(), person.getAge()); } csvPrinter.flush(); } } public static void main(String[] args) { List<Person> persons = new ArrayList<>(); persons.add(new Person("张三", 25)); persons.add(new Person("李四", 30)); persons.add(new Person("王五", 35)); try { exportToCsv(persons, "output.csv"); System.out.println("CSV file exported successfully."); } catch (IOException e) { System.out.println("Error while exporting CSV file: " + e.getMessage()); } } } ``` 在上面的例子中,我们创建了一个`Person`类来表示人员信息,然后使用`CSVPrinter`类将数据写入CSV文件。`CSVFormat.DEFAULT.withHeader("Name", "Age")`用于指定CSV文件的列头。 注意,我们在`exportToCsv`方法中使用了Java 7中的try-with-resources语句,以确保文件资源在使用完之后正确关闭。 运行这个例子后,你将在项目根目录下找到一个名为`output.csv`的文件,其中包含了中文内容的CSV数据。

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值