对于EBS数据库管理员用户,可以把db/tech_st/10.2.0下的<CONTEXT_NAME>.env设置到/home/user下的.bash_profile文件(隐藏文件)中,这样和DB相关的一些环境变量就会自动在登录时加载(比如ORACLE_HOME,ORACLE_SID,PATH,TNS_ADMIN,CONTEXT_NAME,LIBPATH等)
eg.把/u01/oracle/mc3yd213/db/tech_st/11.1.0/mc3yd213_bej301441.env加到.bash_profile
对于EBS Application管理员用户,可以把apps/apps_st/appl(APPL_TOP)下的<CONTEXT_NAME>.env设置到/home/user下的.bash_profile文件(隐藏文件)中,这样和Application相关的一些环境变量就会自动在登录时加载(比如APPL_TOP,INST_TOP,COMMON_TOP,AD_TOP,FND_TOP,PATH,NLS_LANG,NLS_DATE_FORMAT,FORMS_SESSION,FORMS_PATH,FORMS_TRACE_DIR,FORMS_TIMEOUT等)
eg.把/u01/oracle/mc3yd213/apps/apps_st/appl/mc3yd213_bej301441.env加到.bash_profile
下边是关于EBS .env文件的介绍,摘自:http://docs.oracle.com/cd/E18727_01/doc.121/e12841/T120505T120509.htm
Rapid Install creates several environment files that set up the Oracle database, the Oracle technology stack, the Oracle HTTP server, and the Oracle E-Business Suite environments.
The location of these environment files is shown in the following table:
Filename Location Path EnvironmentOn UNIX, Oracle E-Business Suite includes a consolidated environment file called APPS<CONTEXT_NAME>.env,which sets up both the Oracle E-Business Suite and Oracle technology stack environments. When you install Oracle E-Business Suite , Rapid Install creates this script in the APPL_TOP directory. Many of the parameters are specified during the install process.
On Windows, the equivalent consolidated environment file is called %APPL_TOP%\envshell<CONTEXT_NAME>.cmd. Running it creates a command window with the required environment settings for Oracle E-Business Suite. All subsequent operations on the APPL_TOP (for example, running adadmin or adpatch) must be carried out from this window.
The following table lists the key environment settings in APPS<CONTEXT_NAME>.env.
Parameter DescriptionMost temporary files are written to the location specified by the APPLTMP environment setting, which is set by Rapid Install.
Oracle E-Business Suite products also create temporary PL/SQL output files used in concurrent processing. These files are written to a location on the database server node specified by the APPLPTMP environment setting. The APPLPTMP directory must be the same directory as specified by the utl_file_dir parameter in your database initialization file.
Rapid Install sets both APPLPTMP and the utl_file_dir parameter to the same default directory.
Some Oracle E-Business Suite utilities use your operating system's default temporary directory even if you define the environment settings listed in the previous paragraph. You should therefore ensure there is adequate free disk space in this directory, as well as in those denoted by APPLTMP and APPLPTMP. On a multi-node system, the directory defined by APPLPTMP does not need to exist on the application tier servers.
Note: The temporary files placed in the utl_file_dir directory can be secured against unauthorized access by ensuring that this directory has read and write access for the Oracle database account only.
Several other key environment files are used in an Oracle E-Business Suite system.
The adovars.env file
The adovars.env file, located in $APPL_TOP/admin, specifies the location of various files such as Java files, HTML files, and JRE (Java Runtime Environment) files. It is called from the main applications environment file, <CONTEXT_NAME>.env. The adovars.env file includes comments on the purpose and recommended setting of each variable. In a Release 12 environment, adovars.env is maintained by AutoConfig, and should not be edited manually.
The adovars.env file includes the following parameters:
Parameter DescriptionAF_JLIB | Indicates the directory to which all Java archive files are copied. For example, apps/apps_st/comn/java/lib. Introduced with Release 12. |
JAVA_BASE | Indicates the top-level Java directory . For example, apps/apps_st/comn/java. Introduced with Release 12. |
JAVA_TOP | Indicates the directory to which all Java class files are copied. For example, apps/apps_st/comn/java/classes. Definition has changed with Release 12. |
OA_JAVA | Indicates the directory to which all Java archive files are copied. For example, apps/apps_st/comn/java/classes. |
OA_JRE_TOP | Indicates the location where the JRE is installed. For example, /local/java/jdk1.5.0_08. |
OAH_TOP | Defines the location to which HTML files are copied. For example, apps/apps_st/comn/webapps/oacore. |
OAD_TOP | Defines the locations to which context-sensitive documentation files are copied. For example, apps/apps_st/comn. |
LD_LIBRARY_PATH | Path used on many UNIX platforms to list the directories that are to be scanned for dynamic library files needed at runtime. |
CLASSPATH | Lists the directories and zip files scanned for Java class files needed at runtime. |
AD utility programs perform a variety of database and file management tasks. These utilities need to know certain configuration information to run successfully. This configuration information is specified when Oracle E-Business Suite is installed, and subsequently stored in the adconfig.txt file in the <APPL_TOP>/admin directory. Once it has been created, this file is used by other Oracle E-Business Suite utilities.
Note: adconfig.txt is created with the APPL_TOP file system, and it shows the tiers that have been configured on a particular node. It is distinct from theconfig.txt file employed by Rapid Install.
This file sets additional environment variables used by the Application Object Library. For example, it sets APPLBIN as the name of the subdirectory where product executable programs and shell scripts are stored (bin). This file should not be modified: the default values are applicable for all customers. The file is located in the FND_TOP directory.
This file sets variables that let you link third-party software and your own custom-developed applications with Oracle E-Business Suite. In Release 12, this script is located in FND_TOP/usrxit, and is automatically called by fndenv.env. This allows you to compile and link custom Oracle Forms user exits and concurrent programs with Oracle E-Business Suite.