導入工具imp互動式指令行方式:
在windows cmd指令視窗輸入imp回車,出現下面的資訊
import: release 11.2.0.1.0- production on tue sep 27 23:48:11 2011
copyright (c) 1982,2009, oracle and/or its affiliates. allrights reserved.
下面輸入的使用者名及密碼是執行導出操作時使用的使用者和相應密碼。
username: 使用者名
password:
輸入對應的密碼
connected to:oracle database 11g enterprise edition release 11.2.0.1.0- 64bit production
with thepartitioning, olap, data mining and real application testing options(根據資料庫的版本資訊及操作時間的不同提示資訊會有所不同)
import data only(yes/no): no >
//要求輸入要導入的檔案名稱
import file:expdat.dmp > d:\test.dmp
//要求輸入緩沖區的大小,這裡使用預設設定,直接回車即可
enter insert buffersize (minimum is 8192) 30720>
//提示資訊
export file createdby export:v11.02.00 via conventional path
import done inus7ascii character set and al16utf16 nchar character set
import server usesal32utf8 character set (possible charset conversion)
//要求選擇是否隻列出檔案内容
list contents ofimport file only (yes/no): no >
//要求選擇如果對象存在的情況下,是否忽略建立錯誤
ignore create errordue to object existence (yes/no): no >
//要求選擇是否導入權限
import grants(yes/no): yes >
//要求選擇是否導入表中資料
import table data(yes/no): yes >
//要求選擇是否導入整個導出檔案
import entireexport file (yes/no): no >
//要求輸入使用者名。導入的資料會在該使用者模式下建立
username: scott
成功終止導入,但出現警告