oracle資料幫浦匯出表資料

2021-10-05 06:30:55 字數 802 閱讀 5649

匯出固定表資料

--匯出固定表資料

expdp ***/***@ip:port/***x directory=data_pump_dir dumpfile

=***.dmp logfile=***.log tables

= tm_legalperson,tm_legalperson_role,tm_user,tm_user_role,tm_user_auth,tm_role,tm_role_op,tm_role_auth,tm_branch,tm_branch_role

匯入dump檔案

impdp命令在cmd下直接用,不必登入oracle。只能匯入expdp匯出的dmp檔案。

1、建立表空間

2、建立使用者,賦予許可權

create user toolbox identified by 123456;

alter user toolbox default tablespace toolbox;

grant create any directory,create session,create table,create view,unlimited tablespace to toolbox;

登入toolbox使用者

建立directory

create or replace directory

dmpdir as 『c:』;

編寫匯入impdp語句

impdp toolbox/123456 directory=dmpdirdumpfile=hz_toolbox_20160613.dmp full=y

oracle 資料幫浦匯入與資料幫浦匯出

資料幫浦匯入 指令 impdp 一 資料庫所有物件的匯入 impdp system tiger dumpfile pump dir mydatabase dat filesize 100m nologfile y job name zhang full y estimate only 二 使用者資料...

oracle 資料幫浦匯入匯出

sqlplus system system egov create directory dump dir as d dbback exit expdp system system egov directory dump dir dumpfile urbanyw.dmp schemas urbanyw...

oracle資料幫浦匯入匯出

使用expdp和impdp時應該注意的事項 exp和imp是客戶端工具程式,它們既可以在客戶端使用,也可以在服務端使用。expdp和impdp是服務端的工具程式,他們只能在oracle服務端使用,不能在客戶端使用。imp只適用於exp匯出的檔案,不適用於expdp匯出檔案 impdp只適用於expd...