AIX6.1 安装 oracle 11204 札记
1、检查内存大小
# /usr/sbin/lsattr -E -l sys0 -a realmem
最小1G,要求2G或者更多
2、检查swap空间的大小
# /usr/sbin/lsps -a
3、检查操作系统结构是否可以运行oracle软件
# /usr/bin/getconf HARDWARE_BITMODE
想知道系统是否在64位下启动
# bootinfo -K
4、检查临时空间的大小
# df -k /tmp
要求至少为1G,空间不足软件安装界面是起不来的。
AIX下面修改/tmp大小的方法
Smit chfs --> Change / ShowCharacteristics of an Enhanced Journaled File System -->选择/tmp修改大小就行了
5、检查操作系统的版本,打包
# oslevel -s
bos.adt.base
•bos.adt.lib
•bos.adt.libm
•bos.perf.libperfstat6.1.2.1 or later
•bos.perf.perfstat
•bos.perf.proctools
•xlC.aix61.rte.10.1.0.0 orlater
•xlC.rte.10.1.0.0 or later
•gpfs.base 3.2.1.8 or later
检查包是否打全
# lslpp -l bos.adt.base bos.adt.libbos.adt.libm bos.perf.perfstat \
bos.perf.libperfstat bos.perf.proctools
APARs for AIX 6.1: IZ41855 IZ51456 IZ52319 IZ97457 IZ89165 · 查看 · # /usr/sbin/instfix -i -k "IZ42940 IZ49516 IZ52331 IZ41855 IZ52319"
|
||||||||||||||
# /usr/sbin/no -a | fgrep ephemeral tcp_ephemeral_low = 32768 tcp_ephemeral_high = 65535 udp_ephemeral_low = 32768 udp_ephemeral_high = 65535
|
||||||||||||||
Verify that the kernel parameters shown in the following table are set to values greater than or equal to the minimum value shown.
# smit chgsys
|
6、创建所需的操作系统的组和用户
The Oracle Inventory group (oinstall)
The OSDBA group (dba)
The Oracle software owner (oracle)
查看oinstall组是否存在
# more /etc/oraInst.loc
如果不存在
#smit security增加
查看dba组是否存在
# grep dba /etc/group
如果不存在
# smit security增加
建立oper组
#smit user
查看oracle用户是否存在
# id oracle
uid=440(oracle)gid=200(oinstall) groups=201(dba),202(oper)
不存在的话
#smit user
配置shell限制
# smit chuser
Shell Limit (As Shown in smit) |
Recommended Value |
Soft FILE size |
-1 (Unlimited) |
Soft CPU time |
-1 (Unlimited) Note: This is the default value. |
Soft DATA segment |
-1 (Unlimited) |
Soft STACK size |
-1 (Unlimited) |
Soft Real Memory size |
-1 (Unlimited) |
Processes (per user) |
-1 (Unlimited) Note: This limit is available only in AIX 6.1 or later. Refer to "Configure System Configuration Parameters" for information on configuration of processes per user limits. |
7、创建软件所需的目录
# df -k
# mkdir -p /u01/app/
# chown -R oracle:oinstall /u01/app/
# chmod -R 775 /u01/app/
8、配置环境变量
$ vi ~/.profile
export ORACLE_SID=meshisdb
export ORACLE_BASE=/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
export AIXTHREAD_SCOPE=S
export NLS_LANG=American_America.AL32UTF8
export PATH=$ORACLE_HOME/bin:$PATH
umask 022
9、运行rootpre.sh脚本
# /directory_path/rootpre/rootpre.sh