oracle 导库

//创建表空间
CREATE TABLESPACE platform
     LOGGING
     DATAFILE
     'F:\oracle\product\10.2.0\oradata\orcl\platform.dbf' SIZE 1000M
     EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT  AUTO ;

//赋予权限
create user xxxx1 identified by xxxx2 default tablespace platform;
grant connect,resource to xxxx1 ;
grant exp_full_database to xxxx1 ;
grant imp_full_database to xxxx1;

//导出数据库
exp xxxx1
/xxxx2@xxxx3(要导的库) file=8301747.dmp

imp xxxx1/xxxx2 full=y file=8301747.dmp

 

exp userid=scott/123@orcl tables=(emp,dept) file=d:\1.dmp;
导出别的用户的表
exp
userid=system/manager@orcl tables=(scott.emp,scott.dept)file=d:\2.dmp;

只导出表结构 + rows=n;
exp
userid=system/manager@orcl tables=(scott.emp,scott.dept)file=d:\2.dmp rows=n;

直接导出数据库 +direct=y;

本地字符集和导库字符集一致 否则报错 速度快

exp userid=system/manager@orcl tables=(scott.emp,scott.dept)file=d:\3.dmp direct=y;

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值