45.1 Configuring OAM Snapshot Tool when the DB is on a Different Infrastructure
The OAM Snapshot Tool assumes that the database binaries are available on the same infrastructure from where the scripts are being run.
If your database binaries are on a different infrastructure, you must also
install the database binaries on the source and the target infrastructures where the
The
following steps provide instructions for the script files to work correctly:
createSnapShot.sh and the applySnapshot.sh
scripts are required to be run. After the DB installation, update the scripts and the
properties file to point to the DB_HOME.
Note:
The binaries are required only to invoke the scripts, and has no direct co-relation with the DB Connect String.- Download the required versions of the database installation files.
Note:
If your database version is 12.2 or higher, you can use Instant Clients. If you are on any other database version, use the full client.- For Full Client, download the installation files from Oracle Database Software Downloads.
- For Instant Client, download the
Basic,SQL*Plus, and theToolsInstant Client Packages from Instant Client for Linux x86-64 (64-bit) site. For example, download instantclient-basic-linux.x64-12.2.0.1.0.zip, instantclient-sqlplus-linux.x64-12.2.0.2.0.zip, and instantclient-tools-linux.x64-12.2.0.1.0.zip.
- Install the database binaries on the source and the target Infrastructures where
the scripts need to run.
- For Full Client instructions, navigate to Oracle Database Software
Downloads and under Note click See All against
the version of the database that you need to install. A new page is
displayed containing the link to the Installation guides.
After installation, skip to Step 5.
- For Instant Client, unzip the downloaded files to a directory, for
example,
/usr/local/oracle/dbclient.Unzipping the files creates a new folder under the specified directory, for example,
/usr/local/oracle/dbclient/instantclient_12_2
- For Full Client instructions, navigate to Oracle Database Software
Downloads and under Note click See All against
the version of the database that you need to install. A new page is
displayed containing the link to the Installation guides.
- Create two folders
binandlibunder/usr/local/oracle/dbclient/instantclient_12_2 - From
/usr/local/oracle/dbclient/instantclient_12_2copy all the*.so.*files to thelibfolder and the rest of the files to thebinfolder. - Navigate to
$MW_HOME/idm/oam/server/upgrade/scriptdirectory on the source infrastructure and open thedatapump_exp.shin your preferred editor. - Add
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/libline below the existingexport ORACLE_HOME=$ORACLE_HOMEline.export ORACLE_HOME=$ORACLE_HOME //New line specifying the library path export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib - Similarly, open the
datapump_imp.shon the target infrastructure and add the library path.export ORACLE_HOME=$ORACLE_HOME //New line specifying the library path export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib - Edit the
backup.propertiesfile on the source infrastructure and set DB_HOME. For example,DB_HOME=/usr/local/oracle/dbclient/instantclient_12_2 - Similarly, edit the
restore.propertiesfile on the target infrastructure and set DB_HOME. For example,DB_HOME=/usr/local/oracle/dbclient/instantclient_12_2
The
createSnapShot.sh and the
applySnapshot.sh scripts run correctly.