[oracle@xmdb ~]$ schemas=hie [oracle@xmdb ~]$ directory=expdir [oracle@xmdb ~]$ date_d=`date +%Y-%m-%d` [oracle@xmdb ~]$ expdp \"/ as sysdba\" directory=$directory tables=\"hie.学生成绩表\" dumpfile=xscjb_${date_d}.dmp logfile=expdp_xscjb_${date_d}.log exclude=statistics Export: Release 11.2.0.4.0 - Production on Fri Nov 13 10:26:06 2026
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP, Data Mining and Real Application Testing options Starting "SYS"."SYS_EXPORT_TABLE_01": "/******** AS SYSDBA" directory=expdir tables="hie.学生成绩表" dumpfile=学生成绩表_2026-11-13.dmp logfile=expdp_学生成绩表_2026-11-13.log exclude=statistics Estimate in progress using BLOCKS method... Total estimation using BLOCKS method: 0 KB ORA-39166: Object HIE.学生成绩表 was not found. ORA-31655: no data or metadata objects selected for job Job "SYS"."SYS_EXPORT_TABLE_01" completed with 2 error(s) at Fri Nov 13 10:26:10 2026 elapsed 0 00:00:03
SQL*Plus: Release 11.2.0.4.0 Production on Fri Nov 13 10:28:20 2026
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP, Data Mining and Real Application Testing options
SQL> SELECT value FROM nls_database_parameters WHERE parameter='NLS_CHARACTERSET';
VALUE -------------------------------------------------------------------------------- ZHS16GBK
三、原因分析
终端输入编码(UTF-8)与 Oracle 客户端声明的字符集(ZHS16GBK)不匹配。
$LANG 和 locale charmap 显示你的 Linux 终端实际使用 UTF-8 编码输入中文。