一、对硬件和操作系统的基本要求:
物理内存:256M以上    
换页空间:两倍内存或至少400MB以上    
/tmp空间大小:400MB以上  或者设置TMPDIR或TEMP环境变量
操作系统:HP-UX 11.0 64bit  Oracle只支持64位操作系统
看是否64位:$/bin/getconf KERNEL_BITS
看操作系统信息:$ uname -a
64位操作系统的Patches        状态
        
[code]Dec 2000 patch bundle        Required
PHCO_23092        Required
PHCO_23770        Required
PHCO_23919 Required for Oracle Real Application Clusters and Oracle Parallel Fail Safe        Required
PHKL_23226        Required
PHNE_23249 Note: refer to the special installation instructions to install any additional       required patches.        Required
PHSS_23377 until July 200l. Patch PHSS_23377 is an interim patch. It is available until July 2001 at the following FTP site:        ftp://hprc.external.hp.com/        (192.170.19.51) log in as jag42757, password winding5. This patch will be supeseded by general release patch PHSS_23440, which is available at the HP individual patch site at the end of June, 2001.        Required
hyperfabric driver: 11.00.12 (HP-UX 11.0)        Required only if your system has an older                                                                                                  hyperfabric driver version[/code]
可选的Patch:对运行在超过16颗CPU的主机上的DSS应用,我们建议安装
[code]       HP-UX patch PHKL_22266。This patch addresses performance issues with the HP-UX Operating System. HP provides patch bundles at: 
      http://www.software.hp.com/SUPPORT_PLUS
      HP provides individual patches at: 
      http://itresourcecenter.hp.com
To determine which operating system patches are installed, enter the following command: 
      $ /usr/sbin/swlist -l patch
To determine if a specific operating system patch has been installed, enter the following command: 
      $ /usr/sbin/swlist -l patch patch_number
To determine which operating system bundles are installed, enter the following command: 
      $ /usr/sbin/swlist -l bundle
      JRE: Oracle applications use JRE 1.1.8. 
      JDK: Oracle HTTP Server Powered by Apache uses JDK 1.2.2.05. 
Important Pre-installation step: 
Due to a known HP bug (Doc.id. KBRC00003627), the default HP-UX 64 operating system installation does not create a few required X-library symbolic links. These links must be created manually before starting Oracle9i installation. To create these links, you must have superuser privileges, as the links are to be created in the /usr/lib directory. After enabling superuser privileges, run the following commands to create the required links: 
      $  cd /usr/lib 
      $  ln -s  /usr/lib/libX11.3 libX11.sl 
      $  ln -s  /usr/lib/libXIE.2 libXIE.sl 
      $  ln -s  /usr/lib/libXext.3 libXext.sl 
      $  ln -s  /usr/lib/libXhp11.3 libXhp11.sl 
      $  ln -s  /usr/lib/libXi.3 libXi.sl 
      $  ln -s  /usr/lib/libXm.4 libXm.sl 
      $  ln -s  /usr/lib/libXp.2 libXp.sl 
      $  ln -s  /usr/lib/libXt.3 libXt.sl 
      $  ln -s  /usr/lib/libXtst.2 libXtst.sl[/code]
检查X-Window是否可用:  $ xclock
确认:make, ar, cc, ld, and nm executables must be present in the /usr/ccs/bin directory。
二、调整Kernel核心参数的大小:用sam界面
核心参数        最小值        目的
                
[code]KSI_ALLOC_MAX        (NPROC *         
MAXDSIZ        1073741824 bytes        
MAXDSIZ_64        2147483648 bytes        
MAXSSIZ        134217728 bytes        
MAXSSIZ_64BIT        1073741824        
MAXSWAPCHUNKS        (available memory)/2        6144
MAXUPRC        (NPROC + 2)        
MSGMAP        (NPROC + 2)        
MSGMNI        NPROC        
MSGSEG        (NPROC * 4)        
MSGTQL        NPROC        
NCALLOUT        (NPROC + 16)        
NCSIZE        ((8 * NPROC + 204 +                        VX_NCSIZE)        VX_NCSIZE is by default 1024.
NFILE        (15 * NPROC + 204         
NFLOCKS        NPROC        
NINODE        (8 * NPROC + 204         
NKTHREAD        (((NPROC * 7) / 4) + 16)        
NPROC        4096  Defines the maximum number of processes.太大,800就很大了
SEMMAP        ((NPROC * 2) + 2)        
SEMMNI        (NPROC * 2)        
SEMMNS        (NPROC * 2) * 2        The default value of SEMMNS is 128, which is, in most cases, too low for Oracle9i software.
SEMMNU        (NPROC - 4)        Defines the number of semaphore undo structures.
SEMVMX        32768        
SHMMAX        Available physical memory        Defines the maximum allowable size of one shared memory segment.                                                         The SHMMAX setting should be large enough to hold the entire SGA in one                                                        shared memory segment. A low setting can cause creation of multiple shared                                                        memory segments which may lead to performance degradation.
SHMMNI        512        
SHMSEG        32        
VPS_CEILING        64        
                
Note: These are minimum kernel requirements for Oracle9i.[/code]
三、执行预安装步骤
看OS的软限制:
[code]# ulimit -Sa[/code]
看系统的硬限制:
[code]# ulimit -Ha[/code]
如果要安装并行服务器RAC,则需要安装MC/ServiceGuard 11.09 OPS Edition。
如果要安装Apache,则需要JDK 1.2.2.07. Refer to the Hewlett-Packard company support websites for OS patches for JDK 1.1.8.05.
如果要安装Pro*C/C++,则需要HP ANSI C compiler release A.11.01.20 or later、Gcc 2.9-hppa-000310、HP C++ A.03.27
下面是root用户执行的操作:
建组dba(对应OSDBA,还可以建oper,对应OSOPER,oper组可选);
建组oinstall,如果不安装多个数据库,则可以共用dba组;
建用户oracle,其主组为oinstall,从组dba。
可以为Apache单独建立一个用户,其主组为oinstall,从组可以是apache,从组最好只有Apache用户,应该用root启动Apache。
设置环境变量:.profile
[code]DISPLAY=安装工作站主机名/ip:0.0; export DISPLAY
PATH=$ORACLE_HOME/bin:/usr/ccs/bin:/usr/bin:/etc:/usr/bin/X11:/usr/local/bin;export PATH
ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data;export ORA_NLS33
ORACLE_BASE=/oracle;export ORACLE_BASE
ORACLE_HOME=$ORACLE_HOME/oracle;export ORACLE_HOME
ORACLE_SID=pbs; ;export ORACLE_SID
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/ccs/lib:/usr/lib; ;export LD_LIBRARY_PATH
SHLIB_PATH=//在安装脚本中会自动重置此变量,安装时不需要指定此值[/code]
四、安装过程
1、查找光盘驱动器设备:
[code]# ioscan -fun -C disk[/code]
2、修改文件/etc/pfs_fstab,加入或修改一行
[code]/dev/dsk/c4t2d0  /SD_CDROM  pfs-rrip xlat=unix 1 0[/code]
3、执行光盘挂接
[code]# mkdir SD_CDROM
# nohup /usr/sbin/pfs_mountd &
# nohup /usr/sbin/pfsd &
# /usr/sbin/pfs_mount /SD_CDROM
$ /SD_CDROM/runInstaller[/code]
执行安装完成后,要用root执行root.sh
$ netca  可以启动网络的配置向导
$ $ORACLE_HOMR/bin/dbca  可以启动数据库建库向导
                  	
				
