Oracle Applications DBA 基础(一)

1.引子php

2014913html

20:33java

oracle Applications DBA 基础》介绍Oracle Applications R12的系统架构,node

数据库后台及应用系统的基础知识。目标是向一个具备通常UNIX,JAVA, linux

ORACLE知识的OracleDBA 介绍Oracle Applications R12的基础知识,让他/她可以今后c++

经过独立的研究(Research)去解决新问题,成为一个优秀的OracleEBS DBA。web

 

《oracleApplications DBA 基础》包括如下的内容:sql

1. 系统概要 (1、2见此 [url]http://www.itpub.net/thread-1409488-1-1.html[/url] ) shell

 

===========数据库

从技术方面介绍Oracle Applications R12的系统架构,包括桌面系统,应用层,以及后台数据库。

从业务方面介绍系统架构,包括产品系列,end-to-end的全球性的解决方案,以及shared entity。

 

2. 安装

========

安装前任务。

使用快速安装进行单节点安装,中文包安装,双节点安装(数据库节点及应用层节点)。

安装后任务。

 

3. 系统架构介绍 (3、4 见此 http://www.itpub.net/thread-1409490-1-1.html

===============

桌面系统

应用层 (Apache, Forms, Reports, Admin, Concurrent Manager, Discoverer)

应用技术(AD, FND, AK , AU , WF etc)

应用文件系统(APPL_TOP, COMMON_TOP, INST_TOP)

后台数据库

 

4. 基本系统管理知识

===================

介绍简单的系统管理知识,例如运行状态检查,启动及中止及系统配置。

涉及的模块有:

 

Database

DBListener

MidtierListener

Apache

JSP

Forms

Discoverer

ConcurrentManager

OC4J

OPMN

DBC File

EnviornmentFile 

Preferences

Profiles

PL/SQL,Log and Out Directory。

 

5. AD 公用程序及修补 (见此 [url]http://www.itpub.net/thread-1409697-1-1.html [/url] 

 

====================

详细介绍修补(Patching)过程及各类AD 公用程序,例如 adpatch, adctrl, adrelink,

adadmin,autoconfig,修补合并等。

 

6. 克隆 (见此 http://www.itpub.net/thread-1409699-1-1.html) 

 

=======

如何利用快速克隆(RapidClone)来克隆一个系统。

 

7. OAM 7/8 见此 http://www.itpub.net/thread-1411289-1-1.html ) 

=======

简单介绍 OAM的使用,例如检查以应用修补,自动配置,时限报告等。

 

8. 系统管理

===========

介绍系统管理员方面的一些内容。

 

-Function security,Responsibility,Data Group

- DataSecurity 

- User

-Profile Option

-Concurrent Manager

-Printer Setup

- ReportGeneration     

 

9.并行程序处理(Concurrent Progcessing)(见此 http://www.itpub.net/thread-1411293-1-1.html 

=======================================

介绍并行程序处理过程。如何维护,trace,及如何写各类并行程序(Concurrent Program), 

包括 用shell写,用c & pro*c Oracle report , PL/SQL ,及用java 写。 

 

10. Custom Application Integration (见此http://www.itpub.net/thread-1411345-1-1.html

 

==================================

介绍如何本身写一个客户化应用联入(integrate)到Oracle application。

 

11. 使用FNDCPASSFNDLOAD 1112 见此 [url]http://www.itpub.net/thread-1411347-1-1.html [/url]

 

================

介绍使用FNDCPASS来修改各类密码,FNDLOAD来download系统config。

 

12. 统计信息收集(Statistics Gathering

=======================================

介绍StatisticsGathering 在 Oracle Applications 中的使用。

 

13. 性能调整初步 (见此 [url]http://www.itpub.net/thread-1412437-1-1.html [/url]

================

从应用层(Forms,Apache,JVM等)及数据库各方面介绍性能调整的一些初步知识。

 

14. 11i R12的升级 (见此http://www.itpub.net/thread-1413083-1-1.html

 

=======================

介绍如何从11i升级到R12的基本步骤。

 

### END### 

 

基本上,我以为以上的内容应该包含了EBS DBA的基础知识,再进一步的内容,例如,

10gApplication Server 方面的结合 (SSO, OID, Portal 之类),或者,开发方面的内容,

OAF,Discoverer, Forms , Reports, XML Publisher, 又或者,近来比较流行的有关 Fusionware方面的,

SOA/BPEL、OBIEE方面的内容, 能够在掌握基础知识后,根据须要或兴趣再学。

 

我的以为,DBA也须要了解一些开发方面的东西,能作一些简单的prototype方面的东西,好比说,

用Forms、Reports 开发一个简单的东西,而后部署到 Oracle Applications 上去,又或者,用

OAF开发一个简单的JAVA 页面,而后一样部署到 Oracle Applications 上去。程序不须要很

复杂,但只要你作过一次,就会有必定的印象。之后再作EBSDBA 有关的内容, 会帮助你理解。

 

另外,还有一个内容,我以为也须要掌握但这里没怎么涉及的,就是有关Functional Foundation

方面的内容。这方面包括Application Object Library (例如上面提到的

ConcurrentProcessing, Security,Responsibility, data group , 各类 FND_ 表 等等),也包括

业务方面的各类模块,好比说,最多见的财务模块,咱们能够了解什么是chart of accounts, 

应收模块、应付模块和固定资产模块是什么,整个General Ledger的基本流程 

(openperiod, create journal, journal posting, revaluation, consolidation ,closeperiod 等等),

以及相应的各类GL_表 , interface 接口等等。一样,这要看各人的环境,是用财务,人事,

仍是制造系统诸如此类。不过,留意的东西是同样,包括主要的Entity 内容, 关键的业务流程,

及对应的表。

 

这些可能对DBA的工做关系不是那么直接,但我以为懂一些,对工做会有帮助,会帮助DBA与其余部门的沟通,

也帮助你理解整个OracleApplications, 由于全部软件要作的,就是为了实现这些业务功能。了解了这些,

就会以为OracleApplications 虽然复杂,但你起码有一个从技术到业务的总的印象。

 

OracleApplications 做为一个ERP软件,要包含的内容,自己已至关复杂,再由于历史的缘由,

不一样年代的各类各样的开发软件都汇聚在一块儿,因此现今的Oracle Applications 会显得很是复杂,

( 准备推出的Fusionware Applications 由于用 Java 重写的关系,可能会简洁些),

不一样的开发软件,不一样的版本,各类各样的bug,致使 EBS DBA会碰到的问题,也是千奇百怪。

 

不过我以为在掌握以上各章内容的基础上,再利用metalink的 search 功能,(只要你不

立刻使用最新版本,那么通常你遇到的问题,别人可能已经碰过了),处理通常的EBSDBA的工做,

应该问题不大。

 

因为水平有限,时间(打字太辛苦)的缘由,因此各章的内容均可能比较简短,不会有详细的描述。

只是一些简单的记录。

 

另外,若是有时间,我也准备整理我的近期比较感兴趣的SOAComposite 应用方面的内容,

包括如何安装配置 SOA 11g ,如何开发、部署一个SOA Composite 应用,

涉及如何使用BPEL, Mediator, 及 File Adapter,database Adapter, JMS Adapter 开发一个简单的

应用,如何使用 Human Workflow, 如何使用 BusinessRule,DecisionTable  等内容。






2.系统概要及安装

2014913

20:35

1. R12系统概要

=============

OracleApplications R12的系统技术架构:

 

R12基本上是一个 n-tier 的应用系统,包括桌面系统,应用层,以及后台数据库。

但由于历史的缘由,不一样年代的各类各样的开发软件都汇聚在一块儿,

因此现今的Oracle Applications R12 会显得比较复杂。

 

用户桌面系统:Web Browser . 旧版本可能还须要使用Oracle的JVM ( Jinitiator),

但较新的版本用Sun的JDK 就能够了。由于 系统有两种界面, HTML 及 FORM 。

HTML界面是咱们熟悉的 Internet browse 体验。 FORM 界面是传统的OLTP 用户输入体验。

 

应用层:除了通常这类应用会用到的HTTP 服务器 ( Apache的httpd), J2EE 

服务器 (Oracle 的10gAS )外,还有 Oracle专有的 Forms 及 Reports ( 这只是

传统的 4GLForm 应用以及报表应用工具 )。 除外,还有通常 ERP 或大型软件应用都有

的 BatchJob Scheduler,叫 Concurrent Manager。

 

后台数据库:单一个 Oracle 数据库, 不一样的Module 对应 不一样的 schema。应用经过

一个公用的特殊的 schema ( apps) 来 使用数据。

 

 

OracleApplications R12的业务系统架构:

R12是一个庞大的ERP应用,除了咱们一般碰到的财务,人事,CRM, 制造 外, 还有各类各样

其余模块 如order management, lease management, project 等等。是一个end-to-end 的解决方案。

R12 支持多语种,多币种,多国家。

不一样的模块 经过shared entity 联系。 

 

具体,更多的内容可参考如下,一开此,可能以为太多东西了,不要紧,可粗看一遍,

之后回头再看。

 

参考资料:

1.《Oracle Applications Concepts》

http://download.oracle.com/docs/... acrobat/120oacg.pdf

 

2.《Oracle EBS R12: Install, Patch and Maintain Applications 》之

OracleApplications Overview。

 

3.《ORACLE EBS 系统架构与应用实践》:

http://www.itpub.net/viewthread.php?tid=1225163

 

4. 《11iE-Business Suite Essentials for Implementers - 4098726》之

ArchitectureOverview。

 

 

 

 

2. R12安装

===================

 

OracleApplications 的安装过程并不复杂,只是一路Click下去。装一二次后,就会很

熟悉。固然,问题是,若是你只是懂安装,就会发觉装完后,不知拿来干什么。

 

安装前,可看一下如下的参考资料:

 

1.《Oracle Applications Installation Guide: Using Rapid Install 》

http://download.oracle.com/docs/... acrobat/120oaig.pdf

 

2.《Oracle EBS R12: Install, Patch and Maintain Applications 》之

Preparinginstallation,Performing installation and Finishing installation。

 

3.《R12安装手册Ver2for Linux32 生产环境》

http://www.itpub.net/viewthread.php?tid=1083836

 

4.Metalink 资料:

 

<958644.1>Interesting links around EBS installation

<402310.1>install 12.0.4 for 32-bit linux

<416305.1>install 12.0.4 for 64-bit linux

<452120.1>How to locate the log files and troubleshoot RapidWiz for R12

<828157.1>Useful Articles for the Oracle E-Business Suite Technology Stack

forTechnical Consultant/DBA

 

安装要点:

========

安装前计划:

 

R12并未有必定的安装目录规定,这里采用以下的安排:

======================================

1.single node 的安装:

/u01=> appl_top and common_top

/u02=> inst_top

/u03=> rdbms

/u04=> data

 

2. twonodes 的安装:

appnode: 

/u01=> appl_top and common_top

/u02=> inst_top

 

db node:

/u01=> rdbms

/u02=> data

 

 

安装前checklist

============================

### OS:

操做系统采用32 bit 的 Oracle Enterprise Release 4 update 4

在安装Linux 时,作以下选择:

X-windowinstalled

Dot notuse firewall. disable SELinux. 

LegacySoftware Development package 

and XSoftware Development package installed

 

### 如下的RPM comes with Linux installtion . 

compat-db-4.1.25-9

compat-gcc-32-3.2.3-47.3

compat-gcc-32-c++-3.2.3-47.3

compat-oracle-rhel4-1.0-5

compat-libcwait-2.0-2

compat-libgcc-296-2.96-132.7.2

compat-libstdc++-296-2.96-132.7.2

compat-libstdc++-33-3.2.3-47.3

xorg-x11-deprecated-libs-devel-6.8.1-23.EL

xorg-x11-deprecated-libs-6.8.1-23.EL

setarch-1.6-1

 

###Install these manually (#rpm -ivh <package> ) 

openmotif21-2.1.30-11.RHEL4.2

 

###Install Oracle patch p4198954: 

compat-oracle-rhel4-1.0-5.i386.rpm

compat-libcwait-2.1-1.i386.rpm

注意: needlibaio rpm before compat-oracle-rhel4-1.0-5.i386.rpm

 

### 总的rpm package checklist:

 

rpm -qglibc-2.3.4-2.25

rpm -qglibc-common-2.3.4-2.25

rpm -qbinutils-2.15.92.0.2-21

rpm -qcompat-libstdc++-296-2.96-132.7.2

rpm -qgcc-3.4.6-3.1

rpm -qgcc-c++-3.4.6-3.1

rpm -qlibgcc-3.4.6-3.1

rpm -qlibstdc++-3.4.6-3.1

rpm -qlibstdc++-devel-3.4.6-3.1

rpm -qlibaio-0.3.105-2

rpm -qlibaio-devel-0.3.105-2

rpm -qopenmotif21-2.1.30-11.RHEL4.2

rpm -qpdksh-5.2.14-30.3

rpm -qsetarch-1.6-1

rpm -qmake-3.80-6.EL4

rpm -qgnome-libs-1.4.1.2.90-44.2

rpm -qsysstat-5.0.5-11.rhel4                   

rpm -qcompat-db-4.1.25-9

rpm -qcontrol-center-2.8.0-12.rhel4.5

rpm -qxscreensaver-4.18-5.rhel4.12

##########################################

 

除了 rpm外, 其余一些设置:

 

/etc/hosts 

192.168.0.10mis.myerp.com mis

 

/etc/sysconfig/network 

HOSTNAME=mis.myerp.com

 

remove/etc/sysconfig/networking/profiles/default/network if there

 

/etc/security/limits.conf

* hardnofile 65535 

* softnofile 4096

 

/etc/sysctl.conf

kernel.sem= 250 32000 100 128

kernel.shmmax= 2147483648

kernel.shmmni= 4096

kernel.shmall= 4194304 

fs.file-max= 65536

net.ipv4.ip_local_port_range= 1024 65000

net.core.rmem_default= 262144

net.core.rmem_max= 262144

net.core.wmem_default= 262144

net.core.wmem_max= 262144

 

### 注意:

Oracle metalink note <301830.1> , <360216.1> &<461519.1> 有关于 "shmall" value

的描述, 若是set的 过小, 会出现 ORA-27102 。 一般 可设成 shmall=shmmax/pagesize 

(getconf PAGE_SIZE ) 。

 

###完成全部设置后,

ldconfig-v

reboot 

 

###create user oravis and applvis and group dba

###oravis 做为 db 用户, applvis 做为 app 用户。

 

### 在oravis 的 .bash_profile 中, 

exportLD_ASSUME_KERNEL=2.4.19

### 这来自安装 11i (Oracle 9i),不过,好像设了,在R12中也没问题。

 

### 注意用户oravis and applvis 须有对安装目录的 write permision 。

 

# chown-R applvis:dba /u01

# chown-R applvis:dba /u02

# chown-R oravis:dba /u03

# chown-R oravis:dba /u04

 

###R12的安装,并不涉及/etc 下。

ls -l/etc/ora*

 

 

### OS层面准备好后,准备安装的 stage 目录。

# 如下命令将软件DVD或下载包上的内容 整理到一个安装 stage 目录上。

adautostg.pl

 

 

安装过程

===========================================

以 root用户身份 运行 rapidwiz 命令 进行安装。 

./rapidwiz

 

rapidwiz的版本,可这样获得:

./RapidWizVersion

=>12.0.4.6

 

在rapidwiz 运行过程当中,选项考虑:

 

# 拒绝Oracle Connection Tools Agreement。

 

#database os user 是 oravis 。

 

# app 的base directory 是 /u01 , 能够 edit path 来设置。

 

#若是须要中文internationalization setting,可选择以下:

simplifiedchinese, china, utf8。

 

具体的rapidwiz安装过程,这里就不一一列明,可参考 reference中所列。

 

安装的logfile,包括db 及 app ,可在以下目录找到。

 

db:/u03/db/tech_st/10.2.0/appsutil/log/PROD_mis/08290919.log

 

app:/u02/inst/apps/PROD_mis/logs/08290919.log

 

文件名是安装当天的dateand time stamp。 app tier 的目录是在

INST_TOP中。 db tier 的目录是在 rdbms 安装目录上。

 

 

安装过程当中的配置选项都会记录在configuration text file 中,它们的路径以下:

 

db:       $ORACLE_HOME/appsutil/conf_PROD.txt

apps:        $INST_TOP/conf_PROD.txt

 

安装好后,login的 URL: 

http://mis.myerp.com:8000/OA_HTML/AppsLogin

 

 

Post 安装

====================================

 

由于 R12极为庞大,因此若是安装是为了我的测试,学习用的话,我一般会对配置作

一些调整,减小它的footprint。 固然, 若是你是在公司的环境下安装的话,你固然会

作相反方向的考虑。

 

DB方面的调整:

 

1.reduce the size of sga:

setdb_cache_size=200m ; shared_pool_size=300m

setsga_target=0 to disable M000 to avoid MMON_SLAVE activities like this:

 

SQL>select program,event, module,action from v$session where sid =355;

 

PROGRAM                                    EVENT

------------------------------------------------------------

MODULE                  ACTION

---------------------------------------------------------

oracle@mis.myerp.com (m000)                  db file sequentialread

MMON_SLAVE               Auto-DBFUS Action

##############################

 

2.reduce the copy of control file and online redo log file such as:

alterdatabase drop logfile member '/u04/db/apps_st/data/log01b.dbf';

 

3.disable all those default scheduler jobs. 

###refer metalink <755838.1> for "new 11g default jobs" .

 

execdbms_scheduler.disable('AUTO_SPACE_ADVISOR_JOB');

execdbms_scheduler.disable('PURGE_LOG');

select'exec dbms_scheduler.disable('''||job_name||''');' 

fromall_scheduler_jobs where state !='DISABLED'

 

execdbms_scheduler.disable('AUTO_SPACE_ADVISOR_PROG', force=>true);

 

 

APP方面的调整:

 

1.reduce the xmx parameter for jvms in the context file .

(xmx=xms=64m, MaxPermSize=64m)

 

afjsmargis related to Output post processor log file when running an XML PublisherReport.

 

2.disable fulfillment service in the context file. 

 

3.disable unnecessary concurrent managers. 

(concurrent: manager => define => workshifts => processes )

 

修改完context file 后, 运行 如下的AUTOCONFIG 命令:

$ADMIN_SCRIPTS_HOME/adautocfg.sh

 

4. 减小OAM Dashboard Collection Interval 。

( by default 10 mins, OAM => Dashoard => Setup => Update  

 

5.schedule the following cleanup request:

"purgeconcurrent request and/or Manager data", parameters could be:

mode :age

modevalue: 7 ( days) 

 

 

========================================== 

NLS/MLS支持 (Install new language)

 

参考资料:

<550206.1>- Oracle Applications NLS Release Notes, Release 12.0.4).

<788053.1>- Oracle Applications NLS Release Notes, Release 12.1.1).

<189708.1 > Oracle Reports 6i Setup Guide for Oracle Applications 11i

 

不一样的 R12版本须要不一样的 NLS patch,对应的patch number 以下:

12.0.4NLS Patch: 6394500  

12.1.1NLS Patch: 6678700  

 

如下是一些SQLquery 检查系统装了不一样语言的状况:

 

selectLANGUAGE, DESCRIPTION,SOURCE_LANG from fnd_menus_tl where MENU_ID =67504;

selectmenu_name from fnd_menus where MENU_ID =67504;

selectMENU_NAME, DESCRIPTION from fnd_menus_vl where  MENU_ID =67504;

selectnls_language from fnd_languages where installed_flag in ('B' ,'I');

 

一样,咱们也能够在app filesystem 上看到:

ls -l$AP_TOP/reports/

ls -l$GL_TOP/forms

 

具体的 安装步骤大体以下:

 

1) OAM=> workflow => sitemap => license manager => languages 

 

2)adadmin => Maintain Multi-lingual Tables

 

3) Apply12.0.4 NLS patch (6394500)

 

4)修改如下文件:

vi/u01/apps/tech_st/10.1.2/guicommon/tk/admin/Tk2Motif.rgb

vi/u01/apps/tech_st/10.1.2/guicommon/tk/admin/ZHS/Tk2Motif.rgb

 

=======

!Tk2Motif*fontMapCs:iso8859-2=EE8ISO8859P2

Tk2Motif*fontMapCs:iso8859-1=UTF8

=======

 

(optional的步骤):

5) Runthe Translation Synchronization Patch (TSP)  utility (adgennls.pl)

6) ApplyTranslation Synchronization Patch for all languages you requested

7)Install the Release 12 NLS Help

 

更新snapshot的步骤:

 

运行adadmin ,而后:

=》2.   Maintain Applications Files menu

=》4.   Maintain snapshot information

=>2.    current view snapshot => Update Complete APPL_TOP

 

 

================ 

 

两节点安装步骤:

==============

 

按照以上说的file system 安排,

db node:

/u01=> rdbms

/u02=> data

appnode: 

/u01=> appl_top and common_top

/u02=> inst_top

 

 

安装首先在 dbnode 上进行,类此 single node 的安装,注意 configuration file的

位置,

===

Configurationfile written to: /u01/db/tech_st/10.2.0/appsutil/conf_PROD.txt

Databaselogfile - /u01/db/tech_st/10.2.0/appsutil/log/PROD_mis1/11211747.log

===

 

安装完成后,可修改以下config 以保证 app tier 能 connect 上 db node。

vi$ORACLE_HOME/network/admin/PROD_mis1/sqlnet.ora 

(tcp.validnode_checking=no)

 

检查 dbnode 和 app node 能 ping each other,而后 copy db node 安装的

configurationfile 到 app node 上 安装。

scp/u01/db/tech_st/10.2.0/appsutil/conf_PROD.txt applvis@mis2:/tmp

 

appsnode 上的安装:

一样类此single node 的安装,惟一不一样的是:

root => rapidwiz => load config (/tmp/conf_PROD.txt)

 

 

============================= 

Uninstall11i 的步骤:

 

这是之前uninstal做参考。

1.shutdown all the processes

2.delete oraInst.loc & oraInventory 

3.delete APPL_TOP & ORACLE_BASE

4.delete config.txt







3.系统架构及基本系统管理知识

2014913

20:37

3.系统架构介绍

==============

 

参考资料:

 

1.Oracle Applications Concepts

http://download.oracle.com/docs/... acrobat/120oacg.pdf

 

2.Oracle Applications Maintenance Procedures

http://download.oracle.com/docs/... robat/r12adproc.pdf

 

3.《OracleEBS R12: Install, Patch and Maintain Applications 》之

ApplicationsComponents,Environment Files/control scripts/languages,

ApplicationsFilesystems ,Applications Database。

 

4.<828157.1> Useful Articles for the Oracle E-Business Suite TechnologyStack 

forTechnical Consultant/DBA

 

--------

 

Oracleapplications 的架构是 multi-tier 的。不一样层有不一样的 components 以下:

在DesktopTier 上既有 典型的HTML界面又有传统的 FORMS 界面 。FORMS界面经过

Formsclient Applet (Java client Applet的一种)与 应用服务器联系,下载 有关的

JARfile。原来的11i 须要 Oracle 专用的JVM, 叫 Jinitiator。 R12 中只须要标准的 J2SE plugin JVM。

 

 

对应地,在Application Tier,既有web 服务器,J2EE 服务器,也有传统的 FORMS/Reports 服务器。

固然,还有batch job 用的 Concurrent Manager。

 

针对HTML-Based的应用, Oracle 开发 Oracle Applications Framework (OAF)。OAF 包括以下

component:

- AOLJava (AOL/J)

-Business Components for Java (BC4J)

- JavaController

-Metadata UI Definition

- UIXHTML Generator         

 

OAF 采用J2EE 的 MVC (Model- View - Controller) 的 design pattern。 因此若是你用过

J2EE MVC开发,应该不难理解。比通常的 MVC 开发稍微复杂一点的是 HTML 页面的生成是由

存在数据库里面的metadata dictionary 控制。

 

R12还有大量的 FORMS 界面,因此 在服务器上也有 Forms Services。Forms Services 由

Formslistener Servlet (java servlet 的一种, 响应 Forms client applet 的请求) 及

Formsruntime 构成。

 

ConcurrentManager: 负责处理 batch job, 好比复杂的报表,涉及大量更新的处理等。用户

在前台提交请求( concurrent request),请求会写到 数据库的表上去,而后,Concurrent Manager 就会读表,一个

一个的进行处理。

 

Concurrent request的 log 或 output file 会 经过       Report Review Agent $FND_TOP/bin/FNDFS

送到 FORMSServices,再有 FORMS Services 传给 用户的 browser。

ReportReview Agent的详细内容可参看 :

《TheBasics About Report Review Agent (FNDFS) on 11i (Doc ID 111383.1)》。

 

DatabaseTier:

 

R12 有 以下三个 Oracle HOME:

1. RDBMS ORACLE_HOME: 这是 后台数据库用的。

2.10.1.2 ORACLE_HOME : 又叫作Tools, C, or Developer ORACLE_HOME。 至关于 11i 里 的

8.0.6ORACLE_HOME。 主要是给 FORMS 及 REPORTS 用的。

3. 10.1.3 ORACLE_HOME :又叫作 Web or Java ORACLE_HOME,  至关于 11i iASORACLE_HOME

主要是给webserver (Apache) 及 JAVA (OC4J )用的。

 

R12有各类各样的 应用模块,例如,Finance, HR, CRM, Manufacturing 等,针对一些公用的功能,

Oracle开发了 Oracle Applications Technology Layer。

 

OracleApplications Technology Layer 包含的功能有:

1.Oracle Applications DBA (AD): 就是一些安装,维护用的工具, 包括:

ADAdministration (adadmin)

AD MergePatch

AutoConfig

AutoPatch(adpatch)

RapidClone 

RapidInstall (rapidwiz)

 

2.Oracle Application Object Library (FND) 

security(responsibility, data group etc), profile option,

concurrentprocessing

flexfield        

       

3.Oracle Applications Utilities (AU): 维护 整个 Applications 用的,

例如 FORMS的源文件 等等。

4.Oracle Applications Framework (OAF): 就是咱们上面提到的OAF 开发平台。

5.Oracle Workflow (WF): Oracle的 工做流 工具。

6.Oracle Alert (ALR)

7.Oracle XML Publisher (XDO): 开发报表用的,强项是 data 跟 layout 分开。

8.Oracle Applications Manager (OAM): 系统管理用的。

 

===========================================

EnvironmentFiles

 

R12的环境很是复杂,目录众多,因此Oracle 准备了不少 Environment Files。

 

上面提到的三个Oracle HOME ,每个 都有各自的 Environment File,另外,

APPL_TOP也有本身的Environment File。

它们分别是: (<CONTEXT_NAME> is <SID>_<hostname> ) 

 

${RDBMSOracle HOME}/<CONTEXT_NAME>.env

${10.1.2Oracle HOME}/<CONTEXT_NAME>.env

${IASOracle HOME}/<CONTEXT_NAME>.env

$APPL_TOP/<CONTEXT_NAME>.env

 

除此之外,AppsTier 还有一个总的Environment File。

$APPL_TOP/APPS<CONTEXT_NAME>.env

 

KeyParameters in <CONTEXT_NAME>.env:

APPL_TOP:

ADMIN_SCRIPTS_HOME:

GWYUID:

FND_TOP

AU_TOP:

<product>_TOP

PATH

APPLCSF: 

APPLLOG

APPLOUT:

APPLTMP: Temporary Files 的位置

APPLPTMP: PL/SQL output 的位置

INST_TOP

 

还有一些变量 定义在其余文件,但引用在 <CONTEXT_NAME>.env 里,例如

$APPL_TOP/admin/adovars.env, 它包含有:

JAVA_TOP: all java files 

OA_JRE_TOP: jre location

OAH_TOP: HTML files location

LD_LIBRARY_PATH

CLASSPATH

 

另外,还有一些Environment file, 例如 adconfig.txt,fndenv.env ,

devenv.env,但不经常使用。

 

有了正确的Environment file 后, Oracle 提供 Application Tier Server 

ControlScripts 给 咱们 start/stop/status app tier 的 各个

components。全部的scripts 都在 ADMIN_SCRIPT_HOME 目录上。

 

经常使用的有

cd$ADMIN_SCRIPTS_HOME (  $INST_TOP/admin/scripts ) 

adstrtal.sh

adstpall.sh

adautocfg.sh

adalnctl.sh

adapcctl.sh

adcmctl.sh

adopmnctl.sh

 

这些Environment Files 都是由 Oracle 的 Autoconfig 自动管理。

 

OracleApplications 能够支持 NLS 和 MLS。 NLS 指 支持某一种语言,好比中文;

MLS指在一个安装中同时支持几种语言,好比一家公司同一个安装下,既有中国分公司,也有

美国分公司,因此须要同时支持中文和英文。

 

要支持非英语的语言或同时支持几种语言,就要考虑Character Sets 的问题。

 

除了在数据库层要考虑合适的CharacterSets外, 还要考虑 database tier,

applicationtier, 和 desktop tier 三者的 Character Sets 要一致。好比,

若是在 dbtier 选了 UTF8,那么 application tier 和 desktop tier 也要 UTF8。

 

除了语言支持外,Oracle Applications 还有Country-specific Functionalities 以达到

Globalizations的目的。这在 rapid install 时选择。

 

 

============================================================

OracleApplication file systems

 

了解了Environment Files 和 start/stop control scripts 后,咱们能够进一步了解

OracleApplications 的 file systems。

 

先看DatabaseTier , File System 没什么特别,最简单的就是一个file system装software binary, 

一个 filesystem 装 data。像下面这样:

/u03/db/tech_st/10.2.0

/u04/db/apps_st/data/

       

在ApplicationTier File System 上, 就主要有

APPL_TOP, COMMON_TOP, TOOLS Oracle HOME,IAS Oracle HOME 和 INST_TOP.

 

APPL_TOP:               /u01/apps/apps_st/appl

COMMON_TOP:               /u01/apps/apps_st/comn

TOOLS OracleHome:        /u01/apps/tech_st/10.1.2

IASOracle HOme:        /u01/apps/tech_st/10.1.3

INST_TOP:               /u02/inst/apps/PROD_mis

 

在APPL_TOP 目录下, 每个 product 有各自的 Product Directories。 例如 

gl,ad,fnd等等。

 

在每个Product Directory 下,有着相同的 目录结构。

 

[applvis@misappl]$ ls $APPL_TOP/gl/12.0.0

 

admin  forms  html  lib  mds   mesg  patch    sql

bin   help  java  log  media  out   reports

 

$APPL_TOP/admin主要有 给 AD utilities 用的 各类文件。其余须要注意的direcrory 

还有:

ADDirectory: $APPL_TOP/ad, adadmin/adpatch/adconfig.sh etc.

AUDirectory:  $APPL_TOP/au

CommonComponents Directory :                        $COMMON_TOP

ApplicationsTechnology Stack Directory :         Tools and IAS OracleHOME.

DatabaseDirectories:                                rdbms Oracle Home .$ORACLE_HOME/appsutil etc.

 

 

有关Applications 的配置参数,Oracle 都放在一个 Applications Context File 上。

$INST_TOP/appl/admin/<SID>_<HOSTNAME>.xml. 这也是AUTOCONFIG 的设计。

 

 

=============================================================

Oracledatabase tier

 

最后,咱们看R12的后台数据库。

 

OracleApplications 充分使用 Oracle 数据库提供的各类数据类型:

selectobject_type, count(*) from dba_objects 

whereowner not like '%SYS%' group by object_type order by 1;

OBJECT_TYPE          COUNT(*)

-----------------------------

CLUSTER                    1

DATABASELINK               60

EVALUATIONCONTEXT          30

FUNCTION                  109

INDEX                  56080

INDEXPARTITION           5128

INDEXSUBPARTITION        3266

INDEXTYPE                  2

JAVACLASS                968

JAVARESOURCE                9

JAVASOURCE                 2

JOB                        2

LIBRARY                   18

LOB                     2086

LOBPARTITION              326

LOBSUBPARTITION           752

MATERIALIZEDVIEW          768

OPERATOR                   7

PACKAGE                 53673

PACKAGEBODY             52528

PROCEDURE                 285

QUEUE                    264

RULE                      21

RULESET                   87

SEQUENCE                11659

SYNONYM                 78416

TABLE                  33005

TABLEPARTITION           3106

TABLESUBPARTITION        1586

TRIGGER                  6630

TYPE                    4240

TYPEBODY                 119

VIEW                   34631

XMLSCHEMA                 91

 

可看到既有数据,也有各类code ,JAVA,PL/SQL,Trigger 等。还有hybrid的

如MATERIALIZEDVIEW。

 

R12 支持Multiple Languages,有关的translated data 放在 translation table (_TL)

中。

 

全部的product都各自有本身的Product Schema 放数据 object 例如tables , 

indexes,sequences。 全部的 code object 例如 triggers ,views, pl/sql, synonyms

等都集中在一个统一的 schema 叫 APPS 上。 应用经过 这个 schema来 access data。

 

数据库上 R12并无用到什么特别的 Database Features.

 

DatabaseTier 有关的 Server Process Scripts 可在如下目录找到:

<RDBMSORACLE_HOME>/appsutil/scripts/<CONTEXT_NAME>

 

除了以上的基本配置外,其余一些稍微复杂的配置考虑:

1. Loadbalancing ,这主要有如下两方面:

- Network 层面 - 主要采用 hardware load balancer ,象 F5 这样的系统,外置在oracle app

server外,而后二者结合 。最简单有效的就是,一个 hardware load balancer 的web 入口,

而后指到几个不一样的 EBS app server 上。

-Concurrent processing 及database 层面 - 采用 Parallel Concurrent Processing (PCP)

和 OracleRAC 的技术。

 

具体,可参考Using Load-Balancers with Oracle E-Business Suite Release 12 (Doc ID 380489.1)。

 

2.Failover

在这方面,R12比11i 有进步, 每个 app server 的安装都是同样的,因此app server 之间

services能够 互相 failover。 例如,一开此,系统以下运行:

appserver 1:Web, Forms.

appserver 2: Concurrent Processing

 

假如 appserver 1 停了,你能够将 Web,Forms 的服务 在 app server 2 上启动。

appserver 1: 

appserver 2: Web, Forms, Concurrent Processing 

 

R12 还提供shared app tier file system 的安装,因此两台机器间的failover 比较方便。

具体,可参考 

SharingThe Application Tier File System in Oracle E-Business Suite Release 12 (Doc ID384248.1)

 

 

==================================================================

4:基本系统管理知识

 

结合上面提到的系统架构的基本知识,这里总结R12系统的基本管理知识,就是如何作咱们最关心的

最基本的start/stop/status。

 

1.database 方面:

如上述,DatabaseTier 有关的 Server Process Scripts 可在如下目录找到:

<RDBMS ORACLE_HOME>/appsutil/scripts/<CONTEXT_NAME>。主要有:

 

addbctl.sh: start/stop db

addlnctl.sh:start/stop/status listener

adautocfg.sh:autoconfigscript for db tier

 

与后台数据库相关的network config 文件在 $ORACLE_HOME/network/admin/<CONTEXT_NAME>.

例如listener.ora,tnsnames.ora 之类。

 

另外,应用层也有 listener。对应的

tnsnames.oraand listener.ora file 在 $INST_TOP/ora/10.1.2/network/admin。

应用层的listener主要是给 Concurrent Manager 用的,包括以下两个program:

FNDFS:Report Review Agent  

FNDSM:Service Manager

 

对应的listener script 是: $ADMIN_SCRIPTS_HOME/adalnctl.sh

一般的command也可应用,例如 tnsping, lsnrctl 等:

LSNRCTL>set current_listener APPS_PROD

 

2.Enviornment File 

通常的管理支持须要熟悉上面提到的Enviornment File 。一般咱们会分别source 在

db user和 app tier user。例如:

 

[applvis@mis~]$ cat .bash_profile

 

# Userspecific environment and startup programs

 

PATH=$PATH:$HOME/bin

./u01/appl/APPSVIS_mis.env

exportPATH

unsetUSERNAME

########

 

3.Apache

R12的webserver - Apache 的control script 在 $ADMIN_SCRIPTS_HOME : 

adapcctl.shstatus apps/apps

 

主要的配置文件在:

       $IAS_ORACLE_HOME/Apache/Apache/conf

       

一些有用的URL:

        http://mis.myerp.com:8000/OA_HTML/jtflogin.jsp

       

        http://mis.myerp.com:8000/OA_JAV... gistry/Registry.dat

检查 JSP用的 URL:

        http://mis.myerp.com:8000/OA_HTML/jsp/fnd/fndping.jsp

检查 Forms用的,直接login FORMS:

        http://mis.myerp.com:8000/forms/frmservlet

 

Forms的有关文件在 $FORMS_PATH 。

Reports的有关文件在 $REPORTS_PATH

 

ConcurrentManager的control script 在 $ADMIN_SCRIPTS_HOME : 

       adcmctl.sh status  apps/apps

 

OC4J/OPMN的control script 在 $ADMIN_SCRIPTS_HOME : 

       adopmnctl.sh status apps/apps

       adoacorectl.sh status apps/apps

       adformsctl.sh status apps/apps

       adoafmctl.sh status apps/apps

 

基本上,applicationstier 的全部 control script 都在$ADMIN_SCRIPTS_HOME。

格式 也一致,就是 start/stop/status.

       

DBCFile:

dbc(Database Connectivity)file 是给 applications tier 链接 database用的。它的

位置在:$FND_SECURE。若是该目录下有多个.dbc file,profile option value 

"ApplicationsDatabase ID" 决定用哪一个。

 

以下的命令可测试.dbc file 是否正确: 

javaoracle.apps.fnd.security.AdminAppServer apps/apps statusDBC=$INST_TOP/appl/fnd/12.0.0/secure/PROD.dbc

 

PL/SQL,Log and Out direcotry:

R12一般用到的log file, temp file, 或者 output file 均可以在以下地方找到:

       $APPLTMP

       $APPLPTMP 

       utl_file_dir

       $LOG_HOME

       fnd_log_messages

 

================================

 

Reference:

<387208.1>:        Fusion Middleware Reports "ABC" HealthCheck

<113428.1>:        CONCURRENT C and PRO*C PROGRAM TUTORIAL

<342500.1>:        Quick Start: Designing, Testing, and DeployingOracle Reports with 10G Middleware







4.AD工具和patching

2014913

20:38

参考资料:

 

1.Oracle Applications Maintenance Procedures

http://download.oracle.com/docs/... robat/r12adproc.pdf

 

2.Oracle Applications Maintenance Utilities

http://download.oracle.com/docs/... robat/r12adutil.pdf

 

3.Oracle Applications Patching Procedures

http://download.oracle.com/docs/... oa_patching_r12.pdf

 

4.《OracleEBS R12: Install, Patch and Maintain Applications 》之

"UseOracle Applications AD Utilities"

"GenerateApplications Files Tasks"

"MaintainApplications Files Tasks"

"MaintainDatabase Entities Tasks"

"Compile/ReloadDatabase Entities Tasks"

"Non-interactiveand Maintenance mode"

"SpecialUtilities"

"AutoConfig"

"LicenseManager"

"ReportingUtilities"

"ConfigurationUtilities"

"Patchingand the AutoPatch Process"

"PatchWizard"

"RunningAutoPatch"

"OAMTiming Reports"

"OtherPatching Topics"

"AppliedPatches Information"

 

ADUtilities: 

与其余大型的应用软件同样,R12也须要不停的patch,upgrade,整个应用系统也会

有各类各样的问题须要作各类维护。

 

因此Oracle为此提供了 一套AD Utilities。 

 

全部的AD工具都至关类此,有着相同的操做界面,过程,参数输入方式,report格式。

 

ADutilities的Configuration file 在 $APPL_TOP/admin

lsadconfig.txt applprod.txt 

 

还有就是前面提到的Environment Files 在 $APPL_TOP, APPSVIS_mis.env.

 

ADUtilities 主要包括这些:

ADAdministration (adadmin) :执行各类维护动做。

AutoPatch(adpatch) : patching

ADController (adctrl) :处理patching/adadmin 过程当中的worker,manager 问题。

ADRelink (adrelink) :relink R12的文件。

AD MergePatch (admrgpch) : 将几个 patch merge 到一块儿 供adpatch 一块儿patch

ADSplicer (adsplice) :register new product

File Character Set Converter (adncnv) 转换characterset

ADConfiguration (adutconf.sql) : report R12 的 configuration。

AD FileIdentification (adident) : report file version。

        例如:adident Header $FND_TOP/bin/FNDFS

AD JobTiming Report (adtimrpt.sql) 

 

除了以上这些基于commandline的工具外, 还有一些 Web-based 的 Utilities, 是在

OracleApplications Manager (OAM) 上使用的。

 

AutoConfig:根据context file 来配置R12。经过OAM 修改context file,

而后用adautocfg.sh 来take effect。

LicenseManager: 

PatchWizard:用OAM 检查还需apply 什么patch。

AppliedPatches:用OAM 检查已经applied 了什么patch。

 

 

ADUtilities 命令执行可能须要各类参数,格式以下:

        adpatch options=nocopyportionnogenerateportion

另外,也有flags,例如:

adpatchflags=hidepw

 

adpatch和 adadmin 均可以使用 Parallel Processing 来加快。 这时候

adpatch 和 adadmin 就成为 Managers, 而后生成若干个  Workers 进程

(adworker)。相应的信息在FND_INSTALL_PROCESSES 中。

 

由于目的是Parallelprocessing, adworker 的数目显然要吻合系统的CPU ,

Memory能力, Oracle的推荐最大值是 CPU 数目 +2 。

具体可参考

How toTroubleshoot "adpatch" Performance Issues: Slow, Hanging or Crashes(Doc ID 756063.1)

 

若是APPL_TOP是shared filesystem,那么还能够考虑 Distributed AD。就是在不一样的

node上同时运行 adpatch 或 adadmin 的 job。

 

Log Files 主要在  $APPL_TOP/admin/<SID>/log

 

WorkerLog Files 在 $APPL_TOP/admin/<SID>/log/adwork<number>.log

 

AD工具通常均可以restart, 例如adpatch、adadmin, 它们的Restart Files 就在

$APPL_TOP/admin/<SID>/restart

 

作adpatch时 R12系统 须要 经过 adadmin 进入 Maintenance Mode。

 

MaintenanceMode 关闭掉 the Workflow Business Events System 。

每当 R12中的 seed data 改变的时候,Workflow Business Events System

会生成Javacache invalidation message, 影响FNDLOAD的性能,

因此关掉CacheInvalidation Workflow 就会提升patching 时候的性能。

 

当系统在MaintenanceMode时而你又想运行 OAM 的timing report 来查看progress,

那么可使用Restricted Mode access logon。

 

下面主要都是讲用adadmin 有关的一些维护R12应用文件系统的内容。主要就是下面

4 方面的内容:

 

- Filegeneration tasks        

 

- Filesystem maintenance tasks

 

-Database maintenance tasks

 

-Database entities compilation and reloading tasks

 

下面列出相关的menu:

==========================

ADAdministration Main Menu

  1.    Generate Applications Files menu

  2.    Maintain Applications Files menu

  3.    Compile/Reload Applications Database Entities menu

  4.    Maintain Applications Database Entities menu

  5.    Change Maintenance Mode

  6.    Exit AD Administration

 

GenerateApplications Files Tasks

     Generate Applications Files

  ----------------------------------------

  1.    Generate message files

  2.    Generate form files

  3.    Generate report files

  4.    Generate product JAR files

  5.    Return to Main Menu

 

 

MaintainApplications Files Tasks

     Maintain Applications Files

  ----------------------------------------

  1.    Relink Applications programs

  2.    Copy files to destinations

  3.    Convert character set

  4.    Maintain snapshot information

  5.    Check for missing files

  6.    Return to Main Menu

 

 

MaintainDatabase Entities Tasks

       Maintain Applications Database Entities

  ---------------------------------------------------

  1.    Validate APPS schema

  2.    Re-create grants and synonyms for APPS schema

  3.    Maintain multi-lingual tables

  4.    Check DUAL table

  5.    Return to Main Menu

 

 

Compile/ReloadDatabase Entities Tasks

       Compile/Reload Applications Database Entities

  ---------------------------------------------------

  1.    Compile APPS schema

  2.    Compile menu information

  3.    Compile flexfields

  4.    Reload JAR files to database

  5.    Return to Main Menu

 

adadmin还能够在 Non-Interactive mode 下运行。另外,也用它来

启动Maintenance Mode。

 

除了adadmin 外, AD 还有一些 Special Utilities。包括 adctrl 及

adrelink等。

 

ADController (adctrl) 查看FND_INSTALL_PROCESSES,它的功能以下:

 

               AD Controller Menu

   ---------------------------------------------------

    1.    Show worker status

    2.    Tell worker to restart a failed job

    3.    Tell worker to quit

    4.    Tell manager that a worker failed its job

    5.    Tell manager that a worker acknowledges quit

    6.    Restart a worker on the current machine

    7.    Exit

 

还有一个(hidden)option 8 能够 skip the worker job(s)。

 

AD工具中有一个至关重要的,就是 AutoConfig。

 

R12将全部的配置参数集中在 context file 中, app tier 一个context file,

db tier一个 context file。例如,若是用户要修改Apache中的Maxclients 参数,不是直接修改

httpd.conf,而是用OAM 修改 app tier 的 context file

($INST_TOP/appl/admin/<Context_Name>.xml ) 固然, 你也能够直接vi 不过,

Oracle建议用OAM ),

而后再经过AutoConfig 工具按照template file 修改生成一个新版本的httpd.conf。

 

每个参数文件都有templatefile,好比, httpd.conf 的template file 就在

$FND_TOP/admin/template/httpd_conf_1013.tmp

 

除了生成参数文件外,autoconfig还会负责生成

profileoption values 的SQL script 及 services startup and shutdown script。

 

App tier的 AutoConfig的命令在 $ADMIN_SCRIPTS_HOME/adautocfg.sh

DB tier 的 AutoConfig的命令在 $ORACLE_HOME/appsutil/scripts/VIS_mis/adautocfg.sh

 

运行的过程基本就是shutdown 应用,运行adautocfg.sh,startup 应用。

 

AutoConfigLog Files 分别在 $INST_TOP/admin/log ( app tier) ,$ORACLE_HOME/appsutil/<CONTEXT_NAME>

(db tier).

 

AutoConfig会自动生成Rolling Back script。

AutoConfig也能够run in Test Mode。相关命令是 (app tier ):

       <AD_TOP>/bin/adchkcfg.sh

 

 

AD 工具中的License Manager 主要包括以下功能:

 

登记 theE-Business Suite

登记component applications

登记individual products

登记country-specific functionalities

登记languages

       

 

AD 工具中的 Reporting Utilities:  这个工具就是一个SQLfile,在

$AD_TOP/sql/adutconf.sql, 生成一个 adutconf.lst 文件。输出内容包括:

 

-SQL*Plus PAUSE and NEWPAGE settings

-Rollback segment information

-Information about the product group

-Whether Multi-Org is configured

- Listof operating units

- Listof registered products

-Information on all registered schemas

-Information about all registered products, including shared and dependentproducts

- Statusof localization modules

- Thebase language and other installed languages

- NLSinit.ora settings

 

 

上面讲了adadmin,adautoconfig等工具, 下面就是AD 工具中差很少最重要的内容:patching

及其工具adpatch。

 

Patch有如下几种 Patch Types:

-----------

Bug fix:        就是 fix 现有问题。

New feature:        增长新功能。

Interoperability:        主要是不一样版本间兼容,例如数据库是10g 要升到11g 就要一个

               Interoperability patch

Diagnostic        收集信息以肯定问题所在。

Translation        多语言用的

Performance:        解决性能问题的

Documentation:        有关 OracleApplications Online Help. 

 

Patch有以下的 Terminology:

-----------------

Patch:       <patch number>

ProductFamily Release Update Pack: R12.<prod>.A,R12.<prod>.B

               Patches for EBS 12.0 will showan 'A' (e.g. "8414069.R12.AR.A")

               Patches for EBS 12.1 will showa 'B' (e.g. "8414069.R12.AR.B")

               How to Determine if a Patch isfor R12.0 or 12.1 (Note 837731.1)

ReleaseUpdate Pack:        12.0.1, 12.0.2

 

每一个Patch有着以下的Components:

----------------

       Readme files 

       Patch driver files

       Replacement files

        Patch Metadata files list offiles in patch etc

PatchDriver Files 负责以下的功能:

       Copies replacement files 

       Performs database updates

       Generates files

 

AutoPatch的具体 Operations 以下:

-Prompts for required information。

-Unloads patch metadata and verifies prerequisite patches 。

-Uploads patch history information to the database (if needed)

- Readsand validates the patch driver file

- Readsproduct file driver files

-Extracts object modules from the product libraries to compare version numbers

-Compares the version numbers of the existing files against the files in thepatch (version checking)

- Backsup any existing files that will be changed

- Copiesfiles

-Archives files into libraries

-Relinks executables

-Generates Java archive (JAR) files as required

-Compiles JSP files

-Updates database objects

-Compiles invalid database objects

-Generates forms, reports, and message files

- RunsAutoConfig if any template files are introduced or updated by the patch

- Savespatch history information to the database

 

 

当Applying a Patch 的时候:

- Readsthe patch driver files under PATCH_TOP. 

-Verifies that the on-site file with the same name and location is an olderversion than the patch file. 

- Beforereplacing a file, makes a back up in a subdirectory of the patch directory.

- Copiesthe new file from PATCH_TOP to the product directory. 

- If thepatch is a C object module, relinks dependent Oracle Applications executableswith the Oracle server.

-Performs database updates specified in the database driver. The checkfilefeature ensures database tasks are not repeated.

- If youare applying a generate driver, it generates forms, reports, and/or messagefiles.

Recordsactions in the Applied Patches database.

 

有关的Patchlog file 在:

$APPL_TOP/admin/<SID>/log/adpatch.log,adpatch.lgi: 

 

adpatch的执行并无什么特别的地方,照提示作就是了。基本步骤就是:

-shutdown system

- enablemaintenance mode

-prerequisite tasks as said in readme

- runadpatch

- posttasks as requested in the readme file。

-disable maintenance mode

- startsystem

 

有关的logfile

在$APPL_TOP/admin/<SID>/log/adpatch.log

 

OAM 有详细的patch 的 Timing Reports。也能够跟踪 patch的进度。

-------- 

 

其余Patching Topics 有兴趣的有:

adpatch能够在运行时加option, 例如 adpatch options=nocompiledb

另外,patch也能够 Merge 再 apply,例如:

admrgpch-s <source directory> \ -d <destination directory> \ -merge_name<name> -manifest <filename>

        

OAM 上 有详细的 Applied Patches Information。

 

下面是查找patch的信息一些方法:

 

sqlplusapps/apps @$AD_TOP/sql/adutconf.sql

 

colAPPLICATION_NAME for a35

colAPPLICATION_SHORT_NAME for a10

colPATCH_LEVEL for a15                

 

SELECTapp.application_short_name, app.application_name, pi.patch_level

FROMfnd_product_installations pi, fnd_application_vl app

WHEREapp.application_id = pi.application_id

 

selectdistinct patch_name from applsys.ad_applied_patches;

 

 

###R12.0.4 (6435000 or 6272680) ,ref: <416708.1>

selectcreation_date,bug_number from ad_bugs 

wherebug_number in ('6435000','6272680')

 

###R12.0.6 ( patch 6728000 or patch 7237006) ref : <787209.1>

 

selectbug_number from apps.ad_bugs where bug_number in 

('6145693');

 

selectpatch_level from fnd_product_installations;

 

selectt.application_name 

fromapplsys.fnd_application a , applsys.fnd_application_tl t

wherea.application_id = t.application_id and t.language='US'

anda.application_short_name = 'FND';

 

selecta.application_short_name, t.application_name 

fromapplsys.fnd_application a , applsys.fnd_application_tl t

wherea.application_id = t.application_id and t.language='US'

andupper(t.application_name) like '%HUMAN%'

 

UsingOAM:

site map=> monitoring => system configuraion => overview => "productinstalled" 

 

usingpatchesets.sh for family pack 11i.HR_PF.I info: 

metalinknote <139684.1>

 

 

11i 有关Patch 的 Naming Conventions

 

"ProductFamilies"   Groups of applications modules that are functionallyrelated.  

Forexample, Accounts Payable, Accounts Receivable, and Chart of Accounts 

aremembers of the Financials product family. 

 

"EmergencyPatch"  A patch containing a fix for a specific bug for 

aspecific product.  For example, Order Management might release 

patch3968068 to fix a very tightly-defined bug.  

Someemergency patches are released to fix a cluster of interrelated bugs.

 

"ProductMini-Pack"  A collection of bug fixes for a specificapplications module.  

Forexample, fixes for XML Publisher would be released in an XML Publisher 

mini-packcalled 11i.XDO.H.

 

"ProductFamily Patchset"   A collection of product mini-packs for aspecific, 

individualproduct family.  

Forexample, fixes for Payroll, Benefits, and Training Administration 

would bereleased together in a Human Resources Suite Product Family Patchset 

called11i.HR_PF.K.  

Newfeatures are not supposed to be included in product family patchsets, 

but ithappens. 

 

"RecommendedPatch List"  A list of individual patches for a specificproduct 

familythat you should have applied.  These lists might includerecommended 

emergencypatches as well as product mini-packs.  

If aproduct family recommends a patch via these lists, it's usually a very 

goodidea to heed that.

 

"MaintenancePacks"   A comprehensive collection of all of the latestproduct 

familypatchsets and new features.  For example, the 11.5.10.2 MaintenancePack 

includesproduct family patchsets for Financials, Procurement, HR, Supply Chain, 

andeverything else in the E-Business Suite.

 

"ConsolidatedUpdates"   A large collection of all of the latestrecommended 

patchlists, including new features.  

Releasedafter a maintenance pack, such as the Consolidated Update for 11.5.10.

 

"TechnologyStack Updates"  Any combination of patchsets or mini-packs 

thatchange the underlying services that product families depend upon.  

Forexample,  the latest Applications Technology Family Pack is releasedin 

11i.ATG_PF.H.







5.cloning

2014913

20:39

参考资料:

 

1.Oracle Applications Concepts

http://download.oracle.com/docs/... acrobat/120oacg.pdf

 

2.Metalink notes

<406982.1>:Cloning Oracle Applications Release 12 with Rapid Clone

<603104.1>:Troubleshooting RapidClone issues with Oracle Applications R12

 

3.《OracleEBS R12: Install, Patch and Maintain Applications 》之

cloningand Advanced cloning options

 

OracleApplications 采用Rapid Clone 的方法来clone system,其功能在于前面所说

的AUTOCONFIG 功能, 因此 Rapid Clone 的方法 就变得很简单, 基本就是 file copy

而后运行AUTOCONFIG。

 

具体例子以下:

 

 

Section1: 准备工做:

----------------------------

1.Verify OS requirements on target system

2.Verify source and target system software components and versions

3. Applythe latest AD patch (R12.AD.A.DELTA.4) or higher

4. Applythe latest AutoConfig template patch

5. Applythe latest Rapid Clone patches

 

R12.0:for 12.0.2 or higher, 6145693 superceded by 7164226

R12.1 :no rapidclone patch

 

6. RunAutoConfig on the application tiers 

(387859.1 Using AutoConfig to Manage System Configurations in Oracle E-BusinessSuite Release 12)

7.Synchronize appsutil on the database tier nodes

8. RunAutoConfig on the database tier

 

9.Maintain snapshot information

  MaintainApplications Files => Maintain snapshot information => Update currentview snapshot 

=>Update Complete APPL_TOP

 

Section2: Cloning 任务 

-------------------------

1.Prepare the source system

----------------------------

cd $ORACLE_HOME/appsutil/scripts/PROD_mis/

perladpreclone.pl dbTier 

 

cd$INST_TOP/admin/scripts

perladpreclone.pl appsTier

 

 

2. Copythe source system to the target system

-----------------------------------------------

cp -RH

 

a. Copythe application tier file system

#<APPL_TOP>

#<COMMON_TOP>

#Applications Technology Stack:

 

   * <OracleAS Tools ORACLE_HOME>

   * <OracleAS Web IAS_ORACLE_HOME>

 

b. Copythe database node file system

 

 

3.Configure the target system

------------------------------------

a.  Configurethe target system database server

 

cd$ORACLE_HOME/appsutil/clone/bin

[oravis@mis1bin]$ perl adcfgclone.pl dbTier

 

[oravis@mis1bin]$ perl adcfgclone.pl dbTier

 

                   Copyright (c) 2002 Oracle Corporation

                      Redwood Shores, California, USA

 

                      Oracle Applications Rapid Clone

 

                               Version 12.0.0

 

                    adcfgclone Version 120.20.12000000.11

 

Enterthe APPS password :

 

Running:

/u03/db/tech_st/10.2.0/appsutil/clone/bin/../jre/bin/java -Xmx600M -cp/u03/db/tech_st/10.2.0/appsutil/clone/jlib/java:/u03/db/tech_st/10.2.0/appsutil/clone/jlib/xmlparserv2.jar:/u03/db/tech_st/10.2.0/appsutil/clone/jlib/ojdbc14.jaroracle.apps.ad.context.CloneContext -e/u03/db/tech_st/10.2.0/appsutil/clone/bin/../context/db/CTXORIG.xml -validate-pairsfile /tmp/adpairsfile_4838.lst -stage/u03/db/tech_st/10.2.0/appsutil/clone  2>/tmp/adcfgclone_4838.err; echo $? > /tmp/adcfgclone_4838.res

 

Log filelocated at /u03/db/tech_st/10.2.0/appsutil/clone/bin/CloneContext_09091603.log

 

Providethe values required for creation of the new Database Context file.

 

TargetSystem Hostname (virtual or normal) [mis1] :

 

TargetInstance is RAC (y/n) [n] :

 

TargetSystem Database SID : PROD

 

TargetSystem Base Directory : /u03

 

TargetSystem utl_file_dir Directory List : /usr/tmp

 

Numberof DATA_TOP's on the Target System [1] :

 

TargetSystem DATA_TOP Directory 1 [/u04/db/apps_st/data] :

 

TargetSystem RDBMS ORACLE_HOME Directory [/u03/db/tech_st/10.2.0] :

 

Do youwant to preserve the Display [null] (y/n) ? :

 

TargetSystem Display [mis1:0.0] :

 

Do youwant the the target system to have the same port values as the source system(y/n) [y] ? :

 

###############

 

b.Configure the target system application tier server nodes

 

$ cd$COMMON_TOP/clone/bin

 

[applvis@mis1bin]$ pwd

/u01/apps/apps_st/comn/clone/bin

[applvis@mis1bin]$ perl adcfgclone.pl appsTier

 

                   Copyright (c) 2002 Oracle Corporation

                      Redwood Shores, California, USA

 

                      Oracle Applications Rapid Clone

 

                               Version 12.0.0

 

                    adcfgclone Version 120.20.12000000.11

 

Enterthe APPS password :

 

Running:

/u01/apps/apps_st/comn/clone/bin/../jre/bin/java-Xmx600M -cp/u01/apps/apps_st/comn/clone/jlib/java:/u01/apps/apps_st/comn/clone/jlib/xmlparserv2.jar:/u01/apps/apps_st/comn/clone/jlib/ojdbc14.jaroracle.apps.ad.context.CloneContext -e /u01/apps/apps_st/comn/clone/bin/../context/apps/CTXORIG.xml-validate -pairsfile /tmp/adpairsfile_5161.lst -stage/u01/apps/apps_st/comn/clone  2> /tmp/adcfgclone_5161.err; echo $?> /tmp/adcfgclone_5161.res

 

Log filelocated at /u01/apps/apps_st/comn/clone/bin/CloneContext_09092107.log

 

Providethe values required for creation of the new APPL_TOP Context file.

 

TargetSystem Hostname (virtual or normal) [mis1] :

 

TargetSystem Database SID : PROD

 

TargetSystem Database Server Node [mis1] :

 

TargetSystem Base Directory : /u01

 

TargetSystem Tools ORACLE_HOME Directory [/u01/apps/tech_st/10.1.2] :

 

TargetSystem Web ORACLE_HOME Directory [/u01/apps/tech_st/10.1.3] :

 

TargetSystem APPL_TOP Directory [/u01/apps/apps_st/appl] :

 

TargetSystem COMMON_TOP Directory [/u01/apps/apps_st/comn] :

 

TargetSystem Instance Home Directory [/u01/inst] : /u02/inst

 

TargetSystem Root Service [enabled] :

 

TargetSystem Web Entry Point Services [enabled] :

 

TargetSystem Web Application Services [enabled] :

 

TargetSystem Batch Processing Services [enabled] :

 

TargetSystem Other Services [disabled] :

 

Do youwant to preserve the Display [mis:0.0] (y/n) ? :n

 

...

 

Note:

RapidClone fails with RC-50004 error Rasing NoSuchMethodError java exception

 

checklogfile found DB listener not started up.

 

 

Section3: Finishing 任务

---------------------------

 

由于有些东西,rapidclone没有改, 因此 rapidclone 后,还要有些更改要本身作。

 

1.Update profile options

RapidClone updates only site level profile options. 

 

2.Update printer settings    

 

3.Update Workflow and other configuration settings

 

相关的表及column列示以下:

wf_notification_attributes        => text_value

wf_item_attribute_values        => text_value

wf_systems                       => GUID, NAME 

wf_agents                       => address

fnd_form_functions               =>web_host_name,web_agent_name

fnd_concurrent_reqeusts               => logfile_name,

fnd_concurrent_queues               => target_node

fnd_concurrent_queues_vl        => user_concurrent_queue_name

icx_parameters                       => session_cookie_domain, session_cookie_name

$APPLCSF

$COMMON_TOP/_pages/*

selectfnd_web_config.database_id from dual;

selectfnd_session_management.getsessioncookiename from dual;

 

selectpov.profile_option_id, po.profile_option_name, ptl.user_profile_option_name,pov.profile_option_value

fromfnd_profile_options po, fnd_profile_option_values pov, fnd_profile_options_tlptl

whereptl.profile_option_name=po.profile_option_name and po.profile_option_id

=pov.profile_option_id and po.profile_option_name in('APPS_SSO_LISTENER_TOKEN','APPS_DATABASE_ID');

 

 

selectpov.profile_option_id, po.profile_option_name, ptl.user_profile_option_name,pov.profile_option_value

fromfnd_profile_options po, fnd_profile_option_values pov, fnd_profile_options_tlptl

whereptl.profile_option_name=po.profile_option_name and po.profile_option_id 

=pov.profile_option_id and po.profile_option_name in('ECX_UTL_XSLT_DIR','ECX_UTL_LOG_DIR');

 

selectprofile_option_value ,profile_option_id 

fromfnd_profile_option_values

whereprofile_option_id =

(selectprofile_option_id from fnd_profile_options whereprofile_option_name='SITENAME');

 

相关的metalink11i doco 有:

<146705.1>SQL Display Apps Profile Options (Rel 11i) from SQL*Plus

<190158.1>How to Find Profiles with Certain Values or Names

 

 

Section4: Advanced cloning options

----------------------------------

相关文章
相关标签/搜索