免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1822 | 回复: 4
打印 上一主题 下一主题

急!多功controlfile后无法打开数据库 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-03-23 22:23 |只看该作者 |倒序浏览
sqlplusw /nolog
conn sys/admin as sysdba
增加一个control04.ctl文件
alter system set control_files=
'c:\oracle\oradata\myoracle\control01.ctl','c:\oracle\oradata\myoracle\control02.ctl',
'c:\oracle\oradata\myoracle\control03.ctl','c:\oracle\oradata\myoracle\control04.ctl'
scope=spfile;

shutdown immediate

到os中建设control04.ctl
重新starup
select  * from v$controlfile;
可得到4个文件


但重启计算机后数据库可mount 但无法打开

会出现 要打开数据库必须使用resetlogs或norestlogs选项。

论坛徽章:
0
2 [报告]
发表于 2006-03-24 01:22 |只看该作者
我想大概是controfile的时间和datafile的时间有差异。
1) backup all your current controfiles to somewhere.
2)  compare the timestamp of controfiles and datafiles like system01.dbf.
3)  use only the controfiles that have the same timestamp as the datafiles. If necessary, overwrite controfiles whose timestamp are different from that of datafiles with the correct controfiles.
4) try to start db. If db still can not start, BACKUP all your controfiles before do something else.

HTH

John

论坛徽章:
0
3 [报告]
发表于 2006-03-24 09:41 |只看该作者
你怎么重新建立的ctl

论坛徽章:
0
4 [报告]
发表于 2006-03-24 12:04 |只看该作者
LZ做的不对,应该这样
shutdown
cp file in OS
startup nomount
alter system ... (add control file)
alter database open

that's OK

论坛徽章:
0
5 [报告]
发表于 2006-03-25 08:19 |只看该作者
搞错顺序了
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP