Oracle 数据库exp和imp命令使用实例:
1、exp -- 从Oracle导出数据备份
例:指定要导出的表
exp user/passwd file = outfilename.dmp log = outlogfile.log recordlength = 65535 compress = no feedback = 10000 parfile=tables.list
或者
exp user/passwd file = outfilename.dmp log = outlogfile.log recordlength = 65535 compress = no feedback = 10000 tables = (table_name1,table_name2,...,table_name8,
table_name9)
注:tables.list 为要备份表,内容格式:
tables=
table_name1,
table_name2,
...
table_name8,
table_name9
2、imp -- 从备份文件导入表数据至Oracle
例:指定要导入的表
imp user/passwd file = outfilename.dmp tables = (table_name)
这些是简单的使用方法,很多参数要查查资料
阅读(834) | 评论(0) | 转发(0) |