檢查物理內存
(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:
ca
f
ebe
b
e VG IDENTIFIER
ca
f
ebe
e
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 為
G
FREE 為
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 AIX
ML 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
IY
IY
這四個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 AIX
ML 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
bos
adt
base
bos
adt
lib
bos
adt
libm
bos
perf
perfstat
我們可以使用lslpp pl os_package 命令來查看
# lslpp
l bos
adt
base
Fileset Level State Description
Path: /usr/lib/objrepos
bos
adt
base
COMMITTED Base Application Development
Toolkit
# lslpp
l bos
adt
lib
Fileset Level State Description
Path: /usr/lib/objrepos
bos
adt
lib
COMMITTED Base Application Development
Libraries
# lslpp
l bos
adt
libm
Fileset Level State Description
Path: /usr/lib/objrepos
bos
adt
libm
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:
From:http://tw.wingwit.com/Article/program/Oracle/201311/18728.html