1. Home
  2. Knowledge Base
  3. Oracle Fusion Middleware
  4. Cloning 10g Application Server Middle Tier

Cloning 10g Application Server Middle Tier

Recently at one on my client sites, there was a requirement to create an additional 10g Discoverer instance of an Oracle Application Server. Rather than attempt a fresh installation as a number of patches had been applied to this Oracle Home, I decided to perform an Oracle Application Server clone instead.

Here are the steps outlined – source machine is sunos1 and target machine is sunos2.

On the source and target ensure that the PERL5LIB variable is set.

sunos1:/u01/app/oracle $ export PERL5LIB=$ORACLE_HOME/perl/lib/5.6.1:$ORACLE_HOME/perl/lib/site_perl/5.6.1

Execute the prepare_clone.pl perl command

sunos1:/u01/app/oracle/BIPROD/clone/bin $ ./prepare_clone.pl ORACLE_HOME=/u01/app/oracle/BIPROD

Creating the log directory: /u01/app/oracle/BIPROD/clone/logs

Clone log file location: /u01/app/oracle/BIPROD/clone/logs/clone1284085526.log
Error log file location: /u01/app/oracle/BIPROD/clone/logs/error1284085526.log
[Fri Sep 10 10:25:26 2010 INFO] Starting with the Prepare Clone operation at the source
[Fri Sep 10 10:25:26 2010 INFO] The temp directory being used is /tmp
[Fri Sep 10 10:25:27 2010 INFO] The file /u01/app/oracle/BIPROD/inventory/Clone/clone.xml is clean. Repair operation not needed.
[Fri Sep 10 10:25:37 2010 INFO] The prepare clone operation completed successfully

Create a tar file of the Oracle Application Server Home

sunos1: cd /u01/app/oracle/
sun0s1: tar -cvf BIPROD.tar BIPROD

scp this tar file to the source machine and untar the file

sunos2: cd /u01/app/oracle/
sunos2: tar -xvf BIPROD.tar

Run the clone.pl perl script with the following paremeters as shown below – (run the root.sh script as well after the command completes. Open another window and do a tail -f of the clone log file/fiiles to keep a track of the progress and to note any errors which may occur in the clone process)

Also note that if you are using any components which are SSO enabled, we need to provide additional parameters which have details about the OID. It is mentioned in the 10g Release 2 Oracle Application Server Documentation.

sunos2:/u01/app/oracle/BIPROD/clone/bin $ perl clone.pl ORACLE_HOME=/u01/app/oracle/BIPROD ORACLE_HOME_NAME=BI_Home -instance discoverer10g -ias_admin_old_pwd mypwd -ias_admin_new_pwd mypwd

[Fri Sep 10 11:10:34 2010 DEBUG] Loading properties from /u01/app/oracle/BIPROD/clone/bin/../config/cs.properties

