我本机安装的数据库版本是ORACLE 11g,今天连接数据库时,报如下错误:
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\spfileoral.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 例程已经启动。
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\spfileoral.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 例程已经启动。