DISCLAIMER: The information and links provided on this site are my personal notes, based on my limited experience installing, using, and deinstalling Oracle databases and application servers on a variety of computers using Windows NT/2000/XP operating systems. The installation and deinstallation procedures found here can cause irreversible loss of data and may damage your operating system. However, you are welcome to use them AT YOUR OWN RISK. I am in no way responsible for data you lose or operating systems you damage or destroy.

Introduction

The following commands will back-up and restore the OracleContext directory of an Oracle Internet Directory. This, in addition to a full export of the metadata repository database, should provide a backup of an OracleAS 10g configuration in case the infrastructure server must be rebuilt (NOTE: The restore procedure has not been tested).

Backup OID

D:\OraHome1\bin>ldifwrite -c asdb -b cn=oraclecontext -f oid_20051005.ldif
This tool can only be executed if you know database user password for OiD
Enter OiD Password ::

Where:
-c = the metadata repository alias in tnsnames.ora
-f = the filename of the backup

The OID password is set during installation to the same password specified for the Oracle Application Server administrator.

Restore OID

ldapaddmt -h host_name -p port_number -v -f backup.ldif

Where:
host_name = the infrasturcture servers fully qualified hostname, e.g. foo.bar.com
port_number = the Oracle Internet Directory port (default=389)
backup.ldif = the filename of the .ldif file created during backup

References

Chapter 11 OracleŽ Internet Directory Administrator's Guide 10g (9.0.4) Part Number B12118-01

[Return to HowTo]