【RMAN】使用恢復目錄catalog備份目標資料庫的演示
1.連線到目標資料庫
ora10g@testdb /home/oracle$ rman target /
Recovery Manager: Release 10.2.0.1.0 - Production on Tue Jul 28 16:16:29 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
connected to target database: ORA10G (DBID=4010369505)
2.連線到恢復目錄
RMAN> connect catalog rman_catalog/hsw@secooler
connected to recovery catalog database
3.以備份控制檔案演示一下備份的過程
RMAN> backup current controlfile;
Starting backup at 2009-07-28 16:17:46
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=134 devtype=DISK
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
including current control file in backupset
channel ORA_DISK_1: starting piece 1 at 2009-07-28 16:17:47
channel ORA_DISK_1: finished piece 1 at 2009-07-28 16:17:48
piece handle=/oracle/app/oracle/flash_recovery_area/ORA10G/backupset/2009_07_28/o1_mf_ncnnf_TAG20090728T161747_56xf1cz4_.bkp tag=TAG20090728T161747 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
Finished backup at 2009-07-28 16:17:48
RMAN>
4.發現了吧,沒有出現“using target database control file instead of recovery catalog”的提示資訊,因為我們使用的是恢復目錄進行備份的嘛。
--------------------------------------------------------------------------
5.最後演示一下取消註冊到恢復目錄的效果
ora10g@testdb /home/oracle$ rman target /
Recovery Manager: Release 10.2.0.1.0 - Production on Tue Jul 28 16:23:28 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
connected to target database: ORA10G (DBID=4010369505)
RMAN> connect catalog rman_catalog/hsw@secooler
connected to recovery catalog database
RMAN> unregister database;
database name is "ORA10G" and DBID is 4010369505
Do you really want to unregister the database (enter YES or NO)? y
database unregistered from the recovery catalog
RMAN> exit
Recovery Manager complete.
ora10g@testdb /home/oracle$
ora10g@testdb /home/oracle$ rman target /
Recovery Manager: Release 10.2.0.1.0 - Production on Tue Jul 28 16:24:06 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
connected to target database: ORA10G (DBID=4010369505)
RMAN> backup current controlfile;
Starting backup at 2009-07-28 16:24:15
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=137 devtype=DISK
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
including current control file in backupset
channel ORA_DISK_1: starting piece 1 at 2009-07-28 16:24:17
channel ORA_DISK_1: finished piece 1 at 2009-07-28 16:24:18
piece handle=/oracle/app/oracle/flash_recovery_area/ORA10G/backupset/2009_07_28/o1_mf_ncnnf_TAG20090728T162416_56xffk2q_.bkp tag=TAG20090728T162416 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:02
Finished backup at 2009-07-28 16:24:18
RMAN>
-- The End --
ora10g@testdb /home/oracle$ rman target /
Recovery Manager: Release 10.2.0.1.0 - Production on Tue Jul 28 16:16:29 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
connected to target database: ORA10G (DBID=4010369505)
2.連線到恢復目錄
RMAN> connect catalog rman_catalog/hsw@secooler
connected to recovery catalog database
3.以備份控制檔案演示一下備份的過程
RMAN> backup current controlfile;
Starting backup at 2009-07-28 16:17:46
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=134 devtype=DISK
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
including current control file in backupset
channel ORA_DISK_1: starting piece 1 at 2009-07-28 16:17:47
channel ORA_DISK_1: finished piece 1 at 2009-07-28 16:17:48
piece handle=/oracle/app/oracle/flash_recovery_area/ORA10G/backupset/2009_07_28/o1_mf_ncnnf_TAG20090728T161747_56xf1cz4_.bkp tag=TAG20090728T161747 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
Finished backup at 2009-07-28 16:17:48
RMAN>
4.發現了吧,沒有出現“using target database control file instead of recovery catalog”的提示資訊,因為我們使用的是恢復目錄進行備份的嘛。
--------------------------------------------------------------------------
5.最後演示一下取消註冊到恢復目錄的效果
ora10g@testdb /home/oracle$ rman target /
Recovery Manager: Release 10.2.0.1.0 - Production on Tue Jul 28 16:23:28 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
connected to target database: ORA10G (DBID=4010369505)
RMAN> connect catalog rman_catalog/hsw@secooler
connected to recovery catalog database
RMAN> unregister database;
database name is "ORA10G" and DBID is 4010369505
Do you really want to unregister the database (enter YES or NO)? y
database unregistered from the recovery catalog
RMAN> exit
Recovery Manager complete.
ora10g@testdb /home/oracle$
ora10g@testdb /home/oracle$ rman target /
Recovery Manager: Release 10.2.0.1.0 - Production on Tue Jul 28 16:24:06 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
connected to target database: ORA10G (DBID=4010369505)
RMAN> backup current controlfile;
Starting backup at 2009-07-28 16:24:15
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=137 devtype=DISK
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
including current control file in backupset
channel ORA_DISK_1: starting piece 1 at 2009-07-28 16:24:17
channel ORA_DISK_1: finished piece 1 at 2009-07-28 16:24:18
piece handle=/oracle/app/oracle/flash_recovery_area/ORA10G/backupset/2009_07_28/o1_mf_ncnnf_TAG20090728T162416_56xffk2q_.bkp tag=TAG20090728T162416 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:02
Finished backup at 2009-07-28 16:24:18
RMAN>
-- The End --
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/519536/viewspace-610650/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【備份恢復】RMAN catalog 恢復目錄資料庫資料庫
- 【備份恢復】之RMAN 恢復目錄庫(客戶端備份資訊註冊到目標庫恢復目錄中)客戶端
- 使用RMAN恢復目錄(catalog)解析
- 恢復目錄資料庫(Recovery Catalog)作用及演示例項資料庫
- 恢復目錄資料庫備份指令碼資料庫指令碼
- 建立恢復目錄catalog並註冊目標庫
- RMAN恢復目錄資料庫的搭建資料庫
- rman不使用恢復目錄恢復資料庫示例及問題資料庫
- RMAN說,我能備份(12)--RMAN中的恢復目錄和備份優化優化
- 中小型資料庫 RMAN CATALOG 備份恢復方案(二)資料庫
- 中小型資料庫 RMAN CATALOG 備份恢復方案(一)資料庫
- 【RMAN】資料庫到恢復目錄的註冊過程資料庫
- 透過搭建恢復目錄實現RMAN異地備份和恢復
- RMAN備份 建立catalog資料庫資料庫
- Oracle 備份恢復篇之RMAN catalogOracle
- 生產庫的恢復目錄被RMAN恢復出來的資料庫庫使用後出現的問題資料庫
- RMAN-在恢復目錄中註冊和取消資料庫資料庫
- rman資料庫全庫備份與恢復資料庫
- 玩轉恢復目錄資料庫(一)資料庫
- 玩轉恢復目錄資料庫(二)資料庫
- 玩轉恢復目錄資料庫(四)資料庫
- 使用RMAN恢復一個資料庫到另一個目錄結構不同的資料庫中資料庫
- RMAN備份恢復——RAC環境資料庫的備份(zt)資料庫
- RMAN備份恢復--RAC環境資料庫的備份(十)資料庫
- RMAN備份恢復——RAC環境資料庫的備份(一)資料庫
- RMAN備份恢復典型案例——資料庫卡頓資料庫
- 非RMAN熱備份資料庫和恢復資料庫
- Oracle資料庫備份與恢復之RMANOracle資料庫
- 【備份恢復】從備份恢復資料庫資料庫
- ORACLE RMAN異機異目錄恢復Oracle
- rman之建立恢復目錄筆記筆記
- rman備份恢復-rman恢復資料檔案測試
- 【備份恢復】noarchive模式下使用增量備份恢復資料庫Hive模式資料庫
- rman恢復資料庫--用備份的控制檔案資料庫
- 將linux資料庫用rman備份到遠端win共享目錄Linux資料庫
- Oracle 10g使用RMAN恢復目錄筆記Oracle 10g筆記
- RMAN備份恢復——備份到帶庫的效能
- 只存在RMAN備份片的資料庫恢復過程資料庫