数据库备份

导出方案:

导出自己的方案exp scott/tiger@oracle owner=scott file=d:\scott.dmp

成功导入方案:

Imp userid=retest/retest@oracle file=e:\rem.dmp full=y 

导出表:

两百万数据:
exp userid=scott/tiger@oracle tables=(salgrade) file=d:\test.dmp;
direct=y速度快。
exp userid=scott/tiger@oracle tables=(salgrade) file=d:\test1.dmp direct=y; 
导出表结构
exp userid=scott/tiger@oracle tables=(salgrade) file=d:\test2.dmp rows=n;

dba权限到别人的表

exp userid=system/system@oracle tables=(scott.emp) file=d:\test3.dmp;

导入表:

导入表

imp userid=test/test@oracle tables=(user1) file=d:\test.dmp; 

导入表结构
imp userid=scott/tiger@oracle tables=(salgrade) file=d:\test2.dmp rows=n;

导出方案:

导出自己的方案exp scott/tiger@oracle owner=scott file=d:\scott.dmp

导出别人的方案:exp system/system@oracle owner=(scott) file=d:\scottsystem.dmp;

导出别人的方案和自己的方案exp system/system@oracle owner=(system ,scott) file=d:\scottsys.dmp;

导入其它方案

Imp userid=system/manager file=d:\xxx.dmp from user =system to user=scott;

Imp userid=retest/retest@oracle file=e:\renet.dmp fromUser=retest toUser=retest

exp retest/retest@oracle owner=retest file=e:\rem.dmp


导出数据库

要有dba的权限和exp_full_database权限

Full=y所有的都导出

Inctype=Complete增量备份:原来的不导出,新的导出

exp userid=system/system@oracle full=y inctype=complete file=d:\test3q.dmp 

 

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值