Anda di halaman 1dari 4

Oracle Home: Oracle Applications 11i Context/ Environment Files

http://www.oracle-home.ro/Oracle_Apps/Apps_11i/5_Oracle_APPS_env...

Oracle Home

Ads by Google

Oracle Database

Oracle Reports

Oracle

Oracle 10G

Multilingual WebCenter
Translate Inside WebCenter Lingotek Collaborative Translation lingotek.com/webcenter Oracle Database 9i, 10g, 11g Oracle Data Warehouse & BI Oracle Applications EBS 11i, R12 Oracle Middleware SQL & PL/SQL UNIX/ Linux
Ads by Google

Oracle Database

Oracle Reports

Oracle

Oracle 10G

Home > Oracle Applications 11i/ R12 > Oracle Application 11i DBA > Oracle Applications 11i Context/ Environment Files

Oracle Applications 11i eBusiness Suite DBA

Oracle Applications 11i Context/ Environment Files


NOTE: This article named Oracle Applications 11i Context/ Environment Files was taken from www.in-oracle.com.

Oracle Applications Context Files


During the Oracle Applications eBusiness Suite installation Rapid Install save the configuration parameters in 2 files (context files) named <CONTEXT_NAME>.xml. The <CONTEXT_NAME> by default is <SID>_<hostname>. For instance if $ORACLE_SID is VIS and $HOSTNAME is apps_svr.localdomain the context file will be VIS_apps_svr.xml. These context files are not used directly to configure the Oracle Applications; the context files are only repositories which store the the configuration parameters. The 2 context files are: <RDBMS ORACLE_HOME>/appsutil/VIS_apps_svr.xml (for the database tier) and <APPL_TOP>/admin/VIS_apps_svr. xml (for each node of the the application tier) The context files could be modified in 3 situations: 1. 2. 3. Apply a patch from Oracle that adds or changes the variables in VIS_apps_svr.xml, AutoConfig template files or AutoConfig driver files; Using Context Editor (editcontext ) ( which is provided by the patch number 2873456); Using Oracle Applications Manager (OAM) H or higher. OAM automatically stores the new values in the database and update the context files. Oracle recommends using OAM; however if the OAM is not accessible the Context Editor must be used. The Context Editor is located at: Application tier: <COMMON_TOP>/util/editcontext/ Database tier: <RDBMS ORACLE_HOME>/appsutil/editcontext/ The Context Editor executable file is editcontext (for UNIX) and EditContext.cmd (for Windows). The Context Editor contains 3 screens: 1st locate the context file and load it in the editor, the 2nd screen allows to edit the values in the context file and the 3rd screen allows you to save the changes to the context file. If the Context File is lost, the Context File can be generated by using the adbldxml.pl (for 11.5.9 or higher). On UNIX, to create the Context File for the database: cd <RDBMS ORACLE_HOME> . <CONTEXT_NAME>.env cd <RDBMS ORACLE_HOME>/appsutil/bin perl adbldxml.pl tier=db appsuser=<APPSuser> appspasswd=<APPSpasswd> Note: If <CONTEXT_NAME>.env file is not present $ORACLE_HOME, $ORACLE_SID, $TNS_ADMIN must be set for the database. On UNIX, to create the Context File for the application tier (for 11.5.8 or higher): . <APPL_TOP>/<CONTEXT_NAME>.env cd <AD_TOP>/bin perl adbldxml.pl tier=apps appsuser=<APPSuser> appspasswd=<APPSpasswd> When the Context File is created using adbldxml.pl Oracle will use the current environment settings. For this reason is very important to ensure that the system is correctly sourced. If the application environment file (<CONTEXT_NAME>.env files) is lost is possible to generate it from the database (run adadmin and chose option 2.Maintain Applications Files menu and after that 2.Create Applications environment file ). If the Context File is created for a RAC environment, all the RAC instances must be running.

1 of 4

7/16/2012 8:15 PM

Oracle Home: Oracle Applications 11i Context/ Environment Files

http://www.oracle-home.ro/Oracle_Apps/Apps_11i/5_Oracle_APPS_env...

Some Benefits of the Context Files:


APPL_TOP/ database environment settings are situated in only 2 places and is easy to manage; The cloning process is easier; XML format is easy to read and platform independent; Fewer files to maintain and support.

Oracle Applications Environment Files


