检查物理内存(RAM >= MB)
# lsattr El sys a realmem
realmem Amount of usable physical memory in Kbytes False
#
我们的是G呵呵够了
检查swap空间(等于物理内存或者G最好大一些)
# lsps a
Page Space Physical Volume Volume Group Size %Used Active Auto Type
hd hdisk rootvg MB yes yes lv
#
我们的是G呵呵
检查磁盘空间主要注意两点
a) 安装 主要是存放 ORACLE CODE这个空间建议在G左右或者更大一点
b) 另外安装Oracle的过程中Oracle Universal Installer 需要大约M左右的临时空间可以使用系统默认的/tmp目录
也可以自己设置环境变量TMPDIR来指定一个具有足够空间的目录或者在安装过程中指定一个有足够空间的临时目录
如
TMPDIR=/oratools
export TMPDIR
一般来说oracle的安装文件都放在内置盘上所以我们需要看看内置盘的空间
# lsdev Cc disk
hdisk Available Bit LVD SCSI Disk Drive
hdisk Available L SSA Logical Disk Drive
#
我们看到hdisk是内置盘现在确定其大小
# lspv hdisk
PHYSICAL VOLUME: hdisk VOLUME GROUP: rootvg
PV IDENTIFIER: cafebebe VG IDENTIFIER cafebee
PV STATE: active
STALE PARTITIONS: ALLOCATABLE: yes
PP SIZE: megabyte(s) LOGICAL VOLUMES:
TOTAL PPs: ( megabytes) VG DESCRIPTORS:
FREE PPs: ( megabytes) HOT SPARE: no
USED PPs: ( megabytes)
FREE DISTRIBUTION:
USED DISTRIBUTION:
#
我们看到TOTAL 为GFREE 为G够了呵呵
检查 OS 的版本两种方法
你可以用oslevel 命令确定当前的AIX 版本
# oslevel
#
或者你也可以用oslevel r确定当前的AIX 版本和ML(the maintenance level of the system)
# oslevel r
#
这样的结果类似于用instfix 命令查看当前的ML:
$ instfix i | grep ML
All filesets for _AIX_ML were found
All filesets for _AIX_ML were found
All filesets for _AIX_ML were found
All filesets for _AIX_ML were found
All filesets for _AIX_ML were found
All filesets for _AIX_ML were found
All filesets for _AIX_ML were found
All filesets for _AIX_ML were found
All filesets for _AIX_ML were found
All filesets for _AIX_ML were found
All filesets for _AIX_ML were found
Not all filesets for _AIX_ML were found
All filesets for _AIX_ML were found
All filesets for _AIX_ML were found
All filesets for AIXML were found
$
可见我们的是AIX ML是的
查看OS 是否为 bit
如果是 bit位的OS可以装 bit 或者 bit 的oracle i 但是 bit的OS 只能装 bit 的oracle
因为oracle 没有 bit的所以我们必须验证我们的OS 是位的OS:
也是有两种方法
# locale
LANG=C
LC_COLLATE=C
LC_CTYPE=C
LC_MONETARY=C
LC_NUMERIC=C
LC_TIME=C
LC_MESSAGES=C
LC_ALL=
#
或者
# bootinfo y
#
看看OS的patch够不够
Oracle的文档上对于AIX 要求至少在ML 并且IY IY IYIY这四个patch实际上
但是实际上我们还需要一个IY文档上说这个包仅仅是和CPU的使用效率有关的包可以不要但是我安装的经验
是一定要否则会出问题上述包如果不存在那么需要到下面的站点download
$ instfix i | grep ML
All filesets for _AIX_ML were found
All filesets for _AIX_ML were found
All filesets for _AIX_ML were found
All filesets for _AIX_ML were found
All filesets for _AIX_ML were found
All filesets for _AIX_ML were found
All filesets for _AIX_ML were found
All filesets for _AIX_ML were found
All filesets for _AIX_ML were found
All filesets for _AIX_ML were found
All filesets for _AIX_ML were found
Not all filesets for _AIX_ML were found
All filesets for _AIX_ML were found
All filesets for _AIX_ML were found
All filesets for AIXML were found
$
显然我们的AIX 是 ML
查看某个patch是否安装了
# instfix i | grep IY
All filesets for IY were found
表示已经有这个patch了
# instfix i | grep IY
Not all filesets for IY were found
表示没有安装IY这个patch
特别要说明的是JAVA是在AIX 的默认安装中是不安装的需要手工安装
(在AIX 就不要手工装了系统的默认安装就会安装java)
至少需要JDK 对应的patch是 IY
如果使用HTTP SERVER那么就需要JDK 对应的patch是: IY
下载地址
ftp://serv/aix/efixes/
(如果已经装了这个补丁会有一个/usr/jdk_base目录它就是你的JAVA_HOME)
检查是否具备所需的OS package
AIX 需要下列package
bosadtbase bosadtlib bosadtlibm bosperfperfstat
我们可以使用lslpp pl os_package 命令来查看
# lslpp l bosadtbase
Fileset Level State Description
Path: /usr/lib/objrepos
bosadtbase COMMITTED Base Application Development
Toolkit
# lslpp l bosadtlib
Fileset Level State Description
Path: /usr/lib/objrepos
bosadtlib COMMITTED Base Application Development
Libraries
# lslpp l bosadtlibm
Fileset Level State Description
Path: /usr/lib/objrepos
bosadtlibm COMMITTED Base Application Development
Math Library
#
如果上面需要的patch和packgae没有安装那么去相应的站点download他们并使用smit的update all来安装他们
安装过程中有时候会出现类似 这个包已经被安装了或者指定的目录不对 等错误这时候去你指定的目录下面看看
如果有toc文件我们需要删除它(它是个隐含文件需要用ls a 查看)然后重新update all
上面的都做完了以后reboot机器
shutdown Fr
检查一下刚才的patch和package都有了现在给oracle划分存储空间
首先需要一个地方存放安装文件假设为/oratools我们需要进入
smit- System Storage Management (Physical & Logical Storage)
-File Systems 或者 -Logical Volume Manager
(如果你是个AIX新手那么你最好就选择FS让系统为你建立逻辑卷就好了呵呵
如果想装OPS或者RAC那么你就要用先建逻辑卷再建文件系统的方法了因为系统建立的逻辑卷也许会重名呵呵)
-Add / Change / Show / Delete File Systems
-Journaled File Systems
-Add a Journaled File System
- Add a Large File Enabled Journaled File System(选择这个可以支持大于G的文件系统)
这是系统会出现让你选择一个vg的窗口最好不要选择rootvg因为我们通常把和OS相关的东西放在那里
然后出现类似下面的窗口
SIZE of file system (in byte blocks) [] #
* MOUNT POINT []
Mount AUTOMATICALLY at system restart? no
(注意将Mount AUTOMATICALLY at system restart设置为自动mount)
在建立一个ORACLE_HOME主目录(方法同上)
建立dba 组
smit group - Add a Group
建立oracle 用户
smit user - Add a User
以oracle登陆修改profile如
PATH=/usr/bin: