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
Parameter |
Recommended Value |
maxuprocs |
16384 |
ncargs |
128 |
tcp_ephemeral_low |
32768 |
tcp_ephemeral_high |
65535 |
udp_ephemeral_low |
32768 |
udp_ephemeral_high |
65535 |
|
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