Oracle11G 数据库导入导出(expdp,impdp)

来源:互联网 发布:淘宝天天特价卡位现象 编辑:程序博客网 时间:2024/06/11 21:54

一,导入.dump数据库文件(expdp 命令导出的)步骤。

    1、创建导入用户及表空间,为一般为expdp命令导出时的用户。

       create tablespace tempspace datafile 'D:\DB\Oracle11G\dbdata\orcl\tempspace.ORA' size 1024M autoextend on next 32M;       CREATE USER tempuser IDENTIFIED BY tempuser default tablespace tempspace;

    2、创建 directory 目录,该目录为存放.dump文件的真实路径,导入的时候impdp会自动到该目录下查找导入文件。

      create directory TEMP_DUMP as 'C:/dumps';      grant read,write on directory TEMP_DUMP to tempuser;
    3、导入数据库。

      impdp tempuser/tempuser DIRECTORY=TEMP_DUMP DUMPFILE=CKBS20160617.DMP FULL=y;
Enter 万事大吉。

0 0
原创粉丝点击