waterye

          RMAN備份

          增量備份
          RMAN> backup incremental level 0 as compressed backupset database format='d:\backup\%d_%s_%p.bak'-- 相當于full backup

          RMAN
          > backup incremental level 1 as compressed backupset database format='d:\backup\%d_%s_%p.bak'

          RMAN
          > backup incremental level 2 as compressed backupset database format='d:\backup\%d_%s_%p.bak';

          RMAN>
          backup incremental level 2 cumulative as compressed backupset database format='d:\backup\%d_%s_%p.bak'-- 累積備份

          備份表空間
          RMAN> backup as compressed backupset tablespace users format='d:\backup\%d_%s_%p.dbf';

          備份口令文件
          host copy d:\ora10g\database\pwdtestdb.ora d:\backup

          備份spfile
          RMAN> backup spfile format='d:\backup\%d_%s_%p.bak';

          全庫備份時配置部分表空間不備份
          RMAN> configure exclude for tablespace users; -- 配置不備份的表空間

          RMAN
          > configure exclude for tablespace users clear; -- 取消不備份的表空間

          移動備份集的注意事項:
          1. 移走備份路徑前, 將backupset設為unavailable
          RMAN> change backupset id unavailable;
          2. 移回備份路徑后, 將backupset設為available
          RMAN> change backupset id available;
          原因: 在crosscheck backup時,不會將移走的backupset設為expired

          在NOARCHIVELOG下, 備份必須在mount狀態下進行

          posted on 2005-10-20 22:01 waterye 閱讀(487) 評論(0)  編輯  收藏 所屬分類: oracle

          主站蜘蛛池模板: 德令哈市| 呼伦贝尔市| 天门市| 郎溪县| 平乡县| 开封市| 台南市| 滨海县| 邵武市| 开平市| 桐柏县| 平远县| 东莞市| 龙胜| 巴林左旗| 连云港市| 木兰县| 滕州市| 鲜城| 特克斯县| 西城区| 汉源县| 方城县| 马边| 东莞市| 绥芬河市| 博客| 会昌县| 敦煌市| 左权县| 中山市| 图木舒克市| 九江市| 兰州市| 怀远县| 胶南市| 秭归县| 威远县| 金堂县| 剑川县| 西畴县|