Oracle问题集 之 ORA-01261: Parameter db_recovery_file_dest destination string cannot

本文介绍了解决Oracle数据库启动时出现ORA-01034及ORA-27101错误的方法。通过检查ORADIM.LOG文件定位问题,并修改sPfile文件中无效的db_recovery_file_dest路径。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

[size=medium]我本机安装的数据库版本是ORACLE 10G R2,今天连接数据库时,报如下错误:
ORA-01034 - Oracle not available
ORA-27101 - shared memory realm does not exist

经过总结,使用如下方法解决比较好:
1、首先看一下ORACLE_HOME\DATABASE 下面的 ORADIM.LOG 文件
D:\oracle\database;
看日志才发现原来报的下面的错误:
Thu May 01 11:28:23 2014
D:\oracle\bin\oradim.exe -shutdown -sid raul -usrpwd * -shutmode immediate -log oradim.log
Thu May 01 11:28:24 2014
ORA-01012: not logged on

Thu May 01 11:28:27 2014
D:\oracle\bin\oradim.exe -startup -sid raul -usrpwd * -log oradim.log -nocheck 0
Thu May 01 11:28:27 2014
ORA-01261: Parameter db_recovery_file_dest destination string cannot be translated
ORA-01263: Name given for file destination directory is invalid
OSD-04018: ??????????????????????????
O/S-Error: (OS 2) ??????????????????????

其实是sPfile文件中一个路径db_recovery_file_dest找不到导致的。于是找到这个 sPfile 文件看看它里面是怎么写的。我的文件路径是:D:\oracle\dbs\SPFILERAUL.ORA

*.audit_file_dest='D:/admin/raul/adump'
*.background_dump_dest='D:/admin/raul/bdump'
*.compatible='10.2.0.1.0'
*.control_files='D:\oracle\oradata\raul\control01.ctl','D:\oracle\oradata\raul\control02.ctl','D:\oracle\oradata\raul\control03.ctl'
*.core_dump_dest='D:/admin/raul/cdump'
*.db_block_size=8192
*.db_domain='com'
*.db_file_multiblock_read_count=16
*.db_name='raul'
*.db_recovery_file_dest='D:/flash_recovery_area'
*.db_recovery_file_dest_size=2147483648
*.dispatchers='(PROTOCOL=TCP) (SERVICE=raulXDB)'
*.job_queue_processes=10
*.open_cursors=300
*.pga_aggregate_target=202375168
*.processes=150
*.remote_login_passwordfile='EXCLUSIVE'

指定目录没有找到,所以新建了一个flash_recovery_area文件夹后再启动数据库实例就没问题了。
SQL> startup
ORACLE 例程已经启动。

http://www.360doc.com/content/14/0110/14/982782_344109357.shtml
http://www.cnblogs.com/william-lee/archive/2012/01/12/2320312.html[/size]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值