EBS clone DB (adcfgclone), RC-00110: Fatal: Error occurred while relinking of ApplyDBTechStack, ouicli.pl INSTE8_APPLY 1

Podczas clona DB w EBS:

| 0% completed RC-00110: Fatal: Error occurred while relinking of ApplyDBTechStack
ERROR while running Apply…
Fri Apr 8 11:59:58 2022
ERROR: Failed to execute /12.1/appsutil/clone/bin/adclone.pl
Please check logfile.

log:

WARNING: [AutoConfig Error Report]
The following report lists errors AutoConfig encountered during each
phase of its execution. Errors are grouped by directory and phase.
The report format is:

[APPLY PHASE]
AutoConfig could not successfully execute the following scripts:
Directory: /12.1/perl/bin/perl -I /12.1/perl/lib/5.14.4 -I /12.1/perl/lib/site_perl/5.14.4 -I /12.1/appsutil/perl /12.1/appsutil/clone
ouicli.pl INSTE8_APPLY 1

za wiele nam to nie mówi dlatego sprawdzamy:

  1. czy jest JRE w $ORACLE_HOME (jeżeli brak to kopiujemy albo linkujemy z innej lokalizacji)

$ $ORACLE_HOME/jdk/jre/bin/java -version
java version „x.x.x”

2. sprawdzamy oraInventory (clonowana baza może już w nim być, dlatego czyścimy)

$ cat /etc/oraInst.loc
inventory_loc=/r12app/oraInventory
inst_group=dba

cd /r12app
rm -rf oraInventory/
mkdir oraInventory
chmod 770 oraInventory
chown oraprod:dba oraInventory