oracle 以使用者模式匯入匯出

2021-08-31 10:27:14 字數 1245 閱讀 9877

①:查詢該使用者下的物件

select object_type,count(*) from all_objects where owner='使用者名稱'

group by object_type;

[color=red]使用者名稱處大寫[/color]

②:匯出xining 使用者下的所有物件(包括資料)

c:\>exp xining/xining@ylx file=e:\data_xn.dmp log=e:\log_xn.log owner=xining

③:新建使用者(xining/xining)

在新庫上新建使用者:(要用有dba許可權的使用者登陸)

create user xining

identified by xining

default tablespace users

temporary tablespace temp;

④:授權

grant dba to xining with admin option;

grant connect to xining with admin option;

grant resource to xining with admin option;

alter user xining default role dba,connect,resource;

⑤:匯入

c:\>imp xining/xining@orcl file=e:\data_xn.dmp log=e:\log_xn.log fromuser=xining touser=xining

⑥:重啟服務(os:windows)

c:\>lsnrctl stop/start --停止/啟動 ***

c:\>net stop/start oracleserivce"庫名" --停止/啟動 服務

⑦:刪除該使用者的所用物件

以非該使用者且有管理員角色的使用者登陸,然後再執行下列sql語句:

注:[color=red]該語句慎用[/color]

drop user xining cascade;

[quote]

[url=不錯的資料[/url]

[/quote]

oracle10g匯入匯出 使用者模式

oracle10g匯入匯出 使用者模式 從客戶那裡得到乙個在oracle9i上匯出的dmp檔案 需要匯入到linux上的oracle10上.為了做好這個,花費了幾天時間,從網上學習。因為這是我第一次接觸linux 和oracle.匯出 exp username 使用者名稱 userpass 密碼 s...

oracle匯出,匯入

匯出,在dos下執行 1.exp username userpassword databasename 可以是資料庫也可是遠端的,如username userpassword caac135 2.enter array fetch buffer size 4096 回車 3.export file ...

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...