Oracle10g 在AIX 5.3上的安装

今天无事,在单位的测试机上,安装了一下Oracle10g

环境:AIX 5.3 ML06 ,数据库版本 : Oracle 10g for AIX 5L 64bit

简单记录了一下安装过程:

   检查硬件配置
   检查内存:
   # lsattr -El sys0 -a realmem
   realmem 2097152 Amount of usable physical memory in Kbytes False
   检查交换空间
   # lsps -a
   Page Space      Physical Volume   Volume Group    Size %Used Active  Auto  Type
   hd6             hdisk0            rootvg         512MB     1   yes   yes    lv
   检查临时文件目录(至少应有400M空闲空间)
   df -k /tmp
   Filesystem    1024-blocks      Free %Used    Iused %Iused Mounted on
   /dev/hd3            65536     63984    3%       16     1% /tmp  
   检查操作系统位数
   # getconf HARDWARE_BITMODE
   64
   检查操作系统版本号
   # oslevel -r
   5300-06
   检查安装的软件包:
   # lslpp -l bos.adt.base bos.adt.lib bos.adt.libm bos.perf.perfstat bos.perf.libperfstat bos.perf.proctools bos.adt.prof bos.cifs_fs.rte
  Fileset                      Level  State      Description        
  ----------------------------------------------------------------------------
Path: /usr/lib/objrepos
  bos.adt.base              5.3.0.60  COMMITTED  Base Application Development
                                                 Toolkit
  bos.adt.lib               5.3.0.60  COMMITTED  Base Application Development
                                                 Libraries
  bos.adt.libm              5.3.0.60  COMMITTED  Base Application Development
                                                 Math Library
  bos.adt.prof              5.3.0.60  COMMITTED  Base Profiling Support
  bos.cifs_fs.rte           5.3.0.60  COMMITTED  Runtime for SMBFS
  bos.perf.libperfstat      5.3.0.60  COMMITTED  Performance Statistics Library
                                                 Interface
  bos.perf.perfstat         5.3.0.60  COMMITTED  Performance Statistics
                                                 Interface
  bos.perf.proctools        5.3.0.60  COMMITTED  Proc Filesystem Tools

Path: /etc/objrepos
  bos.cifs_fs.rte           5.3.0.60  COMMITTED  Runtime for SMBFS
  bos.perf.libperfstat      5.3.0.60  COMMITTED  Performance Statistics Library
                                                 Interface
  bos.perf.perfstat         5.3.0.60  COMMITTED  Performance Statistics
                                                 Interface

对于缺少的包,用installp -a -d /dev/cd0 包名  进行安装,安装时放入AIX的安装光备                                    

检查安装的补丁包
# /usr/sbin/instfix -i -k "IY58143 IY59386 IY60930 IY66513 IY70159"
    All filesets for IY58143 were found.
    All filesets for IY59386 were found.
    All filesets for IY60930 were found.
    All filesets for IY66513 were found.
    All filesets for IY70159 were found.

# /usr/sbin/instfix -i -k "IY68989"
    All filesets for IY68989 were found.

安装AIX C++ 8.0 运行时

编辑/etc/hosts文件
   
创建用户组oinstall,dba
mkgroup -'A' oinstall
mkgroup -'A' dba
创建用户oracle
修改oracle用户密码
确认nobody用户存在 id nobdy
配置shell limits( smit chuser)
  soft FILE size -1
  soft CPU time -1
  soft DATA segment -1
  soft STACK size -1
更改系统参数 smit chgsys
  将 Maximum number of PROCESSES allowed per user改为2048以上
 
创建目录
# mkdir -p /u01/app/oracle
# chown oracle:oinstall /u01/app/oracle
# chmod 775 /u01/app/oracle
# mkdir -p /u02/oradata
# chown oracle:oinstall /u02/oradata
# chmod 755 /u02/oradata

创建文件系统/u01 /u02
   
切换到oracle用户,在.profile中增加如下两行
umask 022
AIXTHREAD_SCOPE=S; export AIXTHREAD_SCOPE
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE

执行
  . ./.profile
将安装文件ftp到主机
解压文件
gunzip 10gr2_aix5l64_database.cpio.gz
cpio -idmv  10gr2_aix5l64_database.cpio (如果报0511-903 Out of phase这样的错误,cpio命令加上c 这个参数,即idmcv)                                                  
以root用户执行 Disk1/rootpre/rootpre.sh
切换回oracle用户
export DISPLAY
运行Disk1/runInstaller完成安装

完成后注意修改操作系统maxperm% maxclient% minperm% v_pinshm strict_maxclient strict_maxperm参数

Trackback

5 comments untill now

  1. maxperm% maxclient% minperm% v_pinshm strict_maxclient strict_maxperm
    在ASM RAC 系统设置多少合适?

    [回复]

    老熊 回复:

    这些值的设置与单实例,以及是否使用ASM并没有什么不同。

    [回复]

  2. 这样设置可以?os版本是AIX 5.3 ML05 内存32G
    我很少使用AIX,不太熟悉!
    v_pinshm=1;minperm%=10 ;maxclient%=15;maxperm%=15
    strict_maxperm=0;v_pinshm=1;
    strict_maxclient=0
    我是这样理解的,因为使用asm保存数据文件,archivelog文件很少使用,OS文件系统,所以文件系统缓存调小,lock sga,避免换页!

    [回复]

    老熊 回复:

    正如我上面所说:“这些值的设置与单实例,以及是否使用ASM并没有什么不同”。由于oracle本身有buffer cache,所以不管数据文件是在文件系统中还是裸设备或ASM,oracle会进行缓存处理。而对于文件系统来说,如果过大的缓存,会导致数据文件在OS层以及Oracle层都进行了缓存,浪费了内存,同时OS管理大的文件系统缓存,也是需要CPU的。

    你这个系统设的参数,如果Oracle在内存使用方面不是太紧张,是完全没有问题的。

    [回复]

  3. 谢谢老熊的回复!

    [回复]

Add your comment now