1、检查操作系统配置
1、1 检查内存:
# lsattr -El sys0 -a realmemrealmem 2097152 Amount of usable physical memory in Kbytes False
1、2 检查交换空间
# lsps -aPage Space Physical Volume Volume Group Size %Used Active Auto Type
hd6 hdisk0 rootvg 512MB 1 yes yes lv
1、3 检查临时文件目录(至少应有400M空闲空间)
df -k /tmpFilesystem 1024-blocks Free %Used Iused %Iused Mounted on
/dev/hd3 65536 63984 3% 16 1% /tmp
1、4 检查操作系统位数
# getconf HARDWARE_BITMODE64
1、5 检查操作系统版本号
# oslevel -r5300-06
1、6 检查安装的软件包:
# 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.rteFileset 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的安装光备
1、7 检查安装的补丁包
# /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.
2、ORACLE 安装环境设置
2、1创建用户组oinstall,dba
mkgroup -A oinstallmkgroup -A dba
2、2 创建用户oracle
smit security使用SMIT创建ORACLE 用户,设置主GROUP 为OINSTALL ,设置GROUP SET 为DBA。
修改oracle用户密码
passwd oracle
2、3 确认nobody用户存在
id nobdy2、4 配置shell limits( smit chuser)
soft FILE size -1soft CPU time -1
soft DATA segment -1
soft STACK size -1
2、5 更改系统参数 smit chgsys
将 Maximum number of PROCESSES allowed per user改为2048以上
2、6 创建ORACLE主目录
mkdir -p /oracle/app/product/10.2.0/db_12.、7 修改目录的权限
chown -R oracle:oinstall /oracle/azbchmod -R 775 /oracle/azb
2、8 设置ORACLE 用户环境变量
编辑.profileumask 022
export TERM=xterm
export ORACLE_BASE=/oracle/
export ORACLE_HOME=/oracle/app/product/10.2.0
export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
export PATH=$PATH:$ORACLE_HOME/bin
export AIXTHREAD_SCOPE=S
. ./.profile
vi /home/oracle/.dtprofile
DTSOURCEPROFILE=true2、9 解压安装程序,开始安装
将安装文件ftp到主机,解压文件
gunzip 10gr2_aix5l64_database.cpio.gz
cpio -idmv 10gr2_aix5l64_database.cpio (如果报0511-903 Out of phase这样的错误,cpio命令加上c 这个参数,即idmcv)
cpio –idmcv 10gr2_aix5l64_database.cpio
安装前以root用户执行 Disk1/rootpre/rootpre.sh
切换回oracle用户
export DISPLAY
运行Disk1/runInstaller完成安装
3、升级10.2.0.4
3、1解压文件
jar -xvf p6810189_10204_AIX5L.zip3、2 首先以ROOT用户执行
/usr/sbin/slibclean运行Disk1/runInstaller完成升级。