您的位置:首页 > 数据库 > Oracle

oracle 10g 在HP-UX 的安装步骤

2009-12-10 22:19 721 查看
http://dev.kingdee.com/bbs/viewthread.php?tid=248

1、下载10gr2_database_hpi.zip安装包和unzip_hpx32.Z,
将unzip_hpx32.Z拷贝到/usr/bin
#uncompress unzip_ hpx32.Z
# chmod 751 unzip_ hpx32
#Unzip_hpx32 10gr2_database_hpi.zip 解开oracle安装包

2、硬件安装要求

内存至少1G, 用以下命令查看:
# /usr/contrib/bin/machinfo | grep -i Memory

交换空间至少2G,用以下命令查看:
# /usr/sbin/swapinfo –a

/tmp空间至少400m,用以下命令查看:
# bdf /tmp

查看操作系统是否是64位,必须是64位操作系统。
# /bin/getconf KERNEL_BITS

3、软件安装要求

查看操作系统版本,版本必须是11.23以上
# uname -a
HP-UX hostname B.11.23 ia64 109444686 unlimited-user  license

用以下命令查看是否安装如下补丁,PHSS_33279为补丁号
/usr/sbin/swlist -l patch | grep PHSS_33279

以下为安装oracle 10g需要安装的补丁列表:
For all installations on HP-UX 11i v2 (11.23), the following
patches are required:
– BUNDLE11i B.11.23.0409.3: Patch Bundle for HP-UX 11i
V2
Note: You must have the August 2004 version of
BUNDLE11i B.11.23.0408.1 for HP-UX 11i v2 on your
system prior to updating to the HP-UX 11i v2 September
2004 or later release.
PHCO 32426: Reboot(1M) cumulative patch
– PHKL 32646: wsio.h header file patch
– PHKL 32632: Message Signaled Interrupts (MSI and
MSI-X)
– PHKL 32645: SIO (IO) subsystem MSI/MSI-X/WC Patch
– PHKL 33552: VM Copy on write data corruption fix
– PHSS_31850: 11.23 assembler patch
– PHSS_31851: 11.23 Integrity Unwind Library
– PHSS_31854: 11.23 milli cumulative patch
– PHSS_31855: 11.23 aC++ Runtime (IA: A.05.60, PA
A.03.60)
– PHSS_33275: s700_800 11.23 linker + fdp cumulative patch
– PHSS_33276: 11.23 Math Library Cumulative Patch
■ For PL/SQL native compilation and installation of
Pro*C/C++, Oracle Call Interface, Oracle C++ Call Interface,
or Oracle XML Developer’s Kit (XDK) , the following patches
are required:
– PHSS_33278: aC++ Compiler
PHSS_33279: aC++ Compiler
– PHSS_33277: HP C Compiler
– PHSS_33279: HP C Compiler
■ For all installations, the following JDK patches are required:
– PHCO_31553: s700_800 11.23 pthread library cumulative
patch
– PHKL_31500: s700_800 11.23 sept04 base patch
– PHSS_32213: s700_800 11.23 aries cumulative patch
   

4、新建用户和组
# /usr/sbin/groupadd oinstall
# /usr/sbin/groupadd dba
# /usr/sbin/usermod -g oinstall -G dba oracle
# /usr/sbin/useradd -g oinstall -G dba oracle
修改oracle用户密码
# passwd oracle

5、修改操作系统内核参数

运行#sam     进入Kernel Konfigration修改内核参数

需要修改的参数如下:
ksi_alloc_max (nproc*8)
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)
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
semmni (nproc)
semmns (semmni*2)
semmnu (nproc-4)
semvmx 32767

shmmax The size of physical memory or 1073741824
(0X40000000), whichever is greater.
注意:基于性能考虑,此值必须大于或等于可用的物理内存

shmmni 512
shmseg 120
vps_ceiling 64

6、新建文件夹并对文件夹赋权

# mkdir -p /oracle

# chown -R oracle:oinstall /oracle

# chmod -R 775 /oracle

# mkdir -p /oradata

# chown -R oracle:oinstall /oradata

# chmod -R 775 /oradata

复制代码
7、配置profile文件

su  - oracle

vi .profile

ORACLE_BASE=/oradata; export ORACLE_BASE

ORACLE_HOME=/oracle/product/oracle10g; export ORACLE_HOME

ORACLE_SID=orcl; export ORACLE_SID

PATH=$ORACLE_HOME/bin:$PATH; export PATH

umask 022

复制代码
8、安装
#su – oracle
$DISPLAY=IP地址:0.0
假如你通过xmanager安装,IP为你电脑的IP。假如在服务器上安装,IP则为服务器IP.
$export DISPLAY
切换到oracle 安装包路径,运行命令
$./runInstaller
就可以运行oracle安装向导了,按默认选项安装即可,安装后记得必须运行
orainstRoot.sh和root.sh两个脚本
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息