oracle 使用数据泵恢复,Oracle数据泵备份与恢复实例

SQL> conn / as sysdba

已连接。

SQL> create directory mydump as 'd:\oracle\mydump';

SQL> Grant read,write on directory mydump to test;

授权成功。

创建目录d:\oracle\mydump。

C:\Users\David>expdp test/test directory=mydump dumpfile=test.dmp logfile=test.l

og tables=t1

Export: Release 11.2.0.1.0 - Production on 星期三7月16 22:52:58 2014

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

连接到: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Produc

tion

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

启动"TEST"."SYS_EXPORT_TABLE_01": test/******** directory=mydump dumpfile=test

.dmp logfile=test.log tables=t1

正在使用BLOCKS 方法进行估计...

处理对象类型TABLE_EXPORT/TABLE/TABLE_DATA

使用BLOCKS 方法的总估计: 64 KB

处理对象类型TABLE_EXPORT/TABLE/TABLE

处理对象类型TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS

. . 导出了"TEST"."T1" 5.507 KB 5 行

已成功加载/卸载了主表"TEST"."SYS_EXPORT_TABLE_01"

****************************************************************************** TEST.SYS_EXPORT_TABLE_01 的转储文件集为:

D:\ORACLE\MYDUMP\TEST.DMP

作业"TEST"."SYS_EXPORT_TABLE_01" 已于22:53:09 成功完成

需要将原表删除。

C:\Users\David>impdp test/test directory=mydump dumpfile=test.dmp tables=t1

Import: Release 11.2.0.1.0 - Production on 星期三7月16 23:00:28 2014

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

连接到: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Produc

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值