Oracle記錄匯入,匯出對偶

2021-04-26 19:54:44 字數 1202 閱讀 5703

ahszy生成資訊

資料庫配置檔案已經安裝到 d:/oracle/product/10.2.0,同時其他選定的安裝元件也已經安裝到 d:/oracle/product/10.2.0/db_1。

isql*plus url 為:

isql*plus dba url 為:

使用者空間:

exp system/syitserver@orcle file=d:/oracle/back2009-4-2.dmp owner=(ahszy)

imp system/syitserver@orcl file=d:/oracle/back2009-4-17.dmp log=d:/log.txt fromuser=ahszy

表:exp ahszy/syitserver@orcl file=d:/wr_rltw_c.dmp tables=(wr_rltw_c)

exp ahszy/syitserver@orcl file=d:/ws_sumsl.dmp tables=(ws_sumsl)

drop table wr_rltw_c;drop table ws_sumsl;

imp ahszy/syitserver@orcl file=d:/wr_rltw_c.dmp tables=(wr_rltw_c)

imp ahszy/syitserver@orcl  file=d:/ws_sumsl.dmp tables=(ws_sumsl)

定時匯出的批量語句:

@echo off 

for /f "tokens=2 delims==" %%a in ('wmic path win32_operatingsystem get localdatetime /value') do ( 

set t=%%a 

)  set today=%t:~0,4%-%t:~4,2%-%t:~6,2% 

echo,%today% 

exp interrogate/interrogate@orcl file=d:/oraclebak/back%today%.dmp owner=(interrogate)

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