2011年12月19日 星期一(oracle读书笔记)

 

1.       导出自己的表的命令:

exp  userid = muly/muly@orcl  tables = (student)  file = d:\a1.dmp;

2.       导出其他方案的表,需要有dba的权限或者exp.full.database的权限,比如system可以导出muly用户的表

exp  userid = system/orcl@orcl  tables = (muly.student)  file = d:\a2.dmp;

如果只导出表的结构,则需要在file参数之后添加参数direct = y

3.       导出某一用户的方案,需要将tables参数修改为owner 之后,参数值为该登录用户的用户名。

4.       如果导出其他用户的方案,需要将tables参数修改为owner之后参数值为其他用户名。

5.       导出数据库exp useid = system/manager@orcl  full = y  inctype = conplete  file = d:\aa.dmp;

6.       导入恢复命令imp常用的参数包括:userid、tables、fromuser、touser、file、full=y、inctype、rows、ignore

7.       导入自己的表imp  userid = muly/muly@orcl  tables = (emp)  file=d:\aa.dmp;

8.       导入表到其他用户,要求该用户具有dba权限,或是imp.full.database

命令:imp  userid = system/orcl@orcl  tables = (emp) file=d:\a.dmp  touser=mly;

9.       只导入表的结构imp  userid=muly/muly@orcl  tables=(emp)  file=d:\aa.dmp  rows=n

10.   只导入表的数据imp  userid=muly/muly@orcl  tables=(emp)  file=d:\a.dmp  ignore=y

11.   导入数据库的命令 imp  userid=system/orcl  full=y  file=d:\aa.dmp;将整个数据库导入到系统中。

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值