Oracle 匯出資料到另外乙個資料庫

2021-08-08 02:04:43 字數 873 閱讀 5883

第一步: 開啟cmd 命令: 匯出指定使用者的表資料檔案

exp tdt/000000@orcl owner=tdt file=e:/111/abcd.dmp

tdt是使用者名稱(不是sys 使用者), 000000是密碼 orcl是oracle的服務

第二步:

在另外的oracle資料庫中開啟sqlplus

建立表空間:

第三步:

建立使用者並指定表空間

create user mm identified by 123456  default tablespace tes ;

第四步:

賦許可權:

grant connect,resource to mm;  

grant create any sequence to mm;  

grant create any table to mm;  

grant delete any table to mm;  

grant insert any table to mm;  

grant select any table to mm;  

grant unlimited tablespace to mm;  

grant execute any procedure to mm;  

grant update any table to mm;  

grant create any view to mm;

第五步:

在 sqlplus中給使用者賦許可權

grant dba  to mm;

第六步:

開啟cmd輸入:

imp mm/123456@orcl file=c:\111\a.dmp full=y ignore=y ;

oracle資料從乙個表空間匯入到另外乙個表空間

問題 在使用exp匯出使用者資料後,再使用imp匯入時,必須保證兩者物件的表空間一致才能成功匯入 在此分享一點解決辦法 exp匯出使用者資料 exp userid user user owner user file user.dmp 匯出表ddl 開啟pl sql執行選單 工具 匯出使用者物件 功能...

資料表資料遷移 複製乙個表的資料到另外乙個表

通過 sql,你可以從乙個表複製資訊到另乙個表。mysql 資料庫不支援 select into 語句,但支援 insert into select select into 語句從乙個表複製資料,然後把資料插入到另乙個新錶中。create table 新錶 as select from 舊表 我們可...

從乙個excel複製到另外乙個excel

excel.range m objrange null wbs.open source path,type.missing,type.missing,type.missing,type.missing,type.missing,type.missing,type.missing,type.missi...