RMAN 登入方式
? ? rman target /
? ? rman target / nocatalog
? ? rman target / catalog weisi_catalog/weisi_catalog@weisi
? ? rman target / cmdfile=/home/oracle/weisi/shell/rman.txt log=/home/oracle/weisi/shell/rman.log
? ? rman target / catalog weisi_catalog/weisi_catalog@weisi cmdfile=/home/oracle/weisi/shell/rman.txt log=/home/oracle/weisi/shell/rman.log
? ? cmdfile=/home/oracle/weisi/shell/rman.txt
? ? ? ? ? ? run
? ? ? ? ? ? {allocate channel weisi_1 type disk;
? ? ? ? ? ? ? backup tablespace users;
? ? ? ? ? ? ? release channel weisi_1;
? ? ? ? ? ? ? }
? ? ? ? ? ? ? list bakup;
1:使用恢復(fù)目錄
? 1)創(chuàng)建恢復(fù)目錄
? ? 1.1恢復(fù)目錄數(shù)據(jù)庫(kù)
? ? 1.2創(chuàng)建恢復(fù)目錄用戶
? ? ? ? create tablespace weisi_catalog datafile '/opt/oracle/oradata/ORCL/weisi_catalog_01.dbf' size 100M;
? ? ? create user weisi_catalog identified by weisi_catalog default tablespace weisi_catalog;
? ? 1.3給恢復(fù)目錄用戶賦予角色權(quán)限
? ? ? ? grant recovery_catalog_owner to weisi_catalog;
? ? ? ? grant resource,connect to weisi_catalog;
? ? 1.4創(chuàng)建恢復(fù)目錄
? ? ? ? rman target /
? ? ? ? RMAN> connect catalog weisi_catalog/weisi_catalog@weisi
? ? ? ? rman>create catalog;
? ? 1.5在恢復(fù)目錄中注冊(cè)數(shù)據(jù)庫(kù)
? ? ? ? rman> register database;
? ? 1.6
? ? ? ? ? ? run
? ? ? ? ? ? {allocate channel wzx_1 type disk;
? ? ? ? ? ? ? backup tablespace users;
? ? ? ? ? ? ? }