Oracle expdp/impdpó?·¨

来源:未知 责任编辑:责任编辑 发表时间:2014-03-23 22:32 点击:

<!--[if !supportLists]-->1.       <!--[endif]-->Go to the oracle server AMX currently used, execute

[oracle@lnxas4-ce2 ~]$ sqlplus /nolog

SQL*Plus: Release 10.2.0.1.0 - Production on Wed Jan 12 07:18:47 2011

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

SQL> connect /as sysdba

Connected.

SQL> create or replace directory bakdir as /home/oracle/bak;

Directory created.

SQL> grant read,write on directory bakdir to qsh05;   

Grant succeeded.

SQL> exit
 

/home/oracle/bak is where to save database dump file, and ??qsh05?ˉ is database username.

<!--[if !supportLists]-->2.       <!--[endif]-->Make sure /home/oracle/bak is created, then execute

expdp qsh05/qsh05 dumpfile=qsh05.dmp directory=bakdir include=table
 

??qsh05/qsh05?ˉ is database username/password, and ??dumpfile?ˉ is the file name of database dump file, and ??directory?ˉ is the directory name created in step 1, because only need export table, so add ??include=table?ˉ.

<!--[if !supportLists]-->3.       <!--[endif]-->If the export is successful, the end of log looks like following,

Dump file set for QSH05.SYS_EXPORT_SCHEMA_01 is:

  /home/oracle/bak/qsh05.dmp

Job "QSH05"."SYS_EXPORT_SCHEMA_01" successfully completed at 07:25:30
 

and go to /home/oracle/bak, there are two files, ??qsh05.dmp?ˉ and ??export.log?ˉ.

<!--[if !supportLists]-->4.       <!--[endif]-->Go to the ORACLE server where the AMX wanted to migrate, and create a new user/password in database.

<!--[if !supportLists]-->5.       <!--[endif]-->Create a new dir, and create a new directory mapping to this dir as step 1.

<!--[if !supportLists]-->6.       <!--[endif]-->Copy dump file to the dir created in step 5, then execute

impdp new_user/new_pass remap_schema=qsh05:new_user dumpfile=qsh05.dmp directory=new_directory include=table
 

<!--[if !supportLists]-->7.       <!--[endif]-->If the import is successful, the end of log looks like following,

Job "QSH07"."SYS_IMPORT_FULL_01" successfully completed at 17:46:55
 

    发表评论
    请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
    用户名: 验证码:点击我更换图片
    最新评论 更多>>

    推荐热点

    • Table函数使用简介
    • Oracle数据库Constraint约束的常用操作及异常处理
    • Bulk Collect性能分析(zz)
    • export/import的使用
    • OCP043第十五讲 Database Security
    • ORACLE10gr2数据导入MySQL方案
    • oracle 让sys用户可以使用isqlplus
    • 在oracle数据库下使用iSQL*Plus DBA访问数据库
    • Oracle行列转换小结
    网站首页 - 友情链接 - 网站地图 - TAG标签 - RSS订阅 - 内容搜索
    Copyright © 2008-2015 计算机技术学习交流网. 版权所有

    豫ICP备11007008号-1