oracle10g匯入匯出 (使用者模式)
從客戶那裡得到乙個在oracle9i上匯出的dmp檔案
需要匯入到linux上的oracle10上.
為了做好這個,花費了幾天時間,從網上學習。因為這是我第一次接觸linux 和oracle......
匯出 exp
username:使用者名稱
userpass: 密碼
# su - oracle
$ exp username/userpass
enter array fetch buffer size: 4096 >
export file: expdat.dmp > m.dmp //生成匯出的檔名
(2)u(sers), or (3)t(ables): (2)u >
export table data (yes/no): yes >
compress extents (yes/no): yes >
export done in zhs16cgb231280 character set and zhs16cgb231280 nchar
character set
about to export specified users ...
user to be exported: (return to quit) > username --此處輸入需要匯出的使用者,如果需要匯出多個使用者的資料,exp 會一直提示使用者,直至使用者輸入了..
user to be exported: (return to quit) > .. --此處輸入".."export terminated successfully without warnings.
//exp name/password@shili file=c:\a.dmp;
匯入 imp
首次使用
$ imp
import: release 8.1.6.0.0 - production on 星期五 12月 7 17:01:08 2001
使用者名稱: test
口令:****
連線到: oracle8i enterprise edition release 8.1.6.0.0 - 64bit production
with the partitioning option
jserver release 8.1.6.0.0 - production
匯入檔案: expdat.dmp> /tmp/m.dmp
輸入插入緩衝區大小(最小為 8192 ) 30720>
經由常規路徑匯出由export:v08.01.06建立的檔案
警告: 此物件由 test 匯出, 而不是當前使用者
已經完成zhs16gbk字符集和zhs16gbk nchar 字符集中的匯入
只列出匯入檔案的內容(yes/no):no>
由於物件已存在, 忽略建立錯誤(yes/no):no> yes
匯入許可權(yes/no):yes>
匯入表資料(yes/no):yes>
匯入整個匯出檔案(yes/no):no> yes
. 正在將test的物件匯入到 scott
檢視日誌發現有錯 一是「正在將test的物件匯入到 scott」我希望它還是導進了test下
二是 "表空間"不存在
解決方法:
命令列匯入:$ imp file=/opt/0203.dmp fromuser=test touser=test
提示輸入使用者名稱和密碼 可以輸sysdba使用者
如果提示錯誤:connection as sys should be as sysdba or sysoper
username : sys as sysdba
password:
就可以啦
如此就ok了。
很是興奮。
Oracle 10g 匯入匯出dmp檔案
oracle資料匯入dmp檔案可以是 某個使用者下的資料庫 也可以是 某張表 這裡以匯入資料庫為例說明 方法1 使用客戶端enterprise manager console 用sys使用者名稱,以dba的身份在ie中登入到資料庫 oracle客戶端enterprise manager consol...
Oracle10g匯出的資料匯入Oracle9i
我們知道oracle匯入匯出資料通過命令 exp user sys user pass mydb file d sys.dmp imp user sys user pass mydb file d sys.dmp ignore y imp 00010 不是有效的匯出檔案,標題驗證失敗 imp 000...
oracle10g建立使用者
doctype html public wcdtd xhtml stricten httpwwwworgtrxhtmldtdxhtml strictdtd oracle10g的建立使用者名稱 linux下oracle的啟動 以oracle身份登入 啟動 lsnrctl start 登入 sqplus...