Oracle 11g启动报ORA-28056、OS 1502错误

C:\>sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on 星期四 9月 13 22:49:08 2012

Copyright (c) 1982, 2010, Oracle.  All rights reserved.

ERROR:
ORA-28056: Writing audit records to Windows Event Log failed
OSD-159172279: Message 159172279 not found;  product=RDBMS; facility=SOSD
O/S-Error: (OS 1502) ??????????????????
ORA-28056: Writing audit records to Windows Event Log failed
OSD-159172279: Message 159172279 not found;  product=RDBMS; facility=SOSD
O/S-Error: (OS 1502) ??????????????????

今天在启动测试服务器时,没有太多的留意直接通过业务程序登录,但怎么也无法登录。我在登录服务器尝试SQLPLUS时,系统提示以上的错误信息。

只见提示反馈信息是“Writing audit records to windows event log failed",直觉反映应该是应用日志写满了。


通过系统命令检查OS 1502错误,确认日志已满的事宜:

C:\>net helpmsg 1502

事件日志文件已满。

解决方法:

将 应用日志 清空即可解决问题。

官方解释:

Subject: Connect As Sysdba Fails With ORA-28056
  Doc ID: 784068.1 Type:  PROBLEM
  Modified Date:  20-MAR-2009 Status:  MODERATED

Applies to:
Oracle Server - Personal Edition - Version: 11.1.0.6 to 11.1.0.7
This problem can occur on any platform.

Symptoms

connect as sysdba fails with:
ORA-28056: Writing audit records to Windows Event Log failed.

Cause
Event Viewer log is full and not able to log anymore events.

Justified by unpublished Bug.6823281 ORA-28056 WRITING AUDIT RECORDS TO WINDOWS EVENT LOG FAILED

which was closed as not a bug.

Solution
Try doing the following using Event Viewer:
.
To open Event Viewer, click Start, click Control Panel,
click Performance and Maintenance, click Administrative Tools,
and then double-click Event Viewer.
.
You must be logged on as an administrator or a member of the
Administrators group to free an event log.
.
1) When a log is full, it stops recording new events. Clearing the log
is one way to free the log and start recording new events.
.
2) You can also free a log and start recording new events by overwriting
old events. To overwrite events, on the Action menu, click Properties,
and then click Overwrite events as needed. This ensures that all new
events are written to the log, even when the log is full.
.
3) You can also start logging new events by increasing the maximum
log size. To increase the log size, on the Action menu, click Properties,
and then increase the Maximum log size.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
近期出现的一个问题是,当使用Oracle 11g进行连接到Oracle 19c数据库时,会出现ORA-28040错误消息。这个错误通常发生在将新版数据库迁移到旧版数据库的过程中,根据Oracle支持文档,这个错误是由于Oracle 19c的密码安全增强特性导致的。 Oracle 19c在默认情况下启用了一个新的密码安全特性:标识管理器。这个特性使用了高级算法和密码保护技术,以提高密码安全性。在使用此特性的情况下,Oracle 19c将拒绝使用不安全的经典密码进行身份验证,并只允许使用已启用标识管理器的用户进行连接,而Oracle 11g没有这个特性。 要解决ORA-28040错误,需要在Oracle 19c中创建一个经典密码,并将其设置为可以用于连接到Oracle 11g的用户。创建经典密码的步骤如下: 1. 使用SYS用户或其他具有管理权限的用户登录到Oracle 19c数据库。 2. 执行以下命令,启用经典密码模式: ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED PASSWORD_GRACE_TIME UNLIMITED PASSWORD_REUSE_MAX UNLIMITED PASSWORD_REUSE_TIME UNLIMITED PASSWORD_LOCK_TIME 1/24 PASSWORD_VERIFY_FUNCTION null; 3. 为在Oracle 11g中进行连接的用户创建经典密码。可以使用以下命令创建一个名为TEST的用户,并为该用户设置一个经典密码: CREATE USER TEST IDENTIFIED BY test_password; 4. 将用户的默认配置文件更改为启用经典密码: ALTER USER TEST PROFILE DEFAULT; 创建一个经典密码后,可以使用该密码从Oracle 11g连接到Oracle 19c。要使用创建的经典密码进行连接,请确保已使用用户ID和密码连接到数据库,如下所示: SQLPLUS USERNAME/PASSWORD@//HOST:PORT/SERVICE 因此,要解决ORA-28040错误,需要在Oracle 19c中创建一个经典密码,并将其设置为可以用于连接到Oracle 11g的用户。这将确保Oracle 11g用户可以连接到Oracle 19c,并且不会收到ORA-28040错误消息。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值