Clone log file location: /u01/app/oracle/BIPROD/clone/logs/clone1284088234.log
Error log file location: /u01/app/oracle/BIPROD/clone/logs/error1284088234.log
[Fri Sep 10 11:10:34 2010 INFO] Starting with the PreClone operation
[Fri Sep 10 11:10:34 2010 INFO] ORACLE_HOME has been set to /u01/app/oracle/BIPROD
[Fri Sep 10 11:10:34 2010 INFO] ORACLE_HOME_NAME has been set to BI_Home
[Fri Sep 10 11:10:34 2010 INFO] The temp directory being used is /tmp
[Fri Sep 10 11:10:35 2010 INFO] The LD_LIBRARY_PATH env variable has been updated to /u01/app/oracle/BIPROD/lib32:/u01/app/oracle/BIPROD/network/lib32:/u01/app/oracle/BIPROD/bin:/u01/app/oracle/BIPROD/chgip/lib:/u01/app/oracle/BIPROD/lib:/u01/app/oracle/product/11.2.0/dbhome_1/lib:/u01/app/oracle/product/11.2.0/dbhome_1/lib
[Fri Sep 10 11:10:35 2010 INFO] The LD_LIBRARY_PATH_64 env variable has been updated to /u01/app/oracle/BIPROD/lib:/u01/app/oracle/BIPROD/network/lib:/u01/app/oracle/BIPROD/bin:/u01/app/oracle/BIPROD/chgip/lib
[Fri Sep 10 11:10:35 2010 INFO] The PATH env variable has been updated to /u01/app/oracle/BIPROD/bin:/u01/app/oracle/BIPROD/lib:/u01/app/oracle/BIPROD/network/lib:/u01/app/oracle/BIPROD/chgip/lib:.:/usr/local/bin:/usr/sfw/bin:/u01/app/oracle/product/11.2.0/dbhome_1/bin:/usr/ccs/bin:/usr/openwin/bin:/usr/bin::/u01/app/oracle/product/10.2.0:/u01/app/oracle/product/11.2.0/dbhome_1/bin
[Fri Sep 10 11:10:35 2010 INFO] Done with the PreClone operation
[Fri Sep 10 11:10:36 2010 INFO] Oracle Universal Installer, Version 10.1.0.6.0 Production

[Fri Sep 10 11:10:36 2010 INFO] Copyright (C) 1999, 2007, Oracle. All rights reserved.

[Fri Sep 10 11:11:06 2010 INFO] ………………………………………………………Val: 0

[Fri Sep 10 11:11:06 2010 INFO] Val: 0

[Fri Sep 10 11:11:06 2010 INFO] Val: 0

[Fri Sep 10 11:11:12 2010 INFO] Val: 0

[Fri Sep 10 11:11:38 2010 INFO] 100% Done.

[Fri Sep 10 11:11:39 2010 INFO] Copying files in progress (Friday, September 10, 2010 11:11:39 AM WST)

[Fri Sep 10 11:12:14 2010 INFO] …………………………………………… 80% Done.

[Fri Sep 10 11:12:14 2010 INFO] Copy successful

[Fri Sep 10 11:12:14 2010 INFO] Linking in progress (Friday, September 10, 2010 11:12:14 AM WST)

[Fri Sep 10 11:13:17 2010 INFO] . 82% Done.

[Fri Sep 10 11:13:17 2010 INFO] Link successful

[Fri Sep 10 11:13:17 2010 INFO] Setup in progress (Friday, September 10, 2010 11:13:17 AM WST)

[Fri Sep 10 11:14:02 2010 INFO] ….Val: 0

[Fri Sep 10 11:14:10 2010 INFO] Applying preferences from file : /u01/app/oracle/BIPROD/discoverer/util/pref.txt

[Fri Sep 10 11:14:11 2010 INFO] Finished applying preferences

[Fri Sep 10 11:14:17 2010 INFO] opmnctl: opmn is already running

[Fri Sep 10 11:14:18 2010 INFO] 88% Done.

[Fri Sep 10 11:14:18 2010 INFO] Setup successful

[Fri Sep 10 11:14:22 2010 INFO] End of install phases.(Friday, September 10, 2010 11:14:22 AM WST)

[Fri Sep 10 11:14:23 2010 INFO] Warning:*** Alert: A configuration script needs to be run as root for the installation to be complete. Please run /u01/app/oracle/BIPROD/root.sh as root at the end of install. ***

[Fri Sep 10 11:14:23 2010 INFO] A configuration script needs to be run as root for the installation to be complete. Please run /u01/app/oracle/BIPROD/root.sh as root at the end of install.

[Fri Sep 10 11:14:23 2010 INFO] The cloning of BI_Home was successful.

[Fri Sep 10 11:14:23 2010 INFO] Please check /u01/app/oracle/oraInventory/logs/cloneActions2010-09-10_11-10-35AM.log for more details.

[Fri Sep 10 11:14:23 2010 INFO] Starting Oracle Universal Installer…

