《Oracle Applications DBA 基础》 1-2 系统概要及安装

来源:互联网 发布:清华大学软件学院考研 编辑:程序博客网 时间:2024/05/27 21:50

《Oracle Applications DBA 基础》 1-2 系统概要及安装

1. R12 系统概要
=============
Oracle Applications 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 ( 这只是
传统的 4GL Form 应用以及报表应用工具 )。 除外, 还有一般 ERP 或大型软件应用都有
的 Batch Job Scheduler,叫 Concurrent Manager。

后台数据库: 单一个 Oracle 数据库, 不同的Module 对应 不同的 schema。应用通过
一个 公用的特殊的 schema ( apps) 来 使用数据。


Oracle Applications 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 》之
Oracle Applications Overview。

3.《ORACLE EBS 系统架构与应用实践》:
http://www.itpub.net/viewthread.php?tid=1225163

4. 《11i E-Business Suite Essentials for Implementers - 4098726》之
Architecture Overview。




2. R12 安装
===================

Oracle Applications 的安装过程并不复杂,只是一路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 》之
Preparing installation,Performing installation and Finishing installation。

3.《R12安装手册Ver2 for 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
for Technical Consultant/DBA

安装要点:
========
安装前计划:

R12并未有一定的安装目录规定, 这里采用如下的安排:
======================================
1. single node 的安装:
/u01 => appl_top and common_top
/u02 => inst_top
/u03 => rdbms
/u04 => data

2. two nodes 的安装:
app node:
/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-window installed
Dot not use firewall. disable SELinux.
Legacy Software Development package
and X Software 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
注意: need libaio rpm before compat-oracle-rhel4-1.0-5.i386.rpm

### 总的 rpm package checklist:

rpm -q glibc-2.3.4-2.25
rpm -q glibc-common-2.3.4-2.25
rpm -q binutils-2.15.92.0.2-21
rpm -q compat-libstdc++-296-2.96-132.7.2
rpm -q gcc-3.4.6-3.1
rpm -q gcc-c++-3.4.6-3.1
rpm -q libgcc-3.4.6-3.1
rpm -q libstdc++-3.4.6-3.1
rpm -q libstdc++-devel-3.4.6-3.1
rpm -q libaio-0.3.105-2
rpm -q libaio-devel-0.3.105-2
rpm -q openmotif21-2.1.30-11.RHEL4.2
rpm -q pdksh-5.2.14-30.3
rpm -q setarch-1.6-1
rpm -q make-3.80-6.EL4
rpm -q gnome-libs-1.4.1.2.90-44.2
rpm -q sysstat-5.0.5-11.rhel4                    
rpm -q compat-db-4.1.25-9
rpm -q control-center-2.8.0-12.rhel4.5
rpm -q xscreensaver-4.18-5.rhel4.12
##########################################

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

/etc/hosts
192.168.0.10 mis.myerp.com mis

/etc/sysconfig/network
HOSTNAME= mis.myerp.com

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

/etc/security/limits.conf
* hard nofile 65535
* soft nofile 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 中,
export LD_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,可选择如下:
simplified chinese, 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

文件名是安装当天的date and 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:
set db_cache_size=200m ; shared_pool_size=300m
set sga_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 sequential read
MMON_SLAVE                Auto-DBFUS Action
##############################

2. reduce the copy of control file and online redo log file such as:
alter database 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" .

exec dbms_scheduler.disable('AUTO_SPACE_ADVISOR_JOB');
exec dbms_scheduler.disable('PURGE_LOG');
select 'exec dbms_scheduler.disable('''||job_name||''');'
from all_scheduler_jobs where state !='DISABLED'

exec dbms_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)

afjsmarg is related to Output post processor log file when running an XML Publisher Report.

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:
"purge concurrent request and/or Manager data", parameters could be:
mode : age
mode value: 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.4 NLS Patch: 6394500  
12.1.1 NLS Patch: 6678700  

以下是一些SQL query 检查系统装了不同语言的情况:

select LANGUAGE, DESCRIPTION,SOURCE_LANG from fnd_menus_tl where MENU_ID =67504;
select menu_name from fnd_menus where MENU_ID =67504;
select MENU_NAME, DESCRIPTION from fnd_menus_vl where  MENU_ID =67504;
select nls_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) Apply 12.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) Run the Translation Synchronization Patch (TSP)  utility (adgennls.pl)
6) Apply Translation 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
app node:
/u01 => appl_top and common_top
/u02 => inst_top


安装首先在 db node 上进行,类此 single node 的安装,注意 configuration file的
位置,
===
Configuration file written to: /u01/db/tech_st/10.2.0/appsutil/conf_PROD.txt
Database logfile - /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)

检查 db node 和 app node 能 ping each other,然后 copy db node 安装的
configuration file 到 app node 上 安装。
scp /u01/db/tech_st/10.2.0/appsutil/conf_PROD.txt applvis@mis2:/tmp

apps node 上的安装:
同样类此 single node 的安装,唯一不同的是:
root => rapidwiz => load config (/tmp/conf_PROD.txt)。


=============================
Uninstall 11i 的步骤:

这是以前uninstal作参考。
1. shutdown all the processes
2. delete oraInst.loc & oraInventory
3. delete APPL_TOP & ORACLE_BASE
4. delete config.txt

原创粉丝点击