1 Reply Latest reply on Aug 18, 2015 8:42 AM by Chiranjeevi M A

    RC-50004: Error occurred in CloneContext: null

    2776515

      am trying to run the

      perl adcfgclone.pl dbTier


      but i get this error

       

      [oraspring@springengineer bin]$ perl adcfgclone.pl dbTier

       

                           Copyright (c) 2002 Oracle Corporation

                              Redwood Shores, California, USA

       

                              Oracle Applications Rapid Clone

       

                                       Version 12.0.0

       

                            adcfgclone Version 120.31.12010000.8

       

      Enter the APPS password :

       

      Running:

      /PROD/d01/tech_st/11.2.0/dbhome_1/appsutil/clone/bin/../jre/bin/java -Xmx600M -cp /PROD/d01/tech_st/11.2.0/dbhome_1/appsutil/clone/jlib/java:/PROD/d01/tech_st/11.2.0/dbhome_1/appsutil/clone/jlib/xmlparserv2.jar:/PROD/d01/tech_st/11.2.0/dbhome_1/appsutil/clone/jlib/ojdbc5.jar oracle.apps.ad.context.CloneContext -e /PROD/d01/tech_st/11.2.0/dbhome_1/appsutil/clone/bin/../context/db/CTXORIG.xml -validate -pairsfile /tmp/adpairsfile_17928.lst -stage /PROD/d01/tech_st/11.2.0/dbhome_1/appsutil/clone  2> /tmp/adcfgclone_17928.err; echo $? > /tmp/adcfgclone_17928.res

       

      Log file located at /PROD/d01/tech_st/11.2.0/dbhome_1/appsutil/clone/bin/CloneContext_0817162205.log

       

      Provide the values required for creation of the new Database Context file.

       

      Target System Hostname (virtual or normal) [springengineer] :

       

      Target Instance is RAC (y/n) [n] :

       

      Target System Database SID : TEST1

       

      Target System Base Directory : /PROD/d01

       

      Target System utl_file_dir Directory List : /usr/tmp

       

      Number of DATA_TOP's on the Target System [1] :

       

      Target System DATA_TOP Directory 1 [/PROD/u01/d01/apps_st/data] : /PROD/d01/apps_st/data

       

      Target System RDBMS ORACLE_HOME Directory [/PROD/d01/db/tech_st/11.2.0] : /PROD/d01/tech_st/11.2.0/dbhome_1

       

      Do you want to preserve the Display [geprod:1.0] (y/n)  : n

       

      Target System Display [springengineer:0.0] : springengineer:1.0

       

      Do you want the the target system to have the same port values as the source system (y/n) [y] ? : n

       

      Target System Port Pool [0-99] : 3

       

      Checking the port pool 3

      done: Port Pool 3 is free

      Report file located at /PROD/d01/tech_st/11.2.0/dbhome_1/appsutil/temp/portpool.lst

      Complete port information available at /PROD/d01/tech_st/11.2.0/dbhome_1/appsutil/temp/portpool.lst

       

      Creating the new Database Context file from :

        /PROD/d01/tech_st/11.2.0/dbhome_1/appsutil/template/adxdbctx.tmp

       

       

      Source and Target platforms differ.  Rapid Clone will perform a platform migration.

      Do you wish to continue?  [y] : y

      The new database context file has been created :

        /PROD/d01/tech_st/11.2.0/dbhome_1/appsutil/TEST1_springengineer.xml

      RC-50004: Error occurred in CloneContext:

      null

      Check Clone Context logfile /PROD/d01/tech_st/11.2.0/dbhome_1/appsutil/clone/bin/CloneContext_0817162205.log for details.

       

      ERROR: Context creation not completed successfully.

      For additional details review the file /tmp/adcfgclone_17928.err if present.

       

      [oraspring@springengineer bin]$

       

      When i go to the CloneContext_0817162205.log this is the log


      please help


      Using admin directory: /PROD/d01/tech_st/11.2.0/dbhome_1/appsutil/clone/bin

      #----------------------------------------------

      #------Log File time stamp: 0817162205------------

      # $Header: CloneContext.java 120.92.12010000.25 2011/08/12 21:29:46 jaedo ship $

      # Running on          - springengineer

      # Source Host         - null

      # Domain Name         - co.ke

      # Context Location    - /PROD/d01/tech_st/11.2.0/dbhome_1/appsutil/clone/bin/../context/db/CTXORIG.xml

      # Context Type        - null

      # Context Template    - null

      # Clone Stage Area    - /PROD/d01/tech_st/11.2.0/dbhome_1/appsutil/clone

      # Pairs File          - /tmp/adpairsfile_17928.lst

      # Destination Context - null

      # Validation          - true

      # Platform Migration  - false

      # no prompt           - false

      #----------------------------------------------

       

       

      Variables extracted from pairsfile: /tmp/adpairsfile_17928.lst

      ****************************************************/n

        s_dbuser  =  oraspring

        s_dbgroup  =  dba

      ****************************************************

       

      PROMPT :

      Target System Hostname (virtual or normal) [springengineer]

      ANSWER :

      springengineer

       

      PROMPT :

      Target Instance is RAC (y/n) [n]

      ANSWER :

      n

       

      PROMPT :

      Target System Database SID

      ANSWER :

      TEST1

       

      PROMPT :

      Target System Base Directory

      ANSWER :

      /PROD/d01

       

      PROMPT :

      Target System utl_file_dir Directory List

      ANSWER :

      /usr/tmp

       

      PROMPT :

      Number of DATA_TOP's on the Target System [1]

      ANSWER :

      1

       

      PROMPT :

      Target System DATA_TOP Directory 1 [/PROD/u01/d01/apps_st/data]

      ANSWER :

      /PROD/d01/apps_st/data

      Creating /PROD/d01/tech_st/11.2.0/dbhome_1/appsutil/clone/data/stage/addbhomtgt.xml which will contain Target system database mount points.

       

      PROMPT :

      Target System RDBMS ORACLE_HOME Directory [/PROD/d01/db/tech_st/11.2.0]

      ANSWER :

      /PROD/d01/tech_st/11.2.0/dbhome_1

      Creating /PROD/d01/tech_st/11.2.0/dbhome_1/appsutil/clone/data/stage/addbhomtgt.xml which will contain Target system database mount points.

       

      PROMPT :

      Do you want to preserve the Display [geprod:1.0] (y/n)

      ANSWER :

      n

       

      PROMPT :

      Target System Display [springengineer:0.0]

      ANSWER :

      springengineer:1.0

       

      PROMPT :

      Do you want the the target system to have the same port values as the source system (y/n) [y] ?

      ANSWER :

      n

      Started testing the availabilty of ports in port pool 3

       

      Checking  Database Port on springengineer:  Port Value = 1524

         Database Port available:  Port Value = 1524

      Checking  DB ONS Local Port on springengineer:  Port Value = 6303

         DB ONS Local Port available:  Port Value = 6303

      Checking  DB ONS Remote Port on springengineer:  Port Value = 6403

         DB ONS Remote Port available:  Port Value = 6403

      setDestination s_contextfile to : /PROD/d01/tech_st/11.2.0/dbhome_1/appsutil/TEST1_springengineer.xml

      Clone Context Parameters:

          Pairs File      = /tmp/adpairsfile_17928.lst

          Target XML File = /PROD/d01/tech_st/11.2.0/dbhome_1/appsutil/TEST1_springengineer.xml

          Template File   = /PROD/d01/tech_st/11.2.0/dbhome_1/appsutil/template/adxdbctx.tmp

       

       

      The following values will be used to create the context file

       

      ****************************************************

       

        s_isWeb  =  YES

        s_db_listener  =  TEST1

        s_db_util_filedir  =  /usr/tmp

        s_db_rollback_segs  =  NOROLLBACK

        s_dbhome4  =  /PROD/d01/apps_st/data

        s_dbhome3  =  /PROD/d01/apps_st/data

        s_dbhost  =  springengineer

        s_db_oh  =  /PROD/d01/tech_st/11.2.0/dbhome_1

        s_dbhome2  =  /PROD/d01/apps_st/data

        s_dbhome1  =  /PROD/d01/apps_st/data

        s_dbgroup  =  dba

        s_jretop  =  /PROD/d01/tech_st/11.2.0/dbhome_1/jdk/jre

        s_dbGlnam  =  TEST1

        s_dbdomain  =  co.ke

        s_jdktop  =  /PROD/d01/tech_st/11.2.0/dbhome_1/jdk/jre

        s_dbSid  =  TEST1

        s_dbuser  =  oraspring

        s_isForms  =  YES

        s_database_type  = 

        s_temp  =  /PROD/d01/tech_st/11.2.0/dbhome_1/appsutil/temp

        s_db_ons_localport  =  6303

        s_hostname  =  springengineer

        s_dbSidLower  =  test1

        s_cmanport  =  1524

        s_dbCluster  =  false

        s_domainname  =  co.ke

        s_isAdmin  =  YES

        s_isConc  =  YES

        s_contextfile  =  /PROD/d01/tech_st/11.2.0/dbhome_1/appsutil/TEST1_springengineer.xml

        s_dbport  =  1524

        s_display  =  springengineer:1.0

        s_contextname  =  TEST1_springengineer

        s_db_ons_remoteport  =  6403

        s_clonestage  =  /PROD/d01/tech_st/11.2.0/dbhome_1/appsutil/clone

        s_base  =  /PROD/d01

      ****************************************************

       

      Clone Context will now iteratively apply changes

      to create the new target context file.

       

      instantiate file:

         source : /PROD/d01/tech_st/11.2.0/dbhome_1/appsutil/temp.xml

         dest   : /tmp/tmpCtxClone.xml

      instantiate file:

         source : /tmp/tmpCtxClone.xml

         dest   : /tmp/tmpCtxClone.xml

      instantiate file:

         source : /tmp/tmpCtxClone.xml

         dest   : /tmp/tmpCtxClone.xml

      instantiate file:

         source : /tmp/tmpCtxClone.xml

         dest   : /tmp/tmpCtxClone.xml

      instantiate file:

         source : /tmp/tmpCtxClone.xml

         dest   : /PROD/d01/tech_st/11.2.0/dbhome_1/appsutil/TEST1_springengineer.xml

      instantiate file:

         source : /PROD/d01/tech_st/11.2.0/dbhome_1/appsutil/temp.xml

         dest   : /tmp//dummy.xml

      instantiate file:

         source : /tmp//dummy.xml

         dest   : /tmp//dummy.xml

      instantiate file:

         source : /tmp//dummy.xml

         dest   : /tmp//dummy.xml

      instantiate file:

         source : /tmp//dummy.xml

         dest   : /tmp//dummy.xml

      instantiate file:

         source : /tmp//dummy.xml

         dest   : /tmp//dummy.xml

       

      PROMPT :

      Source and Target platforms differ.  Rapid Clone will perform a platform migration.

      Do you wish to continue?  [y]

      ANSWER :

      y

       

      The values for these variables will be retained from the source context

       

       

      ****************************************************

       

        s_admin_restrictions  =  ON

        s_metalink_id  = 

        s_parallel_max_servers  =  8

        s_systemcsi  =  N/A

        s_apps_version  =  12.1.1

        s_contextserial  =  0

        s_instThread  =  0

        s_sqlnet_expire_time  =  10

        s_contexttype  =  Database Context

        s_db_sga_target  =  1G

        s_dbsharedpool_size  =  300000000

        s_db_shared_pool_size  =  400M

        s_clusterServicePort  =  9998

        s_scan_name  = 

        s_dbcache_size  =  163577856

        s_rapidwizloc  =  N/A

        s_archive_format  =  arch_%t_%s_%r.arc

        s_db_pga_aggregate_target  =  1G

        s_sqlnet_inbound_connect_timeout  =  60

        s_dbtype  =  VISION

        s_proxyhost  = 

        s_nthreads  =  5

        s_db_processes  =  400

        s_enable_listener_password  =  OFF

        s_alt_service_instances  = 

        s_dbClusterInst  =  1

        s_installedFrom  =  FS

        s_update_scan  =  FALSE

        s_undo_tablespace  =  APPS_UNDOTS1

        s_adjreopts  =  -Xms128M -Xmx512M

        s_dbQuorumDisk  = 

        s_db_linkctrl  = 

        s_dbcomp  =  oracle.apps.dbseed.fresh

        s_db_sessions  =  400

        s_installloc  =  N/A

        s_isDB  =  YES

        s_proxyport  = 

        s_database  =  db112

        s_dbseed  =  Fresh Install

        s_apps_user  =  apps

        s_lsnr_log_status  =  ON

        s_dbfiles  =  512

        s_db_shared_pool_reserved_size  =  40M

        s_bits  =  32

        s_dbblock_buffers  =  0

        s_sys_user  =  SYS

        s_diag_adr_enabled  =  ON

        s_dlsnstatus  =  enabled

        s_db_plsql_native_library_subdir_count  =  149

        s_country_code  = 

        s_subscribe_for_node_down_event  =  OFF

        s_instNumber  =  0

        s_scan_port  = 

       

      *********************************************

       

       

      The new context file has been created at:

          /PROD/d01/tech_st/11.2.0/dbhome_1/appsutil/TEST1_springengineer.xml

       

      *******************************************

       

      Performing file system cleanup specific to Platform Migration:

       

       

       

      StackTrace:

      java.lang.NullPointerException

          at java.util.Hashtable.put(Hashtable.java:401)

          at oracle.apps.ad.clone.util.CloneCleanser.doMigrate(CloneCleanser.java:98)

          at oracle.apps.ad.context.CloneContext.doClone(CloneContext.java:718)

          at oracle.apps.ad.context.CloneContext.main(CloneContext.java:5260)

       

      RC-50004: Error occurred in CloneContext:

      null

      Context file creation not succesful