This discussion is archived
3 Replies Latest reply: Mar 30, 2012 7:10 AM by Hussein Sawwan-Oracle RSS

Error Cloning r12.1.3 instance in fresh oel 5.4

user163173 Newbie
Currently Being Moderated
I tried to clone r12.1.3 instance from rhel 5. 4 to oel 5.4 .
while running adcfgclone.pl in dbTier it shows the following error

[orajr12@server1 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:
/jr12/d02/oracle/jr12/db/tech_st/11.1.0/appsutil/clone/bin/../jre/bin/java -Xmx600M -cp /jr12/d02/oracle/jr12/db/tech_st/11.1.0/appsutil/clone/jlib/java:/jr12/d02/oracle/jr12/db/tech_st/11.1.0/appsutil/clone/jlib/xmlparserv2.jar:/jr12/d02/oracle/jr12/db/tech_st/11.1.0/appsutil/clone/jlib/ojdbc5.jar oracle.apps.ad.context.CloneContext -e /jr12/d02/oracle/jr12/db/tech_st/11.1.0/appsutil/clone/bin/../context/db/CTXORIG.xml -validate -pairsfile /tmp/adpairsfile_7682.lst -stage /jr12/d02/oracle/jr12/db/tech_st/11.1.0/appsutil/clone 2> /tmp/adcfgclone_7682.err; echo $? > /tmp/adcfgclone_7682.res

Log file located at /jr12/d02/oracle/jr12/db/tech_st/11.1.0/appsutil/clone/bin/CloneContext_0922015804.log

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

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

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

Target System Database SID : jr12

Target System Base Directory : /jr12/d02/oracle/jr12

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 [ER12/d02/oracle/R12I/db/apps_st/data] : /jr12/d02/oracle/jr12/db/apps_st/data

Target System RDBMS ORACLE_HOME Directory [jr12/d02/oracle/jr12/db/tech_st/11.1.0] :

Do you want to preserve the Display [server2:0.0] (y/n) : n

Target System Display [server1:0.0] : y

Do you want the the target system to have the same port values as the source system (y/n) [y] ? :
Complete port information available at /jr12/d02/oracle/jr12/db/tech_st/11.1.0/appsutil/clone/bin/out/jr12_server1/portpool.lst

Backing up /jr12/d02/oracle/jr12/db/tech_st/11.1.0/appsutil/jr12_server1.xml to /jr12/d02/oracle/jr12/db/tech_st/11.1.0/appsutil/jr12_server1.xml3.bak

Creating the new Database Context file from :
/jr12/d02/oracle/jr12/db/tech_st/11.1.0/appsutil/template/adxdbctx.tmp


Source and Target platforms differ. Rapid Clone will perform a platform migration.
Do you wish to continue? [y] :
The new database context file has been created :
/jr12/d02/oracle/jr12/db/tech_st/11.1.0/appsutil/jr12_server1.xml
RC-50004: Error occurred in CloneContext:
null
Check Clone Context logfile /jr12/d02/oracle/jr12/db/tech_st/11.1.0/appsutil/clone/bin/CloneContext_0922015804.log for details.

ERROR: Context creation not completed successfully.
For additional details review the file /tmp/adcfgclone_7682.err if present.
  • 1. Re: Error Cloning r12.1.3 instance in fresh oel 5.4
    Hussein Sawwan-Oracle Employee ACE
    Currently Being Moderated
    The new database context file has been created :
    /jr12/d02/oracle/jr12/db/tech_st/11.1.0/appsutil/jr12_server1.xml
    RC-50004: Error occurred in CloneContext:
    null
    Check Clone Context logfile /jr12/d02/oracle/jr12/db/tech_st/11.1.0/appsutil/clone/bin/CloneContext_0922015804.log for details.

    ERROR: Context creation not completed successfully.
    For additional details review the file /tmp/adcfgclone_7682.err if present.
    This is a generic error. Can you find any more details about the error in CloneContext_0922015804.log file?

    Thanks,
    Hussein
  • 2. Re: Error Cloning r12.1.3 instance in fresh oel 5.4
    user163173 Newbie
    Currently Being Moderated
    This my clone log file

    Using admin directory: /jr12/d02/oracle/jr12/db/tech_st/11.1.0/appsutil/clone/bin
    #----------------------------------------------
    #------Log File time stamp: 0922015804------------
    # $Header: CloneContext.java 120.92.12010000.19 2010/03/24 18:32:04 mismith ship $
    # Running on - server1
    # Source Host - null
    # Domain Name - yantro.com
    # Context Location - /jr12/d02/oracle/jr12/db/tech_st/11.1.0/appsutil/clone/bin/../context/db/CTXORIG.xml
    # Context Type - null
    # Context Template - null
    # Clone Stage Area - /jr12/d02/oracle/jr12/db/tech_st/11.1.0/appsutil/clone
    # Pairs File - /tmp/adpairsfile_7682.lst
    # Destination Context - null
    # Validation - true
    # Platform Migration - false
    # no prompt - false
    #----------------------------------------------


    Variables extracted from pairsfile: /tmp/adpairsfile_7682.lst
    ****************************************************/n
    s_dbuser = orajr12
    s_dbgroup = orajr12
    ****************************************************

    PROMPT :
    Target System Hostname (virtual or normal) [server1]
    ANSWER :
    server1

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

    PROMPT :
    Target System Database SID
    ANSWER :
    jr12

    PROMPT :
    Target System Base Directory
    ANSWER :
    /jr12/d02/oracle/jr12

    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 [ER12/d02/oracle/R12I/db/apps_st/data]
    ANSWER :
    /jr12/d02/oracle/jr12/db/apps_st/data
    Creating /jr12/d02/oracle/jr12/db/tech_st/11.1.0/appsutil/clone/data/stage/addbhomtgt.xml which will contain Target system database mount points.

    PROMPT :
    Target System RDBMS ORACLE_HOME Directory [jr12/d02/oracle/jr12/db/tech_st/11.1.0]
    ANSWER :
    /jr12/d02/oracle/jr12/db/tech_st/11.1.0
    Creating /jr12/d02/oracle/jr12/db/tech_st/11.1.0/appsutil/clone/data/stage/addbhomtgt.xml which will contain Target system database mount points.

    PROMPT :
    Do you want to preserve the Display [server2:0.0] (y/n)
    ANSWER :
    n

    PROMPT :
    Target System Display [server1:0.0]
    ANSWER :
    y

    PROMPT :
    Do you want the the target system to have the same port values as the source system (y/n) [y] ?
    ANSWER :
    y
    Checking Database Port on server1: Port Value = 1533
    Database Port available: Port Value = 1533
    Checking DB ONS Local Port on server1: Port Value = 6312
    DB ONS Local Port available: Port Value = 6312
    Checking DB ONS Remote Port on server1: Port Value = 6412
    DB ONS Remote Port available: Port Value = 6412


    INFO: Unable to obtan DB Version!!!



    INFO: Because DB Version could not be obtained, defaulting s_jdktop and s_jretop to adxdbctx.tmp defined values


    setDestination s_contextfile to : /jr12/d02/oracle/jr12/db/tech_st/11.1.0/appsutil/jr12_server1.xml
    Clone Context Parameters:
    Pairs File = /tmp/adpairsfile_7682.lst
    Target XML File = /jr12/d02/oracle/jr12/db/tech_st/11.1.0/appsutil/jr12_server1.xml
    Template File = /jr12/d02/oracle/jr12/db/tech_st/11.1.0/appsutil/template/adxdbctx.tmp
    The following values will be used to create the context file

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

    s_isWeb = YES
    s_db_listener = jr12
    s_db_util_filedir = /usr/tmp
    s_db_rollback_segs = NOROLLBACK
    s_dbhome4 = /jr12/d02/oracle/jr12/db/apps_st/data
    s_dbhome3 = /jr12/d02/oracle/jr12/db/apps_st/data
    s_dbhost = server1
    s_db_oh = /jr12/d02/oracle/jr12/db/tech_st/11.1.0
    s_dbhome2 = /jr12/d02/oracle/jr12/db/apps_st/data
    s_dbhome1 = /jr12/d02/oracle/jr12/db/apps_st/data
    s_dbgroup = orajr12
    s_dbGlnam = jr12
    s_dbdomain = yantro.com
    s_dbSid = jr12
    s_dbuser = orajr12
    s_isForms = YES
    s_database_type =
    s_temp = /jr12/d02/oracle/jr12/db/tech_st/11.1.0/appsutil/temp
    s_db_ons_localport = 6312
    s_hostname = server1
    s_dbSidLower = jr12
    s_cmanport = 1533
    s_dbCluster = false
    s_domainname = yantro.com
    s_isAdmin = YES
    s_isConc = YES
    s_contextfile = /jr12/d02/oracle/jr12/db/tech_st/11.1.0/appsutil/jr12_server1.xml
    s_dbport = 1533
    s_display = y
    s_contextname = jr12_server1
    s_db_ons_remoteport = 6412
    s_clonestage = /jr12/d02/oracle/jr12/db/tech_st/11.1.0/appsutil/clone
    s_base = /jr12/d02/oracle/jr12
    ****************************************************

    Clone Context will now iteratively apply changes
    to create the new target context file.

    instantiate file:
    source : /jr12/d02/oracle/jr12/db/tech_st/11.1.0/appsutil/temp.xml
    dest : /tmp/tmpCtxClone2.xml
    instantiate file:
    source : /tmp/tmpCtxClone2.xml
    dest : /tmp/tmpCtxClone2.xml
    instantiate file:
    source : /tmp/tmpCtxClone2.xml
    dest : /tmp/tmpCtxClone2.xml
    instantiate file:
    source : /tmp/tmpCtxClone2.xml
    dest : /tmp/tmpCtxClone2.xml
    instantiate file:
    source : /tmp/tmpCtxClone2.xml
    dest : /jr12/d02/oracle/jr12/db/tech_st/11.1.0/appsutil/jr12_server1.xml
    instantiate file:
    source : /jr12/d02/oracle/jr12/db/tech_st/11.1.0/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 = rajagopalanmurugan@eaton.com
    s_parallel_max_servers = 8
    s_systemcsi = N/A
    s_apps_version = 12.1.3
    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 = /r12/StageR12/startCD/Disk1/rapidwiz
    s_archive_format = %t_%s_%r.dbf
    s_db_pga_aggregate_target = 1G
    s_sqlnet_inbound_connect_timeout = 60
    s_dbtype = VISION
    s_proxyhost =
    s_nthreads = 5
    s_db_processes = 200
    s_enable_listener_password = OFF
    s_alt_service_instances =
    s_dbClusterInst = 1
    s_installedFrom = FS
    s_update_scan = FALSE
    s_undo_tablespace = UNDO_TBS
    s_adjreopts = -Xms128M -Xmx512M
    s_dbQuorumDisk =
    s_db_linkctrl =
    s_dbcomp = oracle.apps.dbseed.fresh
    s_db_sessions = 400
    s_installloc = /r12/StageR12/startCD/Disk1
    s_isDB = YES
    s_proxyport =
    s_database = db111
    s_dbseed = Vision Demo
    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 = 20000
    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:
    /jr12/d02/oracle/jr12/db/tech_st/11.1.0/appsutil/jr12_server1.xml

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

    Performing file system cleanup specific to Platform Migration:



    StackTrace:
    java.lang.NullPointerException
    at java.util.Hashtable.put(Unknown Source)
    at oracle.apps.ad.clone.util.CloneCleanser.doMigrate(CloneCleanser.java:98)
    at oracle.apps.ad.context.CloneContext.doClone(CloneContext.java:714)
    at oracle.apps.ad.context.CloneContext.main(CloneContext.java:5196)
    RC-50004: Error occurred in CloneContext:
    null
    Context file creation not succesful
  • 3. Re: Error Cloning r12.1.3 instance in fresh oel 5.4
    Hussein Sawwan-Oracle Employee ACE
    Currently Being Moderated
    Please see (RC-50004: Error Occurred In Clonecontext and "java.lang.NullPointerException" during Rapiclone on dbTier [ID 443667.1]).

    Thanks,
    Hussein

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points