My Oracle Support Banner

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

Last updated on AUGUST 08, 2022

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 "<TNS_ALIAS>" -b "cn=Groups,dc=<COMPANY NAME>,dc=com" -f /tmp/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=<COMPANY NAME>,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 "<TNS_ALIAS> -b "cn=Groups,dc=<COMPANY NAME>,dc=com" -f Groups_prod.ldif

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.