11、数据导出与导入
2016-04-22 16:00
489 查看
一、expdp导出数据
1、建立目录
create or replace directory dir_name as 'D:\...';
2、授权读写权限给用户
grant read,write on directory dir_name to user_name;
3、expdp命令导出
expdp user_name/password_name directory=dir_name dumpfile=file_name.dmp {tables=table_name1,table_name2... |
schemas=schemas_name | tablespaces=tablespace_name |full=y}
tables:要导出的表的名字。
schemas:要导出的模式的名字。
tablespaces:表空间的名字。
full:全部数据库
P346其余的参数(如query添加导出的where条件子句。)
二、impdp导入数据
impdp user_name/password_name directory=dir_name dumpfile=file_name.dmp {tables=table_name1,table_name2... |
schemas=schemas_name | tablespaces=tablespace_name |full=y} [remap_schema=schema1:schema2]
remap_schema:将模式1导入到模式2中,也就是跨模式的数据导入导出。(模式的概念参考用户与安全。模式与用户是一一对
应关系。)
1、建立目录
create or replace directory dir_name as 'D:\...';
2、授权读写权限给用户
grant read,write on directory dir_name to user_name;
3、expdp命令导出
expdp user_name/password_name directory=dir_name dumpfile=file_name.dmp {tables=table_name1,table_name2... |
schemas=schemas_name | tablespaces=tablespace_name |full=y}
tables:要导出的表的名字。
schemas:要导出的模式的名字。
tablespaces:表空间的名字。
full:全部数据库
P346其余的参数(如query添加导出的where条件子句。)
二、impdp导入数据
impdp user_name/password_name directory=dir_name dumpfile=file_name.dmp {tables=table_name1,table_name2... |
schemas=schemas_name | tablespaces=tablespace_name |full=y} [remap_schema=schema1:schema2]
remap_schema:将模式1导入到模式2中,也就是跨模式的数据导入导出。(模式的概念参考用户与安全。模式与用户是一一对
应关系。)
相关文章推荐
- Android之获取手机上的图片和视频缩略图thumbnails
- 基于 Red Hat 的发行版 Oracle Linux 正式发布Oracle Linux 7.1
- mysql load data 导出、导入 csv
- 数据库链接字符串查询网站
- Oracle Containers for J2EE远程安全漏洞(CVE-2014-0413)
- Oracle 10g R2不能使用EM的问题
- 表空间操作
- PreparedStatement中in子句的处理
- VMware下RedHat4.8_64位安装Oracle 10g RAC--简略脚本
- oracle sql日期比较
- 基于 Red Hat 的发行版 Oracle Linux 正式发布Oracle Linux 7.1
- DB2实例管理
- DB2实例管理
- OS block size和Oracle block size,查找OS Blocksize的方法
- 保障MySQL数据安全的14个最佳方法
- mysql问答汇集
- oracle中创建数据库和表空间的几点总结