oracle 匯入匯出

2021-06-22 21:49:28 字數 1210 閱讀 9035

oracle下匯出某使用者所有表的方法

scott/tiger是使用者名稱和密碼,orcl是匯出的例項名 

按使用者方式匯出資料(owner當中寫的是使用者名稱) exp scott/tiger@orcl file=scott_back owner=scott 

按表方式匯出資料(talbes當中寫的是全部表的名稱) exp scott/tiger@orcl tables=(emp, dept) file=scott_back_tab 

按表空間方式匯出資料(tablespaces當中寫的是表空間名稱) exp system/orcl@orcl tablespaces=(users) file=tbs_users 

使用引數檔案匯出資料 exp system/handson parfile='c:\parameters.txt 

1、cmd->exp->username/passwd@sid-->.....一路回車--->輸入匯出庫得名字 就把所有的表、檢視、儲存過程、函式、作業等亂七八糟的都匯出來了; 

2、pl/sql-->工具---〉匯出使用者物件 可以找到你要導的東東。  

兩者都可以的很方便! 

匯出表: exp scott/tiger@mycon tables=(dept,emp) file=tab1.dmp  

匯出使用者: exp system/manager@mycon owner=scott file=usr1.dmp  

匯出資料庫: 

1.完全匯出 exp system/manager@mycon full=y inctype=complete file=full1.dmp 

2.2.增量匯出 exp system/manager@mycon full=y inctype=incremental file=inc1.dmp  

3.3.累積匯出 exp system/manager@mycon full=y inctype=cumulative file=cum1.dmp 

4.匯入表: imp system/manager@mycon file=c:\tab1.dmp tables=(dept,emp) touser=scott 

5.匯入使用者: imp system/manager@mycon file=usr1.dmp fromuser=scott touser=scott  

匯入資料庫: 

1.全庫匯入 imp system/manager@mycon file=full1.dmp full=y  

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

Oracle匯入匯出

最簡單 exp duser duser remote localinstancename owner duser file file path dmp imp duser duser remote localinstancename file file path dmp 詳細出處參考 win10下o...