oracle 之catalog 學習
maintenance
register
resynchronize
reset
change/delete/catalog
backup/restore/recover
creating recovery catalog
1 create tablespace
create tablespace cata datafile '/u01/oradata/qilin/catalog_01.dbf' size 1024m
segment space management auto exten management local uniform;
2 create catalog owner
create user cata identified by cata default tablespace cata
quota unlimited on cata;
3 grant privileges
grant connect,resource to cata;
grant recovery_catalog_owner to cata;
4 create catalog
A rman catalog cata/cata@pitts
B desc user_objects;
C col object_name format a30;
select object_name,object_type from user_objects;
D create catalog tablespace cata;
5 connect to target database
A rman target sys/qilin@target
B connect catalog cata/cata@pitts
6 register target database
register database;
list incarnation;
7 rman target sys/qilin@test catalog cata/cata@pitts
8 control_file_record_keep_time
9 resync catalog
report schema
list incarnation;
rest database to incarnation 11;(target database must startup mount)
restore database /recover database
10 SCRIPT
11 creating local/global stored scripts
12 converting stored scripts to files
A print script. delete_arc_logs to file 'c:\tools\delete_arc_logs.rman';
B create script. delete_arc_logs from file 'c:\tools\delete_arc_logs.rman';
C relace script. delete_arc_logs from file 'c:\tools\delete_arc_logs.rman';
13 configure retention policy to recovery window of 7 days
configure retention policy to redundancy 2
14 crosscheck backupset;
crosscheck of tablespace users;
crosscheck backupset of database;
obsolete---->policy ; delete obsolete
expired----->delete disk; delete expired
delete noprompt(not sure) expired backup of tablespace users;
15 change backupset 49 unavailable;
list backup;
change backupset 49 available;
16 exempt(no policy)
change backupset 123 keep forever nologs
change datafilecopy '/db01/backup/users01.dbf' keep until 'sysdate+60';
change backupset tag year_end_2010 nokeep;
17 catalog start with '/u01/app/oracle/backup' noprompt;
change datafilecopy '/db01/backup/users01.dbf' uncatalog;
change backuppiece 51 uncatalog;
catalog backuppiece '/u01/backup/md_1hlqk281_1_1';
list backup;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/20976446/viewspace-681020/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 揭秘ORACLE備份之----RMAN之五(CATALOG)Oracle
- RMAN Catalog 學習與測試
- 揭祕ORACLE備份之----RMAN之五(CATALOG)Oracle
- Oracle 備份恢復篇之RMAN catalogOracle
- oracle rman catalogOracle
- Oracle RMAN練習繼續,簡單涉及CatalogOracle
- oracle之awr學習筆記Oracle筆記
- RMAN學習筆記_Catalog 安裝與御載筆記
- Oracle之PL/SQL基礎學習OracleSQL
- 【Oracle】rman upgrade catalogOracle
- upgrade oracle rman catalogOracle
- 【學習日記】ORACLE之段區塊Oracle
- 【BUFFER】Oracle buffer cache之 latch 學習記錄Oracle
- Oracle學習筆記整理之遊標篇Oracle筆記
- Oracle之PL/SQL基礎學習之二OracleSQL
- Oracle學習Oracle
- 前端學習之Bootstrap學習前端boot
- 學而習之,成就學習
- 全面學習oracle flashback特性(2.1)--Flashback Table之RECYCLEBINOracle
- oracle學習一二Oracle
- oracle學習指南Oracle
- oracle學習列表Oracle
- Oracle Datapump 學習Oracle
- Oracle Profile學習Oracle
- 《學習Oracle從這裡開始》之常用SQL篇OracleSQL
- (轉)Oracle動態效能檢視學習之v$processOracle
- Oracle動態效能檢視學習之 V$ROLLSTAT -- 轉Oracle
- 【聽海日誌】之ORACLE遞迴查詢學習Oracle遞迴
- Catalog backuppiece ( regsiter a backup piece to the catalog )
- Oracle 19C DELETE_CATALOG_ROLE角色Oracledelete
- oracle實驗記錄 (恢復-rman catalog)Oracle
- ORACLE學習之九 Oracle 字符集的檢視和修改 (轉帖)Oracle
- oracle 學習筆記 (ORACLE NET )Oracle筆記
- MySQL入門學習之——mysql與oracle死鎖對比MySqlOracle
- 全面學習oracle flashback特性(2.3)--Flashback Table之注意事項Oracle
- 全面學習oracle flashback特性(1.2)--閃回查詢之As of scnOracle
- Oracle動態效能檢視學習之v$sqltext & v$sqlareaOracleSQL
- Oracle學習路線Oracle