[Fri Sep 10 11:14:23 2010 INFO] No pre-requisite checks found in oraparam.ini, no system pre-requisite checks will be executed.

[Fri Sep 10 11:14:27 2010 INFO] Oracle Home set to /u01/app/oracle/BIPROD

[Fri Sep 10 11:14:27 2010 INFO] Starting Change Hostname/IP…

[Fri Sep 10 11:14:35 2010 INFO] Change Hostname/IP completed successfully.

[Fri Sep 10 11:14:35 2010 INFO] opmnctl: stopping opmn and all managed processes…

[Fri Sep 10 11:14:43 2010 INFO] opmnctl: stopping opmn and all managed processes…

[Fri Sep 10 11:14:47 2010 ERROR] Executing command – /u01/app/oracle/BIPROD/jdk/bin/java -cp /u01/app/oracle/BIPROD/upgrade/lib/webcacheua.jar:/u01/app/oracle/BIPROD/upgrade/lib/ua.jar:/u01/app/oracle/BIPROD/lib/xmlparserv2.jar:/u01/app/oracle/BIPROD/lib/dms.jar oracle.ias.upgrade.config.webcache.WebcacheMigtool -s /u01/app/oracle/BIPROD/clone/config/wc_tmp -d /u01/app/oracle/BIPROD -c -o /u01/app/oracle/BIPROD -h finprod.dpi.wa.gov.au -bs 7778 -bss 4444 -bd 7780 -bds 4445 -ps 7777 -pss 8250 -pd 7779 -pds 8251
2010/09/10 11:14:44.374 WST NOTIFICATION:1 Framework: Oracle Application Server Upgrade Assistant 10.1.2.2.0
2010/09/10 11:14:44.383 WST NOTIFICATION:1 Framework: Host name: sunos2
2010/09/10 11:14:44.386 WST NOTIFICATION:1 Framework: Operating system: sparc 5.10 SunOS
2010/09/10 11:14:44.387 WST NOTIFICATION:1 Framework: Java Runtime Environment: 1.4.2_14 /u01/app/oracle/BIPROD/jdk/jre
2010/09/10 11:14:44.394 WST NOTIFICATION:1 Framework: User name: oracle
2010/09/10 11:14:44.395 WST NOTIFICATION:1 Framework: User dir: /u01/app/oracle/BIPROD/bin
2010/09/10 11:14:44.412 WST NOTIFICATION:1 Framework: Source home info:
2010/09/10 11:14:44.416 WST NOTIFICATION:1 Framework: Path: /u01/app/oracle/BIPROD/clone/config/wc_tmp
2010/09/10 11:14:44.417 WST NOTIFICATION:1 Framework: Base Version: 9.0.2
2010/09/10 11:14:44.421 WST NOTIFICATION:1 Framework: Patch Set Version: None
2010/09/10 11:14:44.437 WST NOTIFICATION:1 Framework: Install Type: J2EE and Web Cache
2010/09/10 11:14:44.438 WST NOTIFICATION:1 Framework: Destination home info:
2010/09/10 11:14:44.439 WST NOTIFICATION:1 Framework: Path: /u01/app/oracle/BIPROD
2010/09/10 11:14:44.440 WST NOTIFICATION:1 Framework: Base Version: 9.0.4
2010/09/10 11:14:44.441 WST NOTIFICATION:1 Framework: Patch Set Version: None
2010/09/10 11:14:44.441 WST NOTIFICATION:1 Framework: Install Type: J2EE and Web Cache
2010/09/10 11:14:44.462 WST NOTIFICATION:1 Framework: Copying file /u01/app/oracle/BIPROD/webcache/webcache.xml to /u01/app/oracle/BIPROD/webcache/webcache.xml.preUpgrade
2010/09/10 11:14:44.467 WST NOTIFICATION:1 WebcachePlugin: Processing webcache.xml
2010/09/10 11:14:47.095 WST NOTIFICATION:1 Framework: Deleting file /u01/app/oracle/BIPROD/webcache/docs/network_error.html
2010/09/10 11:14:47.098 WST NOTIFICATION:1 Framework: Copying file /u01/app/oracle/BIPROD/clone/config/wc_tmp/webcache/docs/network_error.html to /u01/app/oracle/BIPROD/webcache/docs/network_error.html
2010/09/10 11:14:47.099 WST NOTIFICATION:1 Framework: Deleting file /u01/app/oracle/BIPROD/webcache/docs/busy_error.html
2010/09/10 11:14:47.102 WST NOTIFICATION:1 Framework: Copying file /u01/app/oracle/BIPROD/clone/config/wc_tmp/webcache/docs/busy_error.html to /u01/app/oracle/BIPROD/webcache/docs/busy_error.html
2010/09/10 11:14:47.108 WST NOTIFICATION:1 Framework: Deleting file /u01/app/oracle/BIPROD/webcache/docs/esi_fragment_error.txt
2010/09/10 11:14:47.111 WST NOTIFICATION:1 Framework: Copying file /u01/app/oracle/BIPROD/clone/config/wc_tmp/webcache/docs/esi_fragment_error.txt to /u01/app/oracle/BIPROD/webcache/docs/esi_fragment_error.txt
2010/09/10 11:14:47.113 WST NOTIFICATION:1 Framework: Deleting file /u01/app/oracle/BIPROD/webcache/docs/portal_network_error.xml
2010/09/10 11:14:47.115 WST NOTIFICATION:1 Framework: Copying file /u01/app/oracle/BIPROD/clone/config/wc_tmp/webcache/docs/portal_network_error.xml to /u01/app/oracle/BIPROD/webcache/docs/portal_network_error.xml
2010/09/10 11:14:47.117 WST NOTIFICATION:1 WebcachePlugin: webcache.xml has been successfully upgraded

