20070928 backing up and restoring oracle internet directory - plembo/onemoretech GitHub Wiki
title: Backing up and restoring Oracle Internet Directory link: https://onemoretech.wordpress.com/2007/09/28/backing-up-and-restoring-oracle-internet-directory/ author: lembobro description: post_id: 629 created: 2007/09/28 14:20:20 created_gmt: 2007/09/28 14:20:20 comment_status: open post_name: backing-up-and-restoring-oracle-internet-directory status: publish post_type: post
Backing up and restoring Oracle Internet Directory
If you need to do a quick backup of Oracle Internet Directory (OID) for later restore in a “crisis”, here’s a recipe.
First use ldifwrite to grab your data off OID. You can get everything, or just grab a piece. For my purposes it’s always the default realm that I’m interested in restoring, so here’s my syntax”
`
ldifwrite connect=testinf basedn=dc=company,dc=com ldiffile=testoid.ldif
`
Use bulkdelete to clean out this realm prior to restore (shutdown all OID processes before doing this, just to make sure nothing bad happens — I use opmnctl stopproc ias-component=OID
).
`
bulkdelete connect=testinf basedn=dc=company,dc=com
`
If you did start OID at this point you’ll find everything down to “dc=com” there, but “dc=company” will be completely gone.
Finally, use bulkload to restore your data. If OID is still up, bring it down gracefully with opmnctl stopproc
, etc.
`
bulkload connect=testinf generate=true load=true restore=true
file=testoid.ldif
`
Now start OID up, using opmnctl startproc ias-component=OID
. Your realm should be fully restored.
Copyright 2004-2019 Phil Lembo