$ perl adcfgclone.pl appsTier
Please enter the APPS password:
apps
            First Creating a new context file for the cloned system.
              The program is going to ask you for information about the new system:
            
            Provide the values required for creation of the new APPL_TOP Context file.
            Do you want to use a virtual hostname for the target node (y/n) [n] ?:
            Target system database SID [PROD]:TEST
            Target system domain name [hurray.com.cn]:
            Target system database server node [erp]:finance1
            Does the target system have more than one application tier server node (y/n) [n] ?:
            Is the target system APPL_TOP divided into multiple mount points (y/n) [n] ?:
            Target system APPL_TOP mount point [/u0/oracle/prodappl]:
            Target system COMMON_TOP directory [/u0/oracle/prodcomn]:
            Target system 8.0.6 ORACLE_HOME directory [/u0/oracle/prodora/8.0.6]:
            Target system iAS ORACLE_HOME directory [/u0/oracle/prodora/iAS]:
            Location of JDK 1.3.1 on the target system [/usr/java1.3]:
            The new context file has to contain port numbers related to target system.
            Do you want to preserve the port values from the source system on the target system (y/n) [y] ?:n
              Clone Context uses the same port pool mechanism as the Rapid Install
              Once you choose a port pool, Clone Context will validate the port availability.
            Enter the port pool number:[0-99]
              1
            Checking the port pool 1
              RC-40201: Unable to connect to Database TEST.
              RC-50221: Warning: Port Pool 1 is not free. Please check logfile /tmp/CloneContext_07160914.log for conflicts.
            Enter the port pool number:[0-99]
              1
            Checking the port pool 1
              done: Port Pool 1 is free
              Web Listener port is 8001
              Complete port information available at /u0/oracle/prodappl/admin/out/TEST_finance1/portpool.lst
            UTL_FILE_DIR on database tier consists of the following directories.
            1. /tmp
              2. /usr/tmp
              3. /u0/oracle/proddb/9.2.0/appsutil/outbound/TEST_finance1.hurray.com.cn
              4. /u0/oracle/prodcomn/admin
              5. /u0/oracle/prodcomn/temp
              Choose a value which will be set as APPLPTMP value on the target node [1]:
            Backing up /u0/oracle/prodappl/admin/TEST_finance1.xml to /u0/oracle/prodappl/admin/TEST_finance1.xml0.bak
            Creating the new APPL_TOP Context file from :
  /u0/oracle/prodappl/ad/11.5.0/admin/template/adxmlctx.tmp
            The new APPL_TOP context file has been created :
  /u0/oracle/prodappl/admin/TEST_finance1.xml
            Log file located at /tmp/CloneContext_07160914.log
            Running Rapid Clone with command:
  perl ./adclone.pl java=./../jre/1.3.1 mode=apply stage=/u0/oracle/prodcomn/clone component=appsTier method=CUSTOM appctxtg=/u0/oracle/prodappl/admin/TEST_finance1.xml showProgress 
            Using adconfig.zip : 115.342 
             Beginning application tier Apply - Fri Jul 16 09:18:34 2004
              Log file located at /u0/oracle/prodappl/admin/TEST_finance1/log/ApplyAppsTier_07160918.log
            
            Completed Apply...
              Fri Jul 16 10:02:09 2004
            Beginning APPSIAS_TEST registration to central inventory...
            ORACLE_HOME NAME : APPSIAS_TEST
              ORACLE_HOME PATH : /u0/oracle/prodora/iAS
              INVENTORY LOCATION : /var/opt/oracle/oraInst.loc
            Log file located at /export/home/oraprod/oraInventory/logs/OracleHomeCloner_07161002.log
              RC-00123: ORACLE_HOME APPSIAS_TEST already exists inside the inventory
            Starting application Services for TEST:
              Running:
  /u0/oracle/prodcomn/admin/scripts/TEST_finance1/adstrtal.sh APPS/<appspwd>
            You are running adstrtal.sh version 115.11
            Executing service control script:
              /u0/oracle/prodcomn/admin/scripts/TEST_finance1/adapcctl.sh start
              script returned:
              ****************************************************
            adapcctl.sh version 115.34
            Starting Apache Web Server Listener (dedicated HTTP) ...
              Starting Apache Web Server Listener (dedicated PLSQL) ...
              /u0/oracle/prodora/iAS/Apache/Apache/bin/apachectl start: httpd started
            adapcctl.sh: exiting with status 0
            
            .end std out.
            ****************************************************
            
            Executing service control script:
              /u0/oracle/prodcomn/admin/scripts/TEST_finance1/adalnctl.sh start
              script returned:
              ****************************************************
            adalnctl.sh version 
            Checking for FNDFS executable.
              Starting listener process APPS_TEST.
            adalnctl.sh: exiting with status 0
            
            .end std out.
            ****************************************************
            
            Executing service control script:
              /u0/oracle/prodcomn/admin/scripts/TEST_finance1/adcmctl.sh start
              script returned:
              ****************************************************
            You are running adcmctl.sh version 115.17
            Starting concurrent manager for TEST ...
              Starting TEST_0716@TEST Internal Concurrent Manager
              Default printer is noprint
            adcmctl.sh: exiting with status 0
            
            .end std out.
            ****************************************************
            
            Executing service control script:
              /u0/oracle/prodcomn/admin/scripts/TEST_finance1/adfrmctl.sh start
              script returned:
              ****************************************************
            You are running adfrmctl.sh version 115.29
            Starting forms server for TEST on port 9001.
            adfrmctl.sh: exiting with status 0
            
            .end std out.
            ****************************************************
            
            Executing service control script:
              /u0/oracle/prodcomn/admin/scripts/TEST_finance1/adrepctl.sh start
              script returned:
              ****************************************************
            You are running adrepctl.sh version 115.16
            starting Reports Server for TEST on port 7001.
            adrepctl.sh: exiting with status 0
            
            .end std out.
            ****************************************************
            
            Executing service control script:
              /u0/oracle/prodcomn/admin/scripts/TEST_finance1/adfmcctl.sh start
              script returned:
              ****************************************************
            You are running adfmcctl.sh version 115.16
            Starting forms load balancing client for TEST.
            adfmcctl.sh: exiting with status 0
            
            .end std out.
            ****************************************************
            
            Executing service control script:
              /u0/oracle/prodcomn/admin/scripts/TEST_finance1/adfmsctl.sh start
              script returned:
              ****************************************************
            You are running adfmsctl.sh version 115.12
            starting forms metrics server for TEST.
            adfmsctl.sh: exiting with status 0
            
            .end std out.
            ****************************************************
            
            Executing service control script:
              /u0/oracle/prodcomn/admin/scripts/TEST_finance1/jtffmctl.sh start
              script returned:
              ****************************************************
            You are running jtffmctl.sh version 115.7
            Starting Fulfillment Server for TEST on port 9301 ...
            jtffmctl.sh: exiting with status 0
            
            .end std out.
            ****************************************************
            
            Executing service control script:
              /u0/oracle/prodcomn/admin/scripts/TEST_finance1/addisctl.sh start
              ascript returned:
              ****************************************************
            addisctl.sh version 115.9
            /u0/oracle/prodora/8.0.6/vbroker/bin/osagent
              Started osagent.
              Osagent logs messages to the file /u0/oracle/prodora/8.0.6/discwb4/util/osagent.log. 
              Waiting for OAD to start...
              Started OAD.
              OAD logs messages to the file /u0/oracle/prodora/8.0.6/discwb4/util/oad.log. 
              Discoverer Locator Started. 
              Locator logs messages to the file /u0/oracle/prodora/8.0.6/discwb4/util/locator.log. 
              Cannot bind to OAD. Re-starting...
            OAD is stopped
              Osagent is stopped
              Locator is stopped
              Unable to stop gatekeeper. No process-id file found.
              No other discoverer processes running
              /u0/oracle/prodora/8.0.6/vbroker/bin/osagent
              Started osagent.
              Osagent logs messages to the file /u0/oracle/prodora/8.0.6/discwb4/util/osagent.log. 
              Waiting for OAD to start...
              Started OAD.
              OAD logs messages to the file /u0/oracle/prodora/8.0.6/discwb4/util/oad.log. 
              Discoverer Locator Started. 
              Locator logs messages to the file /u0/oracle/prodora/8.0.6/discwb4/util/locator.log. 
              Registering Discoverer Session
              oadutil reg: Failed to bind to OAD
              Registering the Collector
              oadutil reg: Failed to bind to OAD
              Applying preferences from file : /u0/oracle/prodora/8.0.6/discwb4/util/pref.txt
              Finished applying preferences
            Closing down registry..
              Registry File sync...
              Registering Discoverer Preference Repository
              oadutil reg: Failed to bind to OAD
            addisctl.sh: exiting with status 1
            
            .end std out.
            ****************************************************
            
            Check logfile /u0/oracle/prodcomn/admin/log/TEST_finance1/07161002.log for details
            Exiting with status 1