- 单表数据迁移:支持clob,blob
exp estarcom/estarcom@ORACLE tables=AA direct=y file=C:/AAA1.dmp
imp estarcom/estarcom@ORACLE tables=AA file=C:/AAA1.dmp fromuser=estarcom touser=estarcom
- 全库数据迁移
exp userid=zhongxin/zhongxin@ORACLE owner=zhongxin file=d:/zhongxin_200811111946.dmp log=d:/zhongxin_200811111946.log
imp zhongxin/zhongxin@oracle file=d:/mianyang_20081119.dmp fromuser=mianyang touser=zhongxin
- EXP/IMP用法
exp/imp适合于同类型数据库之间数据转换
共有四种不同模式:表,用户,表空间,数据库
现分别举例说明
1.表级别
$ exp hr/hr tables=jobs direct=y file=/data/table_jobs.dmp
$ imp hr/hr tables=jobs direct=y file=/data/table_jobs.dmp
2.用户级别
$ exp "'sys/sys as sysdba'" owner=hr direct=y file=/data/owner_hr.dmp
$ imp "'sys/sys as sysdba'" fromuser=hr touser=hr file=/data/owner_hr.dmp
3.表空间级别
$ exp "'sys/sys as sysdba'" transport_tablespace=y direct=y tablespaces=examples file=/data/ts_examples.dmp
4.数据库级别
$ exp "'sys/sys as sysdba'" full=y file=/data/db.dmp
说明:如要使用as sysdba或as sysoper进行操作,则必须使
用如下用法:
"'sys/sys as sysdba'"
"'system/system as sysoper'"
本文介绍 Oracle 数据库中不同级别的数据迁移方法,包括单表、用户、表空间及整个数据库的数据迁移过程。通过具体的命令示例,指导如何使用 EXP/IMP 工具进行高效的数据迁移。
1万+

被折叠的 条评论
为什么被折叠?



