recreate control

when using script. to recreate control ,step as follow
CREATE CONTROLFILE
   SET DATABASE testorcl
   LOGFILE GROUP 1 'F:\APP\ADMINISTRATOR\ORADATA\TESTORCL\REDO03.LOG' size 50m,                    
           GROUP 2 'F:\APP\ADMINISTRATOR\ORADATA\TESTORCL\REDO02.LOG' size 50m,
           GROUP 3 'F:\APP\ADMINISTRATOR\ORADATA\TESTORCL\REDO01.LOG' size 50m                    
           datafile 'F:/app/Administrator/oradata/testorcl/system01.dbf',
            'F:/app/Administrator/oradata/testorcl/sysaux01.dbf',
--            'F:/app/Administrator/oradata/testorcl/temp01.dbf',
            'F:/app/Administrator/oradata/testorcl/undotbs01.dbf',
            'F:/app/Administrator/oradata/testorcl/users01.dbf'
            resetlogs
   MAXLOGFILES 50
   MAXLOGMEMBERS 3
   MAXLOGHISTORY 400
   MAXDATAFILES 300
   MAXINSTANCES 6
   ARCHIVELOG;

1.shutdown database
   shutdown immediate
   delete all the controlfiles

2. startup the instance to nomount
    startup nomount

3. exe the script. below

4. open the database resetlogs
alter database open resetlogs;

at this time all the configure of rman shlould reconfig
and nothing in both view V$RMAN_BACKUP_JOB_DETAILS and V$RMAN_BACKUP_SUBJOB_DETAILS
but you can catalog the backup piece using following step

catalog recovery area; when your database is using recovery area to manage all the backups

catalog "PATH of YOU backup PIECE"; when your database is using other path you define,bu recovery area.

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/9482301/viewspace-759629/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/9482301/viewspace-759629/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值