Adclonectx.pl

Hello,
I moved context file to some other location and i am trying to retrieve context file using
adclonectx.pl retrive
But iam gettin "Please ensure the classpath is set correctly"
echo $CLASSPATH AND echo $AF_CLASSPATH both are fine but iam gettin this statement always.
What to do?Kindly tell me.
Thanks,
928714.

Please post the details of the application release, database version and OS.
I moved context file to some other location and i am trying to retrieve context file using
adclonectx.pl retrive
But iam gettin "Please ensure the classpath is set correctly"
echo $CLASSPATH AND echo $AF_CLASSPATH both are fine but iam gettin this statement always.
What to do?Kindly tell me.Have you sourced the correct env file before running this command?
Using AutoConfig to Manage System Configurations in Oracle E-Business Suite Release 12 [ID 387859.1] -- 4) How do I recover the Applications context file if it is lost or deleted accidentally?
Thanks,
Hussein

Similar Messages

  • 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

  • Getting error: RC-50004 String index out of range when running adclonectx.pl

    Hi,
    I'm trying to clone a RAC database on the same host. I'm using the MOS note:
    Cloning Oracle E-Business Suite Release 12 RAC-Enabled Systems with Rapid Clone ( Doc ID 559518.1  )
    I run the command from Step 5.1.3:
    perl adclonectx.pl ......
    But getting error:
    "RC-50004: Error occurred in CloneContext:
    String index out of range: 38
    ERROR: context creation not completed successfully."
    From the Clone Context logfile:
    PROMPT :
    Number of DATA_TOP's on the Target System [3]
    ANSWER :
    1
    PROMPT :
    Target System DATA_TOP Directory 1
    ANSWER :
    +DATA/prod/datafile
    ASM Path, not Validating: +DATA/prod/datafile
    Creating ../data/stage/addbhomtgt.xml which will contain Target system database mount points.
    StackTrace:
    java.lang.StringIndexOutOfBoundsException: String index out of range: 38
             at java.lang.String.substring(String.java:1765)
             at oracle.apps.ad.context.CloneContext.gen_iFile(CloneContext.java:6681)
             at oracle.apps.ad.context.CloneContext.getInputFromUsers(CloneContext.java:1114)
             at oracle.apps.ad.context.CloneContext.doClone(CloneContext.java:601)
             at oracle.apps.ad.context.CloneContext.main(CloneContext.java:5260)
    RC-50004: Error occurred in CloneContext:
    String index out of range: 38
    Context file creation not succesful
    And workaround/solution will be much appreciated. Thanks very much.

    FYI, I'm cloning on the same host as target. This is 2 node EBS RAC setup.
    PATH is OLD source for contextfile.xml
    Latest clone patches applied.
    Here is the complete output from the log file...
    [oracle@PPDBS11 bin]$ cat /u01/app/oracle/product/11.2.0/dbhome_1/appsutil/clone/bin/CloneContext_0908210110.log  
    Using admin directory: /u01/app/oracle/product/11.2.0/dbhome_1/appsutil/clone/bin
    #------Log File time stamp: 0908210110------------
    # $Header: CloneContext.java 120.92.12010000.26 2013/05/06 12:02:01 mmanku ship $
    # Running on          - ppdbs11
    # Source Host         - null
    # Domain Name         - <xxxx.yyyy.zz>
    # Context Location    - /u01/app/oracle/product/11.2.0/dbhome_1/appsutil/PREPROD1_ppdbs11.xml
    # Context Type        - null
    # Context Template    - /u01/app/oracle/product/11.2.0/dbhome_1/appsutil/template/adxdbctx.tmp
    # Clone Stage Area    - null
    # Pairs File          - /u01/app/oracle/product/11.2.0/dbhome_1/appsutil/clone/pairsfile.txt
    # Destination Context - null
    # Validation          - false
    # Platform Migration  - false
    # no prompt           - false
    Variables extracted from pairsfile: /u01/app/oracle/product/11.2.0/dbhome_1/appsutil/clone/pairsfile.txt
    ****************************************************/n
       s_undo_tablespace  =  APPS_UNDOTS1
       s_dbClusterInst  =  2
       s_db_oh  =  /u01/app/oracle/product/11.2.0/dbhome_1
    ****************************************************   PROMPT :
    Target System Hostname (virtual or normal) [ppdbs11]
    ANSWER :
    ppdbs11   PROMPT :
    It is recommended that your inputs are validated by the program.
    However you might choose not to validate them under following circumstances:           -If cloning a context on source system for a remote system.
             -If cloning a context on a machine where the ports are taken and
              you do not want to shutdown the services at this point.
             -If cloning a context but the database it needs to connect is not available.   Do you want the inputs to be validated (y/n) [n] ?
    ANSWER :
    n   PROMPT :
    Target Instance is RAC (y/n) [y]
    ANSWER :
    y   PROMPT :
    Target System Database Name
    ANSWER :
    PROD   PROMPT :
         Host name [ppdbs11]
    ANSWER :
    ppdbfmisscan   PROMPT :
         Virtual Host name [null]
    ANSWER :
    ppdbs11-vip   PROMPT :
         Instance number [1]
    ANSWER :
    1   PROMPT :
         Private interconnect name [ppdbs11]
    ANSWER :
    ppdbs11-priv   PROMPT :
    Target System Base Directory
    ANSWER :
    /u01/app/oracle   PROMPT :
    Oracle OS User [oracle]
    ANSWER :
    oracle   PROMPT :
    Oracle OS Group [oinstall]
    ANSWER :
    oinstall   PROMPT :
    Target System utl_file_dir Directory List
    ANSWER :
    /usr/tmp/PROD   PROMPT :
    Number of DATA_TOP's on the Target System [3]
    ANSWER :
    1   PROMPT :
    Target System DATA_TOP Directory 1
    ANSWER :
    +DATA/prod/datafile
    ASM Path, not Validating: +DATA/prod/datafile
    Creating ../data/stage/addbhomtgt.xml which will contain Target system database mount points.  
    StackTrace:
    java.lang.StringIndexOutOfBoundsException: String index out of range: 38
             at java.lang.String.substring(String.java:1765)
             at oracle.apps.ad.context.CloneContext.gen_iFile(CloneContext.java:6687)
             at oracle.apps.ad.context.CloneContext.getInputFromUsers(CloneContext.java:1120)
             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:
    String index out of range: 38
    Context file creation not succesful

  • Adclonectx pl vs adbldxml.pl

    1.What is the difference between adclonectx pl vs adbldxml.pl
    2.When to use what ?
    3.Is the below thumb rule correct ?
    "adbldxml.pl : to create database context file
    adclonectx : to create appl tier context file"

    udayjampani wrote:
    1.What is the difference between adclonectx pl vs adbldxml.pladclonectx.pl is used to create the database context file.
    adbldxml.pl is used to recover the application context file when it is lost.
    2.When to use what ?Already answered above.
    3.Is the below thumb rule correct ?
    "adbldxml.pl : to create database context file
    adclonectx : to create appl tier context file"Yes.
    Using AutoConfig to Manage System Configurations in Oracle E-Business Suite Release 12 [ID 387859.1]
    Thanks,
    Hussein

  • Adclonectx.pl throwing classpath is not set properly error

    I recreated the appsutil folder on DB tier and now when I am running the below command to create the context file I am getting error.
    perl adclonectx.pl outfile=E:\R12\11.1.0\appsutil
    The above command is giving error, 'Please ensure that Classpath is set properly'
    Even though I have set the classpath to the below I am getting the error.
    SET CLASSPATH=E:\R12\11.1.0\jdbc\lib\ojdbc5.jar;E:\R12\11.1.0\appsutil\java\xmlparserv2.jar;E:\R12\11.1.0\appsutil\java;E:\R12\11.1.0\jlib\netcfg.jar;E:\R12\11.1.0\jlib\ldapjclnt11.jar
    SET PERL5LIB=E:\R12\11.1.0\perl\5.8.3\lib\MSWin32-X64-multi-thread;E:\R12\11.1.0\perl\5.8.3\lib;E:\R12\11.1.0\perl\site\5.8.3\lib\MSWin32-X64-ulti-thread;E:\R12\11.1.0\perl\site\5.8.3\lib;E:\R12\11.1.0\appsutil\perl

    Sami,
    Are you passing the template in the command as in (R12 adbldxml.pl AutoConfig Tool to Generate the Context File on the Database Tier [ID 1079053.1])?
    If this is a RAC-to-RAC cloning, please see (R12 RAC to RAC cloning fails with 'Please ensure that Classpath is set properly' [ID 966321.1]).
    Thanks,
    Hussein

  • "Please ensure that Classpath is set properly" then run adclonectx.pl

    Hello,
    I am working on cloning Oracle Home. When running clone context to create context file on the target system:
    [oracle@cvlx10 bin]$ perl adclonectx.pl contextfile=/v01/vdev/11.1.0/vdev/appsutil/VPRD3_cvlx30.xml template=/v01/vdev/11.1.0/vdev/appsutil/template/adxdbctx.tmp pairsfile=/v01/vdev/11.1.0/vdev/appsutil/clone/pairsfile.txt
    and received this message
    Please ensure that Classpath is set properly
    I am new to cloning, can anyone give me some idea where to check this? Thanks a lot.

    Please post the details of the application release, database version and OS.
    I am working on cloning Oracle Home. When running clone context to create context file on the target system:
    [oracle@cvlx10 bin]$ perl adclonectx.pl contextfile=/v01/vdev/11.1.0/vdev/appsutil/VPRD3_cvlx30.xml template=/v01/vdev/11.1.0/vdev/appsutil/template/adxdbctx.tmp pairsfile=/v01/vdev/11.1.0/vdev/appsutil/clone/pairsfile.txt
    and received this message
    Please ensure that Classpath is set properlyWhat does "echo $CLASSPATH" return?
    I am new to cloning, can anyone give me some idea where to check this? Thanks a lot.Please make sure you follow all the steps in Rapid Clone doc -- Rapid Clone Documentation Resources For Release 11i and 12 [ID 799735.1]
    Thanks,
    Hussein

  • Re: On refresh of ebs DB is it necessary to run adclonectx.pl

    Hi ,
    On refresh of ebs DB is it necessary to run adclonectx.pl again for the 2nd node with add node option or can I simply reuse the contextfile from the first time it was cloned providing nothing has changed?
    It simple terms does adclonectx.pl addnode do anything more than cloning the contextfile provided?
    I have included a successfull run of adclonectx.pl when used with the addnode option for example .
    Regards .

    On refresh of ebs DB is it necessary to run adclonectx.pl again for the 2nd node with add node option or can I simply reuse the contextfile from the first time it was cloned providing nothing has changed?You can use the context file from the first time the database was cloned if nothing changed (hostname, domain name, directory structure, port pool, SID ..etc).
    It simple terms does adclonectx.pl addnode do anything more than cloning the contextfile provided?No.
    Thanks,
    Hussein

  • Change path for context file  11i (11.5.10.2)

    Hi ,
    How to change the context file path in 11i. I have tried 2 methods "perl adbldxml.pl tier=apps appsuser=apps" and perl adclonectx.pl contextfile=/u01/visappl/admin/vis_gold.xml , it works and I can see the s_context var in .xml changed to new path . But when I ran adconfig.sh it revert back the changes to old path.
    Anyone faced this issue before ?
    /d01/visappl/admin/vis_gold.xml to /u01/visappl/admin/vis_gold.xml ?

    How to change the context file path in 11i. I have tried 2 methods "perl adbldxml.pl tier=apps appsuser=apps" and perl adclonectx.pl contextfile=/u01/visappl/admin/vis_gold.xml , it works and I can see the s_context var in .xml changed to new path . But when I ran adconfig.sh it revert back the changes to old path.
    Anyone faced this issue before ?
    /d01/visappl/admin/vis_gold.xml to /u01/visappl/admin/vis_gold.xml ?You cannot change the location of the context file and it is always defaulted to $APPL_TOP/admin directory in 11i release. Any reason you want to change this location?
    Thanks,
    Hussein

  • Adbldxml.pl issue

    Hi;
    I have been made moe to my win2003 32 bit server dbtier to win 2003 64 bit server dbtier on r12.0.4 wiht 10.2.0.2 db version. Now my db is up lsnr up and i can connect from apps tier to database(new db)
    I followed note:Using Oracle E-Business Suite Release 12 with a Database Tier Only Platform on Oracle 10g Release 2 [ID 456197.1]
    while i was try to enable autoconfig on new 64 bit db i follow this steps:
    set ORACLE_HOME=xxx\database\10.2.0
    set ORA_NLS10=xxx\database\10.2.0\nls\9idata
    set PATH=xxx\database\10.2.0\bin;%PATH%
    set LD_LIBRARY_PATH=xxx\database\10.2.0\lib
    set PERL5LIB=xxx\database\10.2.0\perl\5.8.3\lib\MSWin32-x86-multi-thread;xxx\database\10.2.0\perl\5.8.3\lib;xxx\database\10.2.0\perl\site\5.8.3\lib\MSWin32-x86-multi-thread;xxx\database\10.2.0\perl\site\5.8.3\lib;xxx\database\10.2.0\appsutil\perl
    set PERL=xxx/database/10.2.0/perl/5.8.3/bin/MSWin32-x86-multi-thread
    set PATH=%PERL%;%PATH%
    set ORACLE_SID=MYSID
    After those sets i follow:
    cd <RDBMS> $ORACLE_HOME>/appsutil/bin
    I run:
    C:\perl adbldxml.pl
    C:\
    Nothing happened, i try:
    C:\ perl adbldxml.pl tier=db appsuser=<APPSuser> appspasswd=<APPSpwd>
    C:\
    Nothing happened. I checked adbldxml.pl. It has this entery:
    FILENAME
    # | adbldxml.pl
    # |
    # | DESCRIPTION
    # | AutoConfig Tool to generate the Context file for APPL_TOP and the
    # | Database Oracle Home.
    # | This Tool has been obsoleted for R12. Its funcionality has been
    # | replaced by adclonectx.pl and the enhancement request in bug 5129854.
    What i have to do?I cant use adbldxml.pl no more?I should use adclonectx.pl? It doesnt harmful(its for clone as i know)
    After i cant run this, i try to enable my EBS, so i move to appstier. When i run autoconfig on appstier, i have below error in log file:
    Updating s_tnsmode to 'generateTNS'
    UpdateContext exited with status: 0
    AC-50480: Internal error occurred: java.lang.Exception: Error while generating listener.ora.
    Error generating tnsnames.ora from the database, temporary tnsnames.ora will be generated using templates
    Instantiating Tools tnsnames.ora
    Tools tnsnames.ora instantiated
    Web tnsnames.ora instantiated
    adgentns.pl exiting with status 512
    ERRORCODE = 512 ERRORCODE_END
    .end std out.
    .end err out.
    and also:
    [CVM Error Report]
    The following report lists errors encountered during CVM Phase
    <filename> <return code where appropriate>
    xxx\apps\testappl\ad\12.0.0\bin\adgentns.pl 512
    No of scripts failed in CVM phase: 1
    [AutoConfig Error Report]
    The following report lists errors AutoConfig encountered during each
    phase of its execution. Errors are grouped by directory and phase.
    The report format is:
    <filename> <phase> <return code where appropriate>
    [SETUP PHASE]
    AutoConfig could not successfully execute the following scripts:
    Directory: xxx\apps\CONTEXT FILE\admin\install
    adgendbc.cmd INSTE8_SETUP 1
    AutoConfig is exiting with status 1
    I found R12: adgentns.pl fails with AC-50480: Internal error occurred: java.lang.Exception: Error while generating listener.ora [ID 453901.1], but it direct me again to make enable autoconfig on dbtier
    Help please

    Hi Hussein;
    I didnt create new appsutil on appstier, i just copy it from apps tier to new db server. In that note it mention:
    Install the jre in the appsutil directory:
    Copy the jre from the old $ORACLE_HOME/appsutil/jre to the new $ORACLE_HOME/appsutil directory. Or download the jre from the Sun website.
    But in note Using Oracle E-Business Suite Release 12 with a Database Tier Only Platform on Oracle 10g Release 2 [ID 456197.1]
    For Windows x64, both BEA's JRockit JDK 5.0 and Sun's JDK 5.0 are certified - we currently recommend that Windows x64 users copy over the Sun's JDK/JRE from the database's JDK directory to appsutil with the following instructions:
    $ cd $ORACLE_HOME/appsutil
    $ mv jre jre_old
    $ mv clone/jre clone/jre_old
    $ cp -r $ORACLE_HOME/jdk/jre jre
    $ cp -r $ORACLE_HOME/jdk/jre clone/jre
    What i did, i made first 10.2.1.0 sotware installation then i go $ORACLE_HOME/jdk/jre than copy it to $ORACLE_HOME/appsutil and also clone/jre as note mention
    PS: I already install Java Development Kit (JDK) 5 on windows, question is i should copy jre from where i made this installation to appsutil/jre or i need to use $ORACLE_HOME/jdk/jre?? CONFUSED HERE!

  • RC-40201: Unable to connect to Database

    I am trying to run
    perl adclonectx.pl migrate
    on new linux server, I am getting error, I tried with some action metalink notes, but no luck,
    DB is up and runnin and listener is up and running,
    what else i need to check, i am not sure, i have created SR, but i have not got good action plan,
    Initializing the Apps Service Context variable Hash
    DEBUG: Apps Service Status context variable extracted from the given Apps context file
    s_apcstatus
    s_apc_restrict_status
    s_apcstatus_pls
    s_tnsstatus
    s_tcfstatus
    s_concstatus
    s_formsstatus
    s_reptstatus
    s_metcstatus
    s_metsstatus
    s_icsmstatus
    s_jtffsstatus
    s_icxblkstatus
    s_discostatus
    s_mwastatus
    PROMPT :
    Does the target system have more than one application tier server node (y/n) [y] ?
    ANSWER :
    y
    PROMPT :
    Does the target system application tier utilize multiple domain names (y/n) [n] ?
    ANSWER :
    n
    PROMPT :
    Default value found for s_tools_oh : /tmp/
    Default value found for s_weboh_oh : /tmp/
    PROMPT :
    Do you want to preserve the Display set to dbora12:1.0 (y/n) [y] ?
    ANSWER :
    n
    PROMPT :
    Location of the JDK on the target system [opt/java1.5]
    ANSWER :
    /usr/java/jdk1.5.0_21
    StackTrace:
    java.lang.Exception: Cant connect to database using DBUtil
    at oracle.apps.ad.context.CloneContext.checkDatabaseConnection(CloneContext.java:5694)
    at oracle.apps.ad.context.CloneContext.promptForPortPool(CloneContext.java:5376)
    at oracle.apps.ad.context.CloneContext.doClone(CloneContext.java:637)
    at oracle.apps.ad.context.CloneContext.main(CloneContext.java:6228)
    RC-40201: Unable to connect to Database OFMSREGT.

    Danny,
    Please mention the application release and the OS.
    Do you have proper entry in the hosts file? Can you connect to the database remotely?
    Do you have the latest AutoConfig (Rapid Clone) patches applied?
    Please see if these docs help.
    Note: 273477.1 - Running Perl Adcfgclone.Pl Appstier Gives Error
    Note: 421148.1 - Jdbc Errors Cloning Apps Tier
    Note: 271250.1 - Adcfgclone.pl tier apps Errors with RC-40201: Unable to connect to Database
    Note: 392989.1 - Oam Cloning Preclone while Failed trying to connect to the target DB
    Regards,
    Hussein

  • Error when running clone for app tier

    Has anyone seen this? I'm getting the same error on each tier (seperate servers). I get a hit on Metalink but it does not match my situation. It states I'm missing a tag in the source context file but it is there. Any assistance would be appreciated.
    $perl adcfgclone.pl appsTier
    Enter the APPS password [APPS]:
    xxxxxxxxxxx
    First Creating a new context file for the cloned system.
    The program is going to ask you for information about the new system:
    RC-50004: Error occurred in CloneContext:
    null
    Check logfile CloneContext_06280945.log for details.
    ERROR: context creation not completed successfully.
    Please check /tmp/iasit13/adcfgclone.err file for errors
    [136] appl13@green- [t13sw/oraappl01/iasicomn/clone/bin]
    $more /tmp/iasit13/adcfgclone.err
    [137] appl13@green- [t13sw/oraappl01/iasicomn/clone/bin]
    $ls -l /tmp/iasit13/adcfgclone.err
    -rw-r--r-- 1 appl13 oradba 0 Jun 28 09:45 /tmp/iasit13/adcfgclone.err
    [138] appl13@green- [t13sw/oraappl01/iasicomn/clone/bin]
    $ls -lrt
    total 318
    -rwxrwxr-x 1 appl13 oradba 27900 May 31 11:54 adclonectx.pl
    -rwxrwxr-x 1 appl13 oradba 83889 May 31 11:54 adclone.pl
    -rwxrwxr-x 1 appl13 oradba 3273 May 31 11:54 adchkutl.sh
    -rwxrwxr-x 1 appl13 oradba 34334 May 31 11:54 adcfgclone.pl
    -rwxrwxr-x 1 appl13 oradba 7396 May 31 11:54 adaddnode.pl
    -rwxrwxr-- 1 appl13 oradba 1149 Jun 27 15:28 CloneContext_06270327.log
    -rw-r--r-- 1 appl13 oradba 1149 Jun 27 16:05 CloneContext_06270405.log
    -rw-r--r-- 1 appl13 oradba 1149 Jun 28 09:45 CloneContext_06280945.log
    [139] appl13@green- [t13sw/oraappl01/iasicomn/clone/bin]
    $more CloneContext_06280945.log
    #------Log File created at: 06280945------------
    # $Header: CloneContext.java 115.167 2005/03/03 16:10:14 dvijayas ship $
    # Running CloneContext on machine - green
    Initializing the Apps Service Context varibale Hash
    DEBUG: Apps Service Status context variable extracted from the given Apps context file
    s_apcstatus
    s_apc_restrict_status
    s_apcstatus_pls
    s_tnsstatus
    s_tcfstatus
    s_concstatus
    s_formsstatus
    s_reptstatus
    s_metcstatus
    s_metsstatus
    s_icsmstatus
    s_jtffsstatus
    s_icxblkstatus
    s_discostatus
    DEBUG: Getting all the AppsContext involved in this Merging
    StackTrace:
    java.lang.NullPointerException
    at oracle.apps.ad.context.CloneContext.getAllAppsContext(CloneContext.java:6649)
    at oracle.apps.ad.context.CloneContext.initServiceStatus(CloneContext.java:6581)
    at oracle.apps.ad.context.CloneContext.doClone(CloneContext.java:489)
    at oracle.apps.ad.context.CloneContext.main(CloneContext.java:5222)
    RC-50004: Error occurred in CloneContext:
    null
    Context file creation not succesful
    TIA

    Hi there !
    In case you haven't sorted out this issue.
    Have you done cloning of the environemnt before?
    Just wonder if you have complitted steps described in
    Note:230672.1
    Subject:      Cloning Oracle Applications Release 11i with Rapid Clone
    Section 2: Clone Oracle Applications 11i
    1. "Prepare the Source System":
    Yury
    Check this out:
    A.
    http://www.freelists.org/archives/ora-apps-dba/05-2006/msg00000.html
    B.
    - Users can subscribe to the list by sending email to
    ora-apps-dba-request_at_freelists.org with 'subscribe' in the Subject field
    C.
    http://www.freelists.org/archives/ora-apps-dba/05-2006/threads.html
    http://www.freelists.org/archives/ora-apps-dba/06-2006/threads.html

  • Error when applyin adcfgclone on dbtier  RC-50004: FATAL ERROR RC-50014

    I have performed the following steps several times and only two times it was successful..rest of the time,it gave me the following error
    Does anyone know how to resolve this or whats the problem behind this
    Below are the steps i perform followed by the log file contents too..
    Thanks
    [oracle@t2 ~]$ cd /d01/oracle/test2/db/tech_st/10.2.0/appsutil/clone/bin
    [oracle@t2 bin]$ ls
    adcfgclone.pl adchkutl.sh adclonectx.pl adclone.pl
    [oracle@t2 bin]$ ./adcfgclone.pl dbTier
    Using Java from /d01/oracle/test2/db/tech_st/10.2.0/appsutil/clone/bin/../jre
    Enter the APPS user password:
    JDBCCLASSES = /d01/oracle/test2/db/tech_st/10.2.0/appsutil/clone/jlib/ojdbc14.jar
    XMLPCLASSES = /d01/oracle/test2/db/tech_st/10.2.0/appsutil/clone/jlib/xmlparserv2.jar
    LOCAL_CPATH = /d01/oracle/test2/db/tech_st/10.2.0/appsutil/clone/jlib/java:/d01/oracle/test2/db/tech_st/10.2.0/appsutil/clone/jlib/xmlparserv2.jar:/d01/oracle/test2/db/tech_st/10.2.0/appsutil/clone/jlib/ojdbc14.jar
    First Creating a new context file for the cloned system.
    The program is going to ask you for information about the new system:
    oracle
    = oracle
    dba
    = dba
    Running:
    /d01/oracle/test2/db/tech_st/10.2.0/appsutil/clone/bin/../jre/bin/java -Xmx600M -cp /d01/oracle/test2/db/tech_st/10.2.0/appsutil/clone/jlib/java:/d01/oracle/test2/db/tech_st/10.2.0/appsutil/clone/jlib/xmlparserv2.jar:/d01/oracle/test2/db/tech_st/10.2.0/appsutil/clone/jlib/ojdbc14.jar oracle.apps.ad.context.CloneContext -e /d01/oracle/test2/db/tech_st/10.2.0/appsutil/clone/bin/../context/db/CTXORIG.xml -validate -pairsfile /tmp/adpairsfile.lst -stage /d01/oracle/test2/db/tech_st/10.2.0/appsutil/clone 2> /tmp/adcfgclone.err; echo $? > /tmp/adcfgclone.resEnter the APPS password : apps
    Log file located at /d01/oracle/test2/db/tech_st/10.2.0/appsutil/clone/bin/CloneContext_06051732.log
    Provide the values required for creation of the new Database Context file.
    Target hostname (virtual or normal) [t2]:
    Target instance is a Real Application Cluster (RAC) instance (y/n) [n]:
    Target System database name:test2
    Target system base directory for source homes:/d01/oracle/test2
    Target system utl_file accessible directories list:/usr/tmp
    Number of DATA_TOP's on the target system [4]:1
    Target system DATA_TOP 1:/d01/oracle/test2/db/apps_st/data
    Target system RDBMS ORACLE_HOME directory:/d01/oracle/test2/db/tech_st/10.2.0
    Do you want to preserve the Display set to 130.35.33.102:111.0 (y/n) [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 /d01/oracle/test2/db/tech_st/10.2.0/appsutil/clone/bin/out/test2_t2/portpool.lst
    Backing up /d01/oracle/test2/db/tech_st/10.2.0/appsutil/test2_t2.xml to /d01/oracle/test2/db/tech_st/10.2.0/appsutil/test2_t2.xml.bak
    Creating the new Database Context file from :
    /d01/oracle/test2/db/tech_st/10.2.0/appsutil/template/adxdbctx.tmp
    The new database context file has been created :
    /d01/oracle/test2/db/tech_st/10.2.0/appsutil/test2_t2.xml
    Log file located at /d01/oracle/test2/db/tech_st/10.2.0/appsutil/clone/bin/CloneContext_06051732.log
    Check logfile /d01/oracle/test2/db/tech_st/10.2.0/appsutil/clone/bin/CloneContext_06051732.log for details.
    Running Rapid Clone with command:
    perl /d01/oracle/test2/db/tech_st/10.2.0/appsutil/clone/bin/adclone.pl java=/d01/oracle/test2/db/tech_st/10.2.0/appsutil/clone/bin/../jre mode=apply stage=/d01/oracle/test2/db/tech_st/10.2.0/appsutil/clone component=dbTier method=CUSTOM dbctxtg=/d01/oracle/test2/db/tech_st/10.2.0/appsutil/test2_t2.xml showProgress contextValidated=true
    Running:
    perl /d01/oracle/test2/db/tech_st/10.2.0/appsutil/clone/bin/adclone.pl java=/d01/oracle/test2/db/tech_st/10.2.0/appsutil/clone/bin/../jre mode=apply stage=/d01/oracle/test2/db/tech_st/10.2.0/appsutil/clone component=dbTier method=CUSTOM dbctxtg=/d01/oracle/test2/db/tech_st/10.2.0/appsutil/test2_t2.xml showProgress contextValidated=true
    XMLPARSER: /d01/oracle/test2/db/tech_st/10.2.0/appsutil/clone/jlib/xmlparserv2.jar
    JDBC: /d01/oracle/test2/db/tech_st/10.2.0/appsutil/clone/jlib/ojdbc14.jar
    CLASSPATH: /d01/oracle/test2/db/tech_st/10.2.0/appsutil/clone/jlib/xmlparserv2.jar:/d01/oracle/test2/db/tech_st/10.2.0/appsutil/clone/jlib/ojdbc14.jar:/d01/oracle/test2/db/tech_st/10.2.0/appsutil/clone/jlib/java:/d01/oracle/test2/db/tech_st/10.2.0/appsutil/clone/jlib/oui/OraInstaller.jar:/d01/oracle/test2/db/tech_st/10.2.0/appsutil/clone/jlib/oui/ewt3.jar:/d01/oracle/test2/db/tech_st/10.2.0/appsutil/clone/jlib/oui/share.jar:/d01/oracle/test2/db/tech_st/10.2.0/appsutil/clone/jlib/oui/srvm.jar:/d01/oracle/test2/db/tech_st/10.2.0/appsutil/clone/jlib/ojmisc.jar
    OUI CLASSPATH: /d01/oracle/test2/db/tech_st/10.2.0/appsutil/clone/jlib/oui/OraInstaller.jar:/d01/oracle/test2/db/tech_st/10.2.0/appsutil/clone/jlib/oui/ewt3.jar:/d01/oracle/test2/db/tech_st/10.2.0/appsutil/clone/jlib/oui/xmlparserv2.jar:/d01/oracle/test2/db/tech_st/10.2.0/appsutil/clone/jlib/oui/share.jar:/d01/oracle/test2/db/tech_st/10.2.0/appsutil/clone/jlib/oui/srvm.jar:/d01/oracle/test2/db/tech_st/10.2.0/appsutil/clone/jlib/ojmisc.jar:/d01/oracle/test2/db/tech_st/10.2.0/appsutil/clone/jlib/xmlparserv2.jar:/d01/oracle/test2/db/tech_st/10.2.0/appsutil/clone/jlib/ojdbc14.jar:/d01/oracle/test2/db/tech_st/10.2.0/appsutil/clone/jlib/java
    Setting LD_LIBRARY_PATH to /d01/oracle/test2/db/tech_st/10.2.0/appsutil/clone/oui/lib/linux
    Beginning database tier Apply - Thu Jun 5 17:33:42 2008
    /d01/oracle/test2/db/tech_st/10.2.0/appsutil/clone/bin/../jre/bin/java -Xmx600M -DCONTEXT_VALIDATED=true -Doracle.installer.oui_loc=/d01/oracle/test2/db/tech_st/10.2.0/oui -classpath /d01/oracle/test2/db/tech_st/10.2.0/appsutil/clone/jlib/xmlparserv2.jar:/d01/oracle/test2/db/tech_st/10.2.0/appsutil/clone/jlib/ojdbc14.jar:/d01/oracle/test2/db/tech_st/10.2.0/appsutil/clone/jlib/java:/d01/oracle/test2/db/tech_st/10.2.0/appsutil/clone/jlib/oui/OraInstaller.jar:/d01/oracle/test2/db/tech_st/10.2.0/appsutil/clone/jlib/oui/ewt3.jar:/d01/oracle/test2/db/tech_st/10.2.0/appsutil/clone/jlib/oui/share.jar:/d01/oracle/test2/db/tech_st/10.2.0/appsutil/clone/jlib/oui/srvm.jar:/d01/oracle/test2/db/tech_st/10.2.0/appsutil/clone/jlib/ojmisc.jar oracle.apps.ad.clone.ApplyDBTier -e /d01/oracle/test2/db/tech_st/10.2.0/appsutil/test2_t2.xml -stage /d01/oracle/test2/db/tech_st/10.2.0/appsutil/clone -showProgress
    APPS Password : Log file located at /d01/oracle/test2/db/tech_st/10.2.0/appsutil/log/test2_t2/ApplyDBTier_06051733.log
    \ 50% completed RC-50004: Fatal: Error occurred in ApplyDatabase:
    RC-50014: Fatal: Execution of AutoConfig was failed
    ERROR while running Apply...
    Thu Jun 5 17:38:53 2008
    ERROR: Failed to execute /d01/oracle/test2/db/tech_st/10.2.0/appsutil/clone/bin/adclone.pl
    Please check logfile.
    [oracle@t2 bin]$
    Connected to an idle instance.
    ORACLE instance shut down.
    Connected to an idle instance.
    ORACLE instance started.
    Total System Global Area 1077936128 bytes
    Fixed Size 2076584 bytes
    Variable Size 427819096 bytes
    Database Buffers 633339904 bytes
    Redo Buffers 14700544 bytes
    Control file created.
    alter database open resetlogs
    ERROR at line 1:
    ORA-01194: file 1 needs more recovery to be consistent
    ORA-01110: data file 1: '/d01/oracle/test3/db/apps_st/data/system01.dbf'
    alter tablespace TEMP1 add tempfile '/d01/oracle/test3/db/apps_st/data/temp01.dbf' REUSE
    ERROR at line 1:
    ORA-01109: database not open
    alter tablespace TEMP2 add tempfile '/d01/oracle/test3/db/apps_st/data/temp02.dbf' REUSE
    ERROR at line 1:
    ORA-01109: database not open
    ALTER DATABASE RENAME GLOBAL_NAME TO "test3.luckyerp"
    ERROR at line 1:
    ORA-01109: database not open
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.
    Connected to an idle instance.
    ORACLE instance started.
    Total System Global Area 1077936128 bytes
    Fixed Size 2076584 bytes
    Variable Size 427819096 bytes
    Database Buffers 633339904 bytes
    Redo Buffers 14700544 bytes
    Database mounted.
    PL/SQL procedure successfully completed.
    ORACLE instance shut down.
    Connected to an idle instance.
    ORACLE instance started.
    Total System Global Area 1077936128 bytes
    Fixed Size 2076584 bytes
    Variable Size 427819096 bytes
    Database Buffers 633339904 bytes
    Redo Buffers 14700544 bytes
    Control file created.
    alter database open resetlogs
    ERROR at line 1:
    ORA-01194: file 1 needs more recovery to be consistent
    ORA-01110: data file 1: '/d01/oracle/test3/db/apps_st/data/system01.dbf'
    alter tablespace TEMP1 add tempfile '/d01/oracle/test3/db/apps_st/data/temp01.dbf' REUSE
    ERROR at line 1:
    ORA-01109: database not open
    alter tablespace TEMP2 add tempfile '/d01/oracle/test3/db/apps_st/data/temp02.dbf' REUSE
    ERROR at line 1:
    ORA-01109: database not open
    ALTER DATABASE RENAME GLOBAL_NAME TO "test3.luckyerp"
    ERROR at line 1:
    ORA-01109: database not open

    but what wil be the remaining steps of clone then..?If you have not done any changes recently on your source nodes (add a tablespace/database, applied patches, add new forms/reports, ..etc), then do the following:
    - Make sure you shutdown the source instance properly before copying the file to the target node.
    - Configure the target system database server (run the following as oracle user):
    $ cd <RDBMS ORACLE_HOME>/appsutil/clone/bin
    $ perl adcfgclone.pl dbTier - Configure the target system application server (run the following as applmgr user):
    $ cd <COMMON_TOP>/clone/bin
    $ perl adcfgclone.pl appsTierNote: 230672.1 - Cloning Oracle Applications Release 11i with Rapid Clone
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=230672.1

  • Cloning context file on db tier fails when run non-interactively

    Hi all,
    I have a problem where cloning the DB tier context file using adclonectx.pl non-interactively using a pairsfile and noprompt fails in certain circumstances and continually returns this error
    Target System Port Pool [0-99] : RC-00201: Error: Not a valid port pool number
    If we clone from prod or uat (which are on different nodes) to non-prod it works fine, if we clone from a different non-prod environment (on the same node) it fails.
    We can run adclonectx.pl interactively with the same pairsfile and it works, so I copied all of the variables in the log into the pairsfile and ran it non-interactively and it failed with the same error.
    My understanding is that adclonectx.pl uses the source DB context file and the pairsfile to create the new context file. I've tried cloning the context file non-interactively from several different non-prod envs with the same error, so I don't think it's specific to 1 source env.
    It seems to want to prompt for the portpool when it's on the same node as the source environment.
    EBS 12.1.3, DB 11.2.0.3 RAC 2 node on Oracle Linux 5.
    I've raised 3-9540409031 : adclonectx.pl on db Tier errors with RC-00201 when run non-interactively using pairsfile - but haven't got an answer yet.
    This is the pairsfile with everthing in it - generated from an interactive session that worked.
    s_db_ons_remoteport = 6411
    s_cmanport = 1532
    s_clusterInterConnects = dxd1db01-ib
    s_dbhost = dxd1db01-ib
    s_dbSidLower = ebscnv1
    s_dbhome4 = +DATA_DXD1
    s_dbhome3 = +DATA_DXD1
    s_dbSid = EBSCNV1
    s_dbhome2 = +DATA_DXD1
    s_dbhome1 = +DATA_DXD1
    s_isAdmin = YES
    s_clonestage = /u01/EBSDEV/product/11.2.0/appsutil/clone
    s_jretop = /u01/EBSDEV/product/11.2.0/jdk/jre
    s_db_rollback_segs = NOROLLBACK
    s_db_util_filedir = /u01/EBSCNV/tmp
    s_isForms = YES
    s_undo_tablespace = APPS_UNDOTS1
    s_temp = /u01/EBSDEV/product/11.2.0/appsutil/temp
    s_database_type = RAC
    s_dbuser = orebscnv
    s_instName = EBSCNV1
    s_dbGlnam = EBSCNV
    s_domainname = mgmt.shared.health.nz
    s_dbgroup = oinstall
    s_hostname = dxd1db01-ib
    s_jdktop = /u01/EBSDEV/product/11.2.0/jdk/jre
    s_isConc = YES
    s_instThread = 1
    s_dbport = 1532
    s_isWeb = YES
    s_dbCluster = true
    s_contextname = EBSCNV1_dxd1db01-ib
    s_dbClusterInst = 2
    s_dbdomain = mgmt.shared.health.nz
    s_base = /u01/EBSCNV
    s_db_ons_localport = 6311
    s_contextfile = /u01/EBSCNV/tmp/EBSCNV1_dxd1db01-ib.xml
    s_db_oh = /u01/EBSDEV/product/11.2.0
    s_instNumber = 1
    s_virtual_hostname = dxd1db01-ib
    s_display = y
    this is the adclonectx.pl comand i use - I've checked all the env variables before running and they're all good
    perl ./adclonectx.pl \
    contextfile=$SRCCTX \
    template=$ORACLE_HOME/appsutil/template/adxdbctx.tmp \
    outfile=$NEWCTX \
    pairsfile=$PAIRSFILE \
    initialnode
    when run non-interactively i use this command  - and as mentioned above this works under certain circumstances
    dummypw=dummypw
    echo \$dummypw | perl ./adclonectx.pl \
    contextfile=$SRCCTX \
    template=$ORACLE_HOME/appsutil/template/adxdbctx.tmp \
    outfile=$NEWCTX \
    pairsfile=$PAIRSFILE \
    initialnode noprompt
    Any ideas, it's got 3 DBAs stumped...

    That makes sense to me ... the pool parameter should be in the pairsfile, .. or in the parameters when calling it at command line
    You can force the pool to be changed, even when you're on the same server. Actually, I would use different pools for any environment, different server or not. And, avoid the default pool as well. If you do it this way, one of the advantages is that you spot issues - like the one you have - much much earlier. In that case, you would need that extra parameter on every run.

  • Issues in Migrating the Context file.

    Hi DBA's
    I am doing Migration from Windows to Linux 4.0ES, Application 11.5.10.2 and Database 9.2.0.6.
    I am getting the following error while running the perl adclonectx.pl script, Please help me to resolve this issue.
    $ which java
    /usr/bin/java
    $ java -version
    java version "1.4.2"
    gcj (GCC) 3.4.6 20060404 (Red Hat 3.4.6-10)
    $ which perl
    /usr/bin/perl
    [applmgr@aqherp bin]$ perl -v
    This is perl, v5.8.5 built for i386-linux-thread-multi
    Copyright 1987-2004, Larry Wall
    [applmgr@aqherp bin]$ perl adclonectx.pl migrate java=/usr contextfile=/s03/oracle/prodappl/admin/PROD_aqherp.xml
    /usr/bin/java -classpath ../../../fnd/11.5.0/java/3rdparty/stdalone/jdbc12.zip:../../../fnd/11.5.0/java/3rdparty/stdalone/xmlparserv2.zip:/usr/lib/rt.jar:/s03/oracle/proddb/9.2.0/appsutil/java: oracle.apps.ad.context.CloneContext -e /s03/oracle/prodappl/admin/PROD_aqherp.xml -migrate -perl "/usr/bin/perl" -perl5lib "/usr/lib/perl5/5.8.5/i386-linux-thread-multi:/usr/lib/perl5/5.8.5:/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi:/usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi:/usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi:/usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi:/usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi:/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi:/usr/lib/perl5/site_perl/5.8.5:/usr/lib/perl5/site_perl/5.8.4:/usr/lib/perl5/site_perl/5.8.3:/usr/lib/perl5/site_perl/5.8.2:/usr/lib/perl5/site_perl/5.8.1:/usr/lib/perl5/site_perl/5.8.0:/usr/lib/perl5/site_perl:/usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi:/usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi:/usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi:/usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi:/usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi:/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi:/usr/lib/perl5/vendor_perl/5.8.5:/usr/lib/perl5/vendor_perl/5.8.4:/usr/lib/perl5/vendor_perl/5.8.3:/usr/lib/perl5/vendor_perl/5.8.2:/usr/lib/perl5/vendor_perl/5.8.1:/usr/lib/perl5/vendor_perl/5.8.0:/usr/lib/perl5/vendor_perl:." -tmpl ../admin/template/adxmlctx.tmp
    ERROR: context creation not completed successfully.
    Please check /tmp/adclonectx.err file for errors
    ================================LOG FILE====================================================
    [applmgr@aqherp bin]$ vi /tmp/adclonectx.err
    Exception in thread "main" java.lang.NoClassDefFoundError: while resolving class: oracle.apps.ad.context.CloneContext
    va.lang.VMClassLoader.resolveClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0) at java.lang.VMClassLoader.resolveClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
    at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.5.0.0)
    at java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (/usr/lib/libgcj.so.5.0.0)
    at java.lang.Class.forName(java.lang.String) (/usr/lib/libgcj.so.5.0.0)
    at gnu.gcj.runtime.FirstThread.run() (/usr/lib/libgcj.so.5.0.0)
    at JvThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.5.0.0)
    at JvRunMain(java.lang.Class, byte const, int, byte const, boolean) (/usr/lib/libgcj.so.5.0.0)
    at __gcj_personality_v0 (/s03/oracle/prodappl/ad/11.5.0/bin/java.version=1.4.2)
    at __libc_start_main (/lib/i686/libc-2.3.4.so)
    at JvRegisterClasses (/s03/oracle/prodappl/ad/11.5.0/bin/java.version=1.4.2)
    Caused by: java.lang.ClassNotFoundException: oracle.xml.parser.v2.DOMParser not found in [file:/usr/share/java/libgcj-3.4.6.jar, file:/s03/oracle/proddb/9.2.0/appsutil/java/, file:./, core:/]
    at java.net.URLClassLoader.findClass(java.lang.String) (/usr/lib/libgcj.so.5.0.0)
    at gnu.gcj.runtime.VMClassLoader.findClass(java.lang.String) (/usr/lib/libgcj.so.5.0.0)
    at java.lang.ClassLoader.loadClass(java.lang.String, boolean) (/usr/lib/libgcj.so.5.0.0)
    at JvFindClass(_Jv_Utf8Const, java.lang.ClassLoader) (/usr/lib/libgcj.so.5.0.0)
    at java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (/usr/lib/libgcj.so.5.0.0)
    at JvBytecodeVerifier.verify_instructions_0() (/usr/lib/libgcj.so.5.0.0)
    at JvVerifyMethod(_Jv_InterpMethod) (/usr/lib/libgcj.so.5.0.0)
    at JvPrepareClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
    at JvWaitForState(java.lang.Class, int) (/usr/lib/libgcj.so.5.0.0)
    at java.lang.VMClassLoader.linkClass0(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
    at java.lang.VMClassLoader.resolveClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
    ...9 more
    ~
    Best Regards.

    Hi DBA's
    * I am doing Migration for Windows to Linux 4.0ES, following document 238276.1.in this document i am in Section2 and Step No 3.
    * Till now i installed the database and now i copied all the APPL_TOP and few COMMON_TOP folders.
    * After running the bellow script, i need to install the iAS Oracle Home.
    perl adclonectx.pl migrate java=/usr contextfile=/s03/oracle/prodappl/admin/PROD_aqherp.xm
    * but I can install JDK in my machine, but what about the patches which is mentioned in the document.246105.1 upgradation of JDK?
    i downloaded this jdk ---- java_ee_sdk-5_06-linux-nojdk.bin -- is this correct JDK Version
    Please guide me how to follow all these steps
    Please clarify the above one.
    Best Regards.

  • E-business Application cloning

    Hi,
    I have some doubts regarding E-business application cloning. As per Oracle documents, we have to first prepare source system by executing adpreclone.pl script. I do understand, that this script captures the changes done in source system and create templates out of it. On target system, we execute adcfgclone.pl on dbtier and apps tier.
    However I have seen a practice where sometimes refresh from production environment to dev environment is done. While doing refresh, following steps are performed:
    1> source system's db tier is directly cloned using Rman duplicate command. Only dbtier is cloned not rdbms oracle home.
    2> on dbtier, adcgfclone.pl is NOT EXECUTED. instead node_name column from FND_CONCURRENT_QUEUES is updated with web-tier name and concurrent manager server name ( APPS tier has shared APPL_TOP and one node is webtier node and other is APPS_tier node)
    3> application tier binaries are copied (overwritten) to apps tier of dev system (context file for both nodes already backed up before overwrite)
    4> adcfgclone appstier <backedup contextfile> is executed on webtier first then on concurrent manager node following is executed in order
    adclonectx.pl addnode contextfile= <path to backed up context file> then backuped up contextfile copied to original location and
    adconfig.pl contextfile=<path of contextfile> is executed.
    Then autoconfig is executed on all appstier nodes and system works all fine. In whole process, I am unable to understand following two steps,
    1> how update to FND_CONCURRENT_QUEUES table works directly.
    2> in Oracle home of rdbms, i checked, in appsutil folder, clone folder is missing, i.e no adcfgclone.pl.. why is this??
    These steps are complete different from those mentioned in Oracle docs.. Kindly please explain the steps here at dbtier.. they are confusing.

    I meant we do not execute adcfgclone.pl. only update this table with node names of web node and concurrent manager node. then execute cmclean.sql and then run autoconfig thats it. no more steps and our dbtier gets set.As mentioned above, run cmclean.sql, clean FND_NODES then run AutoConfig. You could also update it from the application (System Administrator responsibility > Concurrent > Manager > Define) screen or from the backend by updating the table (cmclean.sql script updates other columns in the same table).
    On my rdbms Oracle_home folder appsutil folder is present. only clone folder in it is missing. that means adpreclone was not executed. I am not able to under stand how without preparing source system for cloning (without using adpreclone) directly cloning db with rman (using active clone) and just cloning apps tier we are able to get exact copy. when docs suggest we muct execute adcfgclone on dbtier (which we don't) and we also do not execute adpreclone on source systemRunning preclone on the source instance is a must. However, if you only need to refresh the database (you mentioned before you do not need to refresh the RDBMS ORACLE_HOME) then you can recreate the database manually or using RMAN. If you need to refresh RDBMS $ORACLE_HOME then you need to run preclone on the source RDBMS $ORACLE_HOME, copy the $ORACLE_HOME files and run adcfgclone.pl script on the target node.
    Thanks,
    Hussein

Maybe you are looking for