分类: Oracle
2008-11-20 20:11:37
环境:AIX 5.3 ML06 ,版本 : 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
配置 limits( smit chuser)
soft FILE size -1
soft CPU time -1
soft 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参数