Oracle 导出数据到另外一个数据库

来源:互联网 发布:finalcut windows 编辑:程序博客网 时间:2024/05/16 05:16

第一步: 打开cmd 命令: 导出指定用户的表数据文件

   exp TDT/000000@ORCL owner=TDT file=e:/111/abcd.dmp

    TDT是用户名(不是sys 用户), 000000是密码 ORCl是oracle的服务

第二步:

  在另外的oracle数据库中打开SQLplus

   创建表空间:

create  tablespace TES datafile 'C:\app\wenya\oradata\orcl\TES.dbf' 
size 50m  autoextend on  next 50m ;

第三步:

创建用户并指定表空间

create user MM identified by 123456  default tablespace TES ;

第四步:

赋权限:

grant connect,resource to MM;  
grant create any sequence to MM;  
grant create any table to MM;  
grant delete any table to MM;  
grant insert any table to MM;  
grant select any table to MM;  
grant unlimited tablespace to MM;  
grant execute any procedure to MM;  
grant update any table to MM;  
grant create any view to MM;

第五步:

在 SQLplus中给用户赋权限

grant dba  to MM;


第六步:

打开cmd输入:

imp MM/123456@orcl file=C:\111\a.dmp full=y ignore=y ;




阅读全文
0 0
原创粉丝点击