Ldifwrite Hangs or Fails with Error "Error in opening ldiffile" (Doc ID 1159964.1)

Last updated on OCTOBER 13, 2016

Applies to:

Oracle Internet Directory - Version 10.1.2.0.2 to 10.1.4.3 [Release 10gR2 to 10gR3]
Information in this document applies to any platform.

Symptoms

1.ldifwrite command is failing/hanging with below content in ldifwrite.log file.

$OH/ldap/log/ldifwrite.log:


ldifwrite: Release 10.1.2.1.0 - Production on sat jul 24 23:01:29 2010

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

2010/07/24:23:01:42 * Error in opening ldiffile
2010/07/24:23:01:42 * Error in opening ldiffile
2010/07/24:23:01:42 * Error in opening ldiffile
2010/07/24:23:01:42 * Error in opening ldiffile
2010/07/24:23:01:42 * Error in opening ldiffile


2.When ldifwrite command is run with correct oid Password it fails in with last message as below:
$ ldifwrite -c "oidprod" -b "cn=Groups,dc=abc,dc=com" -f /tmp/raj/Groups_prod.ldif
This tool can only be executed if you know database user password for OiD
Enter OiD Password ::

------------------------------------------------------------
Reading entries under BaseDN "cn=groups,dc=abc,dc=com"...
------------------------------------------------------------

Changes

In this case it works if used below command where -f uses a file in same directory instead of
"/tmp/raj/Groups_prod.ldif". This might be due to directory/file permissions.


$ ldifwrite -c "oidprod" -b "cn=Groups,dc=abc,dc=com" -f Groups_prod.ldif

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms