当前位置: 首页 > Oracle, oracle 10g, oracle 11g, Windows > 正文

ORA-01034、ORA-27101和ORA-28056错误解决方法

今天登录数据库的时候遇到了ORA-01034和ORA-27101错误

C:Documents and SettingsAdministrator>set ORACLE_SID=STREAM
C:Documents and SettingsAdministrator>SQLPLUS STREAM/STREAM
SQL*Plus: Release 11.2.0.1.0 Production on 星期一 10月 10 22:34:53 2011
Copyright (c) 1982, 2010, Oracle.  All rights reserved.
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
进程 ID: 0
会话 ID: 0 序列号: 0

原因是数据库没有启动成功,共享内存没有分配ORACLE实例资源,利用SYS登录报ORA-28056错误

C:Documents and SettingsAdministrator>sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on 星期一 10月 10 22:39:11 2011
Copyright (c) 1982, 2010, Oracle.  All rights reserved.
ERROR:
ORA-28056: Writing audit records to Windows Event Log failed
ORA-28056: Writing audit records to Windows Event Log failed
请输入用户名:

原来是Windows的日志满啦,系统无法写入新的日志,解决方法是打开Windows的事件管理器,删除里面的日志即可。

右键应用程序、系统等,选择删除所有事件,即可删除Windows日志,日志删除后,问题解决。

C:Documents and SettingsAdministrator>sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on 星期一 10月 10 22:43:52 2011
Copyright (c) 1982, 2010, Oracle.  All rights reserved.
已连接到空闲例程。
QL> startup
ORACLE 例程已经启动。
Total System Global Area  313860096 bytes
Fixed Size                  1374304 bytes
Variable Size             218105760 bytes
Database Buffers           88080384 bytes
Redo Buffers                6299648 bytes
数据库装载完毕。
数据库已经打开。

普通用户也可以登录数据库了

C:Documents and SettingsAdministrator>sqlplus stream/stream
SQL*Plus: Release 11.2.0.1.0 Production on 星期一 10月 10 22:47:32 2011
Copyright (c) 1982, 2010, Oracle.  All rights reserved.
连接到:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 – Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL>

问题解决。

本文固定链接: http://www.dbdream.com.cn/2011/10/ora-01034%e3%80%81ora-27101%e5%92%8cora-28056%e9%94%99%e8%af%af%e8%a7%a3%e5%86%b3%e6%96%b9%e6%b3%95/ | 信春哥,系统稳,闭眼上线不回滚!

该日志由 dbdream 于2011年10月10日发表在 Oracle, oracle 10g, oracle 11g, Windows 分类下, 你可以发表评论,并在保留原文地址及作者的情况下引用到你的网站或博客。
原创文章转载请注明: ORA-01034、ORA-27101和ORA-28056错误解决方法 | 信春哥,系统稳,闭眼上线不回滚!
关键字:

ORA-01034、ORA-27101和ORA-28056错误解决方法:等您坐沙发呢!

发表评论

快捷键:Ctrl+Enter