[Fri Sep 10 11:14:54 2010 INFO] Configuration actions are logged at: /u01/app/oracle/BIPROD/cfgtoollogs/reportsConfig.log

[Fri Sep 10 11:14:54 2010 INFO] Reports configuration started at: Fri Sep 10 11:14:54 WST 2010

[Fri Sep 10 11:14:56 2010 INFO] Error obtaining schema info: portal

[Fri Sep 10 11:14:56 2010 INFO] Starting file instantiation

[Fri Sep 10 11:14:56 2010 INFO] File instantiation succeeded

[Fri Sep 10 11:14:56 2010 INFO] Starting EM integration

[Fri Sep 10 11:14:58 2010 INFO] Deleting target:discoverer10g.sunos2_Reports_Server:rep_finprod_BIHome

[Fri Sep 10 11:14:59 2010 INFO] Target: discoverer10g.sunos2_Reports_Server:rep_finprod_BIHome deleted successfully

[Fri Sep 10 11:15:02 2010 INFO] EM integration was successful

[Fri Sep 10 11:15:02 2010 INFO] Reports configuration ended at: Fri Sep 10 11:15:02 WST 2010

[Fri Sep 10 11:15:02 2010 INFO] Reports Configuration succeeded

[Fri Sep 10 11:15:02 2010 INFO] Launching command: /u01/app/oracle/BIPROD/jdk/bin/java -DRELEASE=FRServer -classpath /u01/app/oracle/BIPROD/jlib/repository.jar:/u01/app/oracle/BIPROD/jlib/ldapjclnt10.jar:/u01/app/oracle/BIPROD/jlib/emConfigInstall.jar:/u01/app/oracle/BIPROD/lib/emSDK.jar:/u01/app/oracle/BIPROD/assistants/repca/utils.jar:/u01/app/oracle/BIPROD/assistants/repca/repca.jar:/u01/app/oracle/BIPROD/sysman/webapps/emd/WEB-INF/lib/reportsConfig.jar:/u01/app/oracle/BIPROD/jlib/ojmisc.jar oracle.ias.reports.config.ReportsConfig -oracleHome /u01/app/oracle/BIPROD -logdir /u01/app/oracle/BIPROD/cfgtoollogs -action clone -userDN cn=orcladmin -password 05add82f304b47a03843433dcd514bd2b7bdd82d249de55fca -conf /u01/app/oracle/BIPROD/clone/config/reports_bak/reportsConfig.properties

