千家信息网

CentOS7使用exp/imp时报错怎么办

发表于:2026-11-02 作者:千家信息网编辑
千家信息网最后更新 2026年11月02日,这篇文章给大家分享的是有关CentOS7使用exp/imp时报错怎么办的内容。小编觉得挺实用的,因此分享给大家做个参考,一起跟随小编过来看看吧。在CentOS7下使用exp语句导出数据时遇到报错,使用
千家信息网最后更新 2026年11月02日CentOS7使用exp/imp时报错怎么办

这篇文章给大家分享的是有关CentOS7使用exp/imp时报错怎么办的内容。小编觉得挺实用的,因此分享给大家做个参考,一起跟随小编过来看看吧。

在CentOS7下使用exp语句导出数据时遇到报错,使用的脚本都是其他环境下验证过的脚本,很是奇怪。

1.测试环境

CentOS 7+Oracle11.2.0.3.0

点击(此处)折叠或打开

  1. [root@localhost hoegh]# cat /etc/centos-release

  2. CentOS Linux release 7.2.1511 (Core)

  3. [root@localhost hoegh]#

  4. [root@localhost hoegh]# sqlplus sys/sys as sysdba


  5. SQL*Plus: Release 11.2.0.3.0 Production on 星期三 11月 1 11:43:51 2017


  6. Copyright (c) 1982, 2011, Oracle. All rights reserved.



  7. Connected to:

  8. Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production

  9. With the Partitioning, OLAP, Data Mining and Real Application Testing options


  10. SQL> select * from v$version;


  11. BANNER

  12. --------------------------------------------------------------------------------

  13. Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production

  14. PL/SQL Release 11.2.0.3.0 - Production

  15. CORE 11.2.0.3.0 Production

  16. TNS for Linux: Version 11.2.0.3.0 - Production

  17. NLSRTL Version 11.2.0.3.0 - Production


  18. SQL>

  19. SQL>

  20. SQL> exit

  21. Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production

  22. With the Partitioning, OLAP, Data Mining and Real Application Testing options

  23. [root@localhost hoegh]#

2.exp语句报错

点击(此处)折叠或打开

  1. [root@localhost hoegh]#

  2. [root@localhost hoegh]# exp hoegh/hoegh tables=(HOEGH1,HOEGH2,HOEGH3,HOEGH4,HOEGH5) file=/home/hoegh/hoegh.dmp

  3. bash: syntax error near unexpected token `(

3.解决

需要在括号上添加双引号才行。

点击(此处)折叠或打开

  1. [root@localhost hoegh]#

  2. [root@localhost hoegh]# exp hoegh/hoegh tables="(HOEGH1,HOEGH2,HOEGH3,HOEGH4,HOEGH5)" file=/home/hoegh/hoegh.dmp


  3. Export: Release 11.2.0.3.0 - Production on 星期三 11月 1 11:44:58 2017


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



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

  6. With the Partitioning, OLAP, Data Mining and Real Application Testing options

  7. Export done in AL32UTF8 character set and AL16UTF16 NCHAR character set


  8. About to export specified tables via Conventional Path ...

  9. . . exporting table HOEGH1 2 rows exported

  10. . . exporting table HOEGH2 500 rows exported

  11. . . exporting table HOEGH3 1500 rows exported

  12. . . exporting table HOEGH4 2 rows exported

  13. . . exporting table HOEGH5 500 rows exported

  14. Export terminated successfully without warnings.

  15. [root@localhost hoegh]#

感谢各位的阅读!关于"CentOS7使用exp/imp时报错怎么办"这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,让大家可以学到更多知识,如果觉得文章不错,可以把它分享出去让更多的人看到吧!

怎么办 时报 内容 星期 更多 环境 篇文章 脚本 语句 不错 实用 引号 括号 数据 文章 看吧 知识 参考 帮助 有关 数据库的安全要保护哪些东西 数据库安全各自的含义是什么 生产安全数据库录入 数据库的安全性及管理 数据库安全策略包含哪些 海淀数据库安全审计系统 建立农村房屋安全信息数据库 易用的数据库客户端支持安全管理 连接数据库失败ssl安全错误 数据库的锁怎样保障安全 咖啡豆 互联网电商科技 互联网科技深圳 河南真二互联网科技有限公司 互联网科技公司发展 润盈互联网科技 广西拼得多互联网科技有限公司 广州慧亚互联网科技怎么样 重庆威客帮互联网科技 互联网科技有哪些公司 爱医互联网络科技 特约风豹互联网科技为什么扣费 无锡工业互联网科技有限公司 陕西云淼互联网科技公司 世界互联网科技成果奖 普陀区互联网教育科技管理办法 互联网科技平台产品运营 互联网科技和医药行业 互联网科技创业计划的风险分析 瑞安市蟠桃会互联网科技有限公司 为想互联网科技 世界互联网领先科技成果 一五八零互联网科技 华脉科技工业互联网产品 玖二柒互联网科技公司待遇 呼和浩特新华互联网科技学院 亳州好赞互联网科技有限公司 上海钢联属于互联网科技股吗 富国互联网金融科技混合基金 科技发展第三阶段互联网时代
0