rman b14193Backup and Recovery Quick Start Guide筆記
總結:rman repository記錄在control file中或者catalog中
1、幾個概念:backup>backupset>backuppiece
2、report need backup;
3、list backup summary
list backup by backup
list backup by file
4、
crosscheck backup;
crosscheck copy;
delete obsolete;
delete expired backup;
delete backup;
5、configure EXCLUDE FOR TABLESPACE oratab; (不備份oratab表空間)
6、CONFIGURE RETENTION POLICY TO REDUNDANCY 2;(設定冗餘策略)
7、指令碼
RMAN> @/home/oracle/oracle/product/10.2.0/rman_back.txt
[oracle@oracle 10.2.0]$ more rman_back.txt
list backup;
delete noprompt backup;
backup database;
[oracle@oracle 10.2.0]$
8、backup datafile 1,3;
backup tablespace oratab,system;
9、恢復datafile
RMAN> SQL 'ALTER DATABASE DATAFILE 7 OFFLINE';
RMAN> RESTORE DATAFILE 7;
RMAN> RECOVER DATAFILE 7;
RMAN> SQL 'ALTER DATABASE DATAFILE 7 ONLINE';
10、恢復tablespace
RMAN> SQL 'ALTER TABLESPACE users OFFLINE';
RMAN> RESTORE TABLESPACE users;
RMAN> RECOVER TABLESPACE users;
RMAN> SQL 'ALTER TABLESPACE users ONLINE';
11、恢復database
RMAN> STARTUP FORCE MOUNT;
RMAN> RESTORE DATABASE;
RMAN> RECOVER DATABASE;
RMAN> ALTER DATABASE OPEN;
總結:
下載oracle 官方文件,邊看文件邊做練習,概念和實際相結合,記得牢固。
[@more@]n來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/70612/viewspace-1020439/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Squid - A quick start guide(轉)GUIIDE
- Akka Stream文件翻譯:Quick Start Guide: Reactive TweetsGUIIDEReact
- Backup And Recovery User's Guide-RMAN架構-RMAN庫(Repository)GUIIDE架構
- Backup And Recovery User's Guide-RMAN TSPITR模型GUIIDE模型
- Backup And Recovery User's Guide-RMAN架構-關於RMAN環境GUIIDE架構
- Backup And Recovery User's Guide-RMAN架構-RMAN通道-通道和裝置GUIIDE架構
- Backup And Recovery User's Guide-從RMAN開始-指令碼化RMAN操作GUIIDE指令碼
- Backup And Recovery User's Guide-從RMAN開始-概覽RMAN環境GUIIDE
- rman B14192B_backup and recovery basics筆記筆記
- Oracle DataPump Quick Start [ID 413965.1]OracleUI
- Performance Tools Quick Reference GuideORMGUIIDE
- Backup And Recovery User's Guide-RMAN資料修復概念GUIIDE
- Backup And Recovery User's Guide-RMAN資料修復概念-RMAN還原操作GUIIDE
- Backup And Recovery User's Guide-RMAN備份概念-RMAN建立的映象拷貝GUIIDE
- Backup And Recovery User's Guide-RMAN架構-RMAN命令列客戶端及RMAN通道(channel)GUIIDE架構命令列客戶端
- Backup And Recovery User's Guide-RMAN資料修復概念-RMAN介質恢復GUIIDE
- Backup And Recovery User's Guide-RMAN架構-RMAN通道-自動和手動通道GUIIDE架構
- Backup And Recovery User's Guide-從RMAN開始-顯示預設的RMAN配置GUIIDE
- Oracle Database Cloud - Database as a Service Quick StartOracleDatabaseCloudUI
- Backup And Recovery User's Guide-RMAN備份概念-增量備份GUIIDE
- Backup And Recovery User's Guide-RMAN TSPITR的基本概念GUIIDE
- Backup And Recovery User's Guide-備份RMAN備份-使用RMAN備份備份集GUIIDE
- Backup And Recovery User's Guide-RMAN備份概念-RMAN備份的多個拷貝GUIIDE
- Quick-3.3 開發筆記UI筆記
- Linux下安裝Apollo (Quick Start)LinuxUI
- Llama-recipes Quick start 的除錯UI除錯
- Backup And Recovery User's Guide-RMAN資料修復概念-RMAN資料修復技術GUIIDE
- Backup And Recovery User's Guide-從RMAN開始-RMAN操作報表-列表顯示備份GUIIDE
- RMAN筆記筆記
- Backup And Recovery User's Guide-使用RMAN備份歸檔重做日誌GUIIDE
- Backup And Recovery User's Guide-RMAN備份概念-備份保留期策略GUIIDE
- Backup And Recovery User's Guide-從RMAN開始-恢復表空間GUIIDE
- Backup And Recovery User's Guide-從RMAN開始-備份資料庫GUIIDE資料庫
- Backup And Recovery User's Guide-執行完全自動的RMAN TSPITRGUIIDE
- 筆記:A Quick Tutorial on Pollard's Rho Algorithm筆記UIGo
- Backup And Recovery User's Guide-RMAN資料修復概念-RMAN還原操作-還原優化GUIIDE優化
- Backup And Recovery User's Guide-RMAN資料修復概念-RMAN還原操作-還原failoverGUIIDEAI
- Backup And Recovery User's Guide-備份RMAN備份-用RMAN備份映象拷貝備份GUIIDE