168大数据

标题: ORA-01034、ORA-27101和ORA-28056错误解决方法 [打印本页]

作者: 乔帮主    时间: 2014-8-13 20:33
标题: ORA-01034、ORA-27101和ORA-28056错误解决方法
本帖最后由 乔帮主 于 2014-8-13 20:38 编辑

今天登录数据库的时候遇到了ORA-01034和ORA-27101错误
[Bash shell] 纯文本查看 复制代码
Cocuments and SettingsAdministrator>set ORACLE_SID=STREAM
Cocuments 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错误
[Bash shell] 纯文本查看 复制代码
Cocuments 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日志,日志删除后,问题解决。
[Bash shell] 纯文本查看 复制代码
Cocuments 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
数据库装载完毕。
数据库已经打开。

普通用户也可以登录数据库了
[Bash shell] 纯文本查看 复制代码
Cocuments 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>

问题解决。





欢迎光临 168大数据 (http://www.bi168.cn/) Powered by Discuz! X3.2