資料庫冷備份:
備份週期:每週一次或資料發生大量變動之後
1、進入命令提示符
方法:a.開始選單執行cmd。b.開始選單命令提示符
2、呼叫sqlplus程式
命令格式:sqlplus.exe 使用者名稱/口令@網路服務名
例:sqlplus.exe sys/change_on_install@oraproc
3、以系統管理員的身份連線到oracle
命令格式:connect 使用者名稱/口令@網路服務名 as sysdba
例:connect sys/change_on_install@sdgl as sysdba
4、執行指令碼,顯示需要備份的資料檔案
select name from v$datafile
union
select name from v$tempfile
union
select name from v$controlfile
/5、關閉資料庫
命令:shutdown immediate
6、將4步顯示的檔案複製到備份裝置
7、將資料庫初始化引數檔案ini.ora及管理員的口令檔案pwdsdgl.ora備份到備份裝置
8、重新啟動資料庫
命令:startup
資料庫匯出:
備份週期:每天做一次
方法:在命令提示符下執行匯出命令
命令格式:exp.exe 使用者名稱/口令@網路服務名 file = 備份檔案(路徑及檔名)
[匯出方式inctype=(complete、incremental、cumulative)]
例:完全備份:
exp.exe demouser/demouser@oraprocfile=d:\oraproc2004091511.dmp inctype=complete
增量備份:
exp.exe demouser/demouser@oraprocfile=d:\oraproc2004091511.dmp inctype=incremental
累積備份:
exp.exe demouser/demouser@oraprocfile=d:\oraproc2004091511.dmp inctype=cumulative
注:增量備份、累積備份必須在做完全備份之後
匯入imp.exe demouser/demouser@sdgl file=d:\oraproc2003081511.dmp full=y commit=y
oracle資料庫冷備份
一 冷備份前提 作業系統相同,可以win32到win64,win32到win64要執行指令碼。操作步驟 a,檢視兩個例項的控制檔案 資料檔案 日誌檔案 b,關閉兩個例項 c,覆蓋對應檔案 d,開啟例項 為了避免不必要的麻煩,我常常保持兩個例項的資料檔案 控制檔案 日誌檔案的數目和位置完全一致。例項名...
oracle資料庫冷備份
oracle 資料庫備份是我們最常見的操作之一。目前幾乎所有的公司都有自己的資料庫,存放重要的資料,資料的重要性無疑是非常重要的,那麼我們該如何進行資料庫的備份,在必要時刻在最短的時間內恢復資料,保證生產呢。下面我講解一下一般資料庫冷備份的方法。以window 系統oracle11g 為例說明。工具...
oracle資料庫冷備份
前言 這兩天因為專案組需要遷移演示系統環境,因資料庫資料量太大,小k考量之下決定使用冷備份來實現。下面小k給大家簡單介紹一下oracle資料庫冷備份異機恢復的步驟吧。1 查詢oracle是什麼版本,select from v version 要資料庫版本一致 2 例如資料庫塊大小,show para...