暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

(IMP-00037)-使用错误的解压命令

原创 huawei 2021-03-02
1364

(IMP-00037)-使用错误的解压命令

现象描述

使用管道进行数据备份。

  1. 建立管道。

    % mknod /home/exppipe p

  2. 导出数据到建立的管道并压缩。

    % exp system/emsems file=/export/home/exppipe full=y & gzip < /export/home/exppipe > exp.dmp.gz

  3. 导出成功,删除建立的管道。

    % rm -rf /home/exppipe

  4. 建立管道。

    % mknod /home/exppipe p

  5. 导入生成的压缩文件。

    % imp system/emsems file=/export/home/exppipe full=y &gzip < /export/home/exp.dmp.gz > /export/home/exppipe

    系统显示如下错误信息:
    [1] 19890
    
    Import: Release 11.1.0.6.0 - Production on 星期五 3月 27 12:24:58 2009
    
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    
    
    Connected to: Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    
    IMP-00037: Character set marker unknown
    IMP-00000: Import terminated unsuccessfully
    [1]+  Exit 1                  imp system/emsems file=/export/home/exppipe
    复制

可能原因

导入生成压缩文件命令使用错误,应该使用gunzip

处理步骤

  1. 修改导入生成压缩文件的命令。

    % imp system/emsems file=/export/home/exppipe full=y &gunzip < /export/home/exp.dmp.gz > /export/home/exppipe

    导入成功,系统提示如下信息:
    Import terminated successfully without warnings.
    
    复制
  2. 删除管道。

    % rm -rf /home/exppipe

    如果问题没有解决,请联系华为技术工程师。

「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论