在歸檔模式下的Rman全恢復
在歸檔模式下的Rman全恢復cmd
$>rman target nocatelog
RMAN> run{allocate channel c1 type disk;
CONFIGURE CONTROLFILE AUTOBACKUP ON; #備份
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO 'G:\ctrl_%F';
backup database format 'G:\orcl_%U';
sql 'alter system archive log current';
release channel c1;}
==
修改數據
sql>shutdown immediate
==
$>rman target nocatelog
rman>startup mount; --必須啟動到mount
rman>restore database;
rman>recover database;
rman>run {sql'alter database open';} 如果在非歸檔的模式下:
run {sql'alter database open resetlogs';} 并且修改的數據找不回來。
posted on 2009-12-01 14:53 gdufo 閱讀(557) 評論(0) 編輯 收藏 所屬分類: Database (oracle, sqlser,MYSQL)