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

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

相關文章
相關標籤/搜索