Tuesday, September 9, 2008

Enable Automatic Compilation of JSP pages in R12 Environment

In Release 12 the (automatic) compilation of JSP is disabled and on runtime only the pre-compiled JSP's are picked up. Since this requires less checks to be done the performance is improved. Therefor is this the recommended setting for a Production environment where JSP's will only be replaced occasionally.

In cases where development activities are done and JSP pages are changing often this default setting makes things more complicated. Each time a JSP is deployed a manual compilation using the ojspCompile.pl is needed and the OC4J running the oacore needs a restart to pick up the changes. This will also affect other people working on the same environment.
Follow the steps below to:

Automatically have the JSP being recompiled when JSP was changed (at least the time stamp) See the new JSP without the need to restart the OC4J running oacore The objective is to change the setting for main_mode from justrun to recompile in
$INST_TOP /ora/10.1.3/j2ee/oacore/application-deployments/oacore/html/orion-web.xml

This can be achieved by performing any one of the following:

a. Using Autoconfig:

1. Backup the context file (echo $CONTEXT_FILE) before editing it and Change value for the entry s_jsp_main_mode from justrun to recompile.

2. Run Autoconfig to propagate the changes to the configuration files.

3. Verify that now the $INST_TOP/ora/10.1.3/j2ee/oacore/application-deployments/oacore/html/orion-web.xml has

" init-param

param-name main_mode /param-name
param-value recompile /param-value
/init-param> "

4. Restart the Middle Tier services and access the applications to load JSP's which will cause them to be recompiled on the run.

5. After successfully accessing the applications, use the vi editor to edit the $CONTEXT_NAME.xml context file used by AutoConfig and revert the value for "s_jsp_main_mode" to "justrun" (without the double quotes) in order not to hamper the performance of your system.

6. Run AutoConfig to propagate the changes.

b. Using Context Editor

1. Login into E-Business suite and select System Administrator responsibility

2. Select function AutoConfig (under Oracle Applications Manager)

3. For each MT server perform the following:

4. Click on pencil icon under Edit Parameters

5. Select tab System

6. Expand section jtff_server

7. Change value for the entry s_jsp_main_mode from justrun to recompile

8. Confirm the change by clicking Save button

9. Run Autoconfig to propagate the changes to the configuration files

Verify that the $INST_TOP/ora/10.1.3/j2ee/oacore/application-
deployments/oacore/html/orion-web.xml has

" init-param
param-name main_mode /param-name
param-value recompile /param-value
/init-param> "


10. Restart the Middle Tier services 11. Request a JSP in the browser which is compiled. See that a new _.class is created in _pages

12. Make a change in the JSP file 13. Request it again in the browser. See that _.class is 'refreshed' in _pages and the change is seen in the browser

Ref Notes #

467562.1 - Blank Page Accessing R12 - 'Missing class: _RF' in OACore application.log
433386.1 - JSP Pages Hanging in R12 After Removing Cached Class Files in _pages


Saturday, August 30, 2008

Overview of Using ORADEBUG Command

1. ORADEBUG command is used to diagnose the Database Hanging Issues

2. All the ORADEBUG should be executed as sysdba


3. We can use the following command to list the commands available in ORADEBUG

SQL> ORADEBUG HELP

4. We can use the following command to analyze the system hang, oradebug hanganalyze

1-2 - Only HANGANALYZE output, no process dump at all

3 - Level 2 + Dump only processes thought to be in a hang (IN_HANG state)

4 - Level 3 + Dump leaf nodes (blockers) in wait chains (LEAF,LEAF_NW,IGN_DMP state)

5 - Level 4 + Dump all processes involved in wait chains (NLEAF state)

10 - Dump all processes (IGN state)

Example

To perform cluster wide HANGANALYZE use the following syntax:

ORADEBUG setmypid
ORADEBUG setinst all
ORADEBUG -g def hanganalyze

5. The command we can use to stop the ORADEBUG is

SQL> ORADEBUG suspend

6. The command we can use to get the trace file name is

SQL> ORADEBUG tracefile_name

Oracle E-Business Suite R12.1

Oracle E-Business Suite R12.1 release likely to announced sometime by Sept’08 Oracle Open World Event.

There are 15 Release Content Documents available as of now and listed below,


Applications Technology

Asset Lifecycle Management

Financials


Human Resources

Logistics

Manufacturing

Marketing and Sales

Master Data Management

Order Management & Contracts

Procurement

Projects

Service

Supply Chain Planning

Financial Services

Aerospace, Defense, and Transportation

Ref Note # 561580.1: E-Business Suite Release 12.1: Release Content Documents

Friday, August 22, 2008

Oracle EBS 12 is now Certified with Redhat 5 and Oracle Enterprise Linux 5

Oracle EBS 12 is now certified with Red Hat Enterprise Linux 5 and Oracle Enterprise Linux 5
Check metalink note: 402310.1 for 32-bit and note: 416305.1 for 64-bit OS

Monday, August 18, 2008

How to find Apps OUI version in EBS

We can find the version of the Oracle Universal Installer through the following,

Navigate to $IAS_ORACLE_HOME/appsoui/oui,

It will display a file named oraparam.ini and the contents will be look like the following,
~
DISTRIBUTION=FALSE
SOURCE=
LICENSE_LOCATION=
JRE_LOCATION=../jre/1.3.1/jre OUI_LOCATION=.
DEFAULT_HOME_LOCATION=
DEFAULT_HOME_NAME=
NLS_ENABLED=TRUE
JRE_MEMORY_OPTIONS=" -mx48m"
NO_BROWSE=/net
BOOTSTRAP=FALSE OUI_VERSION=2.2.0.19.0
~
In the above at last we will be able to locate the version of the Oracle Universal Installer from the parameter OUI_VERSION.

In the above case the version is 2.2.0.19.0.

Oracle Applications Framework and Rollup Version Using OAInfo.jsp

Provide the following URL in the browser:

http://[host%20name].[domain%20name]:[portnumber]/OA_HTML/OAInfo.jsp

This will provide the following information:

1. OA Framework version

2. Rollup patch version

3. JRE version

4. Java version

5. Operating System

6. Browser

7. System CLASSPATH

How To Recreate the /appsutil/scripts/ directory

1. On the Application Tier (as the APPLMGR user)

2. Log in to the APPL_TOP environment (source the environment file)

3. Create appsutil.zip file

4. perl /bin/admkappsutil.pl

5. This will create appsutil.zip in $APPL_TOP/admin/out .

6. On the Database Tier (as the ORACLE user):

7. Copy or FTP the appsutil.zip file to the RDBMS ORACLE_HOME

8. cd RDBMS_ORACLE_HOME

9. unzip -o appsutil.zip

10. Generate your Database Context File follow the steps below:
On UNIX cd . .env
cd /appsutil/bin perl adbldxml.pl tier=db appsuser= appspasswd=

11. On UNIX cd /appsutil/bin, run adconfig.sh contextfile= appspass= After running adconfig.sh contextfile= appspass= ,the scripts directory "/appsutil/scripts//" is created in appsutil directory.

12. After running adconfig.sh contextfile= appspass= ,the scripts directory "/appsutil/scripts//" is created in appsutil directory