My Oracle Support Banner

ODSEE - Database Corruption With Error - " libdb: file <DB_NAME>_id2entry.db3 has LSN ... past end of log ..." and "ERROR "Failed to start databases, err=22 Invalid argument" (Doc ID 1584864.1)

Last updated on OCTOBER 28, 2019

Applies to:

Oracle Directory Server Enterprise Edition - Version 11.1.1.5.0 and later
Information in this document applies to any platform.

Symptoms


11g DS fails to restart after unscheduled restart.


During system patching exercise, the server was rebooted without stopping DS instances. The transaction log in the /tmp directory was wiped out due to reboot.


Please check the errors when trying to start instance -

Waiting for Directory Server instance '/<DS_INSTALL>/<DS_INSTANCE>' to start...
Directory Server instance '/<DS_INSTALL>/<DS_INSTANCE>' has detected a disorderly shutdown or a change in cache size
Recovery phase is starting, this may take a while...
Waiting for Directory Server instance '/<DS_INSTALL>/<DS_INSTANCE>' to start...
Waiting for Directory Server instance '/<DS_INSTALL>/<DS_INSTANCE>' to start...
Waiting for Directory Server instance '/<DS_INSTALL>/<DS_INSTANCE>' to start...
Failed to start Directory Server instance '/<DS_INSTALL>/<DS_INSTANCE>'
ns-slapd wrote the following lines in the error log (/<DS_INSTALL>/<DS_INSTANCE>/logs/errors):
##[11/Sep/2013:21:55:07 +0000] - Sun-Directory-Server/11.1.1.5.0 B2011.0517.2158 (64-bit) starting up
##[11/Sep/2013:21:55:08 +0000] - WARNING - Backend Database - conn=xx op=-1 msgId=-1 - Detected Disorderly Shutdown last time Directory Server was running, recovering database.
##[11/Sep/2013:21:55:45 +0000] - Database recovery is 100% complete.
##[11/Sep/2013:21:55:47 +0000] - DEBUG - conn=xx op=-1 msgId=-1 - libdb: file <DB_NAME>_id2entry.db3 has LSN 15728/1859964, past end of log at 1/28
##[11/Sep/2013:21:55:47 +0000] - DEBUG - conn=xx op=-1 msgId=-1 - libdb: Commonly caused by moving a database from one database environment
##[11/Sep/2013:21:55:47 +0000] - DEBUG - conn=xx op=-1 msgId=-1 - libdb: to another without clearing the database LSNs, or by removing all of
##[11/Sep/2013:21:55:47 +0000] - DEBUG - conn=xx op=-1 msgId=-1 - libdb: the log files from a database environment
##[11/Sep/2013:21:55:47 +0000] - DEBUG - conn=xx op=-1 msgId=-1 - libdb: /<DS_INSTALL>/<DS_INSTANCE>/db/<DB_NAME>/<DB_NAME>_id2entry.db3: unexpected file type or format
##[11/Sep/2013:21:55:47 +0000] - WARNING - Backend Database - conn=xx op=-1 msgId=-1 - db->open("<DB_NAME>_id2entry.db3") failed Invalid argument (22)
##[11/Sep/2013:21:55:47 +0000] - ERROR - Backend Database - conn=xx op=-1 msgId=-1 - start: Failed to start databases, err=22 Invalid argument
##[11/Sep/2013:21:55:47 +0000] - ERROR - plugin_dependency_startall - conn=xx op=-1 msgId=-1 - Configuration error Failed to start database plugin ldbm database
##[11/Sep/2013:21:55:47 +0000] - ERROR - Resource Limit - conn=xx op=-1 msgId=-1 - nsLookThroughLimit: parameter error (slapi_reslimit_register() already registered)
##[11/Sep/2013:21:55:47 +0000] - ERROR - Backend Database - conn=xx op=-1 msgId=-1 - start: Resource limit registration failed
##[11/Sep/2013:21:55:47 +0000] - ERROR - plugin_dependency_startall - conn=xx op=-1 msgId=-1 - Configuration error Failed to start database plugin ldbm database
##[11/Sep/2013:21:55:47 +0000] - ERROR - plugin_dependency_startall - conn=xx op=-1 msgId=-1 - Configuration error Error: Failed to resolve plugin dependencies
##[11/Sep/2013:21:55:47 +0000] - ERROR - plugin_dependency_startall - conn=xx op=-1 msgId=-1 - Configuration error Failed to start accesscontrol plugin ACL Plugin
##[11/Sep/2013:21:55:47 +0000] - ERROR - plugin_dependency_startall - conn=xx op=-1 msgId=-1 - Configuration error Failed to start preoperation plugin ACL preoperation
##[11/Sep/2013:21:55:47 +0000] - ERROR - plugin_dependency_startall - conn=xx op=-1 msgId=-1 - Configuration error Failed to start postoperation plugin Class of Service
##[11/Sep/2013:21:55:47 +0000] - ERROR - plugin_dependency_startall - conn=xx op=-1 msgId=-1 - Configuration error Failed to start object plugin gle
##[11/Sep/2013:21:55:47 +0000] - ERROR - plugin_dependency_startall - conn=xx op=-1 msgId=-1 - Configuration error Failed to start database plugin ldbm database

 

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.