You are on page 1of 8

Step-By-Step Installation of 10g on HP-UX

1
一 . Installation Checklist
1.Network
 LOGIN as root
 # ifconfig –a
 #ping hostname // to verify network

2.RAM Memory allocation:

 # grep "Physical:" /var/adm/syslog/syslog.log


 note: >1024MB RAM size

3.Swap Space:
 # /usr/sbin/swapinfo -a
 node: >1GB swap size

4.Check /tmp Disk Space:


 # bdf /tmp
 note: >512MB

5.Check file System can store large files. (>5Gb)

 # bdf
 note: > 5GB
6.Check system architecture:
 # /bin/getconf KERNEL_BITS
 note: 64 bits kernel

7.Check required software:


 # uname –a //決定作業系統版本
 #swlist –l level |more //level is bundle,product or fileset
 #swlist –l patch|more // o check patch information,請利用附件 verify

8.Tuning Kernel Parameters for Oracle


 # sam
Parameter Recommended Formula or Value

ksi_alloc_max (nproc*8)

2
executable_stack 0

max_thread_proc 1024

maxdsiz 1073741824 (1 GB)

maxdsiz_64bit 2147483648 (2 GB)

maxssiz 134217728 (128 MB)

maxssiz_64bit 1073741824 (1 GB)

maxswapchunks 16384

maxuprc ((nproc*9)/10)

msgmap (msgtql+2)

msgmni (nproc)

msgseg 32767

msgtql (nproc)

ncsize (ninode+1024)

nfile (15*nproc+2048)

nflocks (nproc)

ninode (8*nproc+2048)

nkthread (((nproc*7)/4)+16)

nproc 4096

semmap (semmni+2)

semmni (nproc)

semmns (semmni*2)

semmnu (nproc-4)

semvmx 32767

shmmax The size of physical memory or 1073741824 (0X40000000),

whichever is greater.

 #sync;sync;reboot // reboot the system

3
二 .Pre-installation Tasks
1.Create user group
 # groupadd –g 600 oinstall // create oinstall group
 # groupadd –g 602 dba // create dba group
 #groupadd –g 603 oper // create oper group

2.Create oracle & nobody User


 #useradd –g oinstall –G dba,oper –u 600 –d /home/oracle –s /bin/ksh // create oracle
user
 #passwd oracle // modify oracle user password
 #id nobody // 若user不存在,請執行下面步驟
 #useradd nobody
 #useradd extjob // for extjob user

2.Modify oracle user profile


 #su – oracle
 $ vi .profile
 .profile Example:

if [ -s "$MAIL" ] # This is at Shell startup. In normal


then echo "$MAILMSG" # operation, the Shell checks
fi # periodically.

ORACLE_BASE=/oracle ; export ORACLE_BASE


ORACLE_HOME=$ORACLE_BASE/product/10.1.0/db ; export ORACLE_HOME
ORA_CRS_HOME=$ORACLE_BASE/product/10.1.0/crs ; export ORA_CRS_HOME
ORACLE_SID=dms1; export ORACLE_SID
ORACLE_DOC=$ORACLE_HOME/doc; export ORACLE_DOC
ORACLE_TERM=vt100 ; export ORACLE_TERM
NLS_LANG=AMERICAN_AMERICA.AL32UTF8 ; export NLS_LANG
TNS_ADMIN=$ORACLE_HOME/network/admin ; export TNS_ADMIN
ORA_NLS10=$ORACLE_HOME/nls/data ; export ORA_NLS10
#=============================================================================
# For 10g LD_LIBRARY_PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib32:$ORACLE_HOME/lib:/usr/lib ; export LD_LIBRARY
_PATH

4
#=============================================================================
PATH=$ORACLE_HOME/bin:$ORA_CRS_HOME/bin:/bin:/usr/bin:/usr/ccs/bin:/etc:/usr/sbi
n:/usr/ucb:$HOME/bin:/usr/bin/X11:$PATH:.:/usr/local/bin; export PATH
TMPDIR=/tmp ; export TMPDIR
DISPLAY=127.0.0.1:0.0; export DISPLAY
LIBPATH=$ORACLE_HOME/lib ; export LIBPATH

3.Create oracle base & home directory


 # mkdir –p $ORACLE_HOME // create oracle home directory
 #chown –R oracle:oinstall $ORACLE_BASE // change ownership
 #chmod –R 775 $ORACLE_BASE // change permission mode

5
三 .installation Tasks

1. Copying software to hard disk 及解壓縮


 #mount /orasource
 使用 PC 端 FTP 軟體將 Oracle 軟體送至伺服器端,目錄為 orasource
 $ cd /orasource
 $mkdir db
 $mv filename.gz db
 $cd db
 $gunzip filename.gz
 $cpio –icmd < filename.cpio

2. Enable Xserver
 # xhost +
 #su – oracle
 $export DISPLAY=xwindows server ip:0.0
 $xclock // verify xclock 是否可顯示

3. 安裝
 $cd /orasource/db/Disk1
 $./runInstaller
 Follow 客戶需求表,回答畫面問題,執行安裝
 $netca // 若安裝軟體無執行時,請手動執行

6
四 .DATABASE Creation
1. dbca create database
 $dbca
 Follow 客戶需求表,回答畫面問題,執行資料庫建置
 Note: scripts 及 html file 需保存

7
五 .資料庫驗證
 請按照附件資料庫驗證程序驗證