Showing posts with label Apache. Show all posts
How To Access Forms Directly In Oracle Applications R12
Oracle Applications R12, users are not able to access Forms directly via the following url:
http://hostname.domain:port/forms/frmservlet
The following error would pop out:
APP-FND-01542: This Applications Server is not authorized to access this database.
The goal of this document is to allow users access to the Oracle Applications R12 directly via Forms especially in cases where access to the following url is not available:
http://hostname.domain:port/OA_HTML/AppsLogin
NOTE: Accessing Forms directly is not supported and should only be used for diagnostic and troubleshooting purposes.
SOLUTION
1. Edit $CONTEXT_FILE which is located in $INST_TOP/appl/admin
2. Change
<appserverid_authentication oa_var="s_appserverid_authentication">SECURE</appserverid_authentication>
to
<appserverid_authentication oa_var="s_appserverid_authentication">OFF</appserverid_authentication>
Application Server Security Authentication can take one of the following values {ON, OFF, SECURE}.
OFF - Server security is not checked. Any application server machine can access the database.
ON - Some level of trust is required to access the database. Either the Application Server is registered with the database or the module and version ID are known to be trusted.
SECURE - Full trust is required for access to the database. Only registered Application Server machines and trusted code modules may connect.
3. Run $INST_TOP/admin/scripts/adautocfg.sh to instantiate the changes
4. Users are now able to access Forms directly.
NOTE:
Remember to set the Application Server Security Authentication back to SECURE by settting the value of s_appserverid_authentication to SECURE and running autoconfig.
http://hostname.domain:port/forms/frmservlet
The following error would pop out:
APP-FND-01542: This Applications Server is not authorized to access this database.
The goal of this document is to allow users access to the Oracle Applications R12 directly via Forms especially in cases where access to the following url is not available:
http://hostname.domain:port/OA_HTML/AppsLogin
NOTE: Accessing Forms directly is not supported and should only be used for diagnostic and troubleshooting purposes.
SOLUTION
1. Edit $CONTEXT_FILE which is located in $INST_TOP/appl/admin
2. Change
<appserverid_authentication oa_var="s_appserverid_authentication">SECURE</appserverid_authentication>
to
<appserverid_authentication oa_var="s_appserverid_authentication">OFF</appserverid_authentication>
Application Server Security Authentication can take one of the following values {ON, OFF, SECURE}.
OFF - Server security is not checked. Any application server machine can access the database.
ON - Some level of trust is required to access the database. Either the Application Server is registered with the database or the module and version ID are known to be trusted.
SECURE - Full trust is required for access to the database. Only registered Application Server machines and trusted code modules may connect.
3. Run $INST_TOP/admin/scripts/adautocfg.sh to instantiate the changes
4. Users are now able to access Forms directly.
NOTE:
Remember to set the Application Server Security Authentication back to SECURE by settting the value of s_appserverid_authentication to SECURE and running autoconfig.
Form freezes after saving record R12.2
Please do these first:
- regen jar files -
run the AD Administration Utility to regenerate the JAR files:
Run the AD Administration Utility (adadmin)
Select Generate Applications Files
Generate Product JAR Files
- rebuild forms and pll's
cd $ORACLE_HOME/forms/lib32
Note: if this directory does not exist: cd $ORACLE_HOME/forms/lib
$ make -f ins_forms.mk install
Next, please review these docs and provide the output.
1. Utility /Script To Check The Techstack Component Versions (Forms, Http Server, JDK, Framework, Database, etc) ( Doc ID 601736.1 )
2. How To View The Java Console And Enable Tracing For Sun JRE (Native Plug-in) ( Doc ID 452853.1 )
3. Upload the Logs from
a) $INST_TOP/apps/<SID>_<host_name>/logs/ora/10.1.3/Apache
b) $INST_TOP/ apps/<SID>_<host_name>/logs/ora/10.1.3/j2ee/oacore
c) $INST_TOP/apps/<SID>_<host_name>/logs/ora/10.1.3/oafm
- regen jar files -
run the AD Administration Utility to regenerate the JAR files:
Run the AD Administration Utility (adadmin)
Select Generate Applications Files
Generate Product JAR Files
- rebuild forms and pll's
cd $ORACLE_HOME/forms/lib32
Note: if this directory does not exist: cd $ORACLE_HOME/forms/lib
$ make -f ins_forms.mk install
Next, please review these docs and provide the output.
1. Utility /Script To Check The Techstack Component Versions (Forms, Http Server, JDK, Framework, Database, etc) ( Doc ID 601736.1 )
2. How To View The Java Console And Enable Tracing For Sun JRE (Native Plug-in) ( Doc ID 452853.1 )
3. Upload the Logs from
a) $INST_TOP/apps/<SID>_<host_name>/logs/ora/10.1.3/Apache
b) $INST_TOP/ apps/<SID>_<host_name>/logs/ora/10.1.3/j2ee/oacore
c) $INST_TOP/apps/<SID>_<host_name>/logs/ora/10.1.3/oafm
Oracle Forms in Applications FAQ
What are the components of the standalone Oracle Forms product?
The standalone Oracle Forms product is composed of the following:
Forms Builder - this program is used to create and modify Forms modules.
Forms Compiler - this program is used to generate your FMX files.
Forms Runtime - this program is the engine that runs your Form logic when you form is deployed in client/server.
Forms Metric Server - this program is used in Forms load balancing.
Forms Metric Client - this program is used in Forms load balancing.
Forms CGI - this program dynamically generates the applet html that defines your form.
Forms Server - this program listens for Forms Runtime engine requests.
Forms Web Runtime - this program is the engine that runs your Form logic when your form is deployed over the web.
What are the actual executables called?
These are the various Forms component names on Unix and Windows:
Unix Windows
Forms Builder f60desm ifbld60.exe
Forms Compiler/Generator f60gen/f60genm ifcmp60.exe
Forms Runtime f60run/f60runm ifrun60.exe
Forms Metric Server d2ls60 d2ls60.exe
Forms Metric Client d2lc60 d2lc60.exe
Forms CGI f60cgi ifcgi60.exe
Forms Server f60srvm ifsrv60.exe
Forms Web Runtime f60webm ifweb60.exe
Is there a difference between the standalone and Apps Forms product?
Technology and components wise it is the same except for some executables (f60webmx); configuration files (appsweb.cfg,etc.) and the directory locations for both.
Is that really all there is to it?
Well, there are some more subtle differences. In standalone Forms we create the client by loading f60all.jar or f60all_jinit. In apps Forms we load a lot more, you can find a list of these files in the archive= section of your appsweb.cfg. Also since apps Forms is only supported to run from Jinitiator and not native browser mode, cab files (f60all.cab) is not used unlike in standalone Forms.
What is f60webmx?
The f60webmx is your web forms runtime executable, similar to f60webm except that it has Apps specific user exits linked into it.
How can you recreate the f60webmx executable?
To do this you issue the following command:
adrelink force=y "fnd f60webmx"
What are some of the related Forms/Apps files?
adfmcctl.sh - located in $COMMON_TOP/admin/scripts, this script starts and stops the Forms Metric Client for your Apps instance; it uses the Forms d2lc60 executable to accomplish this.
adfmsctl.sh - located in $COMMON_TOP/admin/scripts, this script starts and stop the Forms Metric Server for our Apps instance; it uses the Forms d2ls60 executable to accomplish this.
adfrmctl.sh - located in $COMMON_TOP/admin/scripts, this script starts and stops the Forms Server Listener; similar to and actually calls the f60ctl found in $ORACLE_HOME/6iserver/bin of IAS.
appsweb.cfg - located in $OA_HTML/html/bin, this file defines parameter values used by the Forms Web CGI, similar to formsweb.cfg found in $ORACLE_HOME/6iserver/forms60/server of IAS.
appsbase.html - located in $OA_HTML/<language>, this is the default HTML file for starting an applet using Jinitiator, similar to basejini.htm found in $ORACLE_HOME/forms60/server of IAS.
d2lc60.txt - located in $COMMON_TOP/admin/install, this is the Forms metric client log file.
d2ls60.txt - located in $COMMON_TOP/admin/install, this is the Forms metric server log file.
f60svrm.txt - located in $COMMON_TOP/admin/install, this is the adfrmctl.sh log file. This is not the same as the Forms server log file which not only logs startup and shutdown info but also client connectivity (which client IP is associated with which f60webm process) and debug stack trace info.
OracleApplications.dat - located in $JAVA_TOP/oracle/apps/fnd/formsClient, among other things this file determines the path Apps uses to find their icons; its similar to and supplements registry.dat found in $ORACLE_HOME/forms60/server of IAS.
Is Forms Builder installed with Apps on Unix and Windows?
Yes it is. Unlike standalone Forms that installs the Forms Builder only as part of the IAS product suite on Unix. On Windows platforms you would have to install the IDS product suite to get Forms Builder.
What is a Forms Builder node?
A Forms Builder node refers to the leaves and branches of its Object Navigator. The Object Navigator provides a hierarchical display of the objects in a Form modules.
+Forms
+Module
+Trigger
+Alerts
+Attached Libraries
+Data Blocks
+Canvases
+Editors
+LOVs
+Object Groups
+Parameters
+Pop Up Menus
+Program Units
+Property Classes
+Record Groups
+Reports
+Visual Attributes
+Windows
+Menu
+PL/SQL Libraries
+Object Libraries
+Built-In Packages
+Database Objects
Objects are grouped under their respective nodes. For example, all of the windows defined in a form module appear under the Windows node; all the LOVs defined in the form module appearunder the LOVs node and all the program units appear under the Program Units node. It is important to familiarize yourself with this in case you need to navigate within an Apps form during the course of debugging a problem.
Where can you find Forms/Applications certification information for Apps?
Go to http://metalink.oracle.com:
- click on ?Product Lifecycle? ? ?Certifications?.
- click on ?View Certifications by Product?.
- select your ?Product Group? as ?E-Business suite?.
- select your ?Product? as ?E-Business suite?.
- select your ?Platform Selection?.
- check the ?E-Business Suite Versions? and check ?Certified combinations only?.
- under the ?Applications Tier Certifications? table click on the ?other? column.
Where can you find Forms/Jinitiator certification information for Apps?
Same as # 5
Where can you find Forms patch set information for Apps?
Note 125767.1 Upgrading Developer 6i with Oracle Applications 11i is your best source for this info.
Is there a difference between the standalone and Apps Forms patch set?
No there is not. The patch sets are identical but Apps requires an interoperability patch (I/O patch) and pre/post patches to be applied along with the Forms patch set.
What is the ICX: Forms Launcher system profile option for?
This profile option is used by the Self Service Web Applications Personal Home Page (also known as ICX) to determine the base URL needed to launch an application, which in this case is a Forms application.
What should ICX: Forms Launcher be set to?
?ICX: Forms Launcher? is set to ?http://machine_name:port/dev60cgi/f60cgi?. In Apps release 11i you can add some parameters to this URL to enable some Forms features like tracing.
What is FORMS60_CATCHTERM?
FORMS60_CATCHTERM is an environment setting that enables (value = 1 by default) or disables (value = 0) the Forms abnormal termination handler which catches middle tier crashes and cleans up by removing temp files, closing db connections and writing diagnostic info to the dump file or the forms server log file.
The Forms signal handler can be disabled to troubleshoot spinning/hanging f60webmx processes.
What is FORMS60_TIMEOUT?
FORMS60_TIMEOUT is an environment setting that determines the maximmum idle time (in minutes) before f60webmx shutsdown. Note that it will only terminate an idle middle tier process, i.e. one which is waiting for the "next message" from the client. If the middle tier process is running a transaction or waiting for a query to complete it will not have take effect.
How do you enable Forms Runtime Diagnostics (FRD) in Apps?
To enable Forms Runtime Diagnostics (FRD):
- login to Apps as sysadmin
- click on Profile/System
- query ICX%FORMS%LAUNCHER
- add the following to the end of its value at user level:
?record=collect&log=/tmp/forms_frd.log
Note that like any Apps profiles you can do this on various levels e.g. site, user, etc. so that you target your FRD accordingly. Also be aware that FRD incurs significant overhead to Apps processing so disable it when not in use.
How do you disable direct Forms access through the http://host:port/dev60cgi/f60cgi URL?
You can do this by using the mod_rewrite (the Swiss Army Knife of URL manipulation :) engine of the Apache server. In your httpd.conf file add the following lines at the end:
RewriteEngine on
RewriteCond %{QUERY_STRING} !NLS_LANG
RewriteRule ^/dev60cgi/f60cgi$ http://www.oracle.com
You'll have to tighten up the code somewhat but here I am taking advantage of the fact that the URL for accessing Apps directly and through the personal home page are not exactly the same i.e. if the URL does not have certain parameters in it then I redirect the user to a different web page of my choice.
How do you get a Stack Trace?
To generate a stack trace for Forms:
- set environment variable $FORMS60_CATCHTERM=0
- stop the Forms server
- backup file f60webmx
- make sure you are signed in as the user who owns f60webmx executable, then run this command to relink this executable with debug symbols:
adrelink.sh force=y ranlib=y link_debug=y "fnd f60webmx"
- restart the Forms server
- reproduce the issue
- check for a new core file with corresponding timestamp in $FORMS60_TRACE_PATH or $PWD or $FND_TOP/bin directory
References:
Note 353805.1 How To Generate A Stack Trace For Forms With Applications 11i
Note 1812.1 TECH: Getting a Stack Trace from a CORE file
Architecture
Is HTTP connection mode supported in Apps?
Not at this time. There are plans to bring HTTP support back to Apps but it is currently undergoing certification and it would most likely only be supported when using the Forms servlet. Most of the issues have to deal with how to make the various Apps environment settings available to the listener. Bug 1992211 keeps track of this issue.
Is Forms listener servlet supported in Apps?
No its not. Forms listener servlet is currently not supported in Apps.
Do you have to be on a specific Forms patch set to use Forms listener servlet?
For standalone Forms, this feature has been there since patch set 4 and certified against patch set 5. For Apps, a minimum of patch set 6 will be required and it will only work for environments with a single node web forms tier.
Are there any changes to the Forms product components when in Forms listener servlet?
Yes. With Forms Listener Servlet certain Forms components are replaced:
Forms CGI - Forms Servlet (FormsServlet.class)
Forms Server - Forms Listener Servlet (ListenerServlet.class)
How is Forms load balancing accomplished?
Currently Forms load balancing is done through proprietary programs called Metric Server and Metric Clients. The Metric clients are setup on machines with a corresponding Forms server and they constantly report to a Metric Server their load situation. The Metric Server then uses this information to decide which machine to pass a request to run a web form. Note 148516.1 Load Balancing in 11i Note 148155.1 Load balancing implementation and trouble shooting in 11.5.x using metric server are good sources for more info.
How is Forms load balancing accomplished with Forms listener servlet?
Forms servlet is now available for use with eBusiness Suite. Load balancing is enabled using the capability of the HTTP server (Oracle HTTP powered by Apache.) Reference: Note 201340.1 Using Forms Listener Servlet with Oracle Applications 11i
How to set up Forms to work through a firewall?
In the current Form Services architecture a firewall needs be configured to allow traffic on 2 ports. The listener port of the Oracle HTTP server (usually port 80 or 8002) and the Forms Listener/Server (usually 9000). The Oracle HTTP server handles the initial request, authentication to the server, and presents a list of responsibilities for the end user to choose from. Self Service applications will continue to use only this listener, but if a core application is invoked, the client makes a request to the Forms Listener that then creates a new Forms Server Runtime process. The Oracle HTTP server port will allow http traffic e.g. requests for help files, requests to the TCF servlet, etc. The Forms Listener/Server port will allow socket or https traffic. In the new Forms Servlet architecture the only port that needs to be open is the Oracle HTTP server.
Issues
What is this Forms ?Cancel-Query? issue with Apps?
Being able to cancel a long running query was a much sought after feature in Apps both for queries against data blocks and LOVs. The feature was first introduced in Forms patch set 3 but it subsequently broke many other functionalities. Patch set 9 finally fixes all of these. Note 138159.1 Canceling Long Running Queries in Oracle Applications 11i is your best source for this info.
Why are some Forms files (appsweb.cfg,appsbase.html,etc.) duplicated across an Apps install?
This is because of the way patching is done in Apps. All patches are initially copied to their corresponding products in the $APPL_TOP directory, because some of these files are accessed by an external process they will also be copied to directories outside $APPL_TOP where they can be easily accessed by external processes. Make sure that any changes you make to one copy propagate to all its duplicates.
How do you generate Apps Forms modules or FMB files?
Oftentimes as part of upgrading Forms or modifying a Form module or applying a patch modifying a Form module, you would encounter an issue that would necessitate manually regenerating the Forms module executable or FMX file. To do this you issue the following command:
f60gen module=form_name.fmb userid=apps/apps output_file=form_name.fmx module_type=form batch=yes compile_all=special
How do you generate Apps Forms library modules or PLL files?
To do this you issue the following command:
f60gen module=library_name.pll userid=apps/apps module_type=library batch=yes compile_all=special
How do you generate Apps Forms menu modules or MMB files?
Note that there is only one menu for Apps so it is rare that you need to regenerate the menu. To do this you issue the following command:
f60gen module=FNDMENU.mmb userid=apps/apps output_file=FNDMENU.mmx module_type=menu batch=yes compile_all=special
When do you have to regenerate your Apps Forms modules?
There are many occassions when you have to regenerate (recreate the FMX) your Apps forms or when your Apps forms are regenerated, some are true some are not:
After an operating system upgrade? False
After a database upgrade? False
After applying a Developer patch? False.
After applying an I/O patch? True.
After applying an Apps patch? True, but only if there is a g driver involved.
What is compile_all=special?
For standalone Forms the only valid values for compile_all are ?yes? and ?no?. compile_all=special is similar except that it doesn't attempt to update the source files.
What do you do with a PL/SQL Error 302 and PL/SQL Error 306 when generating a Form module?
This is a generic error message saying your form has attempted to call a program unit, which can be a package (Apps encapsulates all function and procedure calls within packages); a function or a procedure that it cannot find.
Why? Maybe its not defined in the Form itself. Maybe its not defined in the database. Maybe you?ve misspelled it. The error itself will provide clues for you to debug the where and why of this problem. Here is a typical error that you might get when generating a form:
Compiling WHEN-BUTTON-PRESSED trigger on SUBMIT_REQUEST item in DEPT data block...
ompilation error on WHEN-BUTTON-PRESSED trigger on SUBMIT_REQUEST item in DEPT data block: PL/SQL ERROR 302 at line 4, column 25 component 'SUBMIT_REQUES' must be declared
PL/SQL ERROR 0 at line 4, column 3 Statement ignored
WHEN-BUTTON-PRESSED is a name of a forms trigger in the form. SUBMIT_REQUEST is the name of a forms item, in this case a button. DEPT is the name of a data block in the form. So far this tells us that the errant code is in a WHEN-BUTTON-PRESSED trigger attached to a SUBMIT-REQUEST button attached to the DEPT data block and it?s on line 4 column 25 of that trigger.
Once you open the form in Forms Builder you can easily track down this trigger and see that the there was a misspelling in the name of the function call (SUBMIT_REQUES is missing a T at the end). The code is as follows:
DECLARE
req_id NUMBER;
BEGIN
req_id := FND_REQUEST.SUBMIT_REQUES(?FND?,?FMDMGEN?,?Message File?,
?01-NOV-02 00:00:00',FALSE,'x');
END;
Note that the package can reside in the Form under the ?Program Units? node; or as a Forms library attached to the form or as a stored object in the database.
What is the sequence in which Forms resolves program unit calls?
Forms will attempt to resolve a program unit call in the following sequence:
Program Units node
Forms Library
Database
This will give you an idea on where first to look for broken packages in your hunt for the broken package. Oftentimes you might have to dig to the nth level to find the broken root package that has cascaded its problem up to the package where you currently see it. Either your amazing PL/SQL skills will find the problem for you or you can call Oracle Support and use their amazing PL/SQL skills. On occasion the problem in your package is already fixed in a later release.
What do you do when you find the root broken package?
First you have to determine the files that created the package body and spec. To do this you either:
Start Forms Builder (f60desm).
Connect to the database as apps/apps.
Expand the ?Database Objects? node.
Expand the ?APPS? schema node.
Expand the ?Stored Program Units?node.
Locate your package spec and body.
Double click on the icon besides it.
Or
Login to SQL*Plus as APPS/APPS.
Locate your package spec and body.
How do you get the latest package release?
SQL> select name,type,text from user_source where name ='FND_REQUEST' and line < 3
NAME TYPE TEXT
--------------- ------------ --------------------------------------------------------
FND_REQUEST PACKAGE package FND_REQUEST AUTHID CURRENT_USER as
ND_REQUEST PACKAGE /* $Header: AFCPREQS.pls 115.4 2000/02/29 11:51:08 $ */ FND_REQUEST PACKAGE BODY package body FND_REQUEST as
FND_REQUEST PACKAGE BODY /* $Header: AFCPREQB.pls 115.27 2001/07/28 09:35:16 $ */
What we?re looking for is the name and version number (AFCPREQS.pls 115.4 and AFCPREQB.pls 115.27) of the files that create the package. Support will then determine if it?s advisable to apply the latest release of those files.
What is the FORMS60_CATCHTERM issue in Apps?
There was an issue where spinning f60webmx processes are spawned when the Forms abnormal termination handler is enabled. Disabling this handler (or FORMS60_CATCHTERM=0) works around the problem and it is also fixed in Forms v6.0.8.12. This is Bug 1367619,Bug 1394311 and Bug 1396450, where the only way to really confirm this is your issue is to generate a stack trace from the spinning f60webmx and compare your results with the bug. Note that not all spinning f60webmx problems are identical.
What is the AlertBundle issue?
Often times in your jinitiator console, apache error_log and your jserv_log files, you will see the following errors which shouldn't be any cause for concern:
GET /OA_JAVA/oracle/ewt/alert/resource/AlertBundle_en_US.class HTTP/1.0" 404 328
GET /OA_JAVA/oracle/ewt/alert/resource/AlertBundle_en.class HTTP/1.0" 404 325
The AlertBundle class is part of the Forms EWT and it is used for alerts amongst other things. The search order for it is:
AlertBundle_<language>_<region> e.g. AlertBundle_en_US.class (English for United States translated Alert bundle)
AlertBundle_ e.g. AlertBundle_en.class (English for all regions translated Alert bundle)
AlertBundle e.g. AlertBundle.class (English by default)
In the latest 6i patchset the language and region should be derived from NLS_LANG on the middle tier.
User Interface
How do you change the background color of a required item in Apps?
Change the $OA_JAVA/oracle/apps/fnd/formsClient/OracleApplications.dat file and change the RGB value for app.ui.requiredFieldVABGColor. To turn off the color of the required item you can either change the value of app.ui.requiredFieldVA from true to false (note that this is what the OracleApplications2.dat is for, a requirement for the ADA). You have to restart Jinitiator for this to take effect.
How can you affect the look and feel of your Apps forms?
You can alter the interface look and feel of Apps forms by changing the values of the following variables in the appsweb.cfg file:
lookAndFeel=Oracle (or generic)
colorScheme=blue or (teal, titanium, red, khaki, blue, olive, purple)
background=no
readonlyBackground=automatic
The FND.D patch will allow control of some of these settings through the system profile:
Java Look and Feel=Oracle (or generic)
Java Color Scheme=blue (or teal, titanium, red, khaki, blue, olive, purple)
Customization
Is customizing Apps Forms supported?
Customizing Apps forms can mean many things. Here are some interpretations and whether they are supported or not:
Do you support issues encountered when customizing seed or Apps products forms? Only if it pertains to standalone Forms functionality.
Do you support issues encountered when running customized seed or Apps product forms? No.
Do you support issues encountered when customizing Apps template forms? Only if it pertains to standalone Forms functionality.
Do you support issues encountered when running customized Apps template forms? Only if it pertains to standalone Forms functionality.
Do you support issues encountered when integrating customized Apps template forms with Apps? Yes.
What if you really want to customize Apps forms?
Apps strives to be a very complete product. It presents you with features that preclude the necessity of customizing or building new forms. On top of this it has the added functionality of being able to do internal customization of its forms through the use of flex fields, but if this isn?t enough then the following manuals should help you accomplish this Oracle Applications Developer's Guide (A75545-02) and Oracle Applications User Interface Standards for Forms-Based (A75395-01).
How do you integrate custom forms with Apps?
Note 70276.1 HOW TO INTEGRATE APPLICATIONS RELEASE 11 WITH CUSTOM APPLICATIONS would be a good source of info, official documentation can be found in Chapter 2 of the Oracle Applications Developer's Guide (A75545-02).
Can you save Form modules (FMB, MMB, PLL) into the database?
Yes and no. Yes if its standalone and no if its part of Apps, this is because Apps forms are structured so that their dependent modules are all stored as files. In Forms 9i (not yet released) you will not be able to store Forms modules in the database altogether.
Where can you find the source Forms modules for Apps?
Apps places all its source (FMB) files in the $AU_TOP/forms/<language> directory whereas the FMX files reside in their respective $PRODUCT_TOP/forms/<language> directory. On the other hand, all menu (MMB, MMX) and library (PLL and PLX) files are copied to the $AU_TOP/resource directory.
How can you find the version of Forms in Apps?
Once you are in an Apps form ...
click on Help
click on About Oracle Applications
... from the top level menu. The information is under the Forms Server section.
How can you find the version and name of the form you are currently on in Apps?
Same as #6 except that the information is under the Current Form section. The Form Name corresponds to the FMB and FMX file for that form. The Form Version corresponds to the release level of that form.
How can you confirm the version of the FMX or FMB file?
Oftentimes, once you determine the version and name of the current form you want to peek into the internal workings of the actual form itself. To ensure that you are peeking at the right release of the FMB file you can do the following:
$adident Header FNDSCSGN.fmb
If you do this on the machine where Apps is installed it should be as simple as starting Forms Builder and opening the form.
If you simply copy the form over to a a machine that does not have Apps installed, you will run into is a lot of FRM-18108: "Failed to load the following objects" errors. This is because an Apps form is usually dependent on a host of other forms, libaries and menus.
If you want to open the TEMPLATE.fmb form, make sure you have the following forms, libraries, copied over as well from the $AU_TOP/forms/<language> and $AU_TOP/resource directories:
APPSTAND.fmb
APPCORE.pll
APPCORE2.pll
APPDAYPK.pll
CUSTOM.pll
FNDSQF.pll
GHR.pll
GLOBE.pll
GSM.pll
JA.pll
JE.pll
JL.pll
VERT.pll
OPM.pll
PQH_GEN.pll
PSA.pll
PSAC.pll
PSB.pll
IGILUTIL.pll
IGILUTIL2.pll
How can I open an Apps form in Forms Builder?
If you want to open a product specific form, make sure you have all its associated forms and libraries copied over.
Since it is quite difficult to pinpoint exactly what this is, its best to just copy over the entire contents of $AU_TOP/forms/<language> and $AU_TOP/resource.
The standalone Oracle Forms product is composed of the following:
Forms Builder - this program is used to create and modify Forms modules.
Forms Compiler - this program is used to generate your FMX files.
Forms Runtime - this program is the engine that runs your Form logic when you form is deployed in client/server.
Forms Metric Server - this program is used in Forms load balancing.
Forms Metric Client - this program is used in Forms load balancing.
Forms CGI - this program dynamically generates the applet html that defines your form.
Forms Server - this program listens for Forms Runtime engine requests.
Forms Web Runtime - this program is the engine that runs your Form logic when your form is deployed over the web.
What are the actual executables called?
These are the various Forms component names on Unix and Windows:
Unix Windows
Forms Builder f60desm ifbld60.exe
Forms Compiler/Generator f60gen/f60genm ifcmp60.exe
Forms Runtime f60run/f60runm ifrun60.exe
Forms Metric Server d2ls60 d2ls60.exe
Forms Metric Client d2lc60 d2lc60.exe
Forms CGI f60cgi ifcgi60.exe
Forms Server f60srvm ifsrv60.exe
Forms Web Runtime f60webm ifweb60.exe
Is there a difference between the standalone and Apps Forms product?
Technology and components wise it is the same except for some executables (f60webmx); configuration files (appsweb.cfg,etc.) and the directory locations for both.
Is that really all there is to it?
Well, there are some more subtle differences. In standalone Forms we create the client by loading f60all.jar or f60all_jinit. In apps Forms we load a lot more, you can find a list of these files in the archive= section of your appsweb.cfg. Also since apps Forms is only supported to run from Jinitiator and not native browser mode, cab files (f60all.cab) is not used unlike in standalone Forms.
What is f60webmx?
The f60webmx is your web forms runtime executable, similar to f60webm except that it has Apps specific user exits linked into it.
How can you recreate the f60webmx executable?
To do this you issue the following command:
adrelink force=y "fnd f60webmx"
What are some of the related Forms/Apps files?
adfmcctl.sh - located in $COMMON_TOP/admin/scripts, this script starts and stops the Forms Metric Client for your Apps instance; it uses the Forms d2lc60 executable to accomplish this.
adfmsctl.sh - located in $COMMON_TOP/admin/scripts, this script starts and stop the Forms Metric Server for our Apps instance; it uses the Forms d2ls60 executable to accomplish this.
adfrmctl.sh - located in $COMMON_TOP/admin/scripts, this script starts and stops the Forms Server Listener; similar to and actually calls the f60ctl found in $ORACLE_HOME/6iserver/bin of IAS.
appsweb.cfg - located in $OA_HTML/html/bin, this file defines parameter values used by the Forms Web CGI, similar to formsweb.cfg found in $ORACLE_HOME/6iserver/forms60/server of IAS.
appsbase.html - located in $OA_HTML/<language>, this is the default HTML file for starting an applet using Jinitiator, similar to basejini.htm found in $ORACLE_HOME/forms60/server of IAS.
d2lc60.txt - located in $COMMON_TOP/admin/install, this is the Forms metric client log file.
d2ls60.txt - located in $COMMON_TOP/admin/install, this is the Forms metric server log file.
f60svrm.txt - located in $COMMON_TOP/admin/install, this is the adfrmctl.sh log file. This is not the same as the Forms server log file which not only logs startup and shutdown info but also client connectivity (which client IP is associated with which f60webm process) and debug stack trace info.
OracleApplications.dat - located in $JAVA_TOP/oracle/apps/fnd/formsClient, among other things this file determines the path Apps uses to find their icons; its similar to and supplements registry.dat found in $ORACLE_HOME/forms60/server of IAS.
Is Forms Builder installed with Apps on Unix and Windows?
Yes it is. Unlike standalone Forms that installs the Forms Builder only as part of the IAS product suite on Unix. On Windows platforms you would have to install the IDS product suite to get Forms Builder.
What is a Forms Builder node?
A Forms Builder node refers to the leaves and branches of its Object Navigator. The Object Navigator provides a hierarchical display of the objects in a Form modules.
+Forms
+Module
+Trigger
+Alerts
+Attached Libraries
+Data Blocks
+Canvases
+Editors
+LOVs
+Object Groups
+Parameters
+Pop Up Menus
+Program Units
+Property Classes
+Record Groups
+Reports
+Visual Attributes
+Windows
+Menu
+PL/SQL Libraries
+Object Libraries
+Built-In Packages
+Database Objects
Objects are grouped under their respective nodes. For example, all of the windows defined in a form module appear under the Windows node; all the LOVs defined in the form module appearunder the LOVs node and all the program units appear under the Program Units node. It is important to familiarize yourself with this in case you need to navigate within an Apps form during the course of debugging a problem.
Where can you find Forms/Applications certification information for Apps?
Go to http://metalink.oracle.com:
- click on ?Product Lifecycle? ? ?Certifications?.
- click on ?View Certifications by Product?.
- select your ?Product Group? as ?E-Business suite?.
- select your ?Product? as ?E-Business suite?.
- select your ?Platform Selection?.
- check the ?E-Business Suite Versions? and check ?Certified combinations only?.
- under the ?Applications Tier Certifications? table click on the ?other? column.
Where can you find Forms/Jinitiator certification information for Apps?
Same as # 5
Where can you find Forms patch set information for Apps?
Note 125767.1 Upgrading Developer 6i with Oracle Applications 11i is your best source for this info.
Is there a difference between the standalone and Apps Forms patch set?
No there is not. The patch sets are identical but Apps requires an interoperability patch (I/O patch) and pre/post patches to be applied along with the Forms patch set.
What is the ICX: Forms Launcher system profile option for?
This profile option is used by the Self Service Web Applications Personal Home Page (also known as ICX) to determine the base URL needed to launch an application, which in this case is a Forms application.
What should ICX: Forms Launcher be set to?
?ICX: Forms Launcher? is set to ?http://machine_name:port/dev60cgi/f60cgi?. In Apps release 11i you can add some parameters to this URL to enable some Forms features like tracing.
What is FORMS60_CATCHTERM?
FORMS60_CATCHTERM is an environment setting that enables (value = 1 by default) or disables (value = 0) the Forms abnormal termination handler which catches middle tier crashes and cleans up by removing temp files, closing db connections and writing diagnostic info to the dump file or the forms server log file.
The Forms signal handler can be disabled to troubleshoot spinning/hanging f60webmx processes.
What is FORMS60_TIMEOUT?
FORMS60_TIMEOUT is an environment setting that determines the maximmum idle time (in minutes) before f60webmx shutsdown. Note that it will only terminate an idle middle tier process, i.e. one which is waiting for the "next message" from the client. If the middle tier process is running a transaction or waiting for a query to complete it will not have take effect.
How do you enable Forms Runtime Diagnostics (FRD) in Apps?
To enable Forms Runtime Diagnostics (FRD):
- login to Apps as sysadmin
- click on Profile/System
- query ICX%FORMS%LAUNCHER
- add the following to the end of its value at user level:
?record=collect&log=/tmp/forms_frd.log
Note that like any Apps profiles you can do this on various levels e.g. site, user, etc. so that you target your FRD accordingly. Also be aware that FRD incurs significant overhead to Apps processing so disable it when not in use.
How do you disable direct Forms access through the http://host:port/dev60cgi/f60cgi URL?
You can do this by using the mod_rewrite (the Swiss Army Knife of URL manipulation :) engine of the Apache server. In your httpd.conf file add the following lines at the end:
RewriteEngine on
RewriteCond %{QUERY_STRING} !NLS_LANG
RewriteRule ^/dev60cgi/f60cgi$ http://www.oracle.com
You'll have to tighten up the code somewhat but here I am taking advantage of the fact that the URL for accessing Apps directly and through the personal home page are not exactly the same i.e. if the URL does not have certain parameters in it then I redirect the user to a different web page of my choice.
How do you get a Stack Trace?
To generate a stack trace for Forms:
- set environment variable $FORMS60_CATCHTERM=0
- stop the Forms server
- backup file f60webmx
- make sure you are signed in as the user who owns f60webmx executable, then run this command to relink this executable with debug symbols:
adrelink.sh force=y ranlib=y link_debug=y "fnd f60webmx"
- restart the Forms server
- reproduce the issue
- check for a new core file with corresponding timestamp in $FORMS60_TRACE_PATH or $PWD or $FND_TOP/bin directory
References:
Note 353805.1 How To Generate A Stack Trace For Forms With Applications 11i
Note 1812.1 TECH: Getting a Stack Trace from a CORE file
Architecture
Is HTTP connection mode supported in Apps?
Not at this time. There are plans to bring HTTP support back to Apps but it is currently undergoing certification and it would most likely only be supported when using the Forms servlet. Most of the issues have to deal with how to make the various Apps environment settings available to the listener. Bug 1992211 keeps track of this issue.
Is Forms listener servlet supported in Apps?
No its not. Forms listener servlet is currently not supported in Apps.
Do you have to be on a specific Forms patch set to use Forms listener servlet?
For standalone Forms, this feature has been there since patch set 4 and certified against patch set 5. For Apps, a minimum of patch set 6 will be required and it will only work for environments with a single node web forms tier.
Are there any changes to the Forms product components when in Forms listener servlet?
Yes. With Forms Listener Servlet certain Forms components are replaced:
Forms CGI - Forms Servlet (FormsServlet.class)
Forms Server - Forms Listener Servlet (ListenerServlet.class)
How is Forms load balancing accomplished?
Currently Forms load balancing is done through proprietary programs called Metric Server and Metric Clients. The Metric clients are setup on machines with a corresponding Forms server and they constantly report to a Metric Server their load situation. The Metric Server then uses this information to decide which machine to pass a request to run a web form. Note 148516.1 Load Balancing in 11i Note 148155.1 Load balancing implementation and trouble shooting in 11.5.x using metric server are good sources for more info.
How is Forms load balancing accomplished with Forms listener servlet?
Forms servlet is now available for use with eBusiness Suite. Load balancing is enabled using the capability of the HTTP server (Oracle HTTP powered by Apache.) Reference: Note 201340.1 Using Forms Listener Servlet with Oracle Applications 11i
How to set up Forms to work through a firewall?
In the current Form Services architecture a firewall needs be configured to allow traffic on 2 ports. The listener port of the Oracle HTTP server (usually port 80 or 8002) and the Forms Listener/Server (usually 9000). The Oracle HTTP server handles the initial request, authentication to the server, and presents a list of responsibilities for the end user to choose from. Self Service applications will continue to use only this listener, but if a core application is invoked, the client makes a request to the Forms Listener that then creates a new Forms Server Runtime process. The Oracle HTTP server port will allow http traffic e.g. requests for help files, requests to the TCF servlet, etc. The Forms Listener/Server port will allow socket or https traffic. In the new Forms Servlet architecture the only port that needs to be open is the Oracle HTTP server.
Issues
What is this Forms ?Cancel-Query? issue with Apps?
Being able to cancel a long running query was a much sought after feature in Apps both for queries against data blocks and LOVs. The feature was first introduced in Forms patch set 3 but it subsequently broke many other functionalities. Patch set 9 finally fixes all of these. Note 138159.1 Canceling Long Running Queries in Oracle Applications 11i is your best source for this info.
Why are some Forms files (appsweb.cfg,appsbase.html,etc.) duplicated across an Apps install?
This is because of the way patching is done in Apps. All patches are initially copied to their corresponding products in the $APPL_TOP directory, because some of these files are accessed by an external process they will also be copied to directories outside $APPL_TOP where they can be easily accessed by external processes. Make sure that any changes you make to one copy propagate to all its duplicates.
How do you generate Apps Forms modules or FMB files?
Oftentimes as part of upgrading Forms or modifying a Form module or applying a patch modifying a Form module, you would encounter an issue that would necessitate manually regenerating the Forms module executable or FMX file. To do this you issue the following command:
f60gen module=form_name.fmb userid=apps/apps output_file=form_name.fmx module_type=form batch=yes compile_all=special
How do you generate Apps Forms library modules or PLL files?
To do this you issue the following command:
f60gen module=library_name.pll userid=apps/apps module_type=library batch=yes compile_all=special
How do you generate Apps Forms menu modules or MMB files?
Note that there is only one menu for Apps so it is rare that you need to regenerate the menu. To do this you issue the following command:
f60gen module=FNDMENU.mmb userid=apps/apps output_file=FNDMENU.mmx module_type=menu batch=yes compile_all=special
When do you have to regenerate your Apps Forms modules?
There are many occassions when you have to regenerate (recreate the FMX) your Apps forms or when your Apps forms are regenerated, some are true some are not:
After an operating system upgrade? False
After a database upgrade? False
After applying a Developer patch? False.
After applying an I/O patch? True.
After applying an Apps patch? True, but only if there is a g driver involved.
What is compile_all=special?
For standalone Forms the only valid values for compile_all are ?yes? and ?no?. compile_all=special is similar except that it doesn't attempt to update the source files.
What do you do with a PL/SQL Error 302 and PL/SQL Error 306 when generating a Form module?
This is a generic error message saying your form has attempted to call a program unit, which can be a package (Apps encapsulates all function and procedure calls within packages); a function or a procedure that it cannot find.
Why? Maybe its not defined in the Form itself. Maybe its not defined in the database. Maybe you?ve misspelled it. The error itself will provide clues for you to debug the where and why of this problem. Here is a typical error that you might get when generating a form:
Compiling WHEN-BUTTON-PRESSED trigger on SUBMIT_REQUEST item in DEPT data block...
ompilation error on WHEN-BUTTON-PRESSED trigger on SUBMIT_REQUEST item in DEPT data block: PL/SQL ERROR 302 at line 4, column 25 component 'SUBMIT_REQUES' must be declared
PL/SQL ERROR 0 at line 4, column 3 Statement ignored
WHEN-BUTTON-PRESSED is a name of a forms trigger in the form. SUBMIT_REQUEST is the name of a forms item, in this case a button. DEPT is the name of a data block in the form. So far this tells us that the errant code is in a WHEN-BUTTON-PRESSED trigger attached to a SUBMIT-REQUEST button attached to the DEPT data block and it?s on line 4 column 25 of that trigger.
Once you open the form in Forms Builder you can easily track down this trigger and see that the there was a misspelling in the name of the function call (SUBMIT_REQUES is missing a T at the end). The code is as follows:
DECLARE
req_id NUMBER;
BEGIN
req_id := FND_REQUEST.SUBMIT_REQUES(?FND?,?FMDMGEN?,?Message File?,
?01-NOV-02 00:00:00',FALSE,'x');
END;
Note that the package can reside in the Form under the ?Program Units? node; or as a Forms library attached to the form or as a stored object in the database.
What is the sequence in which Forms resolves program unit calls?
Forms will attempt to resolve a program unit call in the following sequence:
Program Units node
Forms Library
Database
This will give you an idea on where first to look for broken packages in your hunt for the broken package. Oftentimes you might have to dig to the nth level to find the broken root package that has cascaded its problem up to the package where you currently see it. Either your amazing PL/SQL skills will find the problem for you or you can call Oracle Support and use their amazing PL/SQL skills. On occasion the problem in your package is already fixed in a later release.
What do you do when you find the root broken package?
First you have to determine the files that created the package body and spec. To do this you either:
Start Forms Builder (f60desm).
Connect to the database as apps/apps.
Expand the ?Database Objects? node.
Expand the ?APPS? schema node.
Expand the ?Stored Program Units?node.
Locate your package spec and body.
Double click on the icon besides it.
Or
Login to SQL*Plus as APPS/APPS.
Locate your package spec and body.
How do you get the latest package release?
SQL> select name,type,text from user_source where name ='FND_REQUEST' and line < 3
NAME TYPE TEXT
--------------- ------------ --------------------------------------------------------
FND_REQUEST PACKAGE package FND_REQUEST AUTHID CURRENT_USER as
ND_REQUEST PACKAGE /* $Header: AFCPREQS.pls 115.4 2000/02/29 11:51:08 $ */ FND_REQUEST PACKAGE BODY package body FND_REQUEST as
FND_REQUEST PACKAGE BODY /* $Header: AFCPREQB.pls 115.27 2001/07/28 09:35:16 $ */
What we?re looking for is the name and version number (AFCPREQS.pls 115.4 and AFCPREQB.pls 115.27) of the files that create the package. Support will then determine if it?s advisable to apply the latest release of those files.
What is the FORMS60_CATCHTERM issue in Apps?
There was an issue where spinning f60webmx processes are spawned when the Forms abnormal termination handler is enabled. Disabling this handler (or FORMS60_CATCHTERM=0) works around the problem and it is also fixed in Forms v6.0.8.12. This is Bug 1367619,Bug 1394311 and Bug 1396450, where the only way to really confirm this is your issue is to generate a stack trace from the spinning f60webmx and compare your results with the bug. Note that not all spinning f60webmx problems are identical.
What is the AlertBundle issue?
Often times in your jinitiator console, apache error_log and your jserv_log files, you will see the following errors which shouldn't be any cause for concern:
GET /OA_JAVA/oracle/ewt/alert/resource/AlertBundle_en_US.class HTTP/1.0" 404 328
GET /OA_JAVA/oracle/ewt/alert/resource/AlertBundle_en.class HTTP/1.0" 404 325
The AlertBundle class is part of the Forms EWT and it is used for alerts amongst other things. The search order for it is:
AlertBundle_<language>_<region> e.g. AlertBundle_en_US.class (English for United States translated Alert bundle)
AlertBundle_ e.g. AlertBundle_en.class (English for all regions translated Alert bundle)
AlertBundle e.g. AlertBundle.class (English by default)
In the latest 6i patchset the language and region should be derived from NLS_LANG on the middle tier.
User Interface
How do you change the background color of a required item in Apps?
Change the $OA_JAVA/oracle/apps/fnd/formsClient/OracleApplications.dat file and change the RGB value for app.ui.requiredFieldVABGColor. To turn off the color of the required item you can either change the value of app.ui.requiredFieldVA from true to false (note that this is what the OracleApplications2.dat is for, a requirement for the ADA). You have to restart Jinitiator for this to take effect.
How can you affect the look and feel of your Apps forms?
You can alter the interface look and feel of Apps forms by changing the values of the following variables in the appsweb.cfg file:
lookAndFeel=Oracle (or generic)
colorScheme=blue or (teal, titanium, red, khaki, blue, olive, purple)
background=no
readonlyBackground=automatic
The FND.D patch will allow control of some of these settings through the system profile:
Java Look and Feel=Oracle (or generic)
Java Color Scheme=blue (or teal, titanium, red, khaki, blue, olive, purple)
Customization
Is customizing Apps Forms supported?
Customizing Apps forms can mean many things. Here are some interpretations and whether they are supported or not:
Do you support issues encountered when customizing seed or Apps products forms? Only if it pertains to standalone Forms functionality.
Do you support issues encountered when running customized seed or Apps product forms? No.
Do you support issues encountered when customizing Apps template forms? Only if it pertains to standalone Forms functionality.
Do you support issues encountered when running customized Apps template forms? Only if it pertains to standalone Forms functionality.
Do you support issues encountered when integrating customized Apps template forms with Apps? Yes.
What if you really want to customize Apps forms?
Apps strives to be a very complete product. It presents you with features that preclude the necessity of customizing or building new forms. On top of this it has the added functionality of being able to do internal customization of its forms through the use of flex fields, but if this isn?t enough then the following manuals should help you accomplish this Oracle Applications Developer's Guide (A75545-02) and Oracle Applications User Interface Standards for Forms-Based (A75395-01).
How do you integrate custom forms with Apps?
Note 70276.1 HOW TO INTEGRATE APPLICATIONS RELEASE 11 WITH CUSTOM APPLICATIONS would be a good source of info, official documentation can be found in Chapter 2 of the Oracle Applications Developer's Guide (A75545-02).
Can you save Form modules (FMB, MMB, PLL) into the database?
Yes and no. Yes if its standalone and no if its part of Apps, this is because Apps forms are structured so that their dependent modules are all stored as files. In Forms 9i (not yet released) you will not be able to store Forms modules in the database altogether.
Where can you find the source Forms modules for Apps?
Apps places all its source (FMB) files in the $AU_TOP/forms/<language> directory whereas the FMX files reside in their respective $PRODUCT_TOP/forms/<language> directory. On the other hand, all menu (MMB, MMX) and library (PLL and PLX) files are copied to the $AU_TOP/resource directory.
How can you find the version of Forms in Apps?
Once you are in an Apps form ...
click on Help
click on About Oracle Applications
... from the top level menu. The information is under the Forms Server section.
How can you find the version and name of the form you are currently on in Apps?
Same as #6 except that the information is under the Current Form section. The Form Name corresponds to the FMB and FMX file for that form. The Form Version corresponds to the release level of that form.
How can you confirm the version of the FMX or FMB file?
Oftentimes, once you determine the version and name of the current form you want to peek into the internal workings of the actual form itself. To ensure that you are peeking at the right release of the FMB file you can do the following:
$adident Header FNDSCSGN.fmb
If you do this on the machine where Apps is installed it should be as simple as starting Forms Builder and opening the form.
If you simply copy the form over to a a machine that does not have Apps installed, you will run into is a lot of FRM-18108: "Failed to load the following objects" errors. This is because an Apps form is usually dependent on a host of other forms, libaries and menus.
If you want to open the TEMPLATE.fmb form, make sure you have the following forms, libraries, copied over as well from the $AU_TOP/forms/<language> and $AU_TOP/resource directories:
APPSTAND.fmb
APPCORE.pll
APPCORE2.pll
APPDAYPK.pll
CUSTOM.pll
FNDSQF.pll
GHR.pll
GLOBE.pll
GSM.pll
JA.pll
JE.pll
JL.pll
VERT.pll
OPM.pll
PQH_GEN.pll
PSA.pll
PSAC.pll
PSB.pll
IGILUTIL.pll
IGILUTIL2.pll
How can I open an Apps form in Forms Builder?
If you want to open a product specific form, make sure you have all its associated forms and libraries copied over.
Since it is quite difficult to pinpoint exactly what this is, its best to just copy over the entire contents of $AU_TOP/forms/<language> and $AU_TOP/resource.
How To Change The Web Port in E-Business Suite R12.2 (Doc ID 1567661.1)
Solution
The high level process is :
- Launch EM Console
http://<s_wls_admin_host>.<s_wls_admin_domain>:<s_wls_adminport>/em)
- Login as weblogic admin user (s_wls_admin_user)
- Select the webtier instance from the Web Tier drop down
- Select the Oracle HTTP server component and Advanced Configuration
- Choose httpd.conf for example
- Modify the Listen port value
- Save the changes
- Run Context File Synchronization $AD_TOP/bin/adSyncContext.pl :
perl $AD_TOP/bin/adSyncContext.pl contextfile=$CONTEXT_FILE
- Manually update the $CONTEXT_FILE if old port values are still present
- Run autoconfig
- Check the value for s_login_page in the context file
- Also, context file should not have any references to old Listen port value
- Login to EBS and do some sanity testing
At the time this document was written the correct functionality is delivered by
$JAVA_TOP/oracle/apps/ad/context/UpdateContext.class
$AD_TOP/java/oracle/apps/ad/context/UpdateContext.class
versions 120.5.12020000.2 or higher delivered by Patch 16324606:R12.TXK.C which is included in 12.2.2
If you are on a lower version , such as
$Header UpdateContext.java 120.5 2011/06/03 20:26:17 jaedo ship $
then you need to manually check and update the derived context variables left unchanged in $CONTEXT_FILE
For instance , if old port was 8000 and new port is 8010 then :
grep 8000 $CONTEXT_FILE
<chronosURL oa_var="s_chronosURL">http://<hostname>.<domainname>:8000/oracle_smp_chronos/oracle_smp_chronos_sdk.gif</chronosURL>
<EndUserMonitoringURL oa_var="s_endUserMonitoringURL">http://<hostname>.<domainname>:8000/oracle_smp_chronos/oracle_smp_chronos_sdk.gif</EndUserMonitoringURL>
<externURL oa_var="s_external_url">http://<hostname>.<domainname>:8000</externURL>
<login_page oa_var="s_login_page">http://<hostname>.<domainname>:8000/OA_HTML/AppsLogin</login_page>
<web_port oa_var="s_webport" oa_type="PORT" base="8000" step="1" range="-1" label="Web Listener Port">8010</web_port>
<activewebport oa_var="s_active_webport" oa_type="DUP_PORT" base="8000" step="1" range="-1" label="Active Web Port">8010</activewebport>
so you need to update s_chronosURL , s_endUserMonitoringURL , s_external_url and s_login_page with new port number 8010
The high level process is :
- Launch EM Console
http://<s_wls_admin_host>.<s_wls_admin_domain>:<s_wls_adminport>/em)
- Login as weblogic admin user (s_wls_admin_user)
- Select the webtier instance from the Web Tier drop down
- Select the Oracle HTTP server component and Advanced Configuration
- Choose httpd.conf for example
- Modify the Listen port value
- Save the changes
- Run Context File Synchronization $AD_TOP/bin/adSyncContext.pl :
perl $AD_TOP/bin/adSyncContext.pl contextfile=$CONTEXT_FILE
- Manually update the $CONTEXT_FILE if old port values are still present
- Run autoconfig
- Check the value for s_login_page in the context file
- Also, context file should not have any references to old Listen port value
- Login to EBS and do some sanity testing
At the time this document was written the correct functionality is delivered by
$JAVA_TOP/oracle/apps/ad/context/UpdateContext.class
$AD_TOP/java/oracle/apps/ad/context/UpdateContext.class
versions 120.5.12020000.2 or higher delivered by Patch 16324606:R12.TXK.C which is included in 12.2.2
If you are on a lower version , such as
$Header UpdateContext.java 120.5 2011/06/03 20:26:17 jaedo ship $
then you need to manually check and update the derived context variables left unchanged in $CONTEXT_FILE
For instance , if old port was 8000 and new port is 8010 then :
grep 8000 $CONTEXT_FILE
<chronosURL oa_var="s_chronosURL">http://<hostname>.<domainname>:8000/oracle_smp_chronos/oracle_smp_chronos_sdk.gif</chronosURL>
<EndUserMonitoringURL oa_var="s_endUserMonitoringURL">http://<hostname>.<domainname>:8000/oracle_smp_chronos/oracle_smp_chronos_sdk.gif</EndUserMonitoringURL>
<externURL oa_var="s_external_url">http://<hostname>.<domainname>:8000</externURL>
<login_page oa_var="s_login_page">http://<hostname>.<domainname>:8000/OA_HTML/AppsLogin</login_page>
<web_port oa_var="s_webport" oa_type="PORT" base="8000" step="1" range="-1" label="Web Listener Port">8010</web_port>
<activewebport oa_var="s_active_webport" oa_type="DUP_PORT" base="8000" step="1" range="-1" label="Active Web Port">8010</activewebport>
so you need to update s_chronosURL , s_endUserMonitoringURL , s_external_url and s_login_page with new port number 8010
Unable to Run a specific Control R12.2
LOG FILE
-----------------------
Filename = grc.log
See the following error:
jobId = 1995
2015-12-21 04:21:58,299 DEBUG [Thread-10] JobRunService:284 Found JobRun in persistence for jobId = 1995, isFinished(): true
2015-12-21 04:21:58,301 ERROR [GrcExecutorThread-1] i:179 Error occured while persisting into berkeley db.
java.lang.OutOfMemoryError: Java heap space
at java.lang.reflect.Array.newInstance(Array.java:70)
at oracle.jdbc.driver.BufferCache.get(BufferCache.java:229)
at oracle.jdbc.driver.PhysicalConnection.getCharBuffer(PhysicalConnection.java:12333)
at oracle.jdbc.driver.OraclePreparedStatement.setupBindBuffers(OraclePreparedStatement.java:3084)
at oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:13251)
at oracle.jdbc.driver.OracleStatementWrapper.executeBatch(OracleStatementWrapper.java:248)
at org.springframework.jdbc.core.JdbcTemplate$4.doInPreparedStatement(JdbcTemplate.java:881)
at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:591)
at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:619)
EXPECTED BEHAVIOR
-----------------------
Control Analysis to be complete as expected
STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Login to the GRC
2. CCM > Manage Control >
3. Select the control " P2P: Enter Requisition and Enter Purchase Order "
3. Run and monitor the job Setup and Administration > Manage job
Solution:
To Implement the solution, perform the below steps on the non-production instance first1
note : Ensure backup plans are in place1
1. Login to the Application
Setup and Administration > Manage Application Configuration > properties tab,
please update the number of cores to 8 which is 1 now
ie., currently system has number cores 8 * number process 8 = 8*8
2. Bring down the application server
3. Move the logs - grc.log and Adminserver.log to backup
4. Update limits.conf as per the installation guide
http://docs.oracle.com/cd/E51797_01/doc.8651/e52268.pdf
Section : Prerequisites
page : 1-2
5. Bounce the OS
6. Make the below changes for DB as recommended
http://docs.oracle.com/cd/E51797_01/doc.8651/e52268.pdf
Section : Creating GRC and DA Schemas
page : 1-3
expected values :
deferred_segment_creation FALSE
processes 3000
7.Increase the temp storage to min 8GB
8. Retest the issue by running controls
9. Once satisfied Migrate the solution to other instance.
1. In the front end, properties tab,
please update the number of cores which is 1 now
2. Update limits.conf as per the installation guide
http://docs.oracle.com/cd/E51797_01/doc.8651/e52268.pdf
Section : Prerequisites
page : 1-2
3. Update DB parameters
http://docs.oracle.com/cd/E51797_01/doc.8651/e52268.pdf
Section : Creating GRC and DA Schemas
page : 1-3
deferred_segment_creation FALSE
processes 3000
4.Increase the temp storage to min 8GB
5. Retest the issue
-----------------------
Filename = grc.log
See the following error:
jobId = 1995
2015-12-21 04:21:58,299 DEBUG [Thread-10] JobRunService:284 Found JobRun in persistence for jobId = 1995, isFinished(): true
2015-12-21 04:21:58,301 ERROR [GrcExecutorThread-1] i:179 Error occured while persisting into berkeley db.
java.lang.OutOfMemoryError: Java heap space
at java.lang.reflect.Array.newInstance(Array.java:70)
at oracle.jdbc.driver.BufferCache.get(BufferCache.java:229)
at oracle.jdbc.driver.PhysicalConnection.getCharBuffer(PhysicalConnection.java:12333)
at oracle.jdbc.driver.OraclePreparedStatement.setupBindBuffers(OraclePreparedStatement.java:3084)
at oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:13251)
at oracle.jdbc.driver.OracleStatementWrapper.executeBatch(OracleStatementWrapper.java:248)
at org.springframework.jdbc.core.JdbcTemplate$4.doInPreparedStatement(JdbcTemplate.java:881)
at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:591)
at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:619)
EXPECTED BEHAVIOR
-----------------------
Control Analysis to be complete as expected
STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Login to the GRC
2. CCM > Manage Control >
3. Select the control " P2P: Enter Requisition and Enter Purchase Order "
3. Run and monitor the job Setup and Administration > Manage job
Solution:
To Implement the solution, perform the below steps on the non-production instance first1
note : Ensure backup plans are in place1
1. Login to the Application
Setup and Administration > Manage Application Configuration > properties tab,
please update the number of cores to 8 which is 1 now
ie., currently system has number cores 8 * number process 8 = 8*8
2. Bring down the application server
3. Move the logs - grc.log and Adminserver.log to backup
4. Update limits.conf as per the installation guide
http://docs.oracle.com/cd/E51797_01/doc.8651/e52268.pdf
Section : Prerequisites
page : 1-2
5. Bounce the OS
6. Make the below changes for DB as recommended
http://docs.oracle.com/cd/E51797_01/doc.8651/e52268.pdf
Section : Creating GRC and DA Schemas
page : 1-3
expected values :
deferred_segment_creation FALSE
processes 3000
7.Increase the temp storage to min 8GB
8. Retest the issue by running controls
9. Once satisfied Migrate the solution to other instance.
1. In the front end, properties tab,
please update the number of cores which is 1 now
2. Update limits.conf as per the installation guide
http://docs.oracle.com/cd/E51797_01/doc.8651/e52268.pdf
Section : Prerequisites
page : 1-2
3. Update DB parameters
http://docs.oracle.com/cd/E51797_01/doc.8651/e52268.pdf
Section : Creating GRC and DA Schemas
page : 1-3
deferred_segment_creation FALSE
processes 3000
4.Increase the temp storage to min 8GB
5. Retest the issue
R12.2 Real time Cloning Procedure
Cloning Reference:-
Cloning Oracle E-Business Suite Release 12.2 with Rapid Clone (Doc ID 1383621.1) – For clone procedure
Sharing the Application Tier File System in Oracle E-Business Suite Release 12.2 (Doc ID 1375769.1) – For Shared Appl top procedure
Issues Refrence:
http://balaoracledba.com/category/oracleappsr12/issues/ - For known issues and support to oracle docs
http://oradbapp.blogspot.in/2015/05/ebs-122-unable-to-start-up-managed.html- For a known issue in 12.2.4
12.2: error while fs_clone of patching(WLS 17495356) cycle (Doc ID 1634239.1)
12.2: fs_clone fails with "ERROR: Number of servers are not in sync between Run and Patch Context" (Doc ID 1582473.1)
Fs_clone Fails with Status 2 (Doc ID 1960769.1)
FS Clone Fails Saying Port In Use: Free The Listed Ports And Retry The Adop Operation (Doc ID 1901109.1)
Clone Oracle Applications Environment
This section explains the detailed steps to clone an Oracle applications 12i (12.2.4) installation using a 11gR2 (11.2.0.4) database to another Oracle 12i (12.2.4) 11gR2(11.2.0.4) environment.
The main steps for cloning Oracle Applications Environment are:
Pre Clone Steps.
Clone Database Tier.
Clone Application Tier.
Post Clone Steps.
Pre Clone Steps
On Source Instance Please perform below activities.
Nodes Task Description Command
Check if instance can be cloned This can be done anytime before the clone
App Source Environment and choose RUN . /u11/home/ebsdev/EBSapps.env
App Find master node if multi-node system
Master node is RUN FS for instance ls -ltr $NE_BASE/EBSapps/log/status*/adzdshowstatus.out | tail -n 1
check for master node in the file
App Check ADOP status complete on master-node CLEANUP COMPLETED
Or
PREPARE NOT STARTED “adop -status” should show all completed,
otherwise use
“adop phase=finalize/cutover/cleanup/abort/fs_clone” to complete
Run Preclone on App-tier and copy This can be done anytime before the clone after ADOP cleanup
App On Master_node RUN FS
Run adpreclone.pl appsTier Following files exist in $RUN_BASE/ /EBSapps/comn/clone/FMW
FMW_Home.jar
WLS/EBSdomain.jar
WLS/plan/moveplan.xml
OHS/ohsarchive.jar
OHS/moveplan.xml $INST_TOP/admin/scripts/adadminserver.sh start
$INST_TOP/admin/scripts/adpreclone.pl appsTier
App Copy $RUN_BASE/EBSapps to target Copy the tar/zip file to target instance $RUN_BASE tar & zip the binaries
tar –cf – EBSapps | gzip > EBSapps.tar.gz
DB Run Preclone on DB-tier and copy Subbu
DB Run adpreclone.pl dbTier Subbu $OH/appsutil/scripts/$CTX/adpreclone.pl dbTier
DB Backup DB Subbu
DB Backup RDBMS home Subbu
Clone Database Tier
Clone oracle home & Database
Clone DB & Oracle Homes on target DB tier. This task is performed by DBA team (Subbu)
Enable Auto Config on DB Tier
For RAC node run below steps on both nodes.
NODE 1
1. Create appsutil.zip on source app server
apdbappd01:appldev1$ $ADPERLPRG $AD_TOP/bin/admkappsutil.pl
Starting the generation of appsutil.zip
Log file located at /u09/home/ebsdev1/fs1/inst/apps/ebsdev1_apdbappd01/admin/log/MakeAppsUtil_04131514.log
output located at /u09/home/ebsdev1/fs1/inst/apps/ebsdev1_apdbappd01/admin/out/appsutil.zip
MakeAppsUtil completed successfully.
2. Transfer appsutil.zip file to target DB server
orapat@apdbadm01:/bio/ebs/pat/db/11.2.0.4 $ scp mpareek@10.2.216.226:/u09/home/ebsdev1/fs1/inst/apps/ebsdev1_apdbappd01/admin/out/appsutil.zip ./
The authenticity of host '10.2.216.226 (10.2.216.226)' can't be established.
RSA key fingerprint is da:3a:e1:bf:98:8a:0c:a5:31:78:d3:2e:06:db:66:5d.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '10.2.216.226' (RSA) to the list of known hosts.
Password:
appsutil.zip 100% 3459KB 3.4MB/s 00:00
cd $ORACLE_HOME
orapat@apdbadm01:/bio/ebs/pat/db/11.2.0.4 $
orapat@apdbadm02:/bio/ebs/pat/db/11.2.0.4/network/admin/ebspat2_apdbadm02 $ scp mpareek@10.2.216.226:/u09/home/ebsdev1/fs1/inst/apps/ebsdev1_apdbappd01/admin/out/appsutil.zip ./
The authenticity of host '10.2.216.226 (10.2.216.226)' can't be established.
RSA key fingerprint is da:3a:e1:bf:98:8a:0c:a5:31:78:d3:2e:06:db:66:5d.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '10.2.216.226' (RSA) to the list of known hosts.
Password:
appsutil.zip 100% 3459KB 3.4MB/s 00:00
orapat@apdbadm02:/bio/ebs/pat/db/11.2.0.4/network/admin/ebspat2_apdbadm02 $
3. Unzip appsutil.zip file
cd $ORACLE_HOME
unzip -o appsutil.zip
4. Purge Old nodes information
Login as apps user
$ sqlplus apps/apps
SQL> exec fnd_conc_clone.setup_clean
5. Install JRE
Install jre under $ORACLE_HOME/appsutil
cd /bio/ebs/str/db/11.2.0.4/appsutil
cat /ora_nfs/jre/jre-7u11-linux-x64.tar.gz | gzip -d | tar xf - &
mv jre1.7.0_11 jre
6. Create Context file
orastr@apdbadm01:/bio/ebs/str/db/11.2.0.4/appsutil/bin $ adbldxml.pl appsuser=apps appspass=appss2015
Starting context file generation for db tier..
Using JVM from /bio/ebs/str/db/11.2.0.4/appsutil/jre/bin/java to execute java programs..
The log file for this adbldxml session is located at:
/bio/ebs/str/db/11.2.0.4/appsutil/log/adbldxml_04231351.log
Enter Database Service Name: ebsstr1
Enter the value for Display Variable: apdbadm01:0.0
Context File /bio/ebs/str/db/11.2.0.4/appsutil/ebsstr1_apdbadm01.xml
already exists.
Overwriting Context File may cause loss of existing settings, hence
backing it up as: /bio/ebs/str/db/11.2.0.4/appsutil/ebsstr1_apdbadm01.xml.bak
The context file has been created at:
/bio/ebs/str/db/11.2.0.4/appsutil/ebsstr1_apdbadm01.xml
Update context file with target db port number
vi /bio/ebs/str/db/11.2.0.4/appsutil/ebsstr1_apdbadm01.xml
update db port from 1521 to 1731 & save the file
Ensure that Util file dir has /usr/tmp
7. Run Auto Config
orastr@apdbadm01:/bio/ebs/str/db/11.2.0.4/appsutil/bin $ perl adconfig.pl
Enter the full file path to the Context file: /bio/ebs/str/db/11.2.0.4/appsutil/ebsstr1_apdbadm01.xml
Enter the APPS user password:
The log file for this session is located at: /bio/ebs/str/db/11.2.0.4/appsutil/log/ebsstr1_apdbadm01/04231358/adconfig.log
AutoConfig is configuring the Database environment...
AutoConfig will consider the custom templates if present.
Using ORACLE_HOME location : /bio/ebs/str/db/11.2.0.4
Classpath : :/bio/ebs/str/db/11.2.0.4/jdbc/lib/ojdbc6.jar:/bio/ebs/str/db/11.2.0.4/appsutil/java/xmlparserv2.jar:/bio/ebs/str/db/11.2.0.4/appsutil/java:/bio/ebs/str/db/11.2.0.4/jlib/netcfg.jar:/bio/ebs/str/db/11.2.0.4/jlib/ldapjclnt11.jar
Using Context file : /bio/ebs/str/db/11.2.0.4/appsutil/ebsstr1_apdbadm01.xml
Context Value Management will now update the Context file
Updating Context file...COMPLETED
Attempting upload of Context file and templates to database...COMPLETED
Updating rdbms version in Context file to db112
Updating rdbms type in Context file to 64 bits
Configuring templates from ORACLE_HOME ...
AutoConfig completed successfully.
NODE 2:
1. Transfer appsutil.zip file to target DB server
orapat@apdbadm01:/bio/ebs/pat/db/11.2.0.4 $ scp` mpareek@10.2.216.226:/u09/home/ebsdev1/fs1/inst/apps/ebsdev1_apdbappd01/admin/out/appsutil.zip ./
The authenticity of host '10.2.216.226 (10.2.216.226)' can't be established.
RSA key fingerprint is da:3a:e1:bf:98:8a:0c:a5:31:78:d3:2e:06:db:66:5d.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '10.2.216.226' (RSA) to the list of known hosts.
Password:
appsutil.zip 100% 3459KB 3.4MB/s 00:00
cd $ORACLE_HOME
orapat@apdbadm01:/bio/ebs/pat/db/11.2.0.4 $
orapat@apdbadm02:/bio/ebs/pat/db/11.2.0.4/network/admin/ebspat2_apdbadm02 $ scp mpareek@10.2.216.226:/u09/home/ebsdev1/fs1/inst/apps/ebsdev1_apdbappd01/admin/out/appsutil.zip ./
The authenticity of host '10.2.216.226 (10.2.216.226)' can't be established.
RSA key fingerprint is da:3a:e1:bf:98:8a:0c:a5:31:78:d3:2e:06:db:66:5d.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '10.2.216.226' (RSA) to the list of known hosts.
Password:
appsutil.zip 100% 3459KB 3.4MB/s 00:00`
orapat@apdbadm02:/bio/ebs/pat/db/11.2.0.4/network/admin/ebspat2_apdbadm02 $
2. Unzip appsutil.zip file
cd $ORACLE_HOME
unzip -o appsutil.zip
3. Purge Old nodes information
Login as apps user
$ sqlplus apps/apps
SQL> exec fnd_conc_clone.setup_clean
4. Install JRE
Install jre under $ORACLE_HOME/appsutil
cd /bio/ebs/str/db/11.2.0.4/appsutil
cat /ora_nfs/jre/jre-7u11-linux-x64.tar.gz | gzip -d | tar xf - &
mv jre1.7.0_11 jre
5. Create Context file
orastr@apdbadm01:/bio/ebs/str/db/11.2.0.4/appsutil/bin $ adbldxml.pl appsuser=apps appspass=appss2015
Starting context file generation for db tier..
Using JVM from /bio/ebs/str/db/11.2.0.4/appsutil/jre/bin/java to execute java programs..
The log file for this adbldxml session is located at:
/bio/ebs/str/db/11.2.0.4/appsutil/log/adbldxml_04231351.log
Enter Database Service Name: ebsstr1
Enter the value for Display Variable: apdbadm01:0.0
Context File /bio/ebs/str/db/11.2.0.4/appsutil/ebsstr1_apdbadm01.xml
already exists.
Overwriting Context File may cause loss of existing settings, hence
backing it up as: /bio/ebs/str/db/11.2.0.4/appsutil/ebsstr1_apdbadm01.xml.bak
The context file has been created at:
/bio/ebs/str/db/11.2.0.4/appsutil/ebsstr1_apdbadm01.xml
Update context file with target db port number
vi /bio/ebs/str/db/11.2.0.4/appsutil/ebsstr1_apdbadm01.xml
update db port from 1521 to 1731 & save the file
Ensure that Util file dir has /usr/tmp
6. Run Auto Config
orastr@apdbadm01:/bio/ebs/str/db/11.2.0.4/appsutil/bin $ perl adconfig.pl
Enter the full file path to the Context file: /bio/ebs/str/db/11.2.0.4/appsutil/ebsstr1_apdbadm01.xml
Enter the APPS user password:
The log file for this session is located at: /bio/ebs/str/db/11.2.0.4/appsutil/log/ebsstr1_apdbadm01/04231358/adconfig.log
AutoConfig is configuring the Database environment...
AutoConfig will consider the custom templates if present.
Using ORACLE_HOME location : /bio/ebs/str/db/11.2.0.4
Classpath : :/bio/ebs/str/db/11.2.0.4/jdbc/lib/ojdbc6.jar:/bio/ebs/str/db/11.2.0.4/appsutil/java/xmlparserv2.jar:/bio/ebs/str/db/11.2.0.4/appsutil/java:/bio/ebs/str/db/11.2.0.4/jlib/netcfg.jar:/bio/ebs/str/db/11.2.0.4/jlib/ldapjclnt11.jar
Using Context file : /bio/ebs/str/db/11.2.0.4/appsutil/ebsstr1_apdbadm01.xml
Context Value Management will now update the Context file
Updating Context file...COMPLETED
Attempting upload of Context file and templates to database...COMPLETED
Updating rdbms version in Context file to db112
Updating rdbms type in Context file to 64 bits
Configuring templates from ORACLE_HOME ...
AutoConfig completed successfully.
Clone Application Tier – Primary node apdbablog01
Create RUN File System
1. Untar/zip EBSApps dump file on target server
Copied fs2(Run Base) from source to /u11/home/ebsprd/fs2/
tar -cf - EBSapps | gzip > EBSapps.tar.gz
cp -pr EBSapps.tar.gz /patch/erp/bala/ebsprd_files/
cp -pr /patch/erp/bala/ebsprd_files/EBSapps.tar.gz ./
tar –xvf EBSapps.tar.gz
To determine which file system (fs1 or fs2) is currently the Run Edition File System, run the command:
echo $RUN_BASE
Note: If the Source Run Edition File System is under fs1, you should configure the Target Run Edition File System under fs1 as well.
Similarly, if the Source Run Edition File System is under fs2, you should configure the Target Run Edition File System under fs2.
2. Create RUN file system
cd /u11/home/ebspat/fs1/EBSapps/comn/clone/bin
[applpat@apdbablog03 bin]$ perl adcfgclone.pl appsTier
Copyright (c) 2011 Oracle Corporation
Redwood Shores, California, USA
Oracle E-Business Suite Rapid Clone
Version 12.2
adcfgclone Version 120.63.12020000.39
Enter the APPS password :
Running:
/u11/home/ebspat/fs1/EBSapps/comn/clone/bin/../jre/bin/java -Xmx600M -classpath /u11/home/ebspat/fs1/EBSapps/comn/clone/jlib/obfuscatepassword.jar:/u11/home/ebspat/fs1/EBSapps/comn/clone/jlib/ojmisc.jar:/u11/home/ebspat/fs1/EBSapps/comn/clone/jlib/java:/u11/home/ebspat/fs1/EBSapps/comn/clone/jlib/emCfg.jar oracle.apps.ad.clone.util.OPWrapper -encryptpwd /u11/home/ebspat/fs1/EBSapps/comn/clone/bin/../FMW/tempinfoApps.txt
Enter the Weblogic AdminServer password :
Running:
/u11/home/ebspat/fs1/EBSapps/comn/clone/bin/../jre/bin/java -Xmx600M -classpath /u11/home/ebspat/fs1/EBSapps/comn/clone/jlib/obfuscatepassword.jar:/u11/home/ebspat/fs1/EBSapps/comn/clone/jlib/ojmisc.jar:/u11/home/ebspat/fs1/EBSapps/comn/clone/jlib/java:/u11/home/ebspat/fs1/EBSapps/comn/clone/jlib/emCfg.jar oracle.apps.ad.clone.util.OPWrapper /u11/home/ebspat/fs1/EBSapps/comn/clone/bin/../FMW/tempinfo.txt
Running:
/u11/home/ebspat/fs1/EBSapps/comn/clone/bin/../jre/bin/java -Xmx600M -classpath /u11/home/ebspat/fs1/EBSapps/comn/clone/jlib/obfuscatepassword.jar:/u11/home/ebspat/fs1/EBSapps/comn/clone/jlib/ojmisc.jar:/u11/home/ebspat/fs1/EBSapps/comn/clone/jlib/java:/u11/home/ebspat/fs1/EBSapps/comn/clone/jlib/emCfg.jar oracle.apps.ad.clone.util.OPWrapper /u11/home/ebspat/fs1/EBSapps/comn/clone/bin/../FMW/EBSDataSource
Do you want to add a node (yes/no) [no] :
Running:
/u11/home/ebspat/fs1/EBSapps/comn/clone/bin/../jre/bin/java -Xmx600M -cp /u11/home/ebspat/fs1/EBSapps/comn/clone/jlib/java:/u11/home/ebspat/fs1/EBSapps/comn/clone/jlib/xmlparserv2.jar:/u11/home/ebspat/fs1/EBSapps/comn/clone/jlib/ojdbc6.jar:/u11/home/ebspat/fs1/EBSapps/comn/clone/jlib/obfuscatepassword.jar:/u11/home/ebspat/fs1/EBSapps/comn/clone/jlib/ojmisc.jar:/u11/home/ebspat/fs1/EBSapps/comn/clone/jlib/java:/u11/home/ebspat/fs1/EBSapps/comn/clone/jlib/emCfg.jar oracle.apps.ad.context.CloneContext -e /u11/home/ebspat/fs1/EBSapps/comn/clone/bin/../context/apps/CTXORIG.xml -validate -pairsfile /tmp/adpairsfile_11610.lst -stage /u11/home/ebspat/fs1/EBSapps/comn/clone 2> /tmp/adcfgclone_11610.err; echo $? > /tmp/adcfgclone_11610.res
Log file located at /u11/home/ebspat/fs1/EBSapps/comn/clone/bin/CloneContext_0414180413.log
Target System File Edition type [run] :
Provide the values required for creation of the new APPL_TOP Context file.
Target System Hostname (virtual or normal) [apdbablog03] :
Target System Database SID : ebspat
Target System Database Server Node [apdbablog03] : edp01-scan
Target System Database Domain Name [apdba.com] :
Target System Base Directory : /u11/home/ebsprd
Target System Base Directory set to /u11/home/ebsprd
Target System Current File System Base set to /u11/home/ebspat/fs1
Target System Other File System Base set to /u11/home/ebspat/fs2
Target System Fusion Middleware Home set to /u11/home/ebspat/fs1/FMW_Home
Target System Web Oracle Home set to /u11/home/ebspat/fs1/FMW_Home/webtier
Target System Appl TOP set to /u11/home/ebspat/fs1/EBSapps/appl
Target System COMMON TOP set to /u11/home/ebspat/fs1/EBSapps/comn
Target System Instance Home Directory [/u11/home/ebspat] :
Target System Instance Top set to /u11/home/ebspat/fs1/inst/apps/ebspat_apdbablog03
Do you want to preserve the Display [apdbappd01:0.0] (y/n) : n
Target System Display [apdbablog03:0.0] :
Target System Root Service [enabled] :
Target System Web Administration [enabled] :
Target System Web Entry Point Services [enabled] :
Target System Web Application Services [enabled] :
Target System Batch Processing Services [enabled] :
Target System Other Services [disabled] :
Do you want the target system to have the same port values as the source system (y/n) [y] ? : n
Target System Port Pool [0-99] : 50
Checking the port pool 50
done: Port Pool 50 is free
Report file located at /u11/home/ebspat/fs1/inst/apps/ebspat_apdbablog03/admin/out/portpool.lst
Complete port information available at /u11/home/ebspat/fs1/inst/apps/ebsprd_apdbablog03/admin/out/portpool.lst
RC-40201: Unable to connect to Database ebspat.
Enter the Database listener port [1571] : 1725
UTL_FILE_DIR on database tier consists of the following directories.
1. /bio/ebs/pat/tmp
2. /usr/tmp
Choose a value which will be set as APPLPTMP value on the target node [1] : 2 – select /usr/tmp
Creating the new APPL_TOP Context file from :
/u11/home/ebspat/fs1/EBSapps/comn/clone/context/apps/adxmlctx.tmp
The new APPL_TOP context file has been created :
/u11/home/ebspat/fs1/inst/apps/ebspat_apdbablog03/appl/admin/ebspat_apdbablog03.xml
Log file located at /u11/home/ebspat/fs1/EBSapps/comn/clone/bin/CloneContext_0414180413.log
Check Clone Context logfile /u11/home/ebspat/fs1/EBSapps/comn/clone/bin/CloneContext_0414180413.log for details.
Running Rapid Clone with command:
Running:
perl /u11/home/ebspat/fs1/EBSapps/comn/clone/bin/adclone.pl java=/u11/home/ebspat/fs1/EBSapps/comn/clone/bin/../jre mode=apply stage=/u11/home/ebspat/fs1/EBSapps/comn/clone component=appsTier method=CUSTOM appctxtg=/u11/home/ebspat/fs1/inst/apps/ebspat_apdbablog03/appl/admin/ebspat_apdbablog03.xml showProgress contextValidated=true
Faced an Error:-
############################ ALERT ###################################
The oraInst.loc file is not present under /etc. Without this file cloning cannot proceed further
Please run the oraInstFileGenerator.sh located under /tmp with ROOT privileges
This script will create the oraInst.loc file under /etc
ERROR: Failed to execute /u11/home/ebsprd/fs2/EBSapps/comn/clone/bin/adclone.pl
Please check logfile.
Reason for this error:
This is the first time we are cloning in this machine so we need to run the orainstFileGenerator.sh
Raising a ticket to UNIX team to run this as root user.
Fixed the issue in this server:
/u11/home/oraInventory
Manually create this dir
I renamed the existing oraInventory to oraInventory.obsolotete and mkdir oraInventory to create a new directory. Then restarted the process
Running the adcfgclone.pl again:
Again faced an error:
No write permissions to the Inventory pointed by:
/etc
Rapid Clone needs to be able to write to the inventory
Please run the script /tmp/orainstRoot.sh as root
Restarted adcfg clone:
Success!!
Issue:3
adcfgclone in Run FS
Enter value for 1: Enter value for 2: Enter value for 3: ERROR:
ORA-12505: TNS:listener does not currently know of SID given in connect
descriptor
Fix:
1) Verified the Autocofig erroed in DB second nodesync
2) Ran the Autoconfig in DB nodes and ran the adcfgclone seems completed successfully
Post Clone Steps
Source ENV and run the cmclean in sqlplus
sqlplus apps/apps_pw
SQL>@cmclean.sql
SQL>commit;
SQL>exit;
Run the script to keep the jobs on hold
sqlplus apps/apps_pw
SQL> create table dba_conc_req_hold as select * from fnd_concurrent_requests;
SQL> update fnd_Concurrent_requests set hold_flag='Y' where PHASE_CODE='P' and hold_flag='N' and request_id in (select request_id from dba_conc_req_hold);
SQL> commit;
SQL>exit;
Change apps & sysadmin password
Source the Run FS
$FNDCPASS apps/appss2015 0 Y system/<target_system_pw> SYSTEM APPLSYS <target_apps_pw>
$FNDCPASS apps/<target_apps_pw> 0 Y system/<target_system_pw> USER SYSADMIN <target_sysadmin_pw>
verify the log and make sure there is no errors in FND log
Update wf tables
Source the Run FS
sqlplus apps/apps_pw
SQL>create table wf_notifications20130709 as select * from wf_notifications;
SQL>update wf_notifications set mail_status='SENT' where mail_status is not null;
SQL> Update wf_resources
Set text=’ FND_RESP|FND|FNDWF_ADMIN_WEB|STANDARD’
Where name =’ WF_ADMIN_ROLE’ ;
SQL>commit;
SQL>exit;
Run adcmclean.sql script
Source the Run FS
Configure Load Balancer – Configured by Load Balancer team
Source the Run FS primary node
Update auto config context file and run auto config(Please take a backup of currecnt context file)
<externURL oa_var="s_external_url">http://ebsprd.apdba.com</externURL>
<login_page oa_var="s_login_page">http://epsprd.apdba.com/OA_HTML/AppsLogin</login_page>
<activewebport oa_var="s_active_webport" oa_type="DUP_PORT" base="8000" step="1" range="-1" label="Active Web Port">80</activewebport>
<webentryhost oa_var="s_webentryhost">ebsprd</webentryhost>
<APPL_TOP_NAME oa_var="s_atName">ebsprd</APPL_TOP_NAME>
Cd $INST_TOP/admin/scripts
./adautocfg.sh appspass=<pw>
Start application services
cd $INST_TOP/admin/scr*
./adstrtall.sh apps/<pw>
Starting Application for the first time.
You are running admanagedsrvctl.sh version 120.14.12020000.10
Starting oacore_server1...
admanagedsrvctl.sh: exiting with status 1
admanagedsrvctl.sh: check the logfile /u11/home/ebsprd/fs2/inst/apps/ebsprd_apdbablog01/logs/appl/admin/log/adoacorectl.txt for more infmation ...
.end std out.
.end err out.
****************************************************
adstrtal.sh: Exiting with status 1
Fix:
http://oradbapp.blogspot.in/2015/05/ebs-122-unable-to-start-up-managed.html
It is observed that Apps Password is changed as part of execution of adcfgclone.pl on DBTier and this new password change is somehow not reflected when managed servers are created during execution of rapidclone on Apps Tier.
Now this is fixed manually by performing below steps.
As ADMIN Server is up and runnning,
1. Login to EBS Weblogic console -> Perform Lock & Edit -> Under Domain Structure -> Services -> Datasources -> Select "EBSDataSource"
2. Navigate to Configuration -> Connection pool -> Update with new password in password fields.
3. Then Save changes.
4. Perform the above steps of other Datasource OAADatasource.
Fixed:-
Local URL: http://ebsprd.apdba.com/OA_HTML/AppsLocalLogin.jsp
Login & validate
Log into application
Run a concurrent request and view output
Checked and verified Primary node Run FS application
Create Patch File System
Note:- Do not delete or move the orainventory.xml(central inventory) during patch file system clone
1. Export the environment variablesa as below
export CONFIG_JVM_ARGS="-Xms512m -Xmx1024m"
export T2P_JAVA_OPTIONS="-Djava.io.tmpdir=/tmp -Xms512m -Xmx1024m"
export IGNORE_FMW_DISK_WARNING=true
export TIMEDPROCESS_TIMEOUT=-1
2. Run preclone on Run FS and take backup of EBSapps. Move it to Patch files system.
3. Run adcfgclone.pl in Patch FS
cd /u11/home/ebspat/fs2/EBSapps/comn/clone/bin
[applpat@apdbablog03 bin]$ ./adcfgclone.pl appsTier
Copyright (c) 2011 Oracle Corporation
Redwood Shores, California, USA
Oracle E-Business Suite Rapid Clone
Version 12.2
adcfgclone Version 120.63.12020000.39
Enter the APPS password :
Running:
/u11/home/ebspat/fs2/EBSapps/comn/clone/bin/../jre/bin/java -Xmx600M -classpath /u11/home/ebspat/fs2/EBSapps/comn/clone/jlib/obfuscatepassword.jar:/u11/home/ebspat/fs2/EBSapps/comn/clone/jlib/ojmisc.jar:/u11/home/ebspat/fs2/EBSapps/comn/clone/jlib/java:/u11/home/ebspat/fs2/EBSapps/comn/clone/jlib/emCfg.jar oracle.apps.ad.clone.util.OPWrapper -encryptpwd /u11/home/ebspat/fs2/EBSapps/comn/clone/bin/../FMW/tempinfoApps.txt
Enter the Weblogic AdminServer password :
Running:
/u11/home/ebspat/fs2/EBSapps/comn/clone/bin/../jre/bin/java -Xmx600M -classpath /u11/home/ebspat/fs2/EBSapps/comn/clone/jlib/obfuscatepassword.jar:/u11/home/ebspat/fs2/EBSapps/comn/clone/jlib/ojmisc.jar:/u11/home/ebspat/fs2/EBSapps/comn/clone/jlib/java:/u11/home/ebspat/fs2/EBSapps/comn/clone/jlib/emCfg.jar oracle.apps.ad.clone.util.OPWrapper /u11/home/ebspat/fs2/EBSapps/comn/clone/bin/../FMW/tempinfo.txt
Running:
/u11/home/ebspat/fs2/EBSapps/comn/clone/bin/../jre/bin/java -Xmx600M -classpath /u11/home/ebspat/fs2/EBSapps/comn/clone/jlib/obfuscatepassword.jar:/u11/home/ebspat/fs2/EBSapps/comn/clone/jlib/ojmisc.jar:/u11/home/ebspat/fs2/EBSapps/comn/clone/jlib/java:/u11/home/ebspat/fs2/EBSapps/comn/clone/jlib/emCfg.jar oracle.apps.ad.clone.util.OPWrapper /u11/home/ebspat/fs2/EBSapps/comn/clone/bin/../FMW/EBSDataSource
Do you want to add a node (yes/no) [no] :
Running:
/u11/home/ebspat/fs2/EBSapps/comn/clone/bin/../jre/bin/java -Xmx600M -cp /u11/home/ebspat/fs2/EBSapps/comn/clone/jlib/java:/u11/home/ebspat/fs2/EBSapps/comn/clone/jlib/xmlparserv2.jar:/u11/home/ebspat/fs2/EBSapps/comn/clone/jlib/ojdbc6.jar:/u11/home/ebspat/fs2/EBSapps/comn/clone/jlib/obfuscatepassword.jar:/u11/home/ebspat/fs2/EBSapps/comn/clone/jlib/ojmisc.jar:/u11/home/ebspat/fs2/EBSapps/comn/clone/jlib/java:/u11/home/ebspat/fs2/EBSapps/comn/clone/jlib/emCfg.jar oracle.apps.ad.context.CloneContext -e /u11/home/ebspat/fs2/EBSapps/comn/clone/bin/../context/apps/CTXORIG.xml -validate -pairsfile /tmp/adpairsfile_27612.lst -stage /u11/home/ebspat/fs2/EBSapps/comn/clone 2> /tmp/adcfgclone_27612.err; echo $? > /tmp/adcfgclone_27612.res
Log file located at /u11/home/ebspat/fs2/EBSapps/comn/clone/bin/CloneContext_0419034910.log
Target System File Edition type [run] : patch (we should enter patch)
Enter the full path of Run File System Context file : /u11/home/ebspat/fs1/inst/apps/ebspat_apdbablog03/appl/admin/ebspat_apdbablog03.xml
Provide the values required for creation of the new APPL_TOP Context file.
Target System Fusion Middleware Home set to /u11/home/ebspat/fs2/FMW_Home
Target System Web Oracle Home set to /u11/home/ebspat/fs2/FMW_Home/webtier
Target System Appl TOP set to /u11/home/ebspat/fs2/EBSapps/appl
Target System COMMON TOP set to /u11/home/ebspat/fs2/EBSapps/comn
Target System Instance Top set to /u11/home/ebspat/fs2/inst/apps/ebspat_apdbablog03
Target System Port Pool [0-99] : 60(in FS1 the port pool is 50 so here we should enter 60)
Checking the port pool 56
done: Port Pool 56 is free
Report file located at /u11/home/ebspat/fs2/inst/apps/ebspat_apdbablog03/admin/out/portpool.lst
Complete port information available at /u11/home/ebspat/fs2/inst/apps/ebspat_apdbablog03/admin/out/portpool.lst
UTL_FILE_DIR on database tier consists of the following directories.
1. /bio/ebs/pat/tmp
2. /usr/tmp
Choose a value which will be set as APPLPTMP value on the target node [1] : 2 – select /usr/tmp
Creating the new APPL_TOP Context file from :
/u11/home/ebspat/fs2/EBSapps/comn/clone/context/apps/adxmlctx.tmp
The new APPL_TOP context file has been created :
/u11/home/ebspat/fs2/inst/apps/ebspat_apdbablog03/appl/admin/ebspat_apdbablog03.xml
Log file located at /u11/home/ebspat/fs2/EBSapps/comn/clone/bin/CloneContext_0419034910.log
Check Clone Context logfile /u11/home/ebspat/fs2/EBSapps/comn/clone/bin/CloneContext_0419034910.log for details.
Running Rapid Clone with command:
Running:
perl /u11/home/ebspat/fs2/EBSapps/comn/clone/bin/adclone.pl java=/u11/home/ebspat/fs2/EBSapps/comn/clone/bin/../jre mode=apply stage=/u11/home/ebspat/fs2/EBSapps/comn/clone component=appsTier method=CUSTOM appctxtg=/u11/home/ebspat/fs2/inst/apps/ebspat_apdbablog03/appl/admin/ebspat_apdbablog03.xml showProgress contextValidated=true
FMW Pre-requisite check log file location : /u11/home/ebspat/fs2/EBSapps/comn/clone/FMW/logs/prereqcheck.log
Running: /u11/home/ebspat/fs2/EBSapps/comn/clone/FMW/t2pjdk/bin/java -classpath /u11/home/ebspat/fs2/EBSapps/comn/clone/prereq/webtier/Scripts/ext/jlib/engine.jar:/u11/home/ebspat/fs2/EBSapps/comn/clone/prereq/webtier/oui/jlib/OraPrereq.jar:/u11/home/ebspat/fs2/EBSapps/comn/clone/prereq/webtier/oui/jlib/OraPrereqChecks.jar:/u11/home/ebspat/fs2/EBSapps/comn/clone/prereq/webtier/oui/jlib/OraInstaller.jar:/u11/home/ebspat/fs2/EBSapps/comn/clone/prereq/webtier/oui/jlib/OraInstallerNet.jar:/u11/home/ebspat/fs2/EBSapps/comn/clone/prereq/webtier/oui/jlib/srvm.jar:/u11/home/ebspat/fs2/EBSapps/comn/clone/prereq/webtier/Scripts/ext/jlib/ojdl.jar:/u11/home/ebspat/fs2/EBSapps/comn/clone/prereq/webtier/Scripts/ext/jlib/ojdl2.jar:/u11/home/ebspat/fs2/EBSapps/comn/clone/prereq/webtier/Scripts/ext/jlib/ojdl-log4j.jar:/u11/home/ebspat/fs2/EBSapps/comn/clone/prereq/webtier/oui/jlib/xmlparserv2.jar:/u11/home/ebspat/fs2/EBSapps/comn/clone/prereq/webtier/oui/jlib/share.jar:/u11/home/ebspat/fs2/EBSapps/comn/clone/jlib/java oracle.apps.ad.clone.util.FMWOracleHomePreReqCheck -prereqCheckFMW -e /u11/home/ebspat/fs2/inst/apps/ebspat_apdbablog03/appl/admin/ebspat_apdbablog03.xml -stage /u11/home/ebspat/fs2/EBSapps/comn/clone -log /u11/home/ebspat/fs2/EBSapps/comn/clone/FMW/logs/prereqcheck.log
Beginning application tier Apply - Sun Apr 19 03:52:15 2015
/u11/home/ebspat/fs2/EBSapps/comn/clone/bin/../jre/bin/java -Xmx600M -DCONTEXT_VALIDATED=true -Doracle.installer.oui_loc=/oui -classpath /u11/home/ebspat/fs2/EBSapps/comn/clone/jlib/xmlparserv2.jar:/u11/home/ebspat/fs2/EBSapps/comn/clone/jlib/ojdbc6.jar:/u11/home/ebspat/fs2/EBSapps/comn/clone/jlib/java:/u11/home/ebspat/fs2/EBSapps/comn/clone/jlib/oui/OraInstaller.jar:/u11/home/ebspat/fs2/EBSapps/comn/clone/jlib/oui/ewt3.jar:/u11/home/ebspat/fs2/EBSapps/comn/clone/jlib/oui/share.jar:/u11/home/ebspat/fs2/FMW_Home/webtier/../Oracle_EBS-app1/oui/jlib/srvm.jar:/u11/home/ebspat/fs2/EBSapps/comn/clone/jlib/ojmisc.jar:/u11/home/ebspat/fs2/FMW_Home/wlserver_10.3/server/lib/weblogic.jar:/u11/home/ebspat/fs2/EBSapps/comn/clone/jlib/obfuscatepassword.jar oracle.apps.ad.clone.ApplyAppsTier -e /u11/home/ebspat/fs2/inst/apps/ebspat_apdbablog03/appl/admin/ebspat_apdbablog03.xml -stage /u11/home/ebspat/fs2/EBSapps/comn/clone -showProgress -nopromptmsg
Log file located at /u11/home/ebspat/fs2/inst/apps/ebspat_apdbablog03/admin/log/clone/ApplyAppsTier_04190352.log
100% completed
Completed Apply...
1. Run con clean in DB nodes:
1) Concclean
2) Auto config
2. Run auto config in all application nodes – Run fs
1) Run Auto config
3. Check and make sure that admin server runs only in Primary server and web is disabled in CC nodes.
select NODE_NAME,SUPPORT_CP,SUPPORT_WEB,SUPPORT_ADMIN from fnd_nodes;
If managed server oacore_server2 exists in primary node then,
1) perl $FND_TOP/patch/115/bin/txkSetAppsConf.pl -contextfile=$CONTEXT_FILE -configoption=removeMS -accessgate=apdbablog11.apdba.com:6891
2) perl $FND_TOP/patch/115/bin/txkSetAppsConf.pl -contextfile=$CONTEXT_FILE -configoption=removeMS -ekanban=apdbablog11.apdba.com:6891
3) perl $FND_TOP/patch/115/bin/txkSetAppsConf.pl -contextfile=$CONTEXT_FILE -configoption=removeMS -yms=apdbablog11.apdba.com:6891
After you run these three make sure there are no entries of host apdbablog11.apdba.com in mod_wl_ohs.conf under /u13/home/ebsdev/fs2/FMW_Home/webtier/instances/EBS_web_ebsdev_OHS1/config/OHS/EBS_web_ebsdev/
Then run below to remove oaea_server2 managed server and confirm the server is removed.
4) perl $AD_TOP/patch/115/bin/adProvisionEBS.pl ebs-delete-managedserver -contextfile=$CONTEXT_FILE -managedsrvname=oaea_server2 -servicetype=accessgate -logfile=/tmp/oaeaserver2.log
FS_CLONE:
Source the Run env
Primary RUN FS amdmin server should run
[applprd@apdbablog01 ~]$ adop phase=fs_clone force=yes
Enter the APPS password:
Enter the SYSTEM password:
Enter the WLSADMIN password:
Validating credentials...
Initializing...
Run Edition context : /u11/home/ebsprd/fs1/inst/apps/ebsprd_apdbablog01/appl/admin/ebsprd_apdbablog01.xml
Patch edition context: /u11/home/ebsprd/fs2/inst/apps/ebsprd_apdbablog01/appl/admin/ebsprd_apdbablog01.xml
Patch file system freespace: 341.25 GB
Validating system setup...
Node registry is valid.
Generating log report...
Output: /u11/home/ebsprd/fs_ne/EBSapps/log/adop/43/fs_clone_20150819_022924/ebsprd_apdbablog01/adzdshowlog.out
adop phase=fs_clone - Completed Successfully
adop exiting with status = 0 (Success)
Issue 1:
-----------------------------
ERROR: The following required ports are in use:
-----------------------------
7451 : Managed Server Port 2
7651 : Managed Server Port 1
7851 : Managed Server Port 3
7251 : Managed Server Port 4
Corrective Action: Free the listed ports and retry the adop operation.
FIX :
1) Down all the services in Primary Run fs and restrated the clone
2) Backup all the Context file Change the below server port numbers ( old 7451 : New 7457) make sure your given port number must be
oacorestatus, formsstatus, oafmstatus,forms-c4wsstatus
once the port number changed in all the context files run auto config in all the nodes and start the services(make sure the old port number is not in any context files )
Issue 2:
/u11/home/ebsprd/fs_ne/EBSapps/log/adop/43/fs_clone_20150818_221556/ebsprd_apdbablog01/TXK_SYNC_create/fsclone_stage/FSCloneStageAppsTier_08182219.log:
--------------------------------------------------------------------------------------------------------------------------------------------------------
Lines #(23-27):
patchMSList size: 34
ERROR: Number of servers are not in sync between Run and Patch Context.
ERROR: Managed Servers would be in-sync at apply phase
Lines #(24-28):
patchMSList size: 34
ERROR: Number of servers are not in sync between Run and Patch Context.
ERROR: Managed Servers would be in-sync at apply phase
Fix:
Run the below command in all the nodes to sync the Servers with patch FS and run the auto config in all the Run FS(Please change tha node name in the command)
$ADJVAPRG oracle.apps.ad.autoconfig.oam.CtxSynchronizer action=upload contextfile=/u11/home/ebsprd/fs1/inst/apps/ebsprd_apdbablog05/appl/admin/ebsprd_apdbablog05.xml logfile=/tmp/patchctxupload.log
Issue 3:
Lines #(73-77):
diffSrvName : oaea_server2
runMSSrvPortsVal : oaea_server1:6851
ERROR: Run fs Context variable s_oaea_server_ports value cannot be NULL for oaea_server2
ERROR: Derived Patch managed server oaea_server2 port : NULL
ERROR: Failed to clone Run Context file to refresh Patch context file
Lines #(74-78):
runMSSrvPortsVal : oaea_server1:6851
ERROR: Run fs Context variable s_oaea_server_ports value cannot be NULL for oaea_server2
ERROR: Derived Patch managed server oaea_server2 port : NULL
ERROR: Failed to clone Run Context file to refresh Patch context file
Lines #(75-79):
ERROR: Run fs Context variable s_oaea_server_ports value cannot be NULL for oaea_server2
ERROR: Derived Patch managed server oaea_server2 port : NULL
ERROR: Failed to clone Run Context file to refresh Patch context file
FIX: please do to the following
1) Stop the services in all the Run FS
2) cd /u11/home/ebsprd/fs1/FMW_Home/user_projects/domains/EBS_domain_ebsprd/servers/
3) mv oaea_server2 oaea_server2_old
4) run the autoconfig in all the nodes
5) run the FS_CLONE again
Configure Shared APPL_TOP
Source RUN_FS of Primary application server
1. The value for the context variable "s_atName" must be same across all the application tier node context filesEnsure
2. that value of the AutoConfig variable " s_shared_file_system" is set to "true" ( without the quote) on the primary application tier node.
vi $CONTEXT_FILE
Change variable "s_shared_file_system" is set to "true"
Configure Node 2 - apdbablog02 Web
3. Start weblogic on primary application server if it is not already running and run Preclone on Primary Run FS
Before executing these steps, ensure the AdminServer on both the Run Edition File System and the Patch Edition File System is running. This is required for adcfgclone.pl to properly re-register the new node on the Target System
Source Run file system
Start weblogic administration server
./adadminsrvctl.sh start
./adpreclone.pl appsTier
4. Start weblogic on primary application Patch FS server if it is not already running and run Preclone on Primary Patch FS
Source Patch file system
Start weblogic administration server
./adadminsrvctl.sh start forcepatchfs
./adpreclone.pl appsTier
stop weblogic admin server
./adadminsrvctl.sh stop forcepatchfs
5. Create context files for RUN file system second application node.
[applpat@apdbablog02 scripts]$ cd /u11/home/ebspat/
[applpat@apdbablog02 ebspat]$ ls
EBSapps.env fs1 fs2 fs_ne sqlnet.log
[applpat@apdbablog02 ebspat]$ mkdir -p pairsfiles/run
[applpat@apdbablog02 ebspat]$ mkdir -p pairsfiles/patch
[applpat@apdbablog02 ebspat]$
[applpat@apdbablog02 run]$ cd /u11/home/ebspat/pairsfiles/run
[applpat@apdbablog02 run]$ cp /u11/home/ebspat/fs1/inst/apps/ebspat_apdbablog03/appl/admin/ebspat_apdbablog03_run.txt ./
1.Ensure the correct perl utility is in the $PATH. You must use the perl utility installed in the Fusion Middleware Oracle Home.
For example:
$ export PATH=/u11/home/ebsprd/fs1/FMW_Home/webtier/perl/bin:$PATH
Edit the Pairs run and patch file
Enter the new node information to be added in pairsfile of run and patch
Run File system
S_batch status should be enabled only in the concurrent nodes in order to configure PCP.
Adminserver runs only in the primary node
Export path: on Secondary node
export PATH=/u11/home/ebsprd/fs2/FMW_Home/webtier/perl/bin:$PATH
For Run FS
2.Ensure the WebLogic Administration Server from the run file system is running on the primary application tier node.
cd $INST_TOP/admin/scripts
./adadminsrvctl.sh start
3.Execute the Clone Context Utility to configure the run file system. For example:
$ cd /u11/home/ebsprd/fs1/EBSapps/comn/clone/bin
$ /u11/home/ebsprd/fs1/FMW_Home/webtier/perl/bin/perl ./adclonectx.pl \
addnode contextfile=/u11/home/ebspat/fs1/inst/apps/ebspat_apdbablog01/appl/admin/ebsprd_apdbablog01.xml \
pairsfile=/u11/home/ebspat/pairsfiles/run/ebspat_apdbablog02_run.txt \
outfile=/u11/home/ebspat/fs1/inst/apps/ebspat_apdbablog02/appl/admin/ebsprd_apdbablog02.xml
Now node added succesffully for Run fs
Create context files for PATCH file system second application node.
export PATH=/u11/home/ebspat/fs2/FMW_Home/webtier/perl/bin:$PATH
[applpat@apdbablog03 admin]$ cd /u11/home/ebspat/pairsfiles/patch
[applpat@apdbablog03 patch]$ cp /u11/home/ebspat/fs2/inst/apps/ebspat_apdbablog03/appl/admin/ebspat_apdbablog03_patch.txt ./
[applpat@apdbablog03 scripts]$ ./adadminsrvctl.sh start forcepatchfs
You are running adadminsrvctl.sh version 120.10.12020000.9
Enter the WebLogic Admin password:
Enter the APPS Schema password:
[applpat@apdbablog04 secure]$ cd /u11/home/ebspat/fs2/EBSapps/comn/clone/bin/ [applpat@apdbablog04 bin]$ /u11/home/ebspat/fs2/FMW_Home/webtier/perl/bin/perl ./adclonectx.pl \
addnode contextfile=/u11/home/ebspat/fs2/inst/apps/ebspat_apdbablog03/appl/admin/ebspat_apdbablog03.xml \ pairsfile=/u11/home/ebspat/pairsfiles/patch/ebspat_apdbablog03_patch.txt \ outfile=/u11/home/ebspat/fs2/inst/apps/ebspat_apdbablog04/appl/admin/ebspat_apdbablog04.xml
Node added successfully
[applprd@apdbablog02 ebsprd]$ perl /u11/home/ebsprd/fs2/EBSapps/appl/ad/12.0.0/patch/115/bin/txkRunSSHSetup.pl enablessh -contextfile=/u11/home/ebsprd/fs2/inst/apps/ebsprd_apdbablog02/appl/admin/ebsprd_apdbablog02.xml -hosts=apdbablog01,apdbablog02,apdbablog03,apdbablog04,apdbablog05,apdbablog06
Enter SSH User password for the OS user applprd:
Logfile location /u11/home/ebsprd/fs2/inst/apps/ebsprd_apdbablog02/logs/appl/rgf/TXK/enablessh.log
SSH equivalence setup successful.
6. Run auto config on second RUN file system
cd $INST_TOP/admin/scripts
./adautocfg.sh appspass=<pw>
7. Run auto config on second patch file system
cd $AD_TOP/bin
./adconfig.sh contextfile=<patchcontextfile.xml> -syncctx
Eg:- ./adconfig.sh contextfile=/u11/home/ebspat/fs2/inst/apps/ebspat_apdbablog02/appl/admin/ebspat_apdbablog02.xml -syncctx
Configure PCP
1. Start application services in all nodes
cd $INST_TOP/admin/scripts
./adstrtal.sh apps/<pw>
2. Stop adcmctl in both concurrent nodes.
3. Take all CM that are active and set workshift as Standard - 1 and set primary and secondary servers(Refer source CMs)
4. Make sure the nodes are defined as below
5. Assign primary/secondary nodes for each manager
6. Restart the managers and validate
cd $INST_TOP/admin/scripts
./adcmctl.sh stop apps/<pw>
./adcmctl.sh start apps/<pw>
4. Start all application services now. Check if concurrent process runs only in 05 and 06 nodes.
Cloning Oracle E-Business Suite Release 12.2 with Rapid Clone (Doc ID 1383621.1) – For clone procedure
Sharing the Application Tier File System in Oracle E-Business Suite Release 12.2 (Doc ID 1375769.1) – For Shared Appl top procedure
Issues Refrence:
http://balaoracledba.com/category/oracleappsr12/issues/ - For known issues and support to oracle docs
http://oradbapp.blogspot.in/2015/05/ebs-122-unable-to-start-up-managed.html- For a known issue in 12.2.4
12.2: error while fs_clone of patching(WLS 17495356) cycle (Doc ID 1634239.1)
12.2: fs_clone fails with "ERROR: Number of servers are not in sync between Run and Patch Context" (Doc ID 1582473.1)
Fs_clone Fails with Status 2 (Doc ID 1960769.1)
FS Clone Fails Saying Port In Use: Free The Listed Ports And Retry The Adop Operation (Doc ID 1901109.1)
Clone Oracle Applications Environment
This section explains the detailed steps to clone an Oracle applications 12i (12.2.4) installation using a 11gR2 (11.2.0.4) database to another Oracle 12i (12.2.4) 11gR2(11.2.0.4) environment.
The main steps for cloning Oracle Applications Environment are:
Pre Clone Steps.
Clone Database Tier.
Clone Application Tier.
Post Clone Steps.
Pre Clone Steps
On Source Instance Please perform below activities.
Nodes Task Description Command
Check if instance can be cloned This can be done anytime before the clone
App Source Environment and choose RUN . /u11/home/ebsdev/EBSapps.env
App Find master node if multi-node system
Master node is RUN FS for instance ls -ltr $NE_BASE/EBSapps/log/status*/adzdshowstatus.out | tail -n 1
check for master node in the file
App Check ADOP status complete on master-node CLEANUP COMPLETED
Or
PREPARE NOT STARTED “adop -status” should show all completed,
otherwise use
“adop phase=finalize/cutover/cleanup/abort/fs_clone” to complete
Run Preclone on App-tier and copy This can be done anytime before the clone after ADOP cleanup
App On Master_node RUN FS
Run adpreclone.pl appsTier Following files exist in $RUN_BASE/ /EBSapps/comn/clone/FMW
FMW_Home.jar
WLS/EBSdomain.jar
WLS/plan/moveplan.xml
OHS/ohsarchive.jar
OHS/moveplan.xml $INST_TOP/admin/scripts/adadminserver.sh start
$INST_TOP/admin/scripts/adpreclone.pl appsTier
App Copy $RUN_BASE/EBSapps to target Copy the tar/zip file to target instance $RUN_BASE tar & zip the binaries
tar –cf – EBSapps | gzip > EBSapps.tar.gz
DB Run Preclone on DB-tier and copy Subbu
DB Run adpreclone.pl dbTier Subbu $OH/appsutil/scripts/$CTX/adpreclone.pl dbTier
DB Backup DB Subbu
DB Backup RDBMS home Subbu
Clone Database Tier
Clone oracle home & Database
Clone DB & Oracle Homes on target DB tier. This task is performed by DBA team (Subbu)
Enable Auto Config on DB Tier
For RAC node run below steps on both nodes.
NODE 1
1. Create appsutil.zip on source app server
apdbappd01:appldev1$ $ADPERLPRG $AD_TOP/bin/admkappsutil.pl
Starting the generation of appsutil.zip
Log file located at /u09/home/ebsdev1/fs1/inst/apps/ebsdev1_apdbappd01/admin/log/MakeAppsUtil_04131514.log
output located at /u09/home/ebsdev1/fs1/inst/apps/ebsdev1_apdbappd01/admin/out/appsutil.zip
MakeAppsUtil completed successfully.
2. Transfer appsutil.zip file to target DB server
orapat@apdbadm01:/bio/ebs/pat/db/11.2.0.4 $ scp mpareek@10.2.216.226:/u09/home/ebsdev1/fs1/inst/apps/ebsdev1_apdbappd01/admin/out/appsutil.zip ./
The authenticity of host '10.2.216.226 (10.2.216.226)' can't be established.
RSA key fingerprint is da:3a:e1:bf:98:8a:0c:a5:31:78:d3:2e:06:db:66:5d.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '10.2.216.226' (RSA) to the list of known hosts.
Password:
appsutil.zip 100% 3459KB 3.4MB/s 00:00
cd $ORACLE_HOME
orapat@apdbadm01:/bio/ebs/pat/db/11.2.0.4 $
orapat@apdbadm02:/bio/ebs/pat/db/11.2.0.4/network/admin/ebspat2_apdbadm02 $ scp mpareek@10.2.216.226:/u09/home/ebsdev1/fs1/inst/apps/ebsdev1_apdbappd01/admin/out/appsutil.zip ./
The authenticity of host '10.2.216.226 (10.2.216.226)' can't be established.
RSA key fingerprint is da:3a:e1:bf:98:8a:0c:a5:31:78:d3:2e:06:db:66:5d.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '10.2.216.226' (RSA) to the list of known hosts.
Password:
appsutil.zip 100% 3459KB 3.4MB/s 00:00
orapat@apdbadm02:/bio/ebs/pat/db/11.2.0.4/network/admin/ebspat2_apdbadm02 $
3. Unzip appsutil.zip file
cd $ORACLE_HOME
unzip -o appsutil.zip
4. Purge Old nodes information
Login as apps user
$ sqlplus apps/apps
SQL> exec fnd_conc_clone.setup_clean
5. Install JRE
Install jre under $ORACLE_HOME/appsutil
cd /bio/ebs/str/db/11.2.0.4/appsutil
cat /ora_nfs/jre/jre-7u11-linux-x64.tar.gz | gzip -d | tar xf - &
mv jre1.7.0_11 jre
6. Create Context file
orastr@apdbadm01:/bio/ebs/str/db/11.2.0.4/appsutil/bin $ adbldxml.pl appsuser=apps appspass=appss2015
Starting context file generation for db tier..
Using JVM from /bio/ebs/str/db/11.2.0.4/appsutil/jre/bin/java to execute java programs..
The log file for this adbldxml session is located at:
/bio/ebs/str/db/11.2.0.4/appsutil/log/adbldxml_04231351.log
Enter Database Service Name: ebsstr1
Enter the value for Display Variable: apdbadm01:0.0
Context File /bio/ebs/str/db/11.2.0.4/appsutil/ebsstr1_apdbadm01.xml
already exists.
Overwriting Context File may cause loss of existing settings, hence
backing it up as: /bio/ebs/str/db/11.2.0.4/appsutil/ebsstr1_apdbadm01.xml.bak
The context file has been created at:
/bio/ebs/str/db/11.2.0.4/appsutil/ebsstr1_apdbadm01.xml
Update context file with target db port number
vi /bio/ebs/str/db/11.2.0.4/appsutil/ebsstr1_apdbadm01.xml
update db port from 1521 to 1731 & save the file
Ensure that Util file dir has /usr/tmp
7. Run Auto Config
orastr@apdbadm01:/bio/ebs/str/db/11.2.0.4/appsutil/bin $ perl adconfig.pl
Enter the full file path to the Context file: /bio/ebs/str/db/11.2.0.4/appsutil/ebsstr1_apdbadm01.xml
Enter the APPS user password:
The log file for this session is located at: /bio/ebs/str/db/11.2.0.4/appsutil/log/ebsstr1_apdbadm01/04231358/adconfig.log
AutoConfig is configuring the Database environment...
AutoConfig will consider the custom templates if present.
Using ORACLE_HOME location : /bio/ebs/str/db/11.2.0.4
Classpath : :/bio/ebs/str/db/11.2.0.4/jdbc/lib/ojdbc6.jar:/bio/ebs/str/db/11.2.0.4/appsutil/java/xmlparserv2.jar:/bio/ebs/str/db/11.2.0.4/appsutil/java:/bio/ebs/str/db/11.2.0.4/jlib/netcfg.jar:/bio/ebs/str/db/11.2.0.4/jlib/ldapjclnt11.jar
Using Context file : /bio/ebs/str/db/11.2.0.4/appsutil/ebsstr1_apdbadm01.xml
Context Value Management will now update the Context file
Updating Context file...COMPLETED
Attempting upload of Context file and templates to database...COMPLETED
Updating rdbms version in Context file to db112
Updating rdbms type in Context file to 64 bits
Configuring templates from ORACLE_HOME ...
AutoConfig completed successfully.
NODE 2:
1. Transfer appsutil.zip file to target DB server
orapat@apdbadm01:/bio/ebs/pat/db/11.2.0.4 $ scp` mpareek@10.2.216.226:/u09/home/ebsdev1/fs1/inst/apps/ebsdev1_apdbappd01/admin/out/appsutil.zip ./
The authenticity of host '10.2.216.226 (10.2.216.226)' can't be established.
RSA key fingerprint is da:3a:e1:bf:98:8a:0c:a5:31:78:d3:2e:06:db:66:5d.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '10.2.216.226' (RSA) to the list of known hosts.
Password:
appsutil.zip 100% 3459KB 3.4MB/s 00:00
cd $ORACLE_HOME
orapat@apdbadm01:/bio/ebs/pat/db/11.2.0.4 $
orapat@apdbadm02:/bio/ebs/pat/db/11.2.0.4/network/admin/ebspat2_apdbadm02 $ scp mpareek@10.2.216.226:/u09/home/ebsdev1/fs1/inst/apps/ebsdev1_apdbappd01/admin/out/appsutil.zip ./
The authenticity of host '10.2.216.226 (10.2.216.226)' can't be established.
RSA key fingerprint is da:3a:e1:bf:98:8a:0c:a5:31:78:d3:2e:06:db:66:5d.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '10.2.216.226' (RSA) to the list of known hosts.
Password:
appsutil.zip 100% 3459KB 3.4MB/s 00:00`
orapat@apdbadm02:/bio/ebs/pat/db/11.2.0.4/network/admin/ebspat2_apdbadm02 $
2. Unzip appsutil.zip file
cd $ORACLE_HOME
unzip -o appsutil.zip
3. Purge Old nodes information
Login as apps user
$ sqlplus apps/apps
SQL> exec fnd_conc_clone.setup_clean
4. Install JRE
Install jre under $ORACLE_HOME/appsutil
cd /bio/ebs/str/db/11.2.0.4/appsutil
cat /ora_nfs/jre/jre-7u11-linux-x64.tar.gz | gzip -d | tar xf - &
mv jre1.7.0_11 jre
5. Create Context file
orastr@apdbadm01:/bio/ebs/str/db/11.2.0.4/appsutil/bin $ adbldxml.pl appsuser=apps appspass=appss2015
Starting context file generation for db tier..
Using JVM from /bio/ebs/str/db/11.2.0.4/appsutil/jre/bin/java to execute java programs..
The log file for this adbldxml session is located at:
/bio/ebs/str/db/11.2.0.4/appsutil/log/adbldxml_04231351.log
Enter Database Service Name: ebsstr1
Enter the value for Display Variable: apdbadm01:0.0
Context File /bio/ebs/str/db/11.2.0.4/appsutil/ebsstr1_apdbadm01.xml
already exists.
Overwriting Context File may cause loss of existing settings, hence
backing it up as: /bio/ebs/str/db/11.2.0.4/appsutil/ebsstr1_apdbadm01.xml.bak
The context file has been created at:
/bio/ebs/str/db/11.2.0.4/appsutil/ebsstr1_apdbadm01.xml
Update context file with target db port number
vi /bio/ebs/str/db/11.2.0.4/appsutil/ebsstr1_apdbadm01.xml
update db port from 1521 to 1731 & save the file
Ensure that Util file dir has /usr/tmp
6. Run Auto Config
orastr@apdbadm01:/bio/ebs/str/db/11.2.0.4/appsutil/bin $ perl adconfig.pl
Enter the full file path to the Context file: /bio/ebs/str/db/11.2.0.4/appsutil/ebsstr1_apdbadm01.xml
Enter the APPS user password:
The log file for this session is located at: /bio/ebs/str/db/11.2.0.4/appsutil/log/ebsstr1_apdbadm01/04231358/adconfig.log
AutoConfig is configuring the Database environment...
AutoConfig will consider the custom templates if present.
Using ORACLE_HOME location : /bio/ebs/str/db/11.2.0.4
Classpath : :/bio/ebs/str/db/11.2.0.4/jdbc/lib/ojdbc6.jar:/bio/ebs/str/db/11.2.0.4/appsutil/java/xmlparserv2.jar:/bio/ebs/str/db/11.2.0.4/appsutil/java:/bio/ebs/str/db/11.2.0.4/jlib/netcfg.jar:/bio/ebs/str/db/11.2.0.4/jlib/ldapjclnt11.jar
Using Context file : /bio/ebs/str/db/11.2.0.4/appsutil/ebsstr1_apdbadm01.xml
Context Value Management will now update the Context file
Updating Context file...COMPLETED
Attempting upload of Context file and templates to database...COMPLETED
Updating rdbms version in Context file to db112
Updating rdbms type in Context file to 64 bits
Configuring templates from ORACLE_HOME ...
AutoConfig completed successfully.
Clone Application Tier – Primary node apdbablog01
Create RUN File System
1. Untar/zip EBSApps dump file on target server
Copied fs2(Run Base) from source to /u11/home/ebsprd/fs2/
tar -cf - EBSapps | gzip > EBSapps.tar.gz
cp -pr EBSapps.tar.gz /patch/erp/bala/ebsprd_files/
cp -pr /patch/erp/bala/ebsprd_files/EBSapps.tar.gz ./
tar –xvf EBSapps.tar.gz
To determine which file system (fs1 or fs2) is currently the Run Edition File System, run the command:
echo $RUN_BASE
Note: If the Source Run Edition File System is under fs1, you should configure the Target Run Edition File System under fs1 as well.
Similarly, if the Source Run Edition File System is under fs2, you should configure the Target Run Edition File System under fs2.
2. Create RUN file system
cd /u11/home/ebspat/fs1/EBSapps/comn/clone/bin
[applpat@apdbablog03 bin]$ perl adcfgclone.pl appsTier
Copyright (c) 2011 Oracle Corporation
Redwood Shores, California, USA
Oracle E-Business Suite Rapid Clone
Version 12.2
adcfgclone Version 120.63.12020000.39
Enter the APPS password :
Running:
/u11/home/ebspat/fs1/EBSapps/comn/clone/bin/../jre/bin/java -Xmx600M -classpath /u11/home/ebspat/fs1/EBSapps/comn/clone/jlib/obfuscatepassword.jar:/u11/home/ebspat/fs1/EBSapps/comn/clone/jlib/ojmisc.jar:/u11/home/ebspat/fs1/EBSapps/comn/clone/jlib/java:/u11/home/ebspat/fs1/EBSapps/comn/clone/jlib/emCfg.jar oracle.apps.ad.clone.util.OPWrapper -encryptpwd /u11/home/ebspat/fs1/EBSapps/comn/clone/bin/../FMW/tempinfoApps.txt
Enter the Weblogic AdminServer password :
Running:
/u11/home/ebspat/fs1/EBSapps/comn/clone/bin/../jre/bin/java -Xmx600M -classpath /u11/home/ebspat/fs1/EBSapps/comn/clone/jlib/obfuscatepassword.jar:/u11/home/ebspat/fs1/EBSapps/comn/clone/jlib/ojmisc.jar:/u11/home/ebspat/fs1/EBSapps/comn/clone/jlib/java:/u11/home/ebspat/fs1/EBSapps/comn/clone/jlib/emCfg.jar oracle.apps.ad.clone.util.OPWrapper /u11/home/ebspat/fs1/EBSapps/comn/clone/bin/../FMW/tempinfo.txt
Running:
/u11/home/ebspat/fs1/EBSapps/comn/clone/bin/../jre/bin/java -Xmx600M -classpath /u11/home/ebspat/fs1/EBSapps/comn/clone/jlib/obfuscatepassword.jar:/u11/home/ebspat/fs1/EBSapps/comn/clone/jlib/ojmisc.jar:/u11/home/ebspat/fs1/EBSapps/comn/clone/jlib/java:/u11/home/ebspat/fs1/EBSapps/comn/clone/jlib/emCfg.jar oracle.apps.ad.clone.util.OPWrapper /u11/home/ebspat/fs1/EBSapps/comn/clone/bin/../FMW/EBSDataSource
Do you want to add a node (yes/no) [no] :
Running:
/u11/home/ebspat/fs1/EBSapps/comn/clone/bin/../jre/bin/java -Xmx600M -cp /u11/home/ebspat/fs1/EBSapps/comn/clone/jlib/java:/u11/home/ebspat/fs1/EBSapps/comn/clone/jlib/xmlparserv2.jar:/u11/home/ebspat/fs1/EBSapps/comn/clone/jlib/ojdbc6.jar:/u11/home/ebspat/fs1/EBSapps/comn/clone/jlib/obfuscatepassword.jar:/u11/home/ebspat/fs1/EBSapps/comn/clone/jlib/ojmisc.jar:/u11/home/ebspat/fs1/EBSapps/comn/clone/jlib/java:/u11/home/ebspat/fs1/EBSapps/comn/clone/jlib/emCfg.jar oracle.apps.ad.context.CloneContext -e /u11/home/ebspat/fs1/EBSapps/comn/clone/bin/../context/apps/CTXORIG.xml -validate -pairsfile /tmp/adpairsfile_11610.lst -stage /u11/home/ebspat/fs1/EBSapps/comn/clone 2> /tmp/adcfgclone_11610.err; echo $? > /tmp/adcfgclone_11610.res
Log file located at /u11/home/ebspat/fs1/EBSapps/comn/clone/bin/CloneContext_0414180413.log
Target System File Edition type [run] :
Provide the values required for creation of the new APPL_TOP Context file.
Target System Hostname (virtual or normal) [apdbablog03] :
Target System Database SID : ebspat
Target System Database Server Node [apdbablog03] : edp01-scan
Target System Database Domain Name [apdba.com] :
Target System Base Directory : /u11/home/ebsprd
Target System Base Directory set to /u11/home/ebsprd
Target System Current File System Base set to /u11/home/ebspat/fs1
Target System Other File System Base set to /u11/home/ebspat/fs2
Target System Fusion Middleware Home set to /u11/home/ebspat/fs1/FMW_Home
Target System Web Oracle Home set to /u11/home/ebspat/fs1/FMW_Home/webtier
Target System Appl TOP set to /u11/home/ebspat/fs1/EBSapps/appl
Target System COMMON TOP set to /u11/home/ebspat/fs1/EBSapps/comn
Target System Instance Home Directory [/u11/home/ebspat] :
Target System Instance Top set to /u11/home/ebspat/fs1/inst/apps/ebspat_apdbablog03
Do you want to preserve the Display [apdbappd01:0.0] (y/n) : n
Target System Display [apdbablog03:0.0] :
Target System Root Service [enabled] :
Target System Web Administration [enabled] :
Target System Web Entry Point Services [enabled] :
Target System Web Application Services [enabled] :
Target System Batch Processing Services [enabled] :
Target System Other Services [disabled] :
Do you want the target system to have the same port values as the source system (y/n) [y] ? : n
Target System Port Pool [0-99] : 50
Checking the port pool 50
done: Port Pool 50 is free
Report file located at /u11/home/ebspat/fs1/inst/apps/ebspat_apdbablog03/admin/out/portpool.lst
Complete port information available at /u11/home/ebspat/fs1/inst/apps/ebsprd_apdbablog03/admin/out/portpool.lst
RC-40201: Unable to connect to Database ebspat.
Enter the Database listener port [1571] : 1725
UTL_FILE_DIR on database tier consists of the following directories.
1. /bio/ebs/pat/tmp
2. /usr/tmp
Choose a value which will be set as APPLPTMP value on the target node [1] : 2 – select /usr/tmp
Creating the new APPL_TOP Context file from :
/u11/home/ebspat/fs1/EBSapps/comn/clone/context/apps/adxmlctx.tmp
The new APPL_TOP context file has been created :
/u11/home/ebspat/fs1/inst/apps/ebspat_apdbablog03/appl/admin/ebspat_apdbablog03.xml
Log file located at /u11/home/ebspat/fs1/EBSapps/comn/clone/bin/CloneContext_0414180413.log
Check Clone Context logfile /u11/home/ebspat/fs1/EBSapps/comn/clone/bin/CloneContext_0414180413.log for details.
Running Rapid Clone with command:
Running:
perl /u11/home/ebspat/fs1/EBSapps/comn/clone/bin/adclone.pl java=/u11/home/ebspat/fs1/EBSapps/comn/clone/bin/../jre mode=apply stage=/u11/home/ebspat/fs1/EBSapps/comn/clone component=appsTier method=CUSTOM appctxtg=/u11/home/ebspat/fs1/inst/apps/ebspat_apdbablog03/appl/admin/ebspat_apdbablog03.xml showProgress contextValidated=true
Faced an Error:-
############################ ALERT ###################################
The oraInst.loc file is not present under /etc. Without this file cloning cannot proceed further
Please run the oraInstFileGenerator.sh located under /tmp with ROOT privileges
This script will create the oraInst.loc file under /etc
ERROR: Failed to execute /u11/home/ebsprd/fs2/EBSapps/comn/clone/bin/adclone.pl
Please check logfile.
Reason for this error:
This is the first time we are cloning in this machine so we need to run the orainstFileGenerator.sh
Raising a ticket to UNIX team to run this as root user.
Fixed the issue in this server:
/u11/home/oraInventory
Manually create this dir
I renamed the existing oraInventory to oraInventory.obsolotete and mkdir oraInventory to create a new directory. Then restarted the process
Running the adcfgclone.pl again:
Again faced an error:
No write permissions to the Inventory pointed by:
/etc
Rapid Clone needs to be able to write to the inventory
Please run the script /tmp/orainstRoot.sh as root
Restarted adcfg clone:
Success!!
Issue:3
adcfgclone in Run FS
Enter value for 1: Enter value for 2: Enter value for 3: ERROR:
ORA-12505: TNS:listener does not currently know of SID given in connect
descriptor
Fix:
1) Verified the Autocofig erroed in DB second nodesync
2) Ran the Autoconfig in DB nodes and ran the adcfgclone seems completed successfully
Post Clone Steps
Source ENV and run the cmclean in sqlplus
sqlplus apps/apps_pw
SQL>@cmclean.sql
SQL>commit;
SQL>exit;
Run the script to keep the jobs on hold
sqlplus apps/apps_pw
SQL> create table dba_conc_req_hold as select * from fnd_concurrent_requests;
SQL> update fnd_Concurrent_requests set hold_flag='Y' where PHASE_CODE='P' and hold_flag='N' and request_id in (select request_id from dba_conc_req_hold);
SQL> commit;
SQL>exit;
Change apps & sysadmin password
Source the Run FS
$FNDCPASS apps/appss2015 0 Y system/<target_system_pw> SYSTEM APPLSYS <target_apps_pw>
$FNDCPASS apps/<target_apps_pw> 0 Y system/<target_system_pw> USER SYSADMIN <target_sysadmin_pw>
verify the log and make sure there is no errors in FND log
Update wf tables
Source the Run FS
sqlplus apps/apps_pw
SQL>create table wf_notifications20130709 as select * from wf_notifications;
SQL>update wf_notifications set mail_status='SENT' where mail_status is not null;
SQL> Update wf_resources
Set text=’ FND_RESP|FND|FNDWF_ADMIN_WEB|STANDARD’
Where name =’ WF_ADMIN_ROLE’ ;
SQL>commit;
SQL>exit;
Run adcmclean.sql script
Source the Run FS
Configure Load Balancer – Configured by Load Balancer team
Source the Run FS primary node
Update auto config context file and run auto config(Please take a backup of currecnt context file)
<externURL oa_var="s_external_url">http://ebsprd.apdba.com</externURL>
<login_page oa_var="s_login_page">http://epsprd.apdba.com/OA_HTML/AppsLogin</login_page>
<activewebport oa_var="s_active_webport" oa_type="DUP_PORT" base="8000" step="1" range="-1" label="Active Web Port">80</activewebport>
<webentryhost oa_var="s_webentryhost">ebsprd</webentryhost>
<APPL_TOP_NAME oa_var="s_atName">ebsprd</APPL_TOP_NAME>
Cd $INST_TOP/admin/scripts
./adautocfg.sh appspass=<pw>
Start application services
cd $INST_TOP/admin/scr*
./adstrtall.sh apps/<pw>
Starting Application for the first time.
You are running admanagedsrvctl.sh version 120.14.12020000.10
Starting oacore_server1...
admanagedsrvctl.sh: exiting with status 1
admanagedsrvctl.sh: check the logfile /u11/home/ebsprd/fs2/inst/apps/ebsprd_apdbablog01/logs/appl/admin/log/adoacorectl.txt for more infmation ...
.end std out.
.end err out.
****************************************************
adstrtal.sh: Exiting with status 1
Fix:
http://oradbapp.blogspot.in/2015/05/ebs-122-unable-to-start-up-managed.html
It is observed that Apps Password is changed as part of execution of adcfgclone.pl on DBTier and this new password change is somehow not reflected when managed servers are created during execution of rapidclone on Apps Tier.
Now this is fixed manually by performing below steps.
As ADMIN Server is up and runnning,
1. Login to EBS Weblogic console -> Perform Lock & Edit -> Under Domain Structure -> Services -> Datasources -> Select "EBSDataSource"
2. Navigate to Configuration -> Connection pool -> Update with new password in password fields.
3. Then Save changes.
4. Perform the above steps of other Datasource OAADatasource.
Fixed:-
Local URL: http://ebsprd.apdba.com/OA_HTML/AppsLocalLogin.jsp
Login & validate
Log into application
Run a concurrent request and view output
Checked and verified Primary node Run FS application
Create Patch File System
Note:- Do not delete or move the orainventory.xml(central inventory) during patch file system clone
1. Export the environment variablesa as below
export CONFIG_JVM_ARGS="-Xms512m -Xmx1024m"
export T2P_JAVA_OPTIONS="-Djava.io.tmpdir=/tmp -Xms512m -Xmx1024m"
export IGNORE_FMW_DISK_WARNING=true
export TIMEDPROCESS_TIMEOUT=-1
2. Run preclone on Run FS and take backup of EBSapps. Move it to Patch files system.
3. Run adcfgclone.pl in Patch FS
cd /u11/home/ebspat/fs2/EBSapps/comn/clone/bin
[applpat@apdbablog03 bin]$ ./adcfgclone.pl appsTier
Copyright (c) 2011 Oracle Corporation
Redwood Shores, California, USA
Oracle E-Business Suite Rapid Clone
Version 12.2
adcfgclone Version 120.63.12020000.39
Enter the APPS password :
Running:
/u11/home/ebspat/fs2/EBSapps/comn/clone/bin/../jre/bin/java -Xmx600M -classpath /u11/home/ebspat/fs2/EBSapps/comn/clone/jlib/obfuscatepassword.jar:/u11/home/ebspat/fs2/EBSapps/comn/clone/jlib/ojmisc.jar:/u11/home/ebspat/fs2/EBSapps/comn/clone/jlib/java:/u11/home/ebspat/fs2/EBSapps/comn/clone/jlib/emCfg.jar oracle.apps.ad.clone.util.OPWrapper -encryptpwd /u11/home/ebspat/fs2/EBSapps/comn/clone/bin/../FMW/tempinfoApps.txt
Enter the Weblogic AdminServer password :
Running:
/u11/home/ebspat/fs2/EBSapps/comn/clone/bin/../jre/bin/java -Xmx600M -classpath /u11/home/ebspat/fs2/EBSapps/comn/clone/jlib/obfuscatepassword.jar:/u11/home/ebspat/fs2/EBSapps/comn/clone/jlib/ojmisc.jar:/u11/home/ebspat/fs2/EBSapps/comn/clone/jlib/java:/u11/home/ebspat/fs2/EBSapps/comn/clone/jlib/emCfg.jar oracle.apps.ad.clone.util.OPWrapper /u11/home/ebspat/fs2/EBSapps/comn/clone/bin/../FMW/tempinfo.txt
Running:
/u11/home/ebspat/fs2/EBSapps/comn/clone/bin/../jre/bin/java -Xmx600M -classpath /u11/home/ebspat/fs2/EBSapps/comn/clone/jlib/obfuscatepassword.jar:/u11/home/ebspat/fs2/EBSapps/comn/clone/jlib/ojmisc.jar:/u11/home/ebspat/fs2/EBSapps/comn/clone/jlib/java:/u11/home/ebspat/fs2/EBSapps/comn/clone/jlib/emCfg.jar oracle.apps.ad.clone.util.OPWrapper /u11/home/ebspat/fs2/EBSapps/comn/clone/bin/../FMW/EBSDataSource
Do you want to add a node (yes/no) [no] :
Running:
/u11/home/ebspat/fs2/EBSapps/comn/clone/bin/../jre/bin/java -Xmx600M -cp /u11/home/ebspat/fs2/EBSapps/comn/clone/jlib/java:/u11/home/ebspat/fs2/EBSapps/comn/clone/jlib/xmlparserv2.jar:/u11/home/ebspat/fs2/EBSapps/comn/clone/jlib/ojdbc6.jar:/u11/home/ebspat/fs2/EBSapps/comn/clone/jlib/obfuscatepassword.jar:/u11/home/ebspat/fs2/EBSapps/comn/clone/jlib/ojmisc.jar:/u11/home/ebspat/fs2/EBSapps/comn/clone/jlib/java:/u11/home/ebspat/fs2/EBSapps/comn/clone/jlib/emCfg.jar oracle.apps.ad.context.CloneContext -e /u11/home/ebspat/fs2/EBSapps/comn/clone/bin/../context/apps/CTXORIG.xml -validate -pairsfile /tmp/adpairsfile_27612.lst -stage /u11/home/ebspat/fs2/EBSapps/comn/clone 2> /tmp/adcfgclone_27612.err; echo $? > /tmp/adcfgclone_27612.res
Log file located at /u11/home/ebspat/fs2/EBSapps/comn/clone/bin/CloneContext_0419034910.log
Target System File Edition type [run] : patch (we should enter patch)
Enter the full path of Run File System Context file : /u11/home/ebspat/fs1/inst/apps/ebspat_apdbablog03/appl/admin/ebspat_apdbablog03.xml
Provide the values required for creation of the new APPL_TOP Context file.
Target System Fusion Middleware Home set to /u11/home/ebspat/fs2/FMW_Home
Target System Web Oracle Home set to /u11/home/ebspat/fs2/FMW_Home/webtier
Target System Appl TOP set to /u11/home/ebspat/fs2/EBSapps/appl
Target System COMMON TOP set to /u11/home/ebspat/fs2/EBSapps/comn
Target System Instance Top set to /u11/home/ebspat/fs2/inst/apps/ebspat_apdbablog03
Target System Port Pool [0-99] : 60(in FS1 the port pool is 50 so here we should enter 60)
Checking the port pool 56
done: Port Pool 56 is free
Report file located at /u11/home/ebspat/fs2/inst/apps/ebspat_apdbablog03/admin/out/portpool.lst
Complete port information available at /u11/home/ebspat/fs2/inst/apps/ebspat_apdbablog03/admin/out/portpool.lst
UTL_FILE_DIR on database tier consists of the following directories.
1. /bio/ebs/pat/tmp
2. /usr/tmp
Choose a value which will be set as APPLPTMP value on the target node [1] : 2 – select /usr/tmp
Creating the new APPL_TOP Context file from :
/u11/home/ebspat/fs2/EBSapps/comn/clone/context/apps/adxmlctx.tmp
The new APPL_TOP context file has been created :
/u11/home/ebspat/fs2/inst/apps/ebspat_apdbablog03/appl/admin/ebspat_apdbablog03.xml
Log file located at /u11/home/ebspat/fs2/EBSapps/comn/clone/bin/CloneContext_0419034910.log
Check Clone Context logfile /u11/home/ebspat/fs2/EBSapps/comn/clone/bin/CloneContext_0419034910.log for details.
Running Rapid Clone with command:
Running:
perl /u11/home/ebspat/fs2/EBSapps/comn/clone/bin/adclone.pl java=/u11/home/ebspat/fs2/EBSapps/comn/clone/bin/../jre mode=apply stage=/u11/home/ebspat/fs2/EBSapps/comn/clone component=appsTier method=CUSTOM appctxtg=/u11/home/ebspat/fs2/inst/apps/ebspat_apdbablog03/appl/admin/ebspat_apdbablog03.xml showProgress contextValidated=true
FMW Pre-requisite check log file location : /u11/home/ebspat/fs2/EBSapps/comn/clone/FMW/logs/prereqcheck.log
Running: /u11/home/ebspat/fs2/EBSapps/comn/clone/FMW/t2pjdk/bin/java -classpath /u11/home/ebspat/fs2/EBSapps/comn/clone/prereq/webtier/Scripts/ext/jlib/engine.jar:/u11/home/ebspat/fs2/EBSapps/comn/clone/prereq/webtier/oui/jlib/OraPrereq.jar:/u11/home/ebspat/fs2/EBSapps/comn/clone/prereq/webtier/oui/jlib/OraPrereqChecks.jar:/u11/home/ebspat/fs2/EBSapps/comn/clone/prereq/webtier/oui/jlib/OraInstaller.jar:/u11/home/ebspat/fs2/EBSapps/comn/clone/prereq/webtier/oui/jlib/OraInstallerNet.jar:/u11/home/ebspat/fs2/EBSapps/comn/clone/prereq/webtier/oui/jlib/srvm.jar:/u11/home/ebspat/fs2/EBSapps/comn/clone/prereq/webtier/Scripts/ext/jlib/ojdl.jar:/u11/home/ebspat/fs2/EBSapps/comn/clone/prereq/webtier/Scripts/ext/jlib/ojdl2.jar:/u11/home/ebspat/fs2/EBSapps/comn/clone/prereq/webtier/Scripts/ext/jlib/ojdl-log4j.jar:/u11/home/ebspat/fs2/EBSapps/comn/clone/prereq/webtier/oui/jlib/xmlparserv2.jar:/u11/home/ebspat/fs2/EBSapps/comn/clone/prereq/webtier/oui/jlib/share.jar:/u11/home/ebspat/fs2/EBSapps/comn/clone/jlib/java oracle.apps.ad.clone.util.FMWOracleHomePreReqCheck -prereqCheckFMW -e /u11/home/ebspat/fs2/inst/apps/ebspat_apdbablog03/appl/admin/ebspat_apdbablog03.xml -stage /u11/home/ebspat/fs2/EBSapps/comn/clone -log /u11/home/ebspat/fs2/EBSapps/comn/clone/FMW/logs/prereqcheck.log
Beginning application tier Apply - Sun Apr 19 03:52:15 2015
/u11/home/ebspat/fs2/EBSapps/comn/clone/bin/../jre/bin/java -Xmx600M -DCONTEXT_VALIDATED=true -Doracle.installer.oui_loc=/oui -classpath /u11/home/ebspat/fs2/EBSapps/comn/clone/jlib/xmlparserv2.jar:/u11/home/ebspat/fs2/EBSapps/comn/clone/jlib/ojdbc6.jar:/u11/home/ebspat/fs2/EBSapps/comn/clone/jlib/java:/u11/home/ebspat/fs2/EBSapps/comn/clone/jlib/oui/OraInstaller.jar:/u11/home/ebspat/fs2/EBSapps/comn/clone/jlib/oui/ewt3.jar:/u11/home/ebspat/fs2/EBSapps/comn/clone/jlib/oui/share.jar:/u11/home/ebspat/fs2/FMW_Home/webtier/../Oracle_EBS-app1/oui/jlib/srvm.jar:/u11/home/ebspat/fs2/EBSapps/comn/clone/jlib/ojmisc.jar:/u11/home/ebspat/fs2/FMW_Home/wlserver_10.3/server/lib/weblogic.jar:/u11/home/ebspat/fs2/EBSapps/comn/clone/jlib/obfuscatepassword.jar oracle.apps.ad.clone.ApplyAppsTier -e /u11/home/ebspat/fs2/inst/apps/ebspat_apdbablog03/appl/admin/ebspat_apdbablog03.xml -stage /u11/home/ebspat/fs2/EBSapps/comn/clone -showProgress -nopromptmsg
Log file located at /u11/home/ebspat/fs2/inst/apps/ebspat_apdbablog03/admin/log/clone/ApplyAppsTier_04190352.log
100% completed
Completed Apply...
1. Run con clean in DB nodes:
1) Concclean
2) Auto config
2. Run auto config in all application nodes – Run fs
1) Run Auto config
3. Check and make sure that admin server runs only in Primary server and web is disabled in CC nodes.
select NODE_NAME,SUPPORT_CP,SUPPORT_WEB,SUPPORT_ADMIN from fnd_nodes;
If managed server oacore_server2 exists in primary node then,
1) perl $FND_TOP/patch/115/bin/txkSetAppsConf.pl -contextfile=$CONTEXT_FILE -configoption=removeMS -accessgate=apdbablog11.apdba.com:6891
2) perl $FND_TOP/patch/115/bin/txkSetAppsConf.pl -contextfile=$CONTEXT_FILE -configoption=removeMS -ekanban=apdbablog11.apdba.com:6891
3) perl $FND_TOP/patch/115/bin/txkSetAppsConf.pl -contextfile=$CONTEXT_FILE -configoption=removeMS -yms=apdbablog11.apdba.com:6891
After you run these three make sure there are no entries of host apdbablog11.apdba.com in mod_wl_ohs.conf under /u13/home/ebsdev/fs2/FMW_Home/webtier/instances/EBS_web_ebsdev_OHS1/config/OHS/EBS_web_ebsdev/
Then run below to remove oaea_server2 managed server and confirm the server is removed.
4) perl $AD_TOP/patch/115/bin/adProvisionEBS.pl ebs-delete-managedserver -contextfile=$CONTEXT_FILE -managedsrvname=oaea_server2 -servicetype=accessgate -logfile=/tmp/oaeaserver2.log
FS_CLONE:
Source the Run env
Primary RUN FS amdmin server should run
[applprd@apdbablog01 ~]$ adop phase=fs_clone force=yes
Enter the APPS password:
Enter the SYSTEM password:
Enter the WLSADMIN password:
Validating credentials...
Initializing...
Run Edition context : /u11/home/ebsprd/fs1/inst/apps/ebsprd_apdbablog01/appl/admin/ebsprd_apdbablog01.xml
Patch edition context: /u11/home/ebsprd/fs2/inst/apps/ebsprd_apdbablog01/appl/admin/ebsprd_apdbablog01.xml
Patch file system freespace: 341.25 GB
Validating system setup...
Node registry is valid.
Generating log report...
Output: /u11/home/ebsprd/fs_ne/EBSapps/log/adop/43/fs_clone_20150819_022924/ebsprd_apdbablog01/adzdshowlog.out
adop phase=fs_clone - Completed Successfully
adop exiting with status = 0 (Success)
Issue 1:
-----------------------------
ERROR: The following required ports are in use:
-----------------------------
7451 : Managed Server Port 2
7651 : Managed Server Port 1
7851 : Managed Server Port 3
7251 : Managed Server Port 4
Corrective Action: Free the listed ports and retry the adop operation.
FIX :
1) Down all the services in Primary Run fs and restrated the clone
2) Backup all the Context file Change the below server port numbers ( old 7451 : New 7457) make sure your given port number must be
oacorestatus, formsstatus, oafmstatus,forms-c4wsstatus
once the port number changed in all the context files run auto config in all the nodes and start the services(make sure the old port number is not in any context files )
Issue 2:
/u11/home/ebsprd/fs_ne/EBSapps/log/adop/43/fs_clone_20150818_221556/ebsprd_apdbablog01/TXK_SYNC_create/fsclone_stage/FSCloneStageAppsTier_08182219.log:
--------------------------------------------------------------------------------------------------------------------------------------------------------
Lines #(23-27):
patchMSList size: 34
ERROR: Number of servers are not in sync between Run and Patch Context.
ERROR: Managed Servers would be in-sync at apply phase
Lines #(24-28):
patchMSList size: 34
ERROR: Number of servers are not in sync between Run and Patch Context.
ERROR: Managed Servers would be in-sync at apply phase
Fix:
Run the below command in all the nodes to sync the Servers with patch FS and run the auto config in all the Run FS(Please change tha node name in the command)
$ADJVAPRG oracle.apps.ad.autoconfig.oam.CtxSynchronizer action=upload contextfile=/u11/home/ebsprd/fs1/inst/apps/ebsprd_apdbablog05/appl/admin/ebsprd_apdbablog05.xml logfile=/tmp/patchctxupload.log
Issue 3:
Lines #(73-77):
diffSrvName : oaea_server2
runMSSrvPortsVal : oaea_server1:6851
ERROR: Run fs Context variable s_oaea_server_ports value cannot be NULL for oaea_server2
ERROR: Derived Patch managed server oaea_server2 port : NULL
ERROR: Failed to clone Run Context file to refresh Patch context file
Lines #(74-78):
runMSSrvPortsVal : oaea_server1:6851
ERROR: Run fs Context variable s_oaea_server_ports value cannot be NULL for oaea_server2
ERROR: Derived Patch managed server oaea_server2 port : NULL
ERROR: Failed to clone Run Context file to refresh Patch context file
Lines #(75-79):
ERROR: Run fs Context variable s_oaea_server_ports value cannot be NULL for oaea_server2
ERROR: Derived Patch managed server oaea_server2 port : NULL
ERROR: Failed to clone Run Context file to refresh Patch context file
FIX: please do to the following
1) Stop the services in all the Run FS
2) cd /u11/home/ebsprd/fs1/FMW_Home/user_projects/domains/EBS_domain_ebsprd/servers/
3) mv oaea_server2 oaea_server2_old
4) run the autoconfig in all the nodes
5) run the FS_CLONE again
Configure Shared APPL_TOP
Source RUN_FS of Primary application server
1. The value for the context variable "s_atName" must be same across all the application tier node context filesEnsure
2. that value of the AutoConfig variable " s_shared_file_system" is set to "true" ( without the quote) on the primary application tier node.
vi $CONTEXT_FILE
Change variable "s_shared_file_system" is set to "true"
Configure Node 2 - apdbablog02 Web
3. Start weblogic on primary application server if it is not already running and run Preclone on Primary Run FS
Before executing these steps, ensure the AdminServer on both the Run Edition File System and the Patch Edition File System is running. This is required for adcfgclone.pl to properly re-register the new node on the Target System
Source Run file system
Start weblogic administration server
./adadminsrvctl.sh start
./adpreclone.pl appsTier
4. Start weblogic on primary application Patch FS server if it is not already running and run Preclone on Primary Patch FS
Source Patch file system
Start weblogic administration server
./adadminsrvctl.sh start forcepatchfs
./adpreclone.pl appsTier
stop weblogic admin server
./adadminsrvctl.sh stop forcepatchfs
5. Create context files for RUN file system second application node.
[applpat@apdbablog02 scripts]$ cd /u11/home/ebspat/
[applpat@apdbablog02 ebspat]$ ls
EBSapps.env fs1 fs2 fs_ne sqlnet.log
[applpat@apdbablog02 ebspat]$ mkdir -p pairsfiles/run
[applpat@apdbablog02 ebspat]$ mkdir -p pairsfiles/patch
[applpat@apdbablog02 ebspat]$
[applpat@apdbablog02 run]$ cd /u11/home/ebspat/pairsfiles/run
[applpat@apdbablog02 run]$ cp /u11/home/ebspat/fs1/inst/apps/ebspat_apdbablog03/appl/admin/ebspat_apdbablog03_run.txt ./
1.Ensure the correct perl utility is in the $PATH. You must use the perl utility installed in the Fusion Middleware Oracle Home.
For example:
$ export PATH=/u11/home/ebsprd/fs1/FMW_Home/webtier/perl/bin:$PATH
Edit the Pairs run and patch file
Enter the new node information to be added in pairsfile of run and patch
Run File system
S_batch status should be enabled only in the concurrent nodes in order to configure PCP.
Adminserver runs only in the primary node
Export path: on Secondary node
export PATH=/u11/home/ebsprd/fs2/FMW_Home/webtier/perl/bin:$PATH
For Run FS
2.Ensure the WebLogic Administration Server from the run file system is running on the primary application tier node.
cd $INST_TOP/admin/scripts
./adadminsrvctl.sh start
3.Execute the Clone Context Utility to configure the run file system. For example:
$ cd /u11/home/ebsprd/fs1/EBSapps/comn/clone/bin
$ /u11/home/ebsprd/fs1/FMW_Home/webtier/perl/bin/perl ./adclonectx.pl \
addnode contextfile=/u11/home/ebspat/fs1/inst/apps/ebspat_apdbablog01/appl/admin/ebsprd_apdbablog01.xml \
pairsfile=/u11/home/ebspat/pairsfiles/run/ebspat_apdbablog02_run.txt \
outfile=/u11/home/ebspat/fs1/inst/apps/ebspat_apdbablog02/appl/admin/ebsprd_apdbablog02.xml
Now node added succesffully for Run fs
Create context files for PATCH file system second application node.
export PATH=/u11/home/ebspat/fs2/FMW_Home/webtier/perl/bin:$PATH
[applpat@apdbablog03 admin]$ cd /u11/home/ebspat/pairsfiles/patch
[applpat@apdbablog03 patch]$ cp /u11/home/ebspat/fs2/inst/apps/ebspat_apdbablog03/appl/admin/ebspat_apdbablog03_patch.txt ./
[applpat@apdbablog03 scripts]$ ./adadminsrvctl.sh start forcepatchfs
You are running adadminsrvctl.sh version 120.10.12020000.9
Enter the WebLogic Admin password:
Enter the APPS Schema password:
[applpat@apdbablog04 secure]$ cd /u11/home/ebspat/fs2/EBSapps/comn/clone/bin/ [applpat@apdbablog04 bin]$ /u11/home/ebspat/fs2/FMW_Home/webtier/perl/bin/perl ./adclonectx.pl \
addnode contextfile=/u11/home/ebspat/fs2/inst/apps/ebspat_apdbablog03/appl/admin/ebspat_apdbablog03.xml \ pairsfile=/u11/home/ebspat/pairsfiles/patch/ebspat_apdbablog03_patch.txt \ outfile=/u11/home/ebspat/fs2/inst/apps/ebspat_apdbablog04/appl/admin/ebspat_apdbablog04.xml
Node added successfully
[applprd@apdbablog02 ebsprd]$ perl /u11/home/ebsprd/fs2/EBSapps/appl/ad/12.0.0/patch/115/bin/txkRunSSHSetup.pl enablessh -contextfile=/u11/home/ebsprd/fs2/inst/apps/ebsprd_apdbablog02/appl/admin/ebsprd_apdbablog02.xml -hosts=apdbablog01,apdbablog02,apdbablog03,apdbablog04,apdbablog05,apdbablog06
Enter SSH User password for the OS user applprd:
Logfile location /u11/home/ebsprd/fs2/inst/apps/ebsprd_apdbablog02/logs/appl/rgf/TXK/enablessh.log
SSH equivalence setup successful.
6. Run auto config on second RUN file system
cd $INST_TOP/admin/scripts
./adautocfg.sh appspass=<pw>
7. Run auto config on second patch file system
cd $AD_TOP/bin
./adconfig.sh contextfile=<patchcontextfile.xml> -syncctx
Eg:- ./adconfig.sh contextfile=/u11/home/ebspat/fs2/inst/apps/ebspat_apdbablog02/appl/admin/ebspat_apdbablog02.xml -syncctx
Configure PCP
1. Start application services in all nodes
cd $INST_TOP/admin/scripts
./adstrtal.sh apps/<pw>
2. Stop adcmctl in both concurrent nodes.
3. Take all CM that are active and set workshift as Standard - 1 and set primary and secondary servers(Refer source CMs)
4. Make sure the nodes are defined as below
5. Assign primary/secondary nodes for each manager
6. Restart the managers and validate
cd $INST_TOP/admin/scripts
./adcmctl.sh stop apps/<pw>
./adcmctl.sh start apps/<pw>
4. Start all application services now. Check if concurrent process runs only in 05 and 06 nodes.
java.lang.OutOfMemoryError: Java heap space
Standard WEBADI Program EGO Spreadsheet Concurrent Program Errors with Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
On : 12.1.3 version, User Defined Attributes
Standard WEBADI Program EGO Spreadsheet Java Concurrent Program went into error in Production
When attempting to update UDA's via WEBADI program, EGO Spreadsheet Java Concurrent Program fail with the following error.
ERROR
-----------------------
Error is:
INFO: oracle.adf.share.config.ADFConfigFactory No META-INF/adf-config.xml found
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
java.util.logging.ErrorManager: 2:
oracle.core.ojdl.LoggingException: oracle.core.ojdl.LoggingException: Attempt to flush a closed LogWriter
at oracle.core.ojdl.ExceptionHandler.onException(Unknown Source)
at oracle.core.ojdl.
On : 12.1.3 version, User Defined Attributes
Standard WEBADI Program EGO Spreadsheet Java Concurrent Program went into error in Production
When attempting to update UDA's via WEBADI program, EGO Spreadsheet Java Concurrent Program fail with the following error.
ERROR
-----------------------
Error is:
INFO: oracle.adf.share.config.ADFConfigFactory No META-INF/adf-config.xml found
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
java.util.logging.ErrorManager: 2:
oracle.core.ojdl.LoggingException: oracle.core.ojdl.LoggingException: Attempt to flush a closed LogWriter
at oracle.core.ojdl.ExceptionHandler.onException(Unknown Source)
at oracle.core.ojdl.
Solution:
1. You can use the command below to see the process heap size value.
ps -ef|grep java | grep ConcurrentProgram
jmap -heap <pid>
2. Use the -verbosegc option turn on verbose garbage collection to determine the most effective heap size eg:
[GC 325407K->83000K(776768K), 0.2300771 secs]
The number in parentheses (776768K) is the committed size of the heap: the amount of space usable for java objects without requesting more memory from the operating system. That means that the heap size should be greater than (776768K), add an extra 20% for freespace to the heapsize.
To set the heap size for the porgram:
1. System Administrator -> Concurrent program -> Define -> Query for short name "EGOIJAVA"
2. If the Options field under executable region is blank, add "-Xmx2048m -Xms256m"
3. Save.
4. Test the issue
APP-FND-01388: Cannot read value for profile option CONC_REQUEST_STAT in routine & ROUTINE
Solution:
Submitted Purge Concurrent Request and/or Manager Data
Oracle Apps R12.2 OS ENVIRONMENT VARIABLES And LOGS
Below are some of the important Operating system level environment variables related to R12.2.
$ echo $FILE_EDITION
<shows which file edition you are using, run or patch>
$ echo $RUN_BASE
<shows absolute path to run file system>
$ echo $PATCH_BASE
<shows absolute path to patch file system>
$ echo $NE_BASE
<shows absolute path to non-edition file system>
$ echo $APPL_TOP_NE
<non-editioned appl_top path. Equivalent to $NE_BASE/EBSapps/appl>
$ echo $LOG_HOME
<Application Instance Specific Log Directory>
$ echo $ADOP_LOG_HOME
<Online patching Specific Log Directory. Equivalent to $NE_BASE/EBSapps/log/adop>
$ echo $IAS_ORACLE_HOME
<FMW Web Tier Home Directory>
$ echo $ORACLE_HOME
< 10.1.2 ORACLE_HOME>
$ echo $CONTEXT_FILE
<Source for information populating template files (autoconfig)>
$ echo $EBS_DOMAIN_HOME
<WLS Deployment of Oracle E-Business Suite 12.2 Domain (instance specific)>
$ echo $ADMIN_SCRIPTS_HOME
<Shell scripts to control processes associated to the Applications Instance>
$ echo $EBS_ORACLE_HOME
<Oracle E-Business Suite 12.2 FMW Deployment directory>
$ echo $RW
<10.1.2 reports directory>
$ echo $HOSTNAME
<hostname without domain name>
$ echo $APPS_VERSION
<to get the EBS version>
$ ps -ef | grep "NodeManager"
$ ps -ef | grep "weblogic.Name=AdminServer"
$ ps -ef | grep "weblogic.Name=forms-c4ws_server"
$ ps -ef | grep "weblogic.Name=forms_server"
$ ps -ef | grep "weblogic.Name=oafm_server"
$ ps -ef | grep "weblogic.Name=oacore_server"
Both Primary (Run) and Secondary Edition (Patch) file systems will each contain these logs:
Main installation log:
$INST_TOP/logs/<MMDDHHMM>.log
FMW and OHS TechStack Installation/Patching logs:
$APPL_TOP/admin/$CONTEXT_NAME/log/installAppl.log
$APPL_TOP/admin/$CONTEXT_NAME/log/ebsfmwlayout.log
$APPL_TOP/admin/$CONTEXT_NAME/log/NetServiceHandler.log
$APPL_TOP/admin/$CONTEXT_NAME/log/adcvmlog.xml
$APPL_TOP/admin/$CONTEXT_NAME/log/executeac.log
$APPL_TOP/admin/$CONTEXT_NAME/log/deploytech.log
$APPL_TOP/admin/$CONTEXT_NAME/logs/wls1036.log
$APPL_TOP/admin/$CONTEXT_NAME/logs/oracle.apps.fnd.txk.default0.log
$APPL_TOP/admin/$CONTEXT_NAME/logs/oracle.apps.fnd.txk.install0.log
<Global Inventory>/logs/<timestamp>.log
<Global Inventory>/logs/cloneActions<timestamp>.log
<Global Inventory>/logs/install<timestamp>.log
<Global Inventory>/logs/installActions<timestamp>.log
<Global Inventory>/logs/installProfile<timestamp>.log
<Global Inventory>/logs/installSummary<timestamp>.log
<Global Inventory>/logs/OPatch<timestamp>.log
<Global Inventory>/logs/oraInstall<timestamp>.log
<Global Inventory>/logs/silentInstall<timestamp>.log
Forms Oracle Home installation logs:
$APPL_TOP/admin/$CONTEXT_NAME/log/ApplyAppsTechStack.log
$INST_TOP/admin/log/ohclone.log
$INST_TOP/admin/log/ApplyAppsTechStack_<MMDDHHMM>.log
Service Control logs :
$INST_TOP/logs/appl/admin/log/adadminsrvctl.txt
$INST_TOP/logs/appl/admin/log/adalnctl.txt
$INST_TOP/logs/appl/admin/log/adapcctl.txt
$INST_TOP/logs/appl/admin/log/adcmctl.txt
$INST_TOP/logs/appl/admin/log/adforms-c4wsctl.txt
$INST_TOP/logs/appl/admin/log/adformsctl.txt
$INST_TOP/logs/appl/admin/log/adnodemgrctl.txt
$INST_TOP/logs/appl/admin/log/adoacorectl.txt
$INST_TOP/logs/appl/admin/log/adoafmctl.txt
$INST_TOP/logs/appl/admin/log/adopmnctl.txt
$INST_TOP/logs/appl/admin/log/adstpall.log
$INST_TOP/logs/appl/admin/log/adstrtal.log
$INST_TOP/logs/appl/admin/log/jtffmctl.txt
Please backup and then clear out the following log files:
$IAS_ORACLE_HOME/../wlserver_10.3/common/nodemanager/nmHome1/nodemanager.log
$IAS_ORACLE_HOME/instances/EBS_web_<SID>_OHS1/diagnostics/logs/OHS/EBS_web_<SID>/EBS_web_<SID>.log
$IAS_ORACLE_HOME/instances/EBS_web_<SID>_OHS1/diagnostics/logs/OHS/EBS_web_<SID>/access_log
$EBS_DOMAIN_HOME/servers/oacore_server*/logs/oacore_server1.log
$EBS_DOMAIN_HOME/servers/oacore_server*/logs/oacore_server1.out
$EBS_DOMAIN_HOME/servers/oacore_server*/logs/access.log
$EBS_DOMAIN_HOME/servers/oacore_server*/logs/oacore_server1-diagnostic.log
$EBS_DOMAIN_HOME/servers/AdminServer/logs/access.log
$EBS_DOMAIN_HOME/servers/AdminServer/logs/AdminServer-diagnostic.log
$EBS_DOMAIN_HOME/servers/AdminServer/logs/AdminServer.log
$EBS_DOMAIN_HOME/servers/AdminServer/logs/AdminServer.out
$EBS_DOMAIN_HOME/servers/AdminServer/logs/EBS_domain_*.log
This is a list of all the log files generated throughout the installation process :
Before the installation starts:
$TMP/<MMDDHHMM>/<MMDDHHMM>.log
$TMP/<MMDDHHMM>/<hostname>_<SID>.xml
$TMP/<MMDDHHMM>/<hostname>_<SID>_apps.xml
The Rapidwiz Configuration File is saved in 4 locations:-
$TMP/<MMDDHHMM>/conf_<SID>.txt
Primary $INST_TOP/conf_<SID>.txt
Secondary $INST_TOP/conf_<SID>.txt
<RDBMS ORACLE_HOME>/appsutil/conf_<SID>.txt
Preinstall System Check logs:
$TMP/<MMDDHHMM>/<MMDDHHMM>.log
$TMP/dbPreInstCheck.xxxxx.log
$TMP/wtprechk.xxxx/wtprechk.xxxx.log
<Global Inventory>/logs/installActions<timestamp>.log
Database Tier:
Main installation log:
RDBMS $ORACLE_HOME/appsutil/log/$CONTEXT_NAME/<MMDDHHMM>.log
Oracle Home installation logs:
RDBMS $ORACLE_HOME/temp/$CONTEXT_NAME/logs/oracle.apps.fnd.txk.install0.log
RDBMS $ORACLE_HOME/temp/$CONTEXT_NAME/logs/oracle.apps.fnd.txk.default0.log
<Global Inventory>/logs/<timestamp>.log
<Global Inventory>/logs/cloneActions<timestamp>.log
<Global Inventory>/logs/install<timestamp>.log
<Global Inventory>/logs/installActions<timestamp>.log
<Global Inventory>/logs/installProfile<timestamp>.log
<Global Inventory>/logs/installSummary<timestamp>.log
<Global Inventory>/logs/OPatch<timestamp>.log
<Global Inventory>/logs/oraInstall<timestamp>.log
<Global Inventory>/logs/silentInstall<timestamp>.log
RMAN restore scripts (Install mode only):
<RDBMS Oracle Home>/appsutil/out/$CONTEXT_NAME/restore-rac1.rman
<RDBMS Oracle Home>/appsutil/out/$CONTEXT_NAME/restore-rac2.sql
<RDBMS Oracle Home>/appsutil/out/$CONTEXT_NAME/restore-single2.sql
<RDBMS Oracle Home>/appsutil/out/$CONTEXT_NAME/restore-rac21.sql
<RDBMS Oracle Home>/appsutil/out/$CONTEXT_NAME/restore-single21.sql
<RDBMS Oracle Home>/appsutil/out/$CONTEXT_NAME/restore-rac3.rman
RMAN restore logs (Install mode only):
<RDBMS Oracle Home>/appsutil/out/$CONTEXT_NAME/restore-rac1.log
<RDBMS Oracle Home>/appsutil/out/$CONTEXT_NAME/restore-rac2.log
<RDBMS Oracle Home>/appsutil/out/$CONTEXT_NAME/restore-rac3.log
<RDBMS Oracle Home>/appsutil/out/$CONTEXT_NAME/restore-single1.log
<RDBMS Oracle Home>/appsutil/out/$CONTEXT_NAME/restore-single2.log
<RDBMS Oracle Home>/appsutil/out/$CONTEXT_NAME/restore-single3.log
<RDBMS Oracle Home>/appsutil/out/$CONTEXT_NAME/LogOff.sql
<RDBMS Oracle Home>/appsutil/out/$CONTEXT_NAME/fndClean.sql
Database characterset conversion (Install mode only):
<ORACLE_HOME>/appsutil/log/<Context Name>/addbccnv.txt
AutoConfig context file:
<RDBMS ORACLE_HOME>/appsutil/<Context Name>.xml
AutoConfig logs:
<RDBMS ORACLE_HOME>/appsutil/log/<Context Name>/<MMDDHHMM>/adconfig.log
<RDBMS ORACLE_HOME>/appsutil/log/<Context Name>/<MMDDHHMM>/NetServiceHandler.log
<RDBMS ORACLE_HOME>/temp/$CONTEXT_NAME/RACAutoConfig_nnnnn.log
Listener log:
<RDBMS ORACLE_HOME>/appsutil/log/$CONTEXT_NAME/addlnctl.txt
Applications Tier(s):
Both Primary (Run) and Secondary Edition (Patch) file systems will each contain these logs:
Main installation log:
$INST_TOP/logs/<MMDDHHMM>.log
FMW and OHS TechStack Installation/Patching logs:
$APPL_TOP/admin/$CONTEXT_NAME/log/installAppl.log
$APPL_TOP/admin/$CONTEXT_NAME/log/ebsfmwlayout.log
$APPL_TOP/admin/$CONTEXT_NAME/log/NetServiceHandler.log
$APPL_TOP/admin/$CONTEXT_NAME/log/adcvmlog.xml
$APPL_TOP/admin/$CONTEXT_NAME/log/executeac.log
$APPL_TOP/admin/$CONTEXT_NAME/log/deploytech.log
$APPL_TOP/admin/$CONTEXT_NAME/logs/wls1036.log
$APPL_TOP/admin/$CONTEXT_NAME/logs/oracle.apps.fnd.txk.default0.log
$APPL_TOP/admin/$CONTEXT_NAME/logs/oracle.apps.fnd.txk.install0.log
<Global Inventory>/logs/<timestamp>.log
<Global Inventory>/logs/cloneActions<timestamp>.log
<Global Inventory>/logs/install<timestamp>.log
<Global Inventory>/logs/installActions<timestamp>.log
<Global Inventory>/logs/installProfile<timestamp>.log
<Global Inventory>/logs/installSummary<timestamp>.log
<Global Inventory>/logs/OPatch<timestamp>.log
<Global Inventory>/logs/oraInstall<timestamp>.log
<Global Inventory>/logs/silentInstall<timestamp>.log
Forms Oracle Home installation logs:
$APPL_TOP/admin/$CONTEXT_NAME/log/ApplyAppsTechStack.log
$INST_TOP/admin/log/ohclone.log
$INST_TOP/admin/log/ApplyAppsTechStack_<MMDDHHMM>.log
Service Control logs :
$INST_TOP/logs/appl/admin/log/adadminsrvctl.txt
$INST_TOP/logs/appl/admin/log/adalnctl.txt
$INST_TOP/logs/appl/admin/log/adapcctl.txt
$INST_TOP/logs/appl/admin/log/adcmctl.txt
$INST_TOP/logs/appl/admin/log/adforms-c4wsctl.txt
$INST_TOP/logs/appl/admin/log/adformsctl.txt
$INST_TOP/logs/appl/admin/log/adnodemgrctl.txt
$INST_TOP/logs/appl/admin/log/adoacorectl.txt
$INST_TOP/logs/appl/admin/log/adoafmctl.txt
$INST_TOP/logs/appl/admin/log/adopmnctl.txt
$INST_TOP/logs/appl/admin/log/adstpall.log
$INST_TOP/logs/appl/admin/log/adstrtal.log
$INST_TOP/logs/appl/admin/log/jtffmctl.txt
[applint2@ebsx01appd10 webcache]$ find / -name *access*.log 2>/dev/null
/u15/home/ebsint2/fs2/EBSapps/appl/admin/ebsint2/log/US_fndacatfullaccess_ldt.log
/u15/home/ebsint2/fs2/EBSapps/10.1.2/j2ee/DevSuite/log/default-web-access.log
/u15/home/ebsint2/fs2/FMW_Home/user_projects/domains/EBS_domain_ebsint2_1442270252416/servers/oacore_server2/logs/access.log
/u15/home/ebsint2/fs2/FMW_Home/user_projects/domains/EBS_domain_ebsint2_1442270252416/servers/forms_server2/logs/access.log
/u15/home/ebsint2/fs2/FMW_Home/user_projects/domains/EBS_domain_ebsint2_1442270252416/servers/oafm_server3/logs/access.log
/u15/home/ebsint2/fs2/FMW_Home/user_projects/domains/EBS_domain_ebsint2_1442270252416/servers/oaea_server1/logs/access.log
/u15/home/ebsint2/fs2/FMW_Home/user_projects/domains/EBS_domain_ebsint2_1442270252416/servers/forms-c4ws_server1/logs/access.log
/u15/home/ebsint2/fs2/FMW_Home/user_projects/domains/EBS_domain_ebsint2_1442270252416/servers/oaea_server2/logs/access.log
/u15/home/ebsint2/fs2/FMW_Home/user_projects/domains/EBS_domain_ebsint2_1442270252416/servers/forms_server1/logs/access.log
/u15/home/ebsint2/fs2/FMW_Home/user_projects/domains/EBS_domain_ebsint2_1442270252416/servers/oacore_server1/logs/access.log
/u15/home/ebsint2/fs2/FMW_Home/user_projects/domains/EBS_domain_ebsint2_1442270252416/servers/forms-c4ws_server2/logs/access.log
/u15/home/ebsint2/fs2/FMW_Home/user_projects/domains/EBS_domain_ebsint2_1442270252416/servers/oafm_server2/logs/access.log
/u15/home/ebsint2/fs2/FMW_Home/user_projects/domains/EBS_domain_ebsint2_1442270252416/servers/oacore_server3/logs/access.log
$ echo $FILE_EDITION
<shows which file edition you are using, run or patch>
$ echo $RUN_BASE
<shows absolute path to run file system>
$ echo $PATCH_BASE
<shows absolute path to patch file system>
$ echo $NE_BASE
<shows absolute path to non-edition file system>
$ echo $APPL_TOP_NE
<non-editioned appl_top path. Equivalent to $NE_BASE/EBSapps/appl>
$ echo $LOG_HOME
<Application Instance Specific Log Directory>
$ echo $ADOP_LOG_HOME
<Online patching Specific Log Directory. Equivalent to $NE_BASE/EBSapps/log/adop>
$ echo $IAS_ORACLE_HOME
<FMW Web Tier Home Directory>
$ echo $ORACLE_HOME
< 10.1.2 ORACLE_HOME>
$ echo $CONTEXT_FILE
<Source for information populating template files (autoconfig)>
$ echo $EBS_DOMAIN_HOME
<WLS Deployment of Oracle E-Business Suite 12.2 Domain (instance specific)>
$ echo $ADMIN_SCRIPTS_HOME
<Shell scripts to control processes associated to the Applications Instance>
$ echo $EBS_ORACLE_HOME
<Oracle E-Business Suite 12.2 FMW Deployment directory>
$ echo $RW
<10.1.2 reports directory>
$ echo $HOSTNAME
<hostname without domain name>
$ echo $APPS_VERSION
<to get the EBS version>
$ ps -ef | grep "NodeManager"
$ ps -ef | grep "weblogic.Name=AdminServer"
$ ps -ef | grep "weblogic.Name=forms-c4ws_server"
$ ps -ef | grep "weblogic.Name=forms_server"
$ ps -ef | grep "weblogic.Name=oafm_server"
$ ps -ef | grep "weblogic.Name=oacore_server"
Both Primary (Run) and Secondary Edition (Patch) file systems will each contain these logs:
Main installation log:
$INST_TOP/logs/<MMDDHHMM>.log
FMW and OHS TechStack Installation/Patching logs:
$APPL_TOP/admin/$CONTEXT_NAME/log/installAppl.log
$APPL_TOP/admin/$CONTEXT_NAME/log/ebsfmwlayout.log
$APPL_TOP/admin/$CONTEXT_NAME/log/NetServiceHandler.log
$APPL_TOP/admin/$CONTEXT_NAME/log/adcvmlog.xml
$APPL_TOP/admin/$CONTEXT_NAME/log/executeac.log
$APPL_TOP/admin/$CONTEXT_NAME/log/deploytech.log
$APPL_TOP/admin/$CONTEXT_NAME/logs/wls1036.log
$APPL_TOP/admin/$CONTEXT_NAME/logs/oracle.apps.fnd.txk.default0.log
$APPL_TOP/admin/$CONTEXT_NAME/logs/oracle.apps.fnd.txk.install0.log
<Global Inventory>/logs/<timestamp>.log
<Global Inventory>/logs/cloneActions<timestamp>.log
<Global Inventory>/logs/install<timestamp>.log
<Global Inventory>/logs/installActions<timestamp>.log
<Global Inventory>/logs/installProfile<timestamp>.log
<Global Inventory>/logs/installSummary<timestamp>.log
<Global Inventory>/logs/OPatch<timestamp>.log
<Global Inventory>/logs/oraInstall<timestamp>.log
<Global Inventory>/logs/silentInstall<timestamp>.log
Forms Oracle Home installation logs:
$APPL_TOP/admin/$CONTEXT_NAME/log/ApplyAppsTechStack.log
$INST_TOP/admin/log/ohclone.log
$INST_TOP/admin/log/ApplyAppsTechStack_<MMDDHHMM>.log
Service Control logs :
$INST_TOP/logs/appl/admin/log/adadminsrvctl.txt
$INST_TOP/logs/appl/admin/log/adalnctl.txt
$INST_TOP/logs/appl/admin/log/adapcctl.txt
$INST_TOP/logs/appl/admin/log/adcmctl.txt
$INST_TOP/logs/appl/admin/log/adforms-c4wsctl.txt
$INST_TOP/logs/appl/admin/log/adformsctl.txt
$INST_TOP/logs/appl/admin/log/adnodemgrctl.txt
$INST_TOP/logs/appl/admin/log/adoacorectl.txt
$INST_TOP/logs/appl/admin/log/adoafmctl.txt
$INST_TOP/logs/appl/admin/log/adopmnctl.txt
$INST_TOP/logs/appl/admin/log/adstpall.log
$INST_TOP/logs/appl/admin/log/adstrtal.log
$INST_TOP/logs/appl/admin/log/jtffmctl.txt
Please backup and then clear out the following log files:
$IAS_ORACLE_HOME/../wlserver_10.3/common/nodemanager/nmHome1/nodemanager.log
$IAS_ORACLE_HOME/instances/EBS_web_<SID>_OHS1/diagnostics/logs/OHS/EBS_web_<SID>/EBS_web_<SID>.log
$IAS_ORACLE_HOME/instances/EBS_web_<SID>_OHS1/diagnostics/logs/OHS/EBS_web_<SID>/access_log
$EBS_DOMAIN_HOME/servers/oacore_server*/logs/oacore_server1.log
$EBS_DOMAIN_HOME/servers/oacore_server*/logs/oacore_server1.out
$EBS_DOMAIN_HOME/servers/oacore_server*/logs/access.log
$EBS_DOMAIN_HOME/servers/oacore_server*/logs/oacore_server1-diagnostic.log
$EBS_DOMAIN_HOME/servers/AdminServer/logs/access.log
$EBS_DOMAIN_HOME/servers/AdminServer/logs/AdminServer-diagnostic.log
$EBS_DOMAIN_HOME/servers/AdminServer/logs/AdminServer.log
$EBS_DOMAIN_HOME/servers/AdminServer/logs/AdminServer.out
$EBS_DOMAIN_HOME/servers/AdminServer/logs/EBS_domain_*.log
This is a list of all the log files generated throughout the installation process :
Before the installation starts:
$TMP/<MMDDHHMM>/<MMDDHHMM>.log
$TMP/<MMDDHHMM>/<hostname>_<SID>.xml
$TMP/<MMDDHHMM>/<hostname>_<SID>_apps.xml
The Rapidwiz Configuration File is saved in 4 locations:-
$TMP/<MMDDHHMM>/conf_<SID>.txt
Primary $INST_TOP/conf_<SID>.txt
Secondary $INST_TOP/conf_<SID>.txt
<RDBMS ORACLE_HOME>/appsutil/conf_<SID>.txt
Preinstall System Check logs:
$TMP/<MMDDHHMM>/<MMDDHHMM>.log
$TMP/dbPreInstCheck.xxxxx.log
$TMP/wtprechk.xxxx/wtprechk.xxxx.log
<Global Inventory>/logs/installActions<timestamp>.log
Database Tier:
Main installation log:
RDBMS $ORACLE_HOME/appsutil/log/$CONTEXT_NAME/<MMDDHHMM>.log
Oracle Home installation logs:
RDBMS $ORACLE_HOME/temp/$CONTEXT_NAME/logs/oracle.apps.fnd.txk.install0.log
RDBMS $ORACLE_HOME/temp/$CONTEXT_NAME/logs/oracle.apps.fnd.txk.default0.log
<Global Inventory>/logs/<timestamp>.log
<Global Inventory>/logs/cloneActions<timestamp>.log
<Global Inventory>/logs/install<timestamp>.log
<Global Inventory>/logs/installActions<timestamp>.log
<Global Inventory>/logs/installProfile<timestamp>.log
<Global Inventory>/logs/installSummary<timestamp>.log
<Global Inventory>/logs/OPatch<timestamp>.log
<Global Inventory>/logs/oraInstall<timestamp>.log
<Global Inventory>/logs/silentInstall<timestamp>.log
RMAN restore scripts (Install mode only):
<RDBMS Oracle Home>/appsutil/out/$CONTEXT_NAME/restore-rac1.rman
<RDBMS Oracle Home>/appsutil/out/$CONTEXT_NAME/restore-rac2.sql
<RDBMS Oracle Home>/appsutil/out/$CONTEXT_NAME/restore-single2.sql
<RDBMS Oracle Home>/appsutil/out/$CONTEXT_NAME/restore-rac21.sql
<RDBMS Oracle Home>/appsutil/out/$CONTEXT_NAME/restore-single21.sql
<RDBMS Oracle Home>/appsutil/out/$CONTEXT_NAME/restore-rac3.rman
RMAN restore logs (Install mode only):
<RDBMS Oracle Home>/appsutil/out/$CONTEXT_NAME/restore-rac1.log
<RDBMS Oracle Home>/appsutil/out/$CONTEXT_NAME/restore-rac2.log
<RDBMS Oracle Home>/appsutil/out/$CONTEXT_NAME/restore-rac3.log
<RDBMS Oracle Home>/appsutil/out/$CONTEXT_NAME/restore-single1.log
<RDBMS Oracle Home>/appsutil/out/$CONTEXT_NAME/restore-single2.log
<RDBMS Oracle Home>/appsutil/out/$CONTEXT_NAME/restore-single3.log
<RDBMS Oracle Home>/appsutil/out/$CONTEXT_NAME/LogOff.sql
<RDBMS Oracle Home>/appsutil/out/$CONTEXT_NAME/fndClean.sql
Database characterset conversion (Install mode only):
<ORACLE_HOME>/appsutil/log/<Context Name>/addbccnv.txt
AutoConfig context file:
<RDBMS ORACLE_HOME>/appsutil/<Context Name>.xml
AutoConfig logs:
<RDBMS ORACLE_HOME>/appsutil/log/<Context Name>/<MMDDHHMM>/adconfig.log
<RDBMS ORACLE_HOME>/appsutil/log/<Context Name>/<MMDDHHMM>/NetServiceHandler.log
<RDBMS ORACLE_HOME>/temp/$CONTEXT_NAME/RACAutoConfig_nnnnn.log
Listener log:
<RDBMS ORACLE_HOME>/appsutil/log/$CONTEXT_NAME/addlnctl.txt
Applications Tier(s):
Both Primary (Run) and Secondary Edition (Patch) file systems will each contain these logs:
Main installation log:
$INST_TOP/logs/<MMDDHHMM>.log
FMW and OHS TechStack Installation/Patching logs:
$APPL_TOP/admin/$CONTEXT_NAME/log/installAppl.log
$APPL_TOP/admin/$CONTEXT_NAME/log/ebsfmwlayout.log
$APPL_TOP/admin/$CONTEXT_NAME/log/NetServiceHandler.log
$APPL_TOP/admin/$CONTEXT_NAME/log/adcvmlog.xml
$APPL_TOP/admin/$CONTEXT_NAME/log/executeac.log
$APPL_TOP/admin/$CONTEXT_NAME/log/deploytech.log
$APPL_TOP/admin/$CONTEXT_NAME/logs/wls1036.log
$APPL_TOP/admin/$CONTEXT_NAME/logs/oracle.apps.fnd.txk.default0.log
$APPL_TOP/admin/$CONTEXT_NAME/logs/oracle.apps.fnd.txk.install0.log
<Global Inventory>/logs/<timestamp>.log
<Global Inventory>/logs/cloneActions<timestamp>.log
<Global Inventory>/logs/install<timestamp>.log
<Global Inventory>/logs/installActions<timestamp>.log
<Global Inventory>/logs/installProfile<timestamp>.log
<Global Inventory>/logs/installSummary<timestamp>.log
<Global Inventory>/logs/OPatch<timestamp>.log
<Global Inventory>/logs/oraInstall<timestamp>.log
<Global Inventory>/logs/silentInstall<timestamp>.log
Forms Oracle Home installation logs:
$APPL_TOP/admin/$CONTEXT_NAME/log/ApplyAppsTechStack.log
$INST_TOP/admin/log/ohclone.log
$INST_TOP/admin/log/ApplyAppsTechStack_<MMDDHHMM>.log
Service Control logs :
$INST_TOP/logs/appl/admin/log/adadminsrvctl.txt
$INST_TOP/logs/appl/admin/log/adalnctl.txt
$INST_TOP/logs/appl/admin/log/adapcctl.txt
$INST_TOP/logs/appl/admin/log/adcmctl.txt
$INST_TOP/logs/appl/admin/log/adforms-c4wsctl.txt
$INST_TOP/logs/appl/admin/log/adformsctl.txt
$INST_TOP/logs/appl/admin/log/adnodemgrctl.txt
$INST_TOP/logs/appl/admin/log/adoacorectl.txt
$INST_TOP/logs/appl/admin/log/adoafmctl.txt
$INST_TOP/logs/appl/admin/log/adopmnctl.txt
$INST_TOP/logs/appl/admin/log/adstpall.log
$INST_TOP/logs/appl/admin/log/adstrtal.log
$INST_TOP/logs/appl/admin/log/jtffmctl.txt
[applint2@ebsx01appd10 webcache]$ find / -name *access*.log 2>/dev/null
/u15/home/ebsint2/fs2/EBSapps/appl/admin/ebsint2/log/US_fndacatfullaccess_ldt.log
/u15/home/ebsint2/fs2/EBSapps/10.1.2/j2ee/DevSuite/log/default-web-access.log
/u15/home/ebsint2/fs2/FMW_Home/user_projects/domains/EBS_domain_ebsint2_1442270252416/servers/oacore_server2/logs/access.log
/u15/home/ebsint2/fs2/FMW_Home/user_projects/domains/EBS_domain_ebsint2_1442270252416/servers/forms_server2/logs/access.log
/u15/home/ebsint2/fs2/FMW_Home/user_projects/domains/EBS_domain_ebsint2_1442270252416/servers/oafm_server3/logs/access.log
/u15/home/ebsint2/fs2/FMW_Home/user_projects/domains/EBS_domain_ebsint2_1442270252416/servers/oaea_server1/logs/access.log
/u15/home/ebsint2/fs2/FMW_Home/user_projects/domains/EBS_domain_ebsint2_1442270252416/servers/forms-c4ws_server1/logs/access.log
/u15/home/ebsint2/fs2/FMW_Home/user_projects/domains/EBS_domain_ebsint2_1442270252416/servers/oaea_server2/logs/access.log
/u15/home/ebsint2/fs2/FMW_Home/user_projects/domains/EBS_domain_ebsint2_1442270252416/servers/forms_server1/logs/access.log
/u15/home/ebsint2/fs2/FMW_Home/user_projects/domains/EBS_domain_ebsint2_1442270252416/servers/oacore_server1/logs/access.log
/u15/home/ebsint2/fs2/FMW_Home/user_projects/domains/EBS_domain_ebsint2_1442270252416/servers/forms-c4ws_server2/logs/access.log
/u15/home/ebsint2/fs2/FMW_Home/user_projects/domains/EBS_domain_ebsint2_1442270252416/servers/oafm_server2/logs/access.log
/u15/home/ebsint2/fs2/FMW_Home/user_projects/domains/EBS_domain_ebsint2_1442270252416/servers/oacore_server3/logs/access.log
Subscribe to:
Posts
(
Atom
)