非交互式
windows: D:\>exp scott/tiger file=employee.dmp tables=(emp,dept)
linux需要加雙引號
EXP-00091:
[oracle@oracle oracle_databak]$ exp scott/orcl@orcl file=/home/oracle/oracle_databak/scott.dmp tables="(emp,dept)" Export: Release 11.2.0.3.0 - Production on Fri Oct 5 14:45:01 2018 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 With the Partitioning, OLAP, Data Mining and Real Application Testing options Export done in ZHS16GBK character set and AL16UTF16 NCHAR character set server uses AL32UTF8 character set (possible charset conversion) About to export specified tables via Conventional Path ... . . exporting table EMP 14 rows exported EXP-00091: Exporting questionable statistics. EXP-00091: Exporting questionable statistics. . . exporting table DEPT 4 rows exported EXP-00091: Exporting questionable statistics. EXP-00091: Exporting questionable statistics. Export terminated successfully with warnings.
處理方法
如果在exp后指定rows=n 意思就是不導出數據,只導出表結構
解決方式:EXP-00091 對環境變量進行修改 修改后重新進行導出操作就沒有這個錯誤了

select * from v$nls_parameters where parameter='NLS_CHARACTERSET';

imp導入操作
[oracle@oracle ~]$ imp system/orcl@orcl file=/home/oracle/oracle_databak/scott.dmp fromuser=scott touser=nod commit=y Import: Release 11.2.0.3.0 - Production on Fri Oct 5 14:56:43 2018 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 With the Partitioning, OLAP, Data Mining and Real Application Testing options Export file created by EXPORT:V11.02.00 via conventional path Warning: the objects were exported by SCOTT, not by you import done in ZHS16GBK character set and AL16UTF16 NCHAR character set import server uses AL32UTF8 character set (possible charset conversion) . importing SCOTT's objects into NOD . . importing table "EMP" 14 rows imported . . importing table "DEPT" 4 rows imported About to enable constraints... Import terminated successfully without warnings.