[Fri Sep 10 11:15:04 2010 ERROR] Executing command – ./reportsCloning.sh /u01/app/oracle/BIPROD BI_Home sunos2 /u01/app/oracle/BIPROD BIHome finprod genfile
cp: cannot access /u01/app/oracle/BIPROD/reports/conf/rep_finprod_BIHome.conf
10/09/2010 11:15:04 oracle.reports.utility.FixerFileGenerator generateFile
INFO: Generating fixer file for server conf file /u01/app/oracle/BIPROD/reports/conf/rep_finprod_bihome.conf

[Fri Sep 10 11:15:09 2010 ERROR] Executing command – ./reportsCloning.sh /u01/app/oracle/BIPROD BI_Home sunos2 /u01/app/oracle/BIPROD BIHome finprod encryptPasswd
10/09/2010 11:15:08 oracle.reports.utility.FixerFileGenerator encryptPasswd
INFO: Encrypting password in /u01/app/oracle/BIPROD/reports/conf/rep_finprod_bihome.conf
10/09/2010 11:15:09 oracle.reports.utility.FixerFileGenerator encryptPasswd
INFO: Encrypting password in /u01/app/oracle/BIPROD/reports/conf/rwserver.template
10/09/2010 11:15:09 oracle.reports.utility.FixerFileGenerator encryptPasswd
INFO: Encrypting password in /u01/app/oracle/BIPROD/reports/cloning/rwserver.template

[Fri Sep 10 11:15:44 2010 INFO] Oracle JAAS [Fri Sep 10 11:15:44 WST 2010]: No change needed as new password same as original password.

[Fri Sep 10 11:15:44 2010 INFO] opmnctl: starting opmn and all managed processes…

[Fri Sep 10 11:16:11 2010 INFO] Oracle Enterprise Manager 10g Application Server Control Release 10.1.2.3.0

[Fri Sep 10 11:16:11 2010 INFO] Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.

[Fri Sep 10 11:16:11 2010 INFO] http://sunos2:1810/emd/console/aboutApplication

[Fri Sep 10 11:17:10 2010 INFO] Starting Oracle Enterprise Manager 10g Application Server Control …… started successfully.

[Fri Sep 10 11:17:10 2010 INFO] ………………..(START) Printing contents of file /u01/app/oracle/BIPROD/install/portlist.ini………………..
[Fri Sep 10 11:17:10 2010 INFO] ;OracleAS Components reserve the following ports at install time.

[Fri Sep 10 11:17:10 2010 INFO] ;As a post-installation step, you can reconfigure a component to use a different port.

[Fri Sep 10 11:17:10 2010 INFO] ;Those changes will not be visible in this file.

[Fri Sep 10 11:17:10 2010 INFO] [System]

[Fri Sep 10 11:17:10 2010 INFO] Host Name = sunos2

[Fri Sep 10 11:17:10 2010 INFO] [Ports]

[Fri Sep 10 11:17:10 2010 INFO] Oracle HTTP Server port = 7779

[Fri Sep 10 11:17:10 2010 INFO] Oracle HTTP Server Listen port = 7780

[Fri Sep 10 11:17:10 2010 INFO] Oracle HTTP Server SSL port = 8251

[Fri Sep 10 11:17:10 2010 INFO] Oracle HTTP Server Listen (SSL) port = 4445

[Fri Sep 10 11:17:10 2010 INFO] ASG port = 7891

[Fri Sep 10 11:17:10 2010 INFO] Oracle Notification Server Request port = 6004

