Installation - ERP 實驗室

advertisement
世新大學 ERP 實驗室
Installation
講師:張裕松
世新大學 ERP 實驗室
Outline
•
•
•
•
•
Requirement
Before Installation
Single-node Installation
Finishing Installation
Performance Tuning
2/34
世新大學 ERP 實驗室
Outline
• Requirement
– Technology Stack Components
– System Requirement
– JDK
•
•
•
•
Before Installation
Single-node Installation
Finishing Installation
Performance Tuning
3/34
世新大學 ERP 實驗室
Technology Stack Components
•
•
•
Oracle8i Enterprise Edition (8.1.7.4)
8.0.6 Oracle Home 8.0.6.3
Oracle 9iAS (1.0.2.2.2) — includes Oracle HTTP
Server
• Oracle JInitiator for the PC client (1.1.8.16)
• Oracle Developer6i Patch 9, which includes:
– Oracle Forms (6.0.8.18)
– Oracle Reports (6.0.8.18)
– Oracle Graphics (6.0.8.18)
•
•
•
Oracle Java Server Pages (1.1.2)
Client libraries (Required Support Files) (8.0.6.3)
Java Database Connector (8.1.7.1b)
4/34
世新大學 ERP 實驗室
System Requirement
• CPU:
– the number of concurrent users and their usage profiles
– the number of concurrent manager processes and the types
of jobs that they are running
– the load on the node for activities other than Oracle
Applications
– the size of your database
– desired response time
– Because CPU speed on shared servers benefits all users,
use the fastest available processors on the forms node.
• You can expect to support approximately 70 users
per CPU
5/34
世新大學 ERP 實驗室
System Requirement
• Memory
–
–
–
–
Oracle database overhead
size of system global areas (SGA)
number of concurrent users
other software running on the database tier
• Use a guideline of 8 MB per user to estimate
the Applications requirements for the node
where you install the forms server
6/34
世新大學 ERP 實驗室
System Requirement
• Disk Space
– Vision Demonstration database requirements
• Sys:10.00GB
• Logs:0.02GB
• Data:13.50GB
• Index:12.00GB
– Application requirements
• Probably 20.00G
• Mount Point:
– Database: /oracle/u02
owner: oravis
– Application : /oracle/u01 owner: applvis
7/34
世新大學 ERP 實驗室
JDK
• This release of Oracle Applications requires
Java Development Kit (JDK) 1.3 or higher
Web Site for download JDK 1.3.1 :
• http://www.blackdown.org/
http://java.sun.com/
8/34
世新大學 ERP 實驗室
Outline
• Requirement
• Before Installation
–
–
–
–
Setup memory allocation parameter
Add Oracle user account
Run Rapid Install from a Stage Area
Start installation
• Single-node Installation
• Finishing Installation
• Performance Tuning
9/34
世新大學 ERP 實驗室
Setup memory allocation parameter
• If memory allocation is wrong, installation of
Oracle Apps may cause creating control file
problem
– 參數設定參考值:shmmax為實體記憶體的1/2
• echo 250 3200 128 128 > /proc/sys/kernel/sem
• echo 268435456 > /proc/sys/kernel/shmmax
– 建議加於 /etc/rc.local 於開機時啟動
• sem 各參數 (SEMMSL, SEMMNS, SEMOPM, SEMMNI)
10/34
世新大學 ERP 實驗室
Add Oracle User Account
• Create dba Group
– groupadd dba
• Add New Account and assign to group is dba
• Create Database Owner Account: oravis
• Create Applications Owner Account: applvis
– useradd –g dba oravis
– useradd –g dba applvis
• Modify install directory owner and privilege
– chown –R oravis:dba /oracle
– chown –R applvis:dba /oracle/u01
11/34
世新大學 ERP 實驗室
Run Rapid Install from a Stage Area
•
•
•
•
•
•
CDs label
To Directory
Start Here (red) CD - Disk 1 redCD/Disk1
1disk
APPL_TOP - Disk n
oraApps/Diskn 7disks
8i - Disk n
ora8i/Diskn
1disks
Tools - Disk n
oraiAS/Diskn
4disks
Databases - Disk n
oraAppDB/Diskn 10disks
12/34
世新大學 ERP 實驗室
Start installation
• UNIX:
– $ cd /Stage11i/redCD/Disk1/rapidwiz
– $ ./rapidwiz
• Windows:
– C:\>f:
– F:\>cd Stage11i\redCD\Disk1\rapidwiz
– F:\Stage11i\redCD\Disk1\rapidwiz> rapidwiz.cmd
13/34
世新大學 ERP 實驗室
Outline
• Requirement
• Before Installation
• Single-node Installation
– Setting Up a Single-node Installation
– What to Expect During the Installation
• Finishing Installation
• Performance Tuning
14/34
世新大學 ERP 實驗室
Setting Up a Single-node Installation
Step 1: Choose an installation operation
15/34
世新大學 ERP 實驗室
Setting Up a Single-node Installation
Step 2: Choose a configuration type
16/34
世新大學 ERP 實驗室
Setting Up a Single-node Installation
Step 3: Choose environment(s)
17/34
世新大學 ERP 實驗室
Setting Up a Single-node Installation
Step 4: Specify main settings information
18/34
世新大學 ERP 實驗室
Setting Up a Single-node Installation
Step 4: Specify main settings information
19/34
世新大學 ERP 實驗室
Setting Up a Single-node Installation
Step 5:Review the parameters for instance
20/34
世新大學 ERP 實驗室
Setting Up a Single-node Installation
Step 5:Review the parameters for instance
21/34
世新大學 ERP 實驗室
Setting Up a Single-node Installation
Step 6:Review instance settings information
vision demo character set
WE8ISO8859P1(英文) ->not modify
22/34
世新大學 ERP 實驗室
Setting Up a Single-node Installation
Step 7:Save the configuration file
If the installation process
terminates before completion,
You cam restart it by selecting
Read Configuration from File.
23/34
世新大學 ERP 實驗室
Setting Up a Single-node Installation
Step 8:Review pre-install test results
24/34
世新大學 ERP 實驗室
Setting Up a Single-node Installation
Step 8:Review pre-install test results
25/34
世新大學 ERP 實驗室
What to Expect During the Installation
• unzip source disk時會有 Unzip Failed: 的錯誤
訊息,若仍可安裝忽略之
• 系統在tmp目錄下會產生log檔,安裝時有錯誤
發生可查看log檔
• 一般來說只要安裝完DB部份通常系統應可順
利安裝完成
26/34
世新大學 ERP 實驗室
Outline
•
•
•
•
Requirement
Before Installation
Single-node Installation
Finishing Installation
– Setup environment parameters and scripts
– Shutdown Oracle Apps steps
– Start Oracle Apps steps
• Performance Tuning
27/34
世新大學 ERP 實驗室
Setup environment parameters and scripts
• Setup User environment (.profile)
• Setup Database and Applications
Owner’s .bash_profile(Red hat)
– DB User: /oracle/u02/visdb/8.1.7/VIS.env
– AP User: /oracle/u01/visappl/APPSORA.env
28/34
世新大學 ERP 實驗室
Shutdown Oracle Apps steps
• Step 1:Shutdown AP
– $ <COMN_TOP>/admin/scripts/<SID>/adstpall.sh
apps/apps
• Step 2:Shutdown DB
– $ sqlplus “/ as sysdba”
– sql> shutdown (immediate)
• Step 3:Shutdown Listener
– $ lsnrctl stop SID
29/34
世新大學 ERP 實驗室
Start Oracle Apps steps
• Step 1:Start DB
– $ sqlplus /nolog
– sql> connect / as sysdba
– sql> startupb
• Step 2:Start Listener
– $ lsnrctl start SID
• Step 3:Start AP
– $ <COMN_TOP>/admin/scripts/<SID>/adstrtal.sh
apps/apps
30/34
世新大學 ERP 實驗室
Outline
•
•
•
•
•
Prerequirement
Before Installation
Single-node Installation
Finishing Installation
Performance Tuning
– Database
– Applications
31/34
世新大學 ERP 實驗室
Database
• Data_block_buffer Setup
– Formula :
• Memory size*1024*1024*1024(byte)
/db_block(8192)*15~10%
– initSID.ora
• Process Setup
– Formula:
• 2 x User
– initSID.ora
32/34
世新大學 ERP 實驗室
Application
• Concurrent manager Setup
– Default :5
– Upgrade:15 or more
33/34
世新大學 ERP 實驗室
Reference document
• Application Document 11i
–
–
–
–
Install Oracle Applications
r1158ins.pdf
Oracle Applications Concepts r1158concepts.pdf
Maintaining Oracle Applications r1158adux.pdf
Oracle 8i Installation Guide
• From metalink:
– Oracle Applications Release Notes
– Installation Update Notes
• http://metalink.oracle.com
34/34
Download