Oracle11g按使用者資料匯出匯入

2021-08-20 23:21:31 字數 945 閱讀 5904

1) 使用expdp使用者資料的匯出

expdp name/pwd@orcl schemas=oracle_user dumpfile=dump_file.dump logfile=dump_file_log.log directory=mydir;
匯出位於例項orcl;使用者name/pwd具有匯出許可權,匯出使用者oracle_user下的所有資料,資料檔案名為dump_file.dump,日誌檔名為dump_file_log

.log;

mydir指的是資料幫浦名稱.

2) 使用impdp使用者資料匯入

impdp name/pwd@orcl directory=mydir dumpfile=dump_file.dump remap_schema=source_user:target_user remap_tablespace=source_space:target_space;
匯入位於例項

orcl;使用者

name/pwd

具有匯入許可權,匯入資料的**為

source

,目標為

target;

mydir指的是資料幫浦名稱.

其中需要注意:remap_schema與remap_tablespace,替換源使用者與目標使用者的使用者名稱和表空間,即:可以匯入其他使用者其他表空間的資料到指定使用者指定表空間.

補充:當使用sys或者system等dba許可權匯入時,使用下列語句:

impdp userid='name/pwd@orcl as sysdba' directory=mydir dumpfile=dump_file.dump remap_schema=source_user:target_user remap_tablespace=source_space:target_space;
希望本篇部落格對你有幫助.

oracle11g之使用者管理

建立使用者 create user 使用者名稱 identified by 密碼 注意 必須是擁有特權使用者的賬號才能建立使用者 修改使用者密碼 注意 必須是擁有特權使用者的賬號才能修改使用者的密碼 刪除使用者 必須是擁有drop user的許可權才能刪除使用者 刪除使用者時,如果使用者已經建立了表...

ORACLE 11g 匯出資料

oracle 11g 匯出 表的時候 不會匯出空表 匯出空表操作步驟 使用plsql 1 開啟sql window 執行下面的 sql select alter table table name allocate extent from user tables where segment creat...

oracle建立表空間 使用者 資料庫匯入和匯出

1,建立臨時表空間xtny gis temp create temporary tablespace xtny gis temp tempfile d oracle product 10.2.0 oradata orcl xtny gis temp.dbf size 32m autoextend o...