oracle資料匯入,oracle 如何將資料匯入到自己建立的使用者下

時間 2021-06-18 17:05:29

1樓:

我給你一些資料庫常用的匯入匯出命令吧:

該命令在「開始選單》執行》cmd」中執行

一、資料匯出(exp.exe)

1、將資料庫orcl完全匯出,使用者名稱system,密碼accp,匯出到d:\daochu.dmp檔案中

exp system/accp@orcl file=d:\daochu.dmp full=y

2、將資料庫orcl中scott使用者的物件匯出

exp scott/accp@orcl file=d:\daochu.dmp owner=(scott)

3、將資料庫orcl中的scott使用者的表emp、dept匯出

exp scott/accp@orcl file= d:\daochu.dmp tables=(emp,dept)

4、將資料庫orcl中的表空間testspace匯出

exp system/accp@orcl file=d:\daochu.dmp tablespaces=(testspace)

二、資料匯入(imp.exe)

1、將d:\daochu.dmp 中的資料匯入 orcl資料庫中。

imp system/accp@orcl file=d:\daochu.dmp full=y

2、如果匯入時,資料表已經存在,將報錯,對該表不會進行匯入;加上ignore=y即可,表示忽略現有表,在現有表上追加記錄。

imp scott/accp@orcl file=d:\daochu.dmp full=y ignore=y

3、將d:\daochu.dmp中的表emp匯入

imp scott/accp@orcl file=d:\daochu.dmp tables=(emp)

2樓:匿名使用者

把test1.bmp檔案拷貝到test2資料庫的電腦上

imp 使用者名稱/密碼 file=test1.bmp log=test.log fromuser= .... touser =....

oracle 如何將資料匯入到自己建立的使用者下

3樓:一滴清茗

提醒:下面的命令執行的前提,機器上oracle能夠正常使用,然後在命令提示符中。

匯出方法:exp 源使用者/源使用者密碼@例項名 file=d:\111.dmp owner=源使用者 log=d:\111.log

方法1.首先你要建立源資料所在的表空間,然後匯入時,使用fromuser=源使用者 和touser=新使用者 關鍵字就行了.例項:

imp 新使用者/新使用者密@新例項名 file=d:\111.dmp fromuser=源使用者名稱 touser=新使用者名稱 buffer=1024000 log=d:

\imp.log feedback=10000

方法2.不建立源資料所在的表空間,匯入時,除使用fromuser、touser外還需使用remap_tablespace關鍵字,給表空間一個對映關係,這樣才不會報錯。

個人覺得如果能查到源資料的表空間的情況下,方法1是最佳選擇。希望回答能給你帶來幫助。

如何自學oracle資料庫,自學oracle資料庫,應該看那些書籍呢?

你想學oracle幹嘛用,oracle資料庫可是大型資料庫,不說一般,就是中型企業也支付不起一年幾千萬的使用費。初學者可以先學mysql資料庫。mysql和oracle一樣都支援sql語法,都是關係型資料庫。不同的是儲存過程不一樣,許可權管理不一樣。mysql現在是中小型企業的主流。你可以考慮一下。...

oracle資料庫各版本的區別,Oracle資料庫各版本的區別?

一騎當後 oracle資料庫軟體分個人版 標準版1 標準版 企業版。各自的區別如下 1 標準版1 standard edition one 適用於1 2cpu的伺服器,有相當的優勢,但僅限單機環境,適用於中小型使用者入門級應用 2 標準版 standard edition 適用於1 4cpu的伺服器...

怎樣將excel中的資料匯入到oracle資料庫中

你好,你用sqlplus 還是develop工具?如果是後者,需要把excel中的內容按照表中的欄位順序排版,然後在工具裡輸入select from 表名 for update 讓後在下面結果集解鎖,之後把excel內容複製並貼上到結果集下面 然後上鎖 提交 就可以了 純手打,怎樣將excel中的資...