oracle怎么恢复控制文件恢复,Oracle控制文件的恢复(一) Oracle控制文件如何恢复?...

在Oracle数据库环境中,模拟了单个控制文件丢失的场景。通过删除控制文件`control03.ctl`,导致数据库无法启动,并在告警日志中找到错误信息。然后,使用备份的控制文件`control02.ctl`替换丢失的文件,重新启动数据库,完成恢复过程。最终确认控制文件已恢复正常。
摘要由CSDN通过智能技术生成

1、单个文件丢失

场景模拟:[oracle@oracle dbs]$ rm /disk2/lx02/oradata/control03.ctl

[oracle@oracle dbs]$ sqlplus '/as sysdba'

SQL*Plus: Release 10.2.0.1.0 - Production on Mon Aug 1 06:14:54 2011

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

Connected to an idle instance.

06:14:54 SQL> startup

ORACLE instance started.

Total System Global Area  176160768 bytes

Fixed Size                  1218364 bytes

Variable Size              88082628 bytes

Database Buffers           83886080 bytes

Redo Buffers                2973696 bytes

ORA-00205: error in identifying control file, check alert log for more info

通过告警日志获得信息:

ALTER DATABASE   MOUNT

Mon Aug  1 06:14:57 2011

ORA-00202: control file: '/disk2/lx02/oradata/control03.ctl'

ORA-27037: unable to obtain file status

Linux Error: 2: No such file or directory

Additional information: 3

恢复步骤:06:14:57 SQL> shutdown

ORA-01507: database not mounted

ORACLE instance shut down.

06:15:14 SQL> !

[oracle@oracle dbs]$ cp /disk1/lx02/oradata/control02.ctl /disk2/lx02/oradata/control03.ctl

[oracle@oracle dbs]$ sqlplus '/as sysdba'

SQL*Plus: Release 10.2.0.1.0 - Production on Mon Aug 1 06:15:36 2011

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

Connected to an idle instance.

06:15:37 SQL> startup

ORACLE instance started.

Total System Global Area  176160768 bytes

Fixed Size                  1218364 bytes

Variable Size              88082628 bytes

Database Buffers           83886080 bytes

Redo Buffers                2973696 bytes

Database mounted.

Database opened.

06:15:47 SQL> select name from v$controlfile;

NAME

-----------------------------------------------

/u01/app/oracle/oradata/lx02/control01.ctl

/disk1/lx02/oradata/control02.ctl

/disk2/lx02/oradata/control03.ctl

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值