"RC-50004: Error occurred in CloneContext" during R12 cloning

Hi,
I have installed Oracle Apps R12 on Linux server.
The installation was smooth with no issues.
Now I am doing cloning using rapid clone on the same server.
I ran the preclone on db and apps tier of source.
Then I shutdown apps + db and copied to target instance directories.
Now I am running the adcfgclone on db tier (the first step)
I run adcfgclone as orasimp user (not root)
I get the following error immed after I start the adcfgclone.
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:697)
at oracle.apps.ad.context.CloneContext.main(CloneContext.java:4801)
RC-50004: Error occurred in CloneContext:
null
Context file creation not succesful
What could be the reason?
Thanks,
DR

Hi,
Refer to the following documents.
Note: 460391.1 - CloneContext detects incorrect platform on AIX
https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=460391.1
Note: 443667.1 - Rc-50004: Error Occurred In Clonecontext
https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=443667.1
Regards,
Hussein

Similar Messages

  • Adcfgclone.pl dbTier error with RC-50004: Error occurred in CloneContext: null

    PROMPT :
    Target System Hostname (virtual or normal) [migrate]
    ANSWER :
    migrate
    PROMPT :
    Target Instance is RAC (y/n) [n]
    ANSWER :
    n
    PROMPT :
    Target System Database SID
    ANSWER :
    EBS12
    PROMPT :
    Target System Base Directory
    ANSWER :
    /u01/R12/ora11
    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 [/u01/11i/ora11/ebs11data]
    ANSWER :
    /u01/R12/ora11/db/ebs11data
    Creating /u01/R12/ora11/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 [/u01/R12/ora11/db/tech_st/11.1.0]
    ANSWER :
    /u01/R12/ora11/db/tech_st/11.1.0
    Creating /u01/R12/ora11/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 [null] (y/n)
    ANSWER :
    n
    PROMPT :
    Target System Display [migrate:0.0]
    ANSWER :
    migrate:0.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 1
    Checking  Database Port on migrate:  Port Value = 1522
       Database Port available:  Port Value = 1522
    Checking  DB ONS Local Port on migrate:  Port Value = 6301
       DB ONS Local Port available:  Port Value = 6301
    Checking  DB ONS Remote Port on migrate:  Port Value = 6401
       DB ONS Remote Port available:  Port Value = 6401
    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 : /u01/R12/ora11/db/tech_st/11.1.0/appsutil/EBS12_migrate.xml
    Clone Context Parameters:
            Pairs File      = /tmp/adpairsfile_31321.lst
            Target XML File = /u01/R12/ora11/db/tech_st/11.1.0/appsutil/EBS12_migrate.xml
            Template File   = /u01/R12/ora11/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  =  EBS12
      s_db_util_filedir  =  /usr/tmp
      s_db_rollback_segs  =  NOROLLBACK
      s_dbhome4  =  /u01/R12/ora11/db/ebs11data
      s_dbhome3  =  /u01/R12/ora11/db/ebs11data
      s_dbhost  =  migrate
      s_db_oh  =  /u01/R12/ora11/db/tech_st/11.1.0
      s_dbhome2  =  /u01/R12/ora11/db/ebs11data
      s_dbhome1  =  /u01/R12/ora11/db/ebs11data
      s_dbgroup  =  dba
      s_dbGlnam  =  EBS12
      s_dbdomain  =  evosys.co.in
      s_dbSid  =  EBS12
      s_dbuser  =  ora11
      s_isForms  =  YES
      s_database_type  =
      s_temp  =  /u01/R12/ora11/db/tech_st/11.1.0/appsutil/temp
      s_db_ons_localport  =  6301
      s_hostname  =  migrate
      s_dbSidLower  =  ebs12
      s_cmanport  =  1522
      s_dbCluster  =  false
      s_domainname  =  evosys.co.in
      s_isAdmin  =  YES
      s_isConc  =  YES
      s_contextfile  =  /u01/R12/ora11/db/tech_st/11.1.0/appsutil/EBS12_migrate.xml
      s_dbport  =  1522
      s_display  =  migrate:0.0
      s_contextname  =  EBS12_migrate
      s_db_ons_remoteport  =  6401
      s_clonestage  =  /u01/R12/ora11/db/tech_st/11.1.0/appsutil/clone
      s_base  =  /u01/R12/ora11
    Clone Context will now iteratively apply changes
    to create the new target context file.
    instantiate file:
       source : /u01/R12/ora11/db/tech_st/11.1.0/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   : /u01/R12/ora11/db/tech_st/11.1.0/appsutil/EBS12_migrate.xml
    instantiate file:
       source : /u01/R12/ora11/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  =  OFF
      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_dbcache_size  =  163577856
      s_rapidwizloc  =  /tmp/RapidInstall
      s_db_pga_aggregate_target  =  1G
      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_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  =  /tmp
      s_isDB  =  YES
      s_proxyport  =
      s_database  =  db111
      s_dbseed  =  No Database
      s_apps_user  =  APPS
      s_dbfiles  =  512
      s_db_shared_pool_reserved_size  =  40M
      s_bits  =  32
      s_dbblock_buffers  =  20000
      s_sys_user  =  SYS
      s_dlsnstatus  =  enabled
      s_db_plsql_native_library_subdir_count  =  149
      s_country_code  =
      s_subscribe_for_node_down_event  =  OFF
      s_instNumber  =  0
    The new context file has been created at:
            /u01/R12/ora11/db/tech_st/11.1.0/appsutil/EBS12_migrate.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:718)
            at oracle.apps.ad.context.CloneContext.main(CloneContext.java:5266)
    RC-50004: Error occurred in CloneContext:
    null
    Context file creation not succesful
    am trying to clone R12.1.1 with 11.1.0.7 from Linux5.5-32.bit to Linux5.8-64bit.
    migrating is fails.
    So please help me out of this.
    Thanks in Advance

    Hi,
    DB cloning will not suffice the migrating process. In order to perform a cloning from 32 bit to 64 bit, please follow the instructions in the below note:
    Migrating Oracle E-Business Suite R12 from Linux 32-bit to Linux 64-bit (Doc ID 471566.1)
    Thanks &
    Best Regards,

  • Adclonectx.pl fails on db tier with RC-50004: Error occurred in CloneContext - using options addnode noprompt

    I'm trying to run adclonectx.pl non-interactively using a pairsfile and noprompt to automate my clone, this is to create the second node context file on the db tier of a 2 node Linux RAC environment and is the only bit that's still interactive so it would be really cool to get this working!
    I'm using a pairsfile with all the variables from a sucessfull interactive run, I probably need to add more variables to this file though I can't figure out what.
    Has anyone else got this working?
    EBS 12.1.3 DB 11.2.0.3 RAC.
    This is the command I run, I'm using host variables which are defined beforehand.
    --this bit just shows the variables are valid
    [orebsdba@dxd1client02 clone_dev]$ echo $CONTEXT_NAME2
    EBSDBA2_dxd1db02-ib
    [orebsdba@dxd1client02 clone_dev]$ echo $SRCCTX
    /u01/EBSDBA/product/11.2.0/appsutil/EBSDBA1_dxd1db01-ib.xml
    [orebsdba@dxd1client02 clone_dev]$ echo $NEWCTX
    /u01/EBSDBA/product/11.2.0/appsutil/EBSDBA2_dxd1db02-ib.xml
    [orebsdba@dxd1client02 clone_dev]$ cd ${ORACLE_HOME}/appsutil/clone/bin
    [orebsdba@dxd1client02 bin]$ cp ${SRCCTX} ${DBMNT}/${SID}/tmp
    [orebsdba@dxd1client02 bin]$ export APPSPWD=**********
    echo \$APPSPWD | perl ./adclonectx.pl \
    > contextfile=$SRCCTX \
    > template=$ORACLE_HOME/appsutil/template/adxdbctx.tmp \
    > outfile=$NEWCTX \
    > pairsfile=$PAIRSFILE \
    > addnode noprompt
    Copyright (c) 2002 Oracle Corporation
    Redwood Shores, California, USA
    Oracle Applications Rapid Clone
    Version 12.0.0
    adclonectx Version 120.23.12010000.1
    Running:
    /u01/EBSDBA/product/11.2.0/appsutil/clone/bin/../jre/bin/java -Xmx600M -classpath /u01/EBSDBA/product/11.2.0/appsutil/clone/bin/../jlib/ojdbc5.jar:/u01/EBSDBA/product/11.2.0/appsutil/clone/bin/../jlib/xmlparserv2.jar:/u01/EBSDBA/product/11.2.0/appsutil/clone/bin/../jlib/java oracle.apps.ad.context.CloneContext -e /u01/EBSDBA/product/11.2.0/appsutil/EBSDBA1_dxd1db01-ib.xml -tmpl /u01/EBSDBA/product/11.2.0/appsutil/template/adxdbctx.tmp -pairsfile /u01/EBSDBA/product/11.2.0/appsutil/clone/pairsfile2.txt -out /u01/EBSDBA/product/11.2.0/appsutil/EBSDBA2_dxd1db02-ib.xml -addnode -noprompt
    Log file located at /u01/EBSDBA/product/11.2.0/appsutil/log/CloneContext_0916151900.log
    RC-50004: Error occurred in CloneContext:
    null
    Check Clone Context logfile /u01/EBSDBA/product/11.2.0/appsutil/log/CloneContext_0916151900.log for details.
    ERROR: context creation not completed successfully.
    Log contains this:
    Using admin directory: /u01/EBSDBA/product/11.2.0/appsutil
    #------Log File time stamp: 0916151900------------
    # $Header: CloneContext.java 120.92.12010000.26 2013/05/06 12:02:01 mmanku ship $
    # Running on          - dxd1client02
    # Source Host         - null
    # Domain Name         - mgmt.shared.health.nz
    # Context Location    - /u01/EBSDBA/product/11.2.0/appsutil/EBSDBA1_dxd1db01-ib.xml
    # Context Type        - null
    # Context Template    - /u01/EBSDBA/product/11.2.0/appsutil/template/adxdbctx.tmp
    # Clone Stage Area    - null
    # Pairs File          - /u01/EBSDBA/product/11.2.0/appsutil/clone/pairsfile2.txt
    # Destination Context - /u01/EBSDBA/product/11.2.0/appsutil/EBSDBA2_dxd1db02-ib.xml
    # Validation          - false
    # Platform Migration  - false
    # no prompt           - true
    Variables extracted from pairsfile: /u01/EBSDBA/product/11.2.0/appsutil/clone/pairsfile2.txt
    ****************************************************/n
      s_undo_tablespace  =  APPS_UNDOTS2
      s_dbClusterInst  =  2
      s_db_oh  =  /u01/EBSDBA/product/11.2.0
      s_dbhost  =  dxd1db02-ib
      s_dbSid  =  EBSDBA2
      s_hostname  =  dxd1db02-ib
      s_dbGlnam  =  EBSDBA
      s_database_type  =  RAC
      s_virtual_hostname  =  dxd1db02-ib
      s_clusterInterConnects  =  dxd1db02-priv
      s_base  =  /u01/EBSDBA
      s_dbuser  =  orebsdba
      s_dbgroup  =  oinstall
      s_db_util_filedir  =  /u01/EBSDBA/tmp
      s_dbhome1  =  +DATA_DXD1
      s_display  =  dxd1db02-ib:0.0
      s_instName  =  EBSDBA2
      s_domainname  =  mgmt.shared.health.nz
      s_instThread  =  2
      s_dbCluster  =  true
      s_contextname  =  EBSDBA2_dxd1db02-ib
      s_dbdomain  =  mgmt.shared.health.nz
      s_instNumber  =  2
      s_db_ons_remoteport  =  6414
      s_db_ons_localport  =  6314
      s_cmanport  =  1535
      s_dbport  =  1535
      s_port_pool  =  14
    StackTrace:
    java.lang.NullPointerException
    at oracle.apps.ad.context.CloneContext$RACContext.checkRACDBConnection(CloneContext.java:6424)
    at oracle.apps.ad.context.CloneContext$RACContext.access$400(CloneContext.java:5655)
    at oracle.apps.ad.context.CloneContext.getInputDBRACAdd(CloneContext.java:1587)
    at oracle.apps.ad.context.CloneContext.getInputFromUsers(CloneContext.java:988)
    at oracle.apps.ad.context.CloneContext.doClone(CloneContext.java:601)
    at oracle.apps.ad.context.CloneContext.main(CloneContext.java:5266)
    RC-50004: Error occurred in CloneContext:
    null
    Context file creation not succesful
    I have been trying to work my way through the stack trace and the source code.  I can see that getInputFromUsers() is called and that then calls getInputDBRACAdd().   That will then call checkRACDBConnection().  The question is where in checkRACDBConnection() – source code below – is it finding the NULL?
    I am guessing that as we don’t see the following in the log file:
    LogFile.getLogFile().info("Attempting to connect to database using :\n");
    the NULL has to happen before this line.  This gives us to work with:
    s = CloneContext.access$2000(CloneContext.this).getReplValIgnoreCase("s_apps_user").toString();
            if(CloneContext.access$2500(CloneContext.this) == null)
                CloneContext.access$2502(CloneContext.this, CloneContext.access$1400(CloneContext.this, "APPS password is required to validate database connection \nEnter APPS Password [APPS]"));
            i = 0;
    _L2:
            String s1;
            if(i >= m_racHostList.length)
                break; /* Loop/switch isn't completed */
            s1 = (new StringBuilder()).append("jdbc:oracle:thin:@").append(m_racHostList[i]).append(".").append(m_racdomain).append(":").append(m_racPortList[i]).append(":").append(m_racSidList[i]).toString();
    Not  much.
    Could it be this?
    if(i >= m_racHostList.length)
    In which case perhaps s_rachostlist needs to be set?  But I think the length function should return 0 not NULL if something is unset, so perhaps not.
    I am not sure there would be a problem with s_apps_user or the string assignment.
    So perhaps it’s the loop.
    i = 0;
    _L2:
            String s1;
            if(i >= m_racHostList.length)
                break; /* Loop/switch isn't completed */
    ‘i’ is set to 0.  If m_racHostList.length is 0 that means it breaks out of the conditional and, though I don’t know enough Java to be sure, as the function throws an exception, perhaps it goes into the exception handler:
    catch(Exception exception)
                Object obj1 = null;
                String as[] = {
                    m_racSidList[i]
                String s2 = MessageHandler.getMessage("RC-40201", as, 0, false);
                LogFile.getLogFile().printStackTrace(exception);
                LogFile.getLogFile().info(s2);
                i++;
    But that gives us an RC-40201 message, which isn’t what I'm seeing.
    So I just don’t know, unless s_rachostlist is the key, I am out of ideas.
    Has anyone else done this?
    I've also raised an SR but haven't had a response yet.
    Thanks in advance.
    Jeremy

    further info..
    I've pulled these variables out of the java code and added them to the pairsfile which gets rid of the null value problem but now it returns a tns error..
    s_isDBCluster=Y
    s_rachostlist=dxd1db01-ib
    s_racdomain=xxxxxxxxxxxxxxx
    s_racsidlist=EBSDBA
    s_racportlist=1535
    s_rachostlist=dxd1db02-ib                      
    s_racvirtualhostlist=dxd1db02-ib                      
    s_racinstnumlist=2
    s_clusterInterConnects=dxd1db02-priv
    we noticed that s_rachostlist is used for two different values in the java code, interactilvey this value is prmpted for twice using the same variable - this may be causing our problem.
    strangely when run interactively the tns connectivity details are the same as when run interactively, the first works the latter doesn't ...
    we're thinking this could be a bug...
    Cheers
    Jeremy

  • RC-50004: Fatal: Error occurred in ApplyDBTier during adcfgclone.pl

    Hi,
    While running adcfgclone.pl, I am encountering <RC-50004: Fatal: Error occurred in ApplyDBTier> message.
    Full log is
    - >
    RC-50004: Fatal: Error occurred in ApplyDBTier:
    StackTrace -
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at oracle.apps.ad.clone.util.CloneProcessor.run(CloneProcessor.java:67)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.NoClassDefFoundError: oracle/jdbc/OracleDriver
    at oracle.apps.ad.util.DBUtil.registerDriver(DBUtil.java:153)
    at oracle.apps.ad.util.DBUtil.<init>(DBUtil.java:102)
    at oracle.apps.ad.tools.configuration.FileSysDBCtxMerge.getDBConnection(FileSysDBCtxMerge.java:802)
    at oracle.apps.ad.tools.configuration.FileSysDBCtxMerge.initializeParams(FileSysDBCtxMerge.java:150)
    at oracle.apps.ad.tools.configuration.FileSysDBCtxMerge.setParams(FileSysDBCtxMerge.java:131)
    at oracle.apps.ad.context.CtxValueMgt.mergeCustomInFiles(CtxValueMgt.java:1789)
    at oracle.apps.ad.context.CtxValueMgt.processCtxFile(CtxValueMgt.java:1608)
    at oracle.apps.ad.clone.ApplyDBTechStack.runCVM(ApplyDBTechStack.java:646)
    at oracle.apps.ad.clone.ApplyDBTechStack.runAutoConfig(ApplyDBTechStack.java:699)
    at oracle.apps.ad.clone.ApplyDBTechStack.doConf(ApplyDBTechStack.java:369)
    at oracle.apps.ad.clone.ApplyDBTechStack.doApply(ApplyDBTechStack.java:397)
    at oracle.apps.ad.clone.ApplyDBTechStack.<init>(ApplyDBTechStack.java:313)
    at oracle.apps.ad.clone.ApplyDBTier.<init>(ApplyDBTier.java:104)
    ... 6 more
    Caused by: java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    ... 19 more
    ERROR while running Apply...
    Wed Oct 19 10:35:53 2011
    ERROR: Failed to execute /d03/oracle/sid/db/tech_st/11.2.0/appsutil/clone/bin/adclone.pl
    < -
    Can someone help me to resolve this issue?
    I think this is different than the similar errors in Troubleshooting RapidClone issues with Oracle Applications R12 [ID 603104.1]...

    Yes, I have 11gR2 database at the moment.
    To make sure... Are you referring to the target database system?
    Now, I am still in the middle of cloning, and when I tried to run sqlplus I get the error saying that <SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory>.
    So yes, failure occurred in the early stage of running adcfgclone.pl script.
    I took some more logs before RC-5004 error message.
    ->
    Beginning database tier Apply - Wed Oct 19 10:35:14 2011
    APPS Password : Log file located at /d03/oracle/SID/db/tech_st/11.2.0/appsutil/log/CONTEXT/ApplyDBTier_10191035.log
    | 0% completed NON-COMPLIANT: /d03/oracle/SID/db/tech_st/11.2.0//oraInst.loc does not point to an inventory inside the current ORACLE_HOME
    Rapid Clone only supports oraInst.loc at that location if its content points to an inventory inside the same ORACLE_HOME
    Please make the necessary changes to the following file:
    /d03/oracle/SID/db/tech_st/11.2.0//oraInst.loc
    running OUI CLI home cloning:
    /d03/oracle/SID/db/tech_st/11.2.0/oui/bin/runInstaller -clone -silent -force -waitForCompletion -invPtrLoc /etc/oraInst.loc ORACLE_HOME=/d03/oracle/SID/db/tech_st/11.2.0 ORACLE_BASE=/d03/oracle/SID/db/tech_st/11.2.0 ORACLE_HOME_NAME=SID_db112_RDBMS
    \ 0% completed
    RC-50004: Fatal: Error occurred in ApplyDBTier:
    <-
    In addition, oraInst.loc is existing in the target ORACLE_HOME directory, owned by the target oracle user.
    oraInst.loc has
    inventory_loc=/oracle/oraInventory
    where oraInventory has the right permission drwxrwx---

  • DbTier:RC-50004 Error occurred in ApplyDatabase:help me plzzzzzzzzzz

    HI,
    Am on 11.5.10.2
    DB 10gR2
    OS Red Hat Enterprise Linux AS release 4 (Nahant Update 6)
    When am trying to clone dbtier am facing this error :
    Beginning database tier Apply - Wed Jun 22 14:00:53 2011
    Log file located at /stageDB/proddb/10.2.0/appsutil/log/PROD_rofdbs5/ApplyDBTier_06221400.log
    RC-50004: Fatal: Error occurred in ApplyDatabase:
    Control file creation failed
    Before taking the source backup :
    i did the following
    1. Autoconfig - completed successfully.
    2.preclone
    3.Shutdown database (normal, innmediate) & stop listener
    4.Copy the soutce to target using scp -r root@hostname:/stageDB
    log file
    vi /stageDB/proddb/10.2.0/appsutil/log/PROD_rofdbs5/ApplyDBTier_06221400.logLoading ORACLE_HOME environment from /stageDB/proddb/10.2.0
    Logfile: /stageDB/proddb/10.2.0/appsutil/log/PROD_rofdbs5/06221400/NetServiceHandler.log
    Error generating tnsnames.ora from the database, temperory tnsnames.ora will be generated using templates
    Instantiating templates
    tnsnames.ora instantiated
    listener.ora instantiated
    adgentns.pl exiting with status 25600
    ERRORCODE = 25600 ERRORCODE_END
    log file
    /stageDB/proddb/10.2.0/appsutil/log/PROD_rofdbs5/06221400/NetServiceHandler.logClasspath : /stageDB/proddb/10.2.0/jdk/jre/lib/rt.jar:/stageDB/proddb/10.2.0/jdk/lib/dt.jar:/stageDB/proddb/10.2.0/jdk/lib/tools.jar:/stageDB/proddb/10.2.0/jdbc/lib/ojdbc14.jar:/stageDB/proddb/10.2.0/appsutil/java/xmlparserv2.zip:/stageDB/proddb/10.2.0/appsutil/java:/stageDB/proddb/10.2.0/jlib/netcfg.jar:/stageDB/proddb/10.2.0/jlib/ldapjclnt10.jar
    ===============================================================================
    NetServiceHandler 115.54 started for rofdbs5 at Wed Jun 22 14:00:59 GST 2011
    ===============================================================================
    [ Context Information ]
    Host : rofdbs5
    Domain : reyamidbs.com
    Out Dir : /stageDB/proddb/10.2.0/appsutil/out/PROD_rofdbs5/06221400
    Tier Type : DATABASE TIER
    Getting connection...
    ADX Database Utility
    getConnectionUsingAppsJDBCConnector() -->
    APPS_JDBC_URL='null'
    Trying to get connection using SID based connect descriptor
    getConnection() -->
    sDbHost : rofdbs5
    sDbDomain : reyamidbs.com
    sDbPort : 1521
    sDbSid : PROD
    sDbUser : apps
    Trying to connect using SID...
    getConnectionUsingSID() -->
    JDBC URL: jdbc:oracle:thin:@rofdbs5.reyamidbs.com:1521:PROD
    Exception occurred: java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
    Trying to connect using SID as ServiceName
    getConnectionUsingServiceName() -->
    JDBC URL: jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=rofdbs5.reyamidbs.com)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=PROD)))
    Exception occurred: java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
    Trying to connect using SID as ServiceName.DomainName
    getConnectionUsingServiceName() -->
    JDBC URL: jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=rofdbs5.reyamidbs.com)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=PROD.reyamidbs.com)))
    Exception occurred: java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
    Connection could not be obtained; returning null
    -------------------ADX Database Utility Finished---------------
    Could not get connection to the database.
    Exiting with status 100 to instantiate the tnsnames.ora template
    Creation of Directory - /stageDB/proddb/10.2.0/network/admin/PROD_rofdbs5 Succeeded.
    instantiate file:
    source : /stageDB/proddb/10.2.0/appsutil/template/ad8itns.ora
    dest : /stageDB/proddb/10.2.0/network/admin/PROD_rofdbs5/tnsnames.ora
    AutoConfig is exiting with status 0
    instantiate file:
    source : /stageDB/proddb/10.2.0/appsutil/template/ad8ilsnr.ora
    dest : /stageDB/proddb/10.2.0/network/admin/PROD_rofdbs5/listener.ora
    AutoConfig is exiting with status 0
    adgentns.pl exiting with status 25600
    ERRORCODE = 25600 ERRORCODE_END
    Thanks
    Edited by: 843272 on Jun 22, 2011 3:21 AM
    Edited by: 843272 on Jun 22, 2011 5:55 AM

    Log file located at /stageDB/proddb/10.2.0/appsutil/log/PROD_rofdbs5/ApplyDBTier_06221400.log
    RC-50004: Fatal: Error occurred in ApplyDatabase:
    Control file creation failedThis error indicates that the database was not created successfully.
    Rapid Clone Failed While Running "Adcfgclone.pl dbTier": ORA-01194 and RC-00118 [ID 375389.1]
    Adcfgclone.pl DBTier is failing with error for dbms_backup_restore.zeroDbid(0) [ID 361157.1]
    Thanks,
    Hussein

  • An error occurred in system during account assignment RFC way

    Hello Partners.
    I created a function ( FM ) type RFC and this FM call CRM_ORDER_MAINTAIN .
    The function creates Service Reques 'BUS2000223'.
    When I test the function locally, All is ok.
    But when the function is called from SAP IS-U, I have a problem
    The operation is created but with an error:
    An error occurred in system XXXXX during account assignment
    Errors occurred when assigning an account assignment object to a business transaction
    CRM_ORDER_MISC 060
    CRM_OFI 002
    I don´t have standard integration with the service request with sap IS-U. 
    Regards.
    Roberto

    Hi Manoj
    You need to assign the Controlling object type and as per the standard there are 3 controlling object types those are,
    1) Single object Controlling --> The service order replicated to ECC creates a Internal order and finally cost and revenues are posted or settled in the cost center
    2) Mass Object Controlling --> The cost and revenues of the service order are directly posted to CO-PA(Cost & Profitability Analysis)
    3) No Controlling
    Based on the business requirements you need to define the Controlling obejct,you will find the IMG customization path in ECC as follows,
    IMG>Integration with other mySAP components>CRM>Settings for Service Processing>Controlling integration-->Establish Controlling type, Controlling scenario & Controlling level.
    I hope this helps.
    Thanks
    Arun

  • R12 cloning on RAC windows 2003 R2.

    Dear All Gurus,
    I'm facing this issue with R12 cloning on RAC environment in windows 2003 R2..
    Steps Followed:
    After preclone steps completed in Source servers
    then on Target server..
    1, On DB being in D:\oracle\product\TEST2\10.2.0\db_1\appsutil\clone\bin>perl adcfgclone.pl dbTier
    error: perl is not recognized as internal or external command,
    so we made changes in .env (.cmd) file like,
    ORACLE_HOME:to new copied home
    ORACLE_SID; test2
    after we run the .env (.cmd) file.
    now again i run the perl adcfgclone.pl dbTier
    It is started, but then throw's an error like
    D:\oracle\product\TEST2\10.2.0\db_1\appsutil\clone\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.20.12000000.12
    Enter the APPS password : apps
    Running:
    D:\oracle\product\TEST2\10.2.0\db_1\appsutil\clone\bin\..\jre\bin\java.exe -Xmx6
    00M -cp D:\oracle\product\TEST2\10.2.0\db_1\appsutil\clone\jlib\java;D:\oracle\p
    roduct\TEST2\10.2.0\db_1\appsutil\clone\jlib\xmlparserv2.jar;D:\oracle\product\T
    EST2\10.2.0\db_1\appsutil\clone\jlib\ojdbc14.jar oracle.apps.ad.context.CloneCon
    text -e D:\oracle\product\TEST2\10.2.0\db_1\appsutil\clone\bin\..\context\db\CTX
    ORIG.xml -validate -pairsfile C:\TEMP\adpairsfile_5128.lst -stage D:\oracle\prod
    uct\TEST2\10.2.0\db_1\appsutil\clone  2> C:\TEMP\adcfgclone_5128.err && echo %ER
    RORLEVEL% > C:\TEMP\adcfgclone_5128.res
    Log file located at D:\oracle\product\TEST2\10.2.0\db_1\appsutil\clone\bin\Clone
    Context_0622124927.log
    Provide the values required for creation of the new Database Context file.
    Target System Hostname (virtual or normal) [testdb1] :
    Target Instance is RAC (y/n) [y] : y
    Target System Database Name : TEST2
    Do you want the the target system to have the same port values as the source sys
    tem (y/n) [y] ? : n
    Target System Port Pool [0-99] : 10
    Checking the port pool 10
    done: Port Pool 10 is free
    RC-50004: Error occurred in CloneContext:
    null
    Check Clone Context logfile D:\oracle\product\TEST2\10.2.0\db_1\appsutil\clone\b
    in\CloneContext_0622124927.log for details.
    Running Rapid Clone with command:
    perl D:\oracle\product\TEST2\10.2.0\db_1\appsutil\clone\bin\adclone.pl java=D:\o
    racle\product\TEST2\10.2.0\db_1\appsutil\clone\bin\..\jre mode=apply stage=D:\or
    acle\product\TEST2\10.2.0\db_1\appsutil\clone component=dbTier method=CUSTOM dbc
    txtg= showProgress contextValidated=true
    Running:
    perl D:\oracle\product\TEST2\10.2.0\db_1\appsutil\clone\bin\adclone.pl java=D:\o
    racle\product\TEST2\10.2.0\db_1\appsutil\clone\bin\..\jre mode=apply stage=D:\or
    acle\product\TEST2\10.2.0\db_1\appsutil\clone component=dbTier method=CUSTOM dbc
    txtg= showProgress contextValidated=true
    APPS Password :
    You must define the target database context to use
            dbctxtg=<applications context file>
    Restart adclone.pl after performing required corrections.
    ERROR: Failed to execute D:\oracle\product\TEST2\10.2.0\db_1\appsutil\clone\bin
    \adclone.pl

    Please follow the steps in (Cloning Oracle E-Business Suite Release 12 RAC-Enabled Systems with Rapid Clone [ID 559518.1]) for the supported method to clone RAC-to-RAC.
    Thanks,
    Hussein

  • RC-50004: Fatal: Error occurred in ApplyAppsTechStack: While Installatling EBS R12 on window server 2003 SP2

    Hi Mr.Hussain,
    Can you please guide me how to solve this error,
    i am trying to install oracle EBS  R12.1.1 on windows server 2003, i am following your document, installation of EBS R12.1 in windows server 2003 SP2
    i did stage everything going right, even i did md5sums for the extracted file of EBS R12 folder.
    i stated installation, even installation done perfectly at the end of installation 2 Command Prompt windows appear and stopped, i try to open log file from oracle installation folder, i got this message at the end of log file
        3% completed       RC-50004: Fatal: Error occurred in ApplyAppsTechStack:
    RC-50013: Fatal: Failed to instantiate driver c:\oracle\PROD\apps\tech_st\10.1.3\appsutil\driver\regclone.drv
    C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp>if 1 == 0 goto :REG_OK
    C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp>echo Cannot execute registration of Applications Techstack
    Cannot execute registration of Applications Techstack
    C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp>if "" == "TRUE" goto :INSIAS_OK
        RW-50010: Error: - script has returned an error:   1
    RW-50004: Error code received when running external process.  Check log file for details.
    Running APPL_TOP Install Driver for PROD instance
    can you please guide me how to solve this error,

    This is a generic error so you would need to check the installation log files for details about the error.
    Please see if (Rapidwiz 12.1.1 Fails To Execute Ouicli.Pl During Apps 10.1.3 Techstack Autoconfig (Doc ID 1328464.1)) is applicable.
    Thanks,
    Hussein

  • RC-50004: Fatal: Error occurred in ApplyDatabase (on installing EBS R12)

    Hi,
    I need help. When I was re-installing R12 using Windows XP Pro on my personal desktop, I got the following errors:
    RC-50004: Fatal: Error occurred in ApplyDatabase
    "Cannot execute configure of database using RapidClone"
    RW-50010: Error: - script has returned an error: 1
    RW-50004: Error code received when running external process.
    Running Database Install Driver for VIS instance
    instantiate file:
    source : C:\StageR12\startCD\Disk1\rapidwiz\etc\adxdbctx.tmp
    dest : C:\oracle\VIS\db\tech_st\11.1.0\appsutil\VIS_bingdell.xml
    instantiate file:
    source : C:\oracle\VIS\db\tech_st\11.1.0\appsutil\VIS_bingdell.xml
    dest : C:\oracle\VIS\db\tech_st\11.1.0\appsutil\VIS_bingdell.xml
    Please let me know what to do. BTW, I am not a DBA.
    Also I was able to install R12 before to the same desktop, now I am having problems
    re-installing it. I have also cleaned all the traces of the previous install before this re-install.
    Thanks in advance,
    Amorsolo

    Hi,
    RC-50004: Fatal: Error occurred in ApplyDatabase
    "Cannot execute configure of database using RapidClone"
    RW-50010: Error: - script has returned an error: 1
    RW-50004: Error code received when running external process.This is a generic error, so please check the installation log file for details.
    Also I was able to install R12 before to the same desktop, now I am having problems
    re-installing it. I have also cleaned all the traces of the previous install before this re-install.Did you follow the steps in (Note: 567507.1 -How to Remove an Oracle E-Business Suite Release 12.x Windows Environment) to clean your previous installation?
    Regards,
    Hussein

  • Oracle R12 Clone failing with RC-00118 Error occurred during creation of...

    Im encountering the above error message i have seen the below thread which looks like the same issue, i was wondering if someone could confirm if the clone process requires an off-line backup on the source system for the clone process to work. Currently i'm using a tape backup which runs overnight, the system is up at the time of backup.
    RC-00118: Error occurred during creation of database
    Thanks

    thanks for quick response, its a hot backup.
    the steps ive followed are
    1. adpreclone on source
    2. apps,db,inst directories deleted on destination. (after services have of course been shutdown)
    3. oracle variables removed from path
    4. backup restored from tape
    5. deleted program files/oracle/inventory directory
    6. on cmd window run set PERL5LIB=
    followed by perl adcfgclone.pl dbTier
    is there anything ive missed?

  • RC-50004: Fatal: Error occurred in ApplyDatabase:Control file creation fail

    Hi,
    During the clone of R12.1 instance, while running the post clone on the DB tier, i am getting the following error
    RC-50004: Fatal: Error occurred in ApplyDatabase:Control file creation failed.
    when i looked into the log file, i can find this
    Creating the control file for hr12at1_jsrc-cn6 database ...
    SQL*Plus: Release 11.1.0.7.0 - Production on Tue Nov 17 04:41:58 2009
    Copyright (c) 1982, 2008, Oracle. All rights reserved.
    Connected to an idle instance.
    ORACLE instance shut down.
    Connected to an idle instance.
    ORACLE instance started.
    Total System Global Area 1071333376 bytes
    Fixed Size 1318172 bytes
    Variable Size 427819748 bytes
    Database Buffers 629145600 bytes
    Redo Buffers 13049856 bytes
    Control file created.
    alter database open resetlogs
    ERROR at line 1:
    ORA-01152: file 2 was not restored from a sufficiently old backup
    ORA-01110: data file 2:
    '/u01/app/oracle11/db/apps_st/u32/oradata/R12HRM/tx_data11.dbf'
    Please help
    thanks a lot
    Sasikala

    Hi,
    Sorry, my mistake, I did not pay attention to the cloning part.
    For this error, looks like the database was not cleanly shutdown before copying the files or that preclone was not run successfully. You will have to run preclone again, and shutdown the database normally, then copy the file again.
    Regards,
    Hussein

  • RW-50010: Error, RC-50004: Fatal: Error occurred in App and exit_code=139

    I am installing R12 on Oracle Enterprise Linux and gettiing above errors.
    ++++++++ Platform++++++
    (I) OS: OEL 4 64-bit update 7 ( installed from DVD if that matters)
    [root@arun2 vmware]# uname -a
    Linux arun2.devar.com 2.6.9-78.0.0.0.1.ELsmp #1 SMP Fri Jul 25 16:04:35 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux
    [root@arun2 vmware]# more /etc/redhat-release
    Enterprise Linux Enterprise Linux AS release 4 (October Update 7)
    (II) Apps: R12 64-bit (latest available on web released on Jan 13, 2009)
    [root@arun2 rapidwiz]# ./RapidWizVersion
    Oracle Applications Rapid Install Wizard
    Version 12.0.4.6
    (c) Copyright 2000-2006 Oracle Corporation. All rights reserved.
    (III)H/W: Dell(insiron 530) Intel quad core with 6GB RAM 1TB disk
    +++++++ rapidwiz+++++
    1) Downloaded x86-64bit ebusiness suit from oracle site
    2) unzipped all packages
    3) installed recommend Linux rpms
    [root@arun2 vmware]# more /tmp/orarpm.2.sh
    rpm -Uvh binutils-2.15.92.0.2-25.x86_64.rpm
    rpm -Uvh compat-db-4.1.25-9.i386.rpm
    rpm -Uvh compat-db-4.1.25-9.x86_64.rpm
    rpm -Uvh control-center-2.8.0-12.rhel4.5.x86_64.rpm
    rpm -Uvh gcc-3.4.6-10.0.1.x86_64.rpm
    rpm -Uvh gcc-c++-3.4.6-10.0.1.x86_64.rpm
    rpm -Uvh glibc-2.3.4-2.41.i686.rpm
    rpm -Uvh glibc-2.3.4-2.41.x86_64.rpm
    rpm -Uvh glibc-devel-2.3.4-2.41.i386.rpm
    rpm -Uvh glibc-devel-2.3.4-2.41.x86_64.rpm
    rpm -Uvh glibc-common-2.3.4-2.41.x86_64.rpm
    rpm -Uvh gnome-libs-1.4.1.2.90-44.2.x86_64.rpm
    rpm -Uvh libstdc++-3.4.6-10.0.1.i386.rpm
    rpm -Uvh libstdc++-3.4.6-10.0.1.x86_64.rpm
    rpm -Uvh libstdc++-devel-3.4.6-10.0.1.i386.rpm
    rpm -Uvh libstdc++-devel-3.4.6-10.0.1.x86_64.rpm
    rpm -Uvh libgcc-3.4.6-10.0.1.i386.rpm
    rpm -Uvh libgcc-3.4.6-10.0.1.x86_64.rpm
    rpm -Uvh make-3.80-7.EL4.x86_64.rpm
    rpm -Uvh pdksh-5.2.14-30.6.x86_64.rpm
    rpm -Uvh setarch-1.6-1.x86_64.rpm
    rpm -Uvh sysstat-5.0.5-19.el4.x86_64.rpm
    rpm -Uvh xscreensaver-4.18-5.rhel4.14.0.1.x86_64.rpm
    rpm -Uvh openmotif21-2.1.30-11.0.1.RHEL4.6.i386.rpm
    rpm -Uvh libaio-0.3.105-2.x86_64.rpm
    rpm -Uvh libaio-0.3.105-2.i386.rpm
    rpm -Uvh libaio-devel-0.3.105-2.x86_64.rpm
    Note: some of them were already applied.
    4) Changed /etc/sysctl.conf
    kernel.shmmax=3221225472
    net.ipv4.ip_local_port_range = 2024 65000
    kernel.semmsl=256
    kernel.semmns=32000
    kernel.semopm=100
    kernel.semmni=142
    kernel.shmall=2097152
    kernel.shmmni=4096
    kernel.msgmax=8192
    kernel.msgmnb=65535
    kernel.msgmni=2878
    fs.file-max=65536
    net.core.rmem_default=262144
    net.core.rmem_max=262144
    net.core.wmem_default=262144
    net.core.wmem_max=262144
    Note: rebooted the server couple of times
    5) /etc/hosts entry
    [root@arun2 vmware]# more /etc/hosts
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1 localhost.localdomain localhost
    192.168.2.5 arun2.devar.com arun2
    6) openmotif:
    [root@arun2 vmware]# rpm -qa| grep openm
    openmotif-2.2.3-10.2.el4
    openmotif-devel-2.2.3-10.2.el4
    openmpi-libs-1.2.5-5.el4
    openmotif-2.2.3-10.2.el4
    openmotif21-2.1.30-11.0.1.RHEL4.6
    7) added couple of params to /etc/resolv.conf
    options attempts:5
    options timeout:15
    8) Another hostname file
    [root@arun2 rapidwiz]# more /etc/sysconfig/network
    NETWORKING=yes
    HOSTNAME=arun2.devar.com
    9) there is no file called /etc/sysconfig/networking/profiles/default/network
    [root@arun2 rapidwiz]# ls -l /etc/sysconfig/networking/profiles/default/network
    ls: /etc/sysconfig/networking/profiles/default/network: No such file or directory
    10) soft and all in /etc/security/limits.conf
    # Added for Oracle
    hard nofile 65535
    soft nofile 4096
    hard nproc 16384
    soft nproc 2047
    11) It fails at 33% of steps 2
    12) I find most binaries are crashing. ldd command on binary doesn't show anything is missing.
    13) file on libraries looks like this
    [oracle6@arun2 ~]$ file /d01/oracle6/MARS10/db/tech_st/10.2.0/lib/libsqlplus.so /d01/oracle6/MARS10/db/tech_st/10.2.0/lib/libclntsh.so.10.1
    /d01/oracle6/MARS10/db/tech_st/10.2.0/lib/libsqlplus.so: ELF 64-bit LSB shared object, AMD x86-64, version 1 (SYSV), not stripped
    /d01/oracle6/MARS10/db/tech_st/10.2.0/lib/libclntsh.so.10.1: ELF 64-bit LSB shared object, AMD x86-64, version 1 (SYSV), not stripped
    It become challenging and frustrating for me. I am really exhausted. Any help would be greately appreciated.
    Regards
    -Arun
    PS: snip of log file:
    (a)
    | 0% completed
    / 0% completed
    - 0% completed
    \ 0% completed RC-50004: Fatal: Error occurred in ApplyDatabase:
    Control file creation failed
    Cannot execute configure of database using RapidClone
    RW-50010: Error: - script has returned an error: 1
    RW-50004: Error code received when running external process. Check log file for details.
    Running Database Install Driver for MARS6 instance
    ADX Database Utility
    (b) tail -30
    /d01/oracle6/MARS6/db/tech_st/10.2.0/appsutil/log/MARS6_arun2/ApplyDatabase_02021441.log
    Executable : /d01/oracle6/MARS6/db/tech_st/10.2.0/bin/sqlplus
    The log information will be written to
    /d01/oracle6/MARS6/db/tech_st/10.2.0/appsutil/log/MARS6_arun2/adcrdb_MARS6.txt
    Creating the control file for MARS6_arun2 database ...
    exit_code=139
    Checking for errors ...
    getConnectionUsingAppsJDBCConnector() -->
    APPS_JDBC_URL='null'
    Trying to get connection using SID based connect descriptor
    getConnection() -->
    sDbHost : arun2
    sDbDomain : devar.com
    sDbPort : 1537
    sDbSid : MARS6
    sDbUser : APPS
    Trying to connect using SID...
    getConnectionUsingSID() -->
    JDBC URL: jdbc:oracle:thin:@arun2.devar.com:1537:MARS6
    Exception occurred: java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
    Trying to connect using SID as ServiceName
    getConnectionUsingServiceName() -->
    JDBC URL: jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=arun2.devar.com)(PORT=1537))(CONNECT_DATA=(SERVICE_NAME=MARS6)))
    Exception occurred: java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
    Trying to connect using SID as ServiceName.DomainName
    getConnectionUsingServiceName() -->
    JDBC URL: jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=arun2.devar.com)(PORT=1537))(CONNECT_DATA=(SERVICE_NAME=MARS6.devar.com)))
    Exception occurred: java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
    Connection could not be obtained; returning null
    -------------------ADX Database Utility Finished---------------
    RC-00118: Error occurred during creation of database
    Raised by oracle.apps.ad.clone.ApplyDatabase

    Thanks, appreciate your reply. As I mentioned earlier, binaries are crashing. (side note: I am on 10th attempt, so SID=MARS10)
    1) There is a connection issue, not sure why.
    2) I see, something cored. .... adcrdb.sh: line 107: 30881 Segmentation fault sqlplus /nolog......(full text below)
    3) ldd on sqlplus in case required
    [oracle6@arun2 bin]$ ldd sqlplus
         libsqlplus.so => /d01/oracle6/MARS10/db/tech_st/10.2.0/lib/libsqlplus.so (0x0000002a95557000)
         libclntsh.so.10.1 => /d01/oracle6/MARS10/db/tech_st/10.2.0/lib/libclntsh.so.10.1 (0x0000002a9574a000)
         libnnz10.so => /d01/oracle6/MARS10/db/tech_st/10.2.0/lib/libnnz10.so (0x0000002a96ae6000)
         libdl.so.2 => /lib64/libdl.so.2 (0x00000039f7200000)
         libm.so.6 => /lib64/tls/libm.so.6 (0x00000039f7000000)
         libpthread.so.0 => /lib64/tls/libpthread.so.0 (0x00000039f7a00000)
         libnsl.so.1 => /lib64/libnsl.so.1 (0x00000039feb00000)
         libc.so.6 => /lib64/tls/libc.so.6 (0x00000039f6d00000)
         /lib64/ld-linux-x86-64.so.2 (0x00000039f6b00000)
    4) last part of $ORACLE_HOME/appsutil/log/MARS10_arun2/ApplyDatabase_02061554.log
    ADX Database Utility
    getConnectionUsingAppsJDBCConnector() -->
    APPS_JDBC_URL='null'
    Trying to get connection using SID based connect descriptor
    getConnection() -->
    sDbHost : arun2
    sDbDomain : devar.com
    sDbPort : 1541
    sDbSid : MARS10
    sDbUser : APPS
    Trying to connect using SID...
    getConnectionUsingSID() -->
    JDBC URL: jdbc:oracle:thin:@arun2.devar.com:1541:MARS10
    Exception occurred: java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
    Trying to connect using SID as ServiceName
    getConnectionUsingServiceName() -->
    JDBC URL: jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=arun2.devar.com)(PORT=1541))(CONNECT_DATA=(SERVICE_NAME=MARS10)))
    Exception occurred: java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
    Trying to connect using SID as ServiceName.DomainName
    getConnectionUsingServiceName() -->
    JDBC URL: jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=arun2.devar.com)(PORT=1541))(CONNECT_DATA=(SERVICE_NAME=MARS10.devar.com)))
    Exception occurred: java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
    Connection could not be obtained; returning null
    -------------------ADX Database Utility Finished---------------
    adcrdb.sh started at Fri Feb 6 15:54:57 EST 2009
    The environment settings are as follows ...
    ORACLE_HOME : /d01/oracle6/MARS10/db/tech_st/10.2.0
    ORACLE_SID : MARS10
    TWO_TASK :
    PATH : /d01/oracle6/MARS10/db/tech_st/10.2.0/perl/bin:/d01/oracle6/MARS10/db/tech_st/10.2.0/bin:/usr/bin:/usr/sbin:/d01/oracle6/MARS10/db/tech_st/10.2.0/appsutil/jre/bin:/bin:/usr/bin/X11:/usr/local/bin:/usr/bin:/usr/bin:/softwares/appsr12/startCD/Disk1/rapidwiz/unzip/Linux_x64:/usr/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin
    LD_LIBRARY_PATH : /d01/oracle6/MARS10/db/tech_st/10.2.0/lib:/usr/X11R6/lib:/usr/openwin/lib:/d01/oracle6/MARS10/db/tech_st/10.2.0/lib:/usr/dt/lib:/d01/oracle6/MARS10/db/tech_st/10.2.0/ctx/lib
    Executable : /d01/oracle6/MARS10/db/tech_st/10.2.0/bin/sqlplus
    The log information will be written to
         /d01/oracle6/MARS10/db/tech_st/10.2.0/appsutil/log/MARS10_arun2/adcrdb_MARS10.txt
    Creating the control file for MARS10_arun2 database ...
    exit_code=139
    Checking for errors ...
    .end std out.
    /d01/oracle6/MARS10/db/tech_st/10.2.0/appsutil/install/MARS10_arun2/adcrdb.sh: line 107: 30881 Segmentation fault sqlplus /nolog @/d01/oracle6/MARS10/db/tech_st/10.2.0/appsutil/install/MARS10_arun2/adcrdbclone.sql "so" "$S_RDBMS_VERS"
    egrep: /d01/oracle6/MARS10/db/tech_st/10.2.0/appsutil/log/MARS10_arun2/adcrdb_MARS10.txt: No such file or directory
    .end err out.
    -------------------ADX Database Utility Finished---------------
    RC-00118: Error occurred during creation of database
    Raised by oracle.apps.ad.clone.ApplyDatabase

  • Cloning Issue RC-00118: Error occurred during creation of database

    Friends,
    I execute following scripts on source system preclone.pl dbTier  &perl adpreclone.pl appsTier
    then take the cold source backup and transfer on another machine for cloning but when i am executing cloning script on db tier i am getting below mention error after 50% completion. I have very limited time and i cant go back on source system for fresh backup, please help me to sort out his issue.
    -------------------ADX Database Utility Finished--------------
    RC-00118: Error occurred during creation of database
    Raised by oracle.apps.ad.clone.ApplyDatabase
    StackTrace:
    java.lang.Exception: Control file creation failed
            at oracle.apps.ad.clone.ApplyDatabase.doConf(ApplyData
            at oracle.apps.ad.clone.ApplyDatabase.doApply(ApplyDat
            at oracle.apps.ad.clone.ApplyDatabase.<init>(ApplyData
            at oracle.apps.ad.clone.ApplyDBTier.<init>(ApplyDBTier
            at sun.reflect.NativeConstructorAccessorImpl.newInstan
            at sun.reflect.NativeConstructorAccessorImpl.newInstan
            at sun.reflect.DelegatingConstructorAccessorImpl.newIn                      rce)
            at java.lang.reflect.Constructor.newInstance(Unknown S
            at oracle.apps.ad.clone.util.CloneProcessor.run(CloneP
            at java.lang.Thread.run(Unknown Source)
    Hopes you will support.
    Regards
    Irfan Ahmad

    plz check :
    http://doganayn.blogspot.in/2013/11/rc-50004-fatal-error-occurred-in.html
    Rapid Clone Failed While Running "Adcfgclone.pl dbTier": ORA-01194 and RC-00118 (Doc ID 375389.1)
    Troubleshooting RapidClone issues with Oracle Applications R12 (Doc ID 603104.1)
    Troubleshooting RapidClone issues with Oracle Applications 11i (Doc ID 364565.1)
    Regards,
    Haafiz

  • RC-50004: Fatal: Error occurred in ApplyDatabase: Control file creation fai

    Hi guys,
    I am cloning and EBS 12.1.3 from one server to another, and when Configuring the target system database server with ''perl adcfgclone.pl dbTier'', I am getting the following error:
    RC-50004: Fatal: Error occurred in ApplyDatabase:
    Control file creation failed
    MOS is saying that it is due to wrong permissions on the /var/tmp/.oracle directory and we should give it the following permissions:
    chmod 777 /var/tmp/.oracle
    After giving those permissions and rebooting the server , and running the perl adcfgclone.pl dbTier script, I am still having the same problem:
    RC-50004: Fatal: Error occurred in ApplyDatabase:
    Control file creation failed
    This is the contents of the ApplyDBTier log file (since the file exceed 30.000 characters, i am going to post the parts where the errors occur:
    [oratest@DLAERPSRV01 ERP_DLAERPSRV01]$ cat ApplyDBTier_05021530.log
    Started ApplyDBTier at Thu May 02 15:30:44 WAT 2013
    Version:
    ApplyDBTier.java : 120.6.12010000.3
    ApplyDBTier (prog) -1 true true true...
    # Calling ApplyDBTechStack...
    Executing runInstallDriver...
    Started unzipping files...
    Completed runInstallDriver.
    Executing home registration for s_db_oh...
    instantiate file:
    source : /u02/oratest/db/tech_st/11.1.0/appsutil/template/adouidb.pl
    dest : /u02/oratest/db/tech_st/11.1.0/appsutil/clone/ouicli.pl
    backup : /u02/oratest/db/tech_st/11.1.0/appsutil/clone/ouicli.pl to /u02/oratest/db/tech_st/11.1.0/appsutil/out/ouicli20.pl
    setting permissions: 700
    setting ownership: oratest:dba
    instantiate file:
    source : /u02/oratest/db/tech_st/11.1.0/appsutil/template/config_ux.tmp
    dest : /u02/oratest/db/tech_st/11.1.0/rdbms/lib/config.c
    backup : /u02/oratest/db/tech_st/11.1.0/rdbms/lib/config.c to /u02/oratest/db/tech_st/11.1.0/appsutil/out/config21.c
    setting permissions: 700
    setting ownership: oratest:dba
    instantiate file:
    source : /u02/oratest/db/tech_st/11.1.0/appsutil/template/adlnkoh.sh
    dest : /u02/oratest/db/tech_st/11.1.0/appsutil/clone/adlnkoh.sh
    backup : /u02/oratest/db/tech_st/11.1.0/appsutil/clone/adlnkoh.sh to /u02/oratest/db/tech_st/11.1.0/appsutil/out/adlnkoh20.sh
    setting permissions: 700
    setting ownership: oratest:dba
    Executing script in InstantiateFile:
    /u02/oratest/db/tech_st/11.1.0/perl/bin/perl -I /u02/oratest/db/tech_st/11.1.0/perl/lib/5.8.3 -I /u02/oratest/db/tech_st/11.1.0/perl/lib/site_perl/5.8.3 -I /u02/oratest/db/tech_st/11.1.0/appsutil/perl /u02/oratest/db/tech_st/11.1.0/appsutil/clone/ouicli.pl
    script returned:
    Beginning OUI CLI cloning for s_db_ohThu May 2 15:30:46 2013
    /u02/oratest/db/tech_st/11.1.0/appsutil/jre/bin/java -classpath /u02/oratest/db/tech_st/11.1.0/appsutil/java:/u02/oratest/db/tech_st/11.1.0/oui/jlib/OraInstaller.jar:/u02/oratest/db/tech_st/11.1.0/appsutil/java/xmlparserv2.jar oracle.apps.ad.clone.util.OracleHomeCloner -OUICLI -e /u02/oratest/db/tech_st/11.1.0/appsutil/ERP_DLAERPSRV01.xml -nolink -oaVar s_db_oh -homestub db -log /u02/oratest/db/tech_st/11.1.0/appsutil/log/ERP_DLAERPSRV01/ohclone.log
    Running OUI CLI home cloning from within OracleHomeCloner:
    /u02/oratest/db/tech_st/11.1.0/oui/bin/runInstaller -clone -silent -force -nolink -waitForCompletion -invPtrLoc /u02/oratest/db/tech_st/11.1.0/admin/oui/ERP_DLAERPSRV01/oraInst.loc ORACLE_HOME=/u02/oratest/db/tech_st/11.1.0 ORACLE_BASE=/u02/oratest/db/tech_st/11.1.0 ORACLE_HOME_NAME=ERP_DB__u02_oratest_db_tech_st_11_1_0 -J-Doracle.installer.noLink=true
    Finished OUI CLI cloning for s_db_oh with return code: 0Thu May 2 15:30:56 2013
    Executing script in InstantiateFile:
    /u02/oratest/db/tech_st/11.1.0/appsutil/clone/adlnkoh.sh
    script returned:
    adlnkoh.sh started at Thu May 2 15:30:56 WAT 2013
    Log file located at /u02/oratest/db/tech_st/11.1.0/appsutil/log/ERP_DLAERPSRV01/make_05021530.log
    Using make file "ins_emagent.mk" for linking SYSMAN utilities...
    Error while running adlnkoh.sh.
    return code = .16
    Please check logfile located at /u02/oratest/db/tech_st/11.1.0/appsutil/log/ERP_DLAERPSRV01/make_05021530.log
    .end std out.
    .end err out.
    Executing Technology Stack Configuration...
    Executing runAutoConfig...
    Deleting files of type INSTALL
    Checking for file: /u02/oratest/db/tech_st/11.1.0/network/admin/ERP_DLAERPSRV01/sqlnet.ora
    Processing driver file: /u02/oratest/db/tech_st/11.1.0/appsutil/template/addbtmpl.drv
    Checking for file: /u02/oratest/db/tech_st/11.1.0/appsutil/install/ERP_DLAERPSRV01/txkConfigDbOcm.pl
    File exists
    File deleted
    Checking for file: /u02/oratest/db/tech_st/11.1.0/dbs/initERP.ora
    File exists
    File deleted
    Checking for file: /u02/oratest/db/tech_st/11.1.0/network/admin/ERP_DLAERPSRV01/listener.ora
    File exists
    File deleted
    Checking for file: /u02/oratest/db/tech_st/11.1.0/network/admin/ERP_DLAERPSRV01/tnsnames.ora
    File exists
    File deleted
    Testing for RAC specific parameters before running autoconfig
    No RAC specific parameters were found, running with CVM
    Starting CVM in INSTE8_SETUP mode
    Using Context file : /u02/oratest/db/tech_st/11.1.0/appsutil/ERP_DLAERPSRV01.xml
    Attempting to create a back up of the Context file
    Created back up file of name :
    /u02/oratest/db/tech_st/11.1.0/appsutil/out/ERP_DLAERPSRV01/05021531/ERP_DLAERPSRV01.xml
    ===========================================================================
    Starting synchronization of file system Context file and its templates with those in the database
    Database connection : Failed
    OAM Context editing support feature: Unverified
    OAM Customization support feature : Unverified
    File system template : /u02/oratest/db/tech_st/11.1.0/appsutil/template/adxdbctx.tmp
    Checking for customizations to Context template
    Warning: Unable to connect to Database.
    If the system is OAM enabled, this may result in loss of customizations.
    Looking for custom template at : /u02/oratest/db/tech_st/11.1.0/appsutil/template/custom/adxdbctx.tmp
    Custom template : Not Available
    Customizations found : None
    File system Context file :/u02/oratest/db/tech_st/11.1.0/appsutil/ERP_DLAERPSRV01.xml
    Checking the Context file for possible updates from the Database
    Warning: Unable to connect to Database.
    If the system is OAM enabled, this may result in loss of customizations and the Context files in DataBase and in the file system may be unsynchronized
    ===========================================================================
    Starting Updates of Context file Thu May 02 15:31:44 WAT 2013
    found context version : 120.34.12010000.14
    available update version : 120.34.12010000.14
    No updates to apply
    Starting DB listener with command:
    /u02/oratest/db/tech_st/11.1.0/appsutil/scripts/ERP_DLAERPSRV01/addlnctl.sh start ERP
    Logfile: /u02/oratest/db/tech_st/11.1.0/appsutil/log/ERP_DLAERPSRV01/addlnctl.txt
    You are running addlnctl.sh version 120.1.12010000.4
    Starting listener process ERP ...
    LSNRCTL for Linux: Version 11.1.0.7.0 - Production on 02-MAY-2013 15:32:23
    Copyright (c) 1991, 2008, Oracle. All rights reserved.
    Starting /u02/oratest/db/tech_st/11.1.0/bin/tnslsnr: please wait...
    TNSLSNR for Linux: Version 11.1.0.7.0 - Production
    System parameter file is /u02/oratest/db/tech_st/11.1.0/network/admin/ERP_DLAERPSRV01/listener.ora
    Log messages written to /u02/oratest/db/tech_st/11.1.0/admin/ERP_DLAERPSRV01/diag/tnslsnr/DLAERPSRV01/erp/alert/log.xml
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=DLAERPSRV01.camairco.local)(PORT=1523)))
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=DLAERPSRV01.camairco.local)(PORT=1523)))
    STATUS of the LISTENER
    Alias ERP
    Version TNSLSNR for Linux: Version 11.1.0.7.0 - Production
    Start Date 02-MAY-2013 15:32:23
    Uptime 0 days 0 hr. 0 min. 0 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /u02/oratest/db/tech_st/11.1.0/network/admin/ERP_DLAERPSRV01/listener.ora
    Listener Log File /u02/oratest/db/tech_st/11.1.0/admin/ERP_DLAERPSRV01/diag/tnslsnr/DLAERPSRV01/erp/alert/log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=DLAERPSRV01.camairco.local)(PORT=1523)))
    Services Summary...
    Service "ERP" has 1 instance(s).
    Instance "ERP", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    addlnctl.sh: exiting with status 0
    addlnctl.sh: check the logfile /u02/oratest/db/tech_st/11.1.0/appsutil/log/ERP_DLAERPSRV01/addlnctl.txt for more information ...
    .end std out.
    .end err out.
    checking DB Connection...
    DEBUG: checkDBConnection in()
    ADX Database Utility
    getConnection() -->
    sDbHost : DLAERPSRV01
    sDbDomain : camairco.local
    sDbPort : 1523
    sDbSid : ERP
    sDbUser : apps
    Trying to connect using SID...
    getConnectionUsingSID() -->
    JDBC URL: jdbc:oracle:thin:@DLAERPSRV01.camairco.local:1523:ERP
    Exception occurred: java.sql.SQLRecoverableException: ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux-x86_64 Error: 2: No such file or directory
    Trying to connect using SID as ServiceName
    getConnectionUsingServiceName() -->
    JDBC URL: jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=DLAERPSRV01.camairco.local)(PORT=1523))(CONNECT_DATA=(SERVICE_NAME=ERP)))
    Exception occurred: java.sql.SQLRecoverableException: ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux-x86_64 Error: 2: No such file or directory
    Trying to connect using SID as ServiceName.DomainName
    getConnectionUsingServiceName() -->
    JDBC URL: jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=DLAERPSRV01.camairco.local)(PORT=1523))(CONNECT_DATA=(SERVICE_NAME=ERP.camairco.local)))
    Exception occurred: java.sql.SQLException: Listener refused the connection with the following error:
    ORA-12514, TNS:listener does not currently know of service requested in connect descriptor
    Connection could not be obtained; returning null
    -------------------ADX Database Utility Finished---------------
    DEBUG: checkDBConnection out()
    Skipping Profile Phase
    Skipping Apply Phase
    Executing CreateDB...
    ADX Database Utility
    getConnectionUsingAppsJDBCConnector() -->
    APPS_JDBC_URL='null'
    Trying to get connection using SID based connect descriptor
    getConnection() -->
    sDbHost : DLAERPSRV01
    sDbDomain : camairco.local
    sDbPort : 1523
    sDbSid : ERP
    sDbUser : apps
    Trying to connect using SID...
    getConnectionUsingSID() -->
    JDBC URL: jdbc:oracle:thin:@DLAERPSRV01.camairco.local:1523:ERP
    Exception occurred: java.sql.SQLRecoverableException: ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux-x86_64 Error: 2: No such file or directory
    Trying to connect using SID as ServiceName
    getConnectionUsingServiceName() -->
    JDBC URL: jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=DLAERPSRV01.camairco.local)(PORT=1523))(CONNECT_DATA=(SERVICE_NAME=ERP)))
    Exception occurred: java.sql.SQLRecoverableException: ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux-x86_64 Error: 2: No such file or directory
    Trying to connect using SID as ServiceName.DomainName
    getConnectionUsingServiceName() -->
    JDBC URL: jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=DLAERPSRV01.camairco.local)(PORT=1523))(CONNECT_DATA=(SERVICE_NAME=ERP.camairco.local)))
    Exception occurred: java.sql.SQLException: Listener refused the connection with the following error:
    ORA-12514, TNS:listener does not currently know of service requested in connect descriptor
    Connection could not be obtained; returning null
    -------------------ADX Database Utility Finished---------------
    adcrdb.sh started at Thu May 2 15:32:40 WAT 2013
    The environment settings are as follows ...
    ORACLE_HOME : /u02/oratest/db/tech_st/11.1.0
    ORACLE_SID : ERP
    TWO_TASK :
    PATH : /u02/oratest/db/tech_st/11.1.0/perl/bin:/u02/oratest/db/tech_st/11.1.0/bin:/usr/bin:/usr/sbin:/u02/oratest/db/tech_st/11.1.0/appsutil/jre/bin:/bin:/usr/bin/X11:/usr/local/bin:/u02/oratest/db/tech_st/11.1.0/appsutil/clone/bin/../jre/bin:/u02/oratest/db/tech_st/11.1.0/appsutil/clone/bin/../jre/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/oratest/bin:.
    LD_LIBRARY_PATH : /u02/oratest/db/tech_st/11.1.0/lib:/usr/X11R6/lib:/usr/openwin/lib:/u02/oratest/db/tech_st/11.1.0/lib:/usr/dt/lib:/u02/oratest/db/tech_st/11.1.0/ctx/lib
    Executable : /u02/oratest/db/tech_st/11.1.0/bin/sqlplus
    The log information will be written to
    /u02/oratest/db/tech_st/11.1.0/appsutil/log/ERP_DLAERPSRV01/adcrdb_ERP.txt
    Creating the control file for ERP_DLAERPSRV01 database ...
    SQL*Plus: Release 11.1.0.7.0 - Production on Thu May 2 15:32:40 2013
    Copyright (c) 1982, 2008, Oracle. All rights reserved.
    Connected to an idle instance.
    ORACLE instance shut down.
    Connected to an idle instance.
    ORA-27154: post/wait create failed
    ORA-27300: OS system dependent operation:semget failed with status: 22
    ORA-27301: OS failure message: Invalid argument
    ORA-27302: failure occurred at: sskgpbitsper
    CREATE CONTROLFILE REUSE SET DATABASE "ERP"
    ERROR at line 1:
    ORA-01034: ORACLE not available
    Process ID: 0
    Session ID: 0 Serial number: 0
    alter database open resetlogs
    ERROR at line 1:
    ORA-01034: ORACLE not available
    Process ID: 0
    Session ID: 0 Serial number: 0
    alter tablespace TEMP add tempfile '/u02/oratest/db/apps_st/data/temp01.dbf' REUSE
    ERROR at line 1:
    ORA-01034: ORACLE not available
    Process ID: 0
    Session ID: 0 Serial number: 0
    ALTER DATABASE RENAME GLOBAL_NAME TO "ERP.camairco.local"
    ERROR at line 1:
    ORA-01034: ORACLE not available
    Process ID: 0
    Session ID: 0 Serial number: 0
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux-x86_64 Error: 2: No such file or directory
    Connected to an idle instance.
    ORA-27154: post/wait create failed
    ORA-27300: OS system dependent operation:semget failed with status: 22
    ORA-27301: OS failure message: Invalid argument
    ORA-27302: failure occurred at: sskgpbitsper
    BEGIN dbms_backup_restore.zeroDbid(0); END;
    ERROR at line 1:
    ORA-01034: ORACLE not available
    Process ID: 0
    Session ID: 0 Serial number: 0
    ORACLE instance shut down.
    Connected to an idle instance.
    ORA-27154: post/wait create failed
    ORA-27300: OS system dependent operation:semget failed with status: 22
    ORA-27301: OS failure message: Invalid argument
    ORA-27302: failure occurred at: sskgpbitsper
    CREATE CONTROLFILE REUSE SET DATABASE "ERP"
    ERROR at line 1:
    ORA-01034: ORACLE not available
    Process ID: 0
    Session ID: 0 Serial number: 0
    alter database open resetlogs
    ERROR at line 1:
    ORA-01034: ORACLE not available
    Process ID: 0
    Session ID: 0 Serial number: 0
    alter tablespace TEMP add tempfile '/u02/oratest/db/apps_st/data/temp01.dbf' REUSE
    ERROR at line 1:
    ORA-01034: ORACLE not available
    Process ID: 0
    Session ID: 0 Serial number: 0
    ALTER DATABASE RENAME GLOBAL_NAME TO "ERP.camairco.local"
    ERROR at line 1:
    ORA-01034: ORACLE not available
    Process ID: 0
    Session ID: 0 Serial number: 0
    declare lib_ver varchar2(3);
    ERROR at line 1:
    ORA-01034: ORACLE not available
    Process ID: 0
    Session ID: 0 Serial number: 0
    ERROR:
    ORA-01012: not logged on
    Process ID: 0
    Session ID: 0 Serial number: 0
    Disconnected
    exit_code=1
    Checking for errors ...
    The database has not been successfully created. Shutting down the instance ...
    SQL*Plus: Release 11.1.0.7.0 - Production on Thu May 2 15:32:42 2013
    Copyright (c) 1982, 2008, Oracle. All rights reserved.
    Connected to an idle instance.
    ORACLE instance shut down.
    Disconnected
    .end std out.
    .end err out.
    ADX Database Utility
    getConnectionUsingAppsJDBCConnector() -->
    APPS_JDBC_URL='null'
    Trying to get connection using SID based connect descriptor
    getConnection() -->
    sDbHost : DLAERPSRV01
    sDbDomain : camairco.local
    sDbPort : 1523
    sDbSid : ERP
    sDbUser : apps
    Trying to connect using SID...
    getConnectionUsingSID() -->
    JDBC URL: jdbc:oracle:thin:@DLAERPSRV01.camairco.local:1523:ERP
    Exception occurred: java.sql.SQLRecoverableException: ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux-x86_64 Error: 2: No such file or directory
    Trying to connect using SID as ServiceName
    getConnectionUsingServiceName() -->
    JDBC URL: jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=DLAERPSRV01.camairco.local)(PORT=1523))(CONNECT_DATA=(SERVICE_NAME=ERP)))
    Exception occurred: java.sql.SQLRecoverableException: ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux-x86_64 Error: 2: No such file or directory
    Trying to connect using SID as ServiceName.DomainName
    getConnectionUsingServiceName() -->
    JDBC URL: jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=DLAERPSRV01.camairco.local)(PORT=1523))(CONNECT_DATA=(SERVICE_NAME=ERP.camairco.local)))
    Exception occurred: java.sql.SQLException: Listener refused the connection with the following error:
    ORA-12514, TNS:listener does not currently know of service requested in connect descriptor
    Connection could not be obtained; returning null
    -------------------ADX Database Utility Finished---------------
    RC-00118: Error occurred during creation of database
    Raised by oracle.apps.ad.clone.ApplyDatabase
    StackTrace:
    java.lang.Exception: Control file creation failed
    at oracle.apps.ad.clone.ApplyDatabase.doConf(ApplyDatabase.java:635)
    at oracle.apps.ad.clone.ApplyDatabase.doApply(ApplyDatabase.java:473)
    at oracle.apps.ad.clone.ApplyDatabase.<init>(ApplyDatabase.java:366)
    at oracle.apps.ad.clone.ApplyDBTier.<init>(ApplyDBTier.java:110)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at oracle.apps.ad.clone.util.CloneProcessor.run(CloneProcessor.java:67)
    at java.lang.Thread.run(Unknown Source)
    [oratest@DLAERPSRV01 ERP_DLAERPSRV01]$
    Please guys, how can I solve this problem?

    @Hussain Sawwan
    Hi Hussain,
    After successfully configured the DbTier and AppsTier with their respective post clone scripts the appstier was automatically started at the end.
    But now, I can't seem to connect with my IE 9 and Firefow browsers.
    Link: http://dlaerpsrv01.camairco.local:8002/OA_HTML/
    Contents of the portpool.lst:
    ***** List of ports allocated based on port pool 2 *****
    Database Port : 1523 (EXT_PORT)
    RPC Port : 1628
    Web SSL Port : 4445
    ONS Local Port : 6102
    ONS Remote Port : 6202
    ONS Request Port : 6502
    Web Listener Port : 8002
    Active Web Port : 8002 (DUP_PORT)
    Forms Port : 9002
    Metrics Server Data Port : 9102
    Metrics Server Request Port : 9202
    JTF Fulfillment Server Port : 9302
    MSCA Server Port : 10212-10217
    MCSA Telnet Server Port : 10212,10214,10216 (DUP_PORT)
    MSCA Dispatcher Port : 10806
    Java Object Cache Port : 12347
    OC4J JMS Port Range for Oacore : 23010-23014
    OC4J JMS Port Range for Forms : 23510-23514
    OC4J JMS Port Range for Home : 24010-24014
    OC4J JMS Port Range for Oafm : 24510-24514
    OC4J JMS Port Range for Forms-c4ws : 26510-26514
    OC4J AJP Port Range for Oacore : 21510-21514
    OC4J AJP Port Range for Forms : 22010-22014
    OC4J AJP Port Range for Home : 22510-22514
    OC4J AJP Port Range for Oafm : 25010-25014
    OC4J AJP Port Range for Forms-c4ws : 26010-26014
    OC4J RMI Port Range for Oacore : 20010-20014
    OC4J RMI Port Range for Forms : 20510-20514
    OC4J RMI Port Range for Home : 21010-21014
    OC4J RMI Port Range for Oafm : 25510-25514
    OC4J RMI Port Range for Forms-c4ws : 27510-27514
    [root@DLAERPSRV01 appltest]#
    Entry in the /etc/hosts in my Win 7 Laptop:
    192.168.0.245 dlaerpsrv01.camairco.local dlaerpsrv01
    What could be the cause of this problem? It is unfortunate to reach at this point and not being able to connect.

  • RC-00118: Error occurred during creation of database Raised by oracle.apps.

    Hi Experts,
    Please note i am doing the clonning from production to test server.
    Production Server -
    1. Run the adpreclone.pl on the apps & db tier.
    2. run the autoconfig on the apps and db tier.
    3. shut down the production instance.
    4. Moved the files and started the clonning process on the db tier i am getting the below issue.
    My current E-Business Suit Version is R12.0.4 Database Version is 10.2.0.3. Operating system is SUN SPARC 64 BIT SUN SOLARIS 10.
    Executing CreateDB...
    ADX Database Utility
    getConnectionUsingAppsJDBCConnector() -->
    APPS_JDBC_URL='null'
    Trying to get connection using SID based connect descriptor
    getConnection() -->
    sDbHost : proddb
    sDbDomain : clientdomain
    sDbPort : 1530
    sDbSid : TEST
    sDbUser : APPS
    Trying to connect using SID...
    getConnectionUsingSID() -->
    JDBC URL: jdbc:oracle:thin:@proddb.clientdomain:1530:TEST
    Exception occurred: java.sql.SQLException: ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    SVR4 Error: 2: No such file or directory
    Trying to connect using SID as ServiceName
    getConnectionUsingServiceName() -->
    JDBC URL: jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=proddb.clientdomain)(PORT=1530))(CONNECT_DATA=(SERVICE_NAME=TEST)))
    Exception occurred: java.sql.SQLException: ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    SVR4 Error: 2: No such file or directory
    Trying to connect using SID as ServiceName.DomainName
    getConnectionUsingServiceName() -->
    JDBC URL: jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=proddb.clientdomain)(PORT=1530))(CONNECT_DATA=(SERVICE_NAME=TEST.clientdomain)))
    Exception occurred: java.sql.SQLException: Listener refused the connection with the following error:
    ORA-12514, TNS:listener does not currently know of service requested in connect descriptor
    The Connection descriptor used by the client was:
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=proddb.clientdomain)(PORT=1530))(CONNECT_DATA=(SERVICE_NAME=TEST.clientdomain)))
    Connection could not be obtained; returning null
    -------------------ADX Database Utility Finished---------------
    adcrdb.sh started at Wed Mar 21 18:09:54 WAT 2012
    The environment settings are as follows ...
    ORACLE_HOME : /erptestdata2/u01/d01/tech_st/10.2.0
    ORACLE_SID : TEST
    TWO_TASK :
    PATH : /erptestdata2/u01/d01/tech_st/10.2.0/perl/bin:/erptestdata2/u01/d01/tech_st/10.2.0/bin:/usr/ccs/bin:/usr/sbin:/erptestdata2/u01/d01/tech_st/10.2.0/appsutil/jre/bin:/erptestdata2/u01/d01/tech_st/10.2.0/appsutil/clone/bin/../jre/bin:/erptestdata2/u01/d01/tech_st/10.2.0/appsutil/clone/bin/../jre/bin:/usr/sbin:/usr/bin:/opt/EMCpower/bin:/etc/emc/bin:/etc:/usr/ccs/bin:/usr/openwin/bin:/usr/dt/bin:/usr/platform/SUNW,SPARC-Enterprise/sbin:/opt/sun/bin:/opt/SUNWexplo/bin:/opt/SUNWsneep/bin
    LD_LIBRARY_PATH : /erptestdata2/u01/d01/tech_st/10.2.0/lib:/usr/dt/lib:/usr/openwin/lib:/erptestdata2/u01/d01/tech_st/10.2.0/ctx/lib:/erptestdata2/u01/d01/tech_st/10.2.0/lib32
    Executable : /erptestdata2/u01/d01/tech_st/10.2.0/bin/sqlplus
    The log information will be written to
         /erptestdata2/u01/d01/tech_st/10.2.0/appsutil/log/TEST_proddb/adcrdb_TEST.txt
    Creating the control file for TEST_proddb database ...
    SQL*Plus: Release 10.2.0.3.0 - Production on Wed Mar 21 18:09:54 2012
    Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
    Connected to an idle instance.
    ORACLE instance shut down.
    Connected to an idle instance.
    ORACLE instance started.
    Total System Global Area 1073741824 bytes
    Fixed Size          2035496 bytes
    Variable Size          432017624 bytes
    Database Buffers     624951296 bytes
    Redo Buffers          14737408 bytes
    CREATE CONTROLFILE REUSE SET DATABASE "TEST"
    ERROR at line 1:
    ORA-01503: CREATE CONTROLFILE failed
    ORA-01167: two files are the same file/group number or the same file
    ORA-01110: data file 31: '/erptestdata2/u01/d01/apps_st/data/olap.dbf'
    ORA-01110: data file 31: '/erptestdata2/u01/d01/apps_st/data/odm.dbf'
    alter database open resetlogs
    ERROR at line 1:
    ORA-01507: database not mounted
    alter tablespace TEMP1 add tempfile '/erptestdata2/u01/d01/apps_st/data/temp01.dbf' REUSE
    ERROR at line 1:
    ORA-01109: database not open
    alter tablespace TEMP1 add tempfile '/erptestdata2/u01/d01/apps_st/data/temp02.dbf' REUSE
    ERROR at line 1:
    ORA-01109: database not open
    alter tablespace TEMP2 add tempfile '/erptestdata2/u01/d01/apps_st/data/temp03.dbf' REUSE
    ERROR at line 1:
    ORA-01109: database not open
    alter tablespace TEMP2 add tempfile '/erptestdata2/u01/d01/apps_st/data/temp04.dbf' REUSE
    ERROR at line 1:
    ORA-01109: database not open
    alter tablespace TEMP1 add tempfile '/erptestdata2/u01/d01/apps_st/data/temp10a5.dbf' REUSE
    ERROR at line 1:
    ORA-01109: database not open
    ALTER DATABASE RENAME GLOBAL_NAME TO "TEST.clientdomain"
    ERROR at line 1:
    ORA-01109: database not open
    ORA-01507: database not mounted
    ORACLE instance shut down.
    Connected to an idle instance.
    ORACLE instance started.
    Total System Global Area 1073741824 bytes
    Fixed Size          2035496 bytes
    Variable Size          432017624 bytes
    Database Buffers     624951296 bytes
    Redo Buffers          14737408 bytes
    ORA-00205: error in identifying control file, check alert log for more info
    BEGIN dbms_backup_restore.zeroDbid(0); END;
    ERROR at line 1:
    ORA-00210: cannot open the specified control file
    ORA-06512: at "SYS.X$DBMS_BACKUP_RESTORE", line 4168
    ORA-06512: at line 1
    ORACLE instance shut down.
    Connected to an idle instance.
    ORACLE instance started.
    Total System Global Area 1073741824 bytes
    Fixed Size          2035496 bytes
    Variable Size          432017624 bytes
    Database Buffers     624951296 bytes
    Redo Buffers          14737408 bytes
    CREATE CONTROLFILE REUSE SET DATABASE "TEST"
    ERROR at line 1:
    ORA-01503: CREATE CONTROLFILE failed
    ORA-01167: two files are the same file/group number or the same file
    ORA-01110: data file 31: '/erptestdata2/u01/d01/apps_st/data/olap.dbf'
    ORA-01110: data file 31: '/erptestdata2/u01/d01/apps_st/data/odm.dbf'
    alter database open resetlogs
    ERROR at line 1:
    ORA-01507: database not mounted
    alter tablespace TEMP1 add tempfile '/erptestdata2/u01/d01/apps_st/data/temp01.dbf' REUSE
    ERROR at line 1:
    ORA-01109: database not open
    alter tablespace TEMP1 add tempfile '/erptestdata2/u01/d01/apps_st/data/temp02.dbf' REUSE
    ERROR at line 1:
    ORA-01109: database not open
    alter tablespace TEMP2 add tempfile '/erptestdata2/u01/d01/apps_st/data/temp03.dbf' REUSE
    ERROR at line 1:
    ORA-01109: database not open
    alter tablespace TEMP2 add tempfile '/erptestdata2/u01/d01/apps_st/data/temp04.dbf' REUSE
    ERROR at line 1:
    ORA-01109: database not open
    alter tablespace TEMP1 add tempfile '/erptestdata2/u01/d01/apps_st/data/temp10a5.dbf' REUSE
    ERROR at line 1:
    ORA-01109: database not open
    ALTER DATABASE RENAME GLOBAL_NAME TO "TEST.clientdomain"
    ERROR at line 1:
    ORA-01109: database not open
    Error Running create/replace library with adupdlib.sql
    ORA-01109: database not open
    PL/SQL procedure successfully completed.
    File created.
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    exit_code=0
    Checking for errors ...
    The database has not been successfully created. Shutting down the instance ...
    SQL*Plus: Release 10.2.0.3.0 - Production on Wed Mar 21 18:10:16 2012
    Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
    Connected.
    ORACLE instance shut down.
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    .end std out.
    .end err out.
    ADX Database Utility
    getConnectionUsingAppsJDBCConnector() -->
    APPS_JDBC_URL='null'
    Trying to get connection using SID based connect descriptor
    getConnection() -->
    sDbHost : proddb
    sDbDomain : clientdomain
    sDbPort : 1530
    sDbSid : TEST
    sDbUser : APPS
    Trying to connect using SID...
    getConnectionUsingSID() -->
    JDBC URL: jdbc:oracle:thin:@proddb.clientdomain:1530:TEST
    Exception occurred: java.sql.SQLException: ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    SVR4 Error: 2: No such file or directory
    Trying to connect using SID as ServiceName
    getConnectionUsingServiceName() -->
    JDBC URL: jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=proddb.clientdomain)(PORT=1530))(CONNECT_DATA=(SERVICE_NAME=TEST)))
    Exception occurred: java.sql.SQLException: ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    SVR4 Error: 2: No such file or directory
    Trying to connect using SID as ServiceName.DomainName
    getConnectionUsingServiceName() -->
    JDBC URL: jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=proddb.clientdomain)(PORT=1530))(CONNECT_DATA=(SERVICE_NAME=TEST.clientdomain)))
    Exception occurred: java.sql.SQLException: Listener refused the connection with the following error:
    ORA-12514, TNS:listener does not currently know of service requested in connect descriptor
    The Connection descriptor used by the client was:
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=proddb.clientdomain)(PORT=1530))(CONNECT_DATA=(SERVICE_NAME=TEST.clientdomain)))
    Connection could not be obtained; returning null
    -------------------ADX Database Utility Finished---------------
    RC-00118: Error occurred during creation of database
    Raised by oracle.apps.ad.clone.ApplyDatabase
    Please advise ASAP.
    Regards
    Mohammed.

    Nikki,
    Check alert<SID>.log file for more details about the error.
    It looks like that the source database was not cleanly shutdown before copying the files to the target node. Please do the following and check then:
    SQL> connect / as sysdba
    SQL> startup mount;
    SQL> recover database using backup controlfile until cancel;
    -- type CANCEL
    SQL> alter database open resetlogs; If the above does not help, then shutdown the source database normally (make sure it is down), re-copy the files and start the cloning process again.

Maybe you are looking for