Oracle中用exp/imp命令参数详解
来源:互联网 发布:国外社交软件排名 编辑:程序博客网 时间:2024/05/17 06:42
Oracle中用exp/imp命令参数详解
【用 exp 数 据 导 出】:
1 将数据库TEST完全导出,用户名system 密码manager 导出到D:\daochu.dmp中
exp system/manager@TEST rows=y indexes=y compress=n buffer=65536 feedback=100000full=y file=d:\daochu.dmp log=d:\daochulog.txt owner=(ECC_BIZ,ECC_CUSTOMER)
2 将数据库中system用户与sys用户的表导出
exp system/manager@TEST file=d:\daochu.dmp owner=(system,sys)
3 将数据库中的表table1 、table2导出
exp system/manager@TEST file=d:\daochu.dmp tables=(table1,table2)
4 将数据库中的表table1中的字段filed1以”00″打头的数据导出
exp system/manager@TEST file=d:\daochu.dmp tables=(table1) query=\” where filed1like '00%'\”
上面是常用的导出,对于压缩我不太在意,用winzip把dmp文件可以很好的压缩。不过在上面命令后面 加上 compress=y 就可以了。
【用 imp 数 据 导 入】:
1 将D:\daochu.dmp 中的数据导入 TEST数据库中。
imp system/manager@TEST ignore=y full=y file=d:\daochu.dmp log=d:\daoru.txt
1. 获取帮助
imp help=y
2. 导入一个完整数据库
imp system/manager file=bible_db log=dible_db full=y ignore=y
3. 导入一个或一组指定用户所属的全部表、索引和其他对象
imp system/manager file=seapark log=seapark fromuser=seapark
imp system/manager file=seapark log=seapark fromuser=(seapark,amy,amyc,harold)
4. 将一个用户所属的数据导入另一个用户
imp system/manager file=tank log=tank fromuser=seapark touser=seapark_copy
imp system/manager file=tank log=tank fromuser=(seapark,amy) touser=(seapark1, amy1)
5. 导入一个表
imp system/manager file=tank log=tank fromuser=seapark TABLES=(a,b)
6. 从多个文件导入
imp system/manager file=(paycheck_1,paycheck_2,paycheck_3,paycheck_4) log=paycheck,filesize=1G full=y
7. 使用参数文件
imp system/manager parfile=bible_tables.par
bible_tables.par参数文件:
#Import the sample tables used for the Oracle8i Database Administrator's
#Bible.
fromuser=seapark touser=seapark_copy file=seapark log=seapark_import
8. 增量导入(9i中已经取消)
imp system./manager inctype= RECTORE FULL=Y FILE=A
- Oracle中用exp/imp命令参数详解
- Oracle中用exp/imp命令参数详解
- Oracle中用exp/imp命令参数详解
- Oracle中用exp/imp命令参数详解
- oracle imp exp命令参数详解
- ORACLE EXP/IMP 参数详解
- ORACLE EXP/IMP 参数详解
- ORACLE EXP/IMP 参数详解
- Oracle EXP/IMP参数详解
- Oracle中用exp/imp命令快速导入
- Oracle中用exp/imp命令快速导入
- Oracle中用exp/imp命令快速导入
- Oracle - exp/imp命令详解
- oracle exp/imp命令详解
- oracle exp/imp命令详解
- oracle Exp/IMP命令详解
- oracle exp imp命令详解
- oracle exp/imp命令详解
- Python安装第三方包
- css --关于背景图片显示不出来的情况
- STL标准模版库---set操作
- log4j.properties配置与加载应用
- JS验证表单集合大全
- Oracle中用exp/imp命令参数详解
- codevs1226 倒水问题 bfs
- leetcode25~Reverse Nodes in k-Group
- JMeter学习(一)工具简单介绍
- 浏览器的一个请求从发送到返回都经历了什么,讲的越详细越好
- 旋转打印矩阵
- JavaScript函数集合大全
- 89. Gray Code
- 94. Binary Tree Inorder Traversal