oracle 解压失败,Oracle数据库案例整理-恢复数据库失败-使用错误的解压命令

1.1       现象描述

使用管道进行数据备份。

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

1.2       可能原因

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

1.3       处理步骤

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

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

导入成功,系统提示如下信息:

Import terminated successfully without warnings.

删除管道。

% rm -rf /home/exppipe

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值