linux下导入.dmp文件
(2012-10-12 14:15:51)
标签:
it
[oracle@localhost script]$ imp
Import: Release 8.1.7.4.0 - Production on Mon Feb 9 13:59:02
2004
(c) Copyright 2000 Oracle Corporation. All rights reserved.
Username: cams --此处输入启动导入的用户
Password: --此处输入相应的密码
Connected to: Oracle8i Enterprise Edition Release 8.1.7.4.0
-Production
JServer Release 8.1.7.4.0 - Production
Import file: expdat.dmp > /tmp/2004020601.dmp
--此处输入需要导入的文件名,如果导出数据时导出到了多个文件,
则imp 会提示用户需要输入下一个需要导入的文件名.交互式导入时大多数参数都有缺省值.如果选用缺省值,直接回车即可.
Enter insert buffer size (minimum is 8192) 30720>
--此处需要输入buffer值,此处通常选择缺省值,直接回车.
Export file created by EXPORT:V08.01.07 via conventional
path
import done in ZHS16CGB231280 character set and ZHS16CGB231280
NCHAR
character set
IMP-00046: using FILESIZE value from export file of
1073741824
List contents of import file only (yes/no): no >
--如果选择yes则imp
会显示出导入文件的数据,并且这些数据这不会被导入数据库中.如果事先不知道导入文件中有哪些数据,可以利用此参数查看文件内容.此处直接回车.
Ignore create error due to object existence (yes/no): no >
--是否忽略对象已经存在的错误,如果选择yes 则出现对象已经存在的错误时,不显示错误信息.
Import grants (yes/no): yes > --是否导入授权通常选择yes
Import table data (yes/no): yes >
--是否导入表中数据如果选择no,则只导入表的结构通常选择yes
Import entire export file (yes/no): no >
--是否导入整个文件如果选择yes,则imp 导入整个文件的数据.如果选择no,则下面会提示需要导入的用户名以及表名
Username: camsii --需要导入的用户名
Enter table(T) or partition(T:P) names. Null list means all
tables for
user
Enter table(T) or partition(T:P) name or . if done: .
?需要导入的表名或表的分区名如果输入表名则只导入该用户模式下的表的数据如果输入回车或
.
则表示要导出该用户的所有数据此处输入
.
. . importing table "TBL_BILLDETAIL_SWITCH" 0 rows imported
. . importing table "TBL_BLACKLIST" 0 rows imported
. . importing table "TBL_CHARGE_CARD" 0 rows imported
. . importing table "TBL_DISCOUNT_BY_TIME" 0 rows imported
. . importing table "TBL_ERROR_CODE" 377 rows imported
…
…
About to enable constraints..
.
Import terminated successfully with warnings.
该命令从文件中导入cams 用户的所有数据如果有多个文件imp 会提示用户输入文件名
分享:
喜欢
0
赠金笔
加载中,请稍候......
评论加载中,请稍候...
发评论
登录名: 密码: 找回密码 注册记住登录状态
昵 称:
评论并转载此博文
发评论
以上网友发言只代表其个人观点,不代表新浪网的观点或立场。