[Fri Sep 10 11:17:10 2010 INFO] Oracle Notification Server Local port = 6101

[Fri Sep 10 11:17:10 2010 INFO] Oracle Notification Server Remote port = 6201

[Fri Sep 10 11:17:10 2010 INFO] Oracle HTTP Server Diagnostic port = 7202

[Fri Sep 10 11:17:10 2010 INFO] Java Object Cache port = 7001

[Fri Sep 10 11:17:10 2010 INFO] Log Loader port = 44001

[Fri Sep 10 11:17:10 2010 INFO] DCM Discovery port = 7101

[Fri Sep 10 11:17:10 2010 INFO] Application Server Control RMI port = 1851

[Fri Sep 10 11:17:10 2010 INFO] Oracle Management Agent Port = 1830

[Fri Sep 10 11:17:10 2010 INFO] Application Server Control port = 1810

[Fri Sep 10 11:17:10 2010 INFO] Web Cache HTTP Listen port = 7779

[Fri Sep 10 11:17:10 2010 INFO] Web Cache HTTP Listen (SSL) port = 8251

[Fri Sep 10 11:17:10 2010 INFO] Web Cache Administration port = 9403

[Fri Sep 10 11:17:10 2010 INFO] Web Cache Invalidation port = 9404

[Fri Sep 10 11:17:10 2010 INFO] Web Cache Statistics port = 9405

[Fri Sep 10 11:17:10 2010 INFO] Reports Services bridge port = 14011

[Fri Sep 10 11:17:10 2010 INFO] Reports Services discoveryService port = 14021

[Fri Sep 10 11:17:10 2010 INFO] Reports Services SQL*Net port = 1950

[Fri Sep 10 11:17:10 2010 INFO] Discoverer Preference Port = 16001

[Fri Sep 10 11:17:10 2010 INFO] ………………..(END) Printing contents of file /u01/app/oracle/BIPROD/install/portlist.ini………………..
[Fri Sep 10 11:17:10 2010 INFO] Note that messages in the silentInstall.log correspond to only the OUI part of cloning.
[Fri Sep 10 11:17:10 2010 INFO] ………………..(START) Printing contents of file /tmp/silentInstall.log………………..
[Fri Sep 10 11:17:10 2010 INFO] ………………..(END) Printing contents of file /tmp/silentInstall.log………………..
[Fri Sep 10 11:17:10 2010 INFO] Final Status:
[Fri Sep 10 11:17:10 2010 INFO] ==============
[Fri Sep 10 11:17:10 2010 INFO] The clone operation completed successfully.
sunos2:/u01/app/oracle/BIPROD/clone/bin $

Issues after the clone

When launching the Discoverer Plus, we were getting the following error:

java.lang.ClassNotFoundException: oracle.disco.DiscoApplet

This error is documented on Metalink as a bug which can occur after a clone has been performed.

Bug 9174625: DISCOVERER ALIASMATCH IN DISCO.CONF INCORRECT AFTER CLONE

The problem is that the clone.pl script incorrectly changes the Discoverer AliasMatch in file: $ORACLE_HOME/discoverer/config/disco.conf

Value after clone:

# Virtual path for plus jar and related files
AliasMatch ^/disco/plus_files/(..*) “/u01/app/oracle/BIPROD/discoverer/plus_files/$1”

What it needs to be:

# Virtual path for plus jar and related files
AliasMatch ^/discoverer_disco/plus_files/(..*) “/u01/app/oracle/BIPROD/discoverer/plus_files/$1”

Updated on June 2, 2021

Was this article helpful?

Related Articles

Comments

  1. Hey there just wanted to give you a quick heads up. The text in your article seem to be running off the screen in Firefox. I’m not sure if this is a formatting issue or something to do with browser compatibility but I thought I’d post to let you know. The design look great though! Hope you get the problem fixed soon. Cheers

Leave a Comment