天天看點

linux導入表dmp檔案指令,linux下導入.dmp檔案

linux下導入.dmp檔案

(2012-10-12 14:15:51)

标簽:

it

[[email protected] 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 會提示使用者輸入檔案名

分享:

linux導入表dmp檔案指令,linux下導入.dmp檔案

喜歡

linux導入表dmp檔案指令,linux下導入.dmp檔案

贈金筆

加載中,請稍候......

評論加載中,請稍候...

發評論

登入名: 密碼: 找回密碼 注冊記住登入狀态

昵   稱:

評論并轉載此博文

linux導入表dmp檔案指令,linux下導入.dmp檔案

發評論

以上網友發言隻代表其個人觀點,不代表新浪網的觀點或立場。