---
title: "ORA-01034、ORA-27101和ORA-28056错误解决方法"
author: "streamsong"
date: "2011-10-11T00:40:22Z"
tags: []
categories: ["数据库"]
slug: "ora-01034-ora-27101-ora-28056"
draft: false
lastmod: "2011-10-11T00:40:22Z"
id: 1189190
url: "https://streamsong.iteye.com/blog/1189190"
---

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

C:\\Documents and Settings\\Administrator&gt;set ORACLE\_SID=STREAM

C:\\Documents and Settings\\Administrator&gt;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 Settings\\Administrator&gt;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 Settings\\Administrator&gt;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&gt; 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 Settings\\Administrator&gt;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&gt;

问题解决。