If the context file is the repository of these parameters and cannot be used to source the environment directly, the Oracle Applications Environment Files are the files which are used to configure (source) the system directly. The environment files mustn't be modified directly because these files are generated automatically by AutoConfig. Here are the environment files in Oracle Application 11i :

Filename
<CONTEXT_NAME>.env (Unix/ Linux) <CONTEXT_NAME>.cmd (Windows) <CONTEXT_NAME>.env (Unix/ Linux)

Location of the file


9.2.0/ 10.2.0.3 ORACLE_HOME iAS ORACLE_HOME

Environment sourced

Call other environment files


No

Database Tier

HTTP Server

No

<CONTEXT_NAME>.cmd (Windows) <CONTEXT_NAME>.env (Unix/ Linux) 8.0.6 ORACLE_HOME <CONTEXT_NAME>.cmd (Windows) <CONTEXT_NAME>.env (Unix/ Linux) APPL_TOP <CONTEXT_NAME>.cmd (Windows) APPS<CONTEXT_NAME>.env (Unix/ Linux) <CONTEXT_NAME>.cmd (Windows) Applications Technology stack + Applications Yes Technology stack No

APPL_TOP

Yes

APPS<CONTEXT_NAME>.env is named consolidated setup file because is used to source both Technology stack and Applications. APPS<CONTEXT_NAME>.env call the file which contains the customizations (if exists) and also <CONTEXT_NAME>.env for Technology stack and Applications. Here is the content of a consolidated setup file (named APPSVIS_apps_svr.env): $ more APPSVIS_apps_svr.env (...) # Source the custom file if it exists customfile=/APPS/visappl/customVIS_apps_svr.env if [ -f $customfile ]; then . /APPS/visappl/customVIS_apps_svr.env fi . /APPS/visora/8.0.6/VIS_apps_svr.env . /APPS/visappl/VIS_apps_svr.env

Key Parameters in Environment Files Key Parameter


APPLFENV

Description

Example

PLATFORM

APPL_TOP FNDNAM FND_TOP

Applications File Environment name. If the environment $ echo $APPLFENV file is renamed this parameter must be changed. VIS_apps_svr.env The OS on which the Oracle Applications are installed. This value must match the value in $ echo $PLATFORM adpltfrm.txt file: LINUX $ more $APPL_TOP/admin/adpltfrm.txt LINUX The top-level directory for the Oracle Applications $ echo $APPL_TOP directory. /APPS/visappl The Oracle schema used by System Administration $ echo $FNDNAM Responsibility to connect to the database. The default APPS value is APPS and should not be changed. The directory where the Oracle Applications Object Library is installed. $ echo $FND_TOP /APPS/visappl/fnd/11.5.0

2 of 4

7/16/2012 8:15 PM

Oracle Home: Oracle Applications 11i Context/ Environment Files

http://www.oracle-home.ro/Oracle_Apps/Apps_11i/5_Oracle_APPS_env...

AU_TOP <PROD>_TOP

PATH

APPLTMP

$ echo $AU_TOP /APPS/visappl/au/11.5.0 $ echo $GL_TOP /APPS/visappl/gl/11.5.0 $ echo $PATH /APPS/visappl/fnd/11.5.0/bin: /APPS/visappl/ad/11.5.0/bin: /APPS/viscomn/util/java The directories where the executables or the libraries are /1.4/j2sdk1.4.2_04/bin: /APPS/viscomn/util/unzip/unzip/unzip-5.50: installed. /home/oracle/bin: /APPS/visora/8.0.6/bin:/usr/bin:/usr/ccs/bin: /usr/sbin:/usr/kerberos/bin:/usr/local /bin:/bin: /usr/bin:/usr/X11R6/bin The directory for the Oracle Applications temporary $ echo $APPLTMP files. /APPS/viscomn/temp The directory for the Oracle Applications temporary PL/SQL output files. The options must be listed in utl_file_dir parameter. The default value must/ could be changed because the files from this directory are deleted when the server is restarted. Top-level directory for the concurrent manager log & output files if they are consolidated into one directory for all products. The subdirectory for concurrent manager log files. In this case the log files for the concurrent manager are in $APPLCSF/log/VIS_apps_svr directory. The subdirectory for concurrent manager output files. In this case the log files for the concurrent manager are in $APPLCSF/out/VIS_apps_svr directory. The national language, territory and character set installed in the database. In this case, the language is "American", the territory is "America" and the character set is "UTF8". The format of the National Language. $ echo $APPLPTMP /usr/tmp

The directory where the Oracle Applications Utilities are installed. The directory where each Oracle Applications Product is installed.

APPLPTMP

APPLCSF

$ echo $APPLCSF /APPS/viscomn/admin $ echo $APPLLOG log/VIS_apps_svr $ echo $APPLOUT out/VIS_apps_svr $ echo $NLS_LANG American_America.UTF8 $ echo $NLS_DATE_FORMAT DD-MON-RR $ echo $NLS_NUMERIC_CHARACTERS ., $ echo $FORMS60_MAPPING http://apps_svr.localdomain:8000 /OA_TEMP $ echo $REPORTS60_TMP /APPS/viscomn/temp $ echo $GRAPHICS60_PATH /APPS/visappl/au/11.5.0/graphs

APPLOG

APPLOUT

NLS_LANG

NLS_DATE_FORMAT

NLS_NUMERIC_CHARACTERS The National Language Support numeric separators. FORMS60_MAPPING REPORTS60_TMP GRAPHICS60_PATH The Oracle Applications forms Web server host name and port. The directory for temporary Oracle Reports files. The directory where the Oracle Graphics Files are located.

The <CONTEXT_NAME>.env (located in $APPL_TOP) call other environment configuration files as well. These environment files are: 1. 2. $APPL_TOP/admin/adovars.env $APPL_TOP/fnd/11.5.0/fndenv.env ($APPL_TOP/fnd/11.5.0 is $FND_TOP). This script call devenv.env ( located under ${FND_TOP}/${APPLUSR}, ${APPLUSR}= usrxit ) which sets variables that let us link custom Oracle Forms, Reports and concurrent programs. Here are some of the variables defined in adovars.env:

Key Parameter
JAVA_TOP

Description
Indicates the top-level directory where all Java class files will be copied.

Example
$ echo $JAVA_TOP /APPS/viscomn/java

OA_JRE_TOP

CLASSPATH

Indicates the location where you have installed the Java Runtime Environment (JRE) on your machine. You do not have to set this $ echo $OA_JRE_TOP variable, however Oracle recommend you using this to update /APPS/viscomn/util/java CLASSPATH, LD_LIBRARY_PATH and PATH variables rather than /1.4/j2sdk1.4.2_04 hardcode the location of the JRE. Java requires CLASSPATH to be defined on most platforms. The CLASSPATH variable lists the directories and zip files to be scanned n/a for Java class files needed at runtime.

3 of 4

7/16/2012 8:15 PM

Oracle Home: Oracle Applications 11i Context/ Environment Files

http://www.oracle-home.ro/Oracle_Apps/Apps_11i/5_Oracle_APPS_env...

LD_LIBRARY_PATH is used on some platforms to list the directories to be scanned for dynamic library files needed at runtime. This is n/a LD_LIBRARY_PATH usually set in your Oracle environment. This variable should include your Java libraries (from your JRE) and Oracle libraries. $ echo $OAH_TOP Define the locations to which Oracle Applications copies HTML files. OAH_TOP /APPS/viscomn Define the locations to which Oracle Applications copies context$ echo $OAD_TOP OAD_TOP sensitive documentation files. /APPS/viscomn The OA_HTML, OA_SECURE, OA_MEDIA, OA_DOC, and OA_HTML, OA_SECURE, $ echo $OA_HTML OA_JAVA variables correspond to the virtual directory settings of the OA_MEDIA, OA_DOC, OA_JAVA /APPS/viscomn/html same names you define in your web server.

NOTE: This article named Oracle Applications 11i Context/ Environment Files was taken from www.in-oracle.com.
Oracle Database 9i, 10g, 11g Oracle Data Warehouse & BI Oracle Applications EBS 11i, R12 Oracle Middleware SQL & PL/SQL UNIX/ Linux Home > Oracle Applications 11i/ R12 > Oracle Application 11i DBA > Oracle Applications 11i Context/ Environment Files

Different Romanian Links/ Linkuri romanesti diferite


1. Invata limba engleza (Learn English language if you are Romanian) Doresti un proiect de arhitectura ieftin (pentru zonele Buzau, Bucuresti sau Prahova) ?

Disclaimer: The views expressed on this web site are my own and do not reflect the views of Oracle Corporation. You may use the information from this site only at your risk. Copyright (c) 2009-2011 Paul Catalin Tomoiu. All rights reserved.

4 of 4

7/16/2012 8:15 PM