




已閱讀5頁,還剩2頁未讀, 繼續(xù)免費(fèi)閱讀
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
oracle rman備份設(shè)置(用于雙重備份rman備份到其他電腦,而dump備份到本機(jī)/u02/oradata/orarmanbak下)主要功能:使用rman來備份oracle數(shù)據(jù)庫,然后通過rsync復(fù)制到另外的機(jī)器上。# 在cron中運(yùn)行(每天早上 1:02執(zhí)行)/var/spool/cron/root#crontab -ecat/var/spool/cron/root/script/orarmanbak.log 2&11 2 * * * /script/oradumpbak.sh /script/oradumpbak.log 2&1EOF全量備份:#0確認(rèn)已經(jīng)啟用歸檔模式SQL archive log list;Database log mode Archive ModeAutomatic archival EnabledArchive destination /u02/oradata/center/archiveSQL select tablespace_name from dba_tablespaces ; /查看oracle所有表空間,以便于dump備份#1.創(chuàng)建備份目錄mkdir /u02/oradata/orarmanbakchown oracle.oinstall /u02/oradata/orarmanbak#mkdir -p /u02/oradata/orarmanbak/dumpdir#chgrp -R oinstall /u02/oradata/orarmanbak/dumpdir#chown -R oracle /u02/oradata/orarmanbak/dumpdir#2.創(chuàng)建備份腳本mkdir /scripttouch /script/orarmanbak.shchmod 777 /script/orarmanbak.shtouch /script/dump.shchmod 777 /script/dump.shtouch /script/oradumpbak.shchmod 777 /script/oradumpbak.shvi /script/orarmanbak.sh內(nèi)容如下(請(qǐng)按實(shí)際情況修改BACKDIR,RPORT,RHOST,RDID,其中后三項(xiàng)為存放備份文件的服務(wù)器)#!/bin/bash#function: backup oracle script with rman.#usage: crontab on linux #exsample: 2 1 * * * /script/orabackup.sh /script/orabackup.log 2&1BACKDIR=/u02/oradata/orarmanbakRPORT=65422RHOST=192.168.60.11RDIR=/opt/oraclebak#rman backupif ! -d $BACKDIR ; then mkdir -p $BACKDIR chown oracle.oinstall $BACKDIRfi#su - oracle -c rman target / cmdfile /scripts/rmancmdsu - oracle -c rman target / /script/orabackup.log 2&1#Author: zhuct 2009.4.29 v2#export ORACLE_SID=center#export ORACLE_HOME=/u01/app/oracle/product/10.2.0BACKDIR=/u02/oradata/orabackupRPORT=65422RHOST=192.168.60.11RDIR=/data/orabackupDAYOFWEEK=date +%u LEVEL=0case $DAYOFWEEK in 1|2|4|5) LEVEL=2 ; 3|6) LEVEL=1 ; *) LEVEL=0 ;esac if ! -d $BACKDIR ; then mkdir -p $BACKDIR chown oracle.oinstall $BACKDIRfi#su - oracle -c r
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- GB/T 45230-2025數(shù)據(jù)安全技術(shù)機(jī)密計(jì)算通用框架
- 借用林地協(xié)議合同范本
- 包裝紙盒合同范本
- 北京車輛過戶合同范本
- 軍事拓展協(xié)議合同范本
- 企業(yè)價(jià)值咨詢合同范本
- 動(dòng)產(chǎn)個(gè)人抵押合同范本
- 人工勞務(wù)外包合同范本
- 企業(yè)綠化合同范本
- 農(nóng)業(yè)機(jī)械改裝項(xiàng)目合同范例
- 4.7 數(shù)學(xué)建?;顒?dòng):生長(zhǎng)規(guī)律的描述教學(xué)設(shè)計(jì)
- 手術(shù)風(fēng)險(xiǎn)及醫(yī)療意外險(xiǎn)告知流程
- 余杭區(qū)住宅房屋裝修備案申請(qǐng)表
- 住宅建筑工程施工重點(diǎn)與難點(diǎn)應(yīng)對(duì)措施方案
- 中醫(yī)婦科病證診斷療效標(biāo)準(zhǔn)
- 綜合實(shí)踐活動(dòng)六年級(jí)下冊(cè) 飲料與健康課件 (共16張PPT)
- 數(shù)量金融的概況和歷史課件
- 護(hù)士職業(yè)素養(yǎng)課件
- 專業(yè)醫(yī)院lovo常用文件產(chǎn)品介紹customer presentation
- 叉車日常使用狀況點(diǎn)檢記錄表(日常檢查記錄)
- ME基礎(chǔ)知識(shí)培訓(xùn)PPT學(xué)習(xí)教案
評(píng)論
0/150
提交評(píng)論