本文參考了 oracle 聯機文檔 (點擊聯機文檔可查看原始鏈接))html
以root用戶登陸操做系統,架構
一. 檢查硬件是否符合安裝標準oracle
1檢查內存狀況ide
# /usr/sbin/lsattr -E -l sys0 -a realmem
realmem 3670016 Amount of usable physical memory in Kbytes False工具
2檢查swap分區狀況網站
# /usr/sbin/lsps -a
Page Space Physical Volume Volume Group Size %Used Active Auto Type
hd6 hdisk0 rootvg 512MB 1 yes yes lvui
3檢查臨時文件夾以及掛載分區的大小this
# df -m /tmp
Filesystem MB blocks Free %Used Iused %Iused Mounted on
/dev/hd3 2048.00 2041.28 1% 30 1% /tmpspa
# df -m
Filesystem MB blocks Free %Used Iused %Iused Mounted on
/dev/hd4 2048.00 1990.91 3% 4562 1% /
/dev/hd2 3072.00 1506.52 51% 38569 10% /usr
/dev/hd9var 2048.00 1969.59 4% 4500 1% /var
/dev/hd3 2048.00 2041.28 1% 30 1% /tmp
/dev/fwdump 2048.00 2045.37 1% 8 1% /var/adm/ras/platform
/dev/hd1 2048.00 2047.33 1% 5 1% /home
/proc - - - - - /proc
/dev/hd10opt 2048.00 1960.89 5% 1940 1% /opt
/dev/fslv00 10240.00 7155.48 31% 6 1% /oracle操作系統
檢查的oracle安裝分區或者文件夾的大小必須大於一下標準(單位G)
4.檢查操做系統架構是不是64位
# /usr/bin/getconf HARDWARE_BITMODE
64
二.檢查軟件是否符合要求
檢查系統是否有一下軟件包
bos.adt.base
bos.adt.lib
bos.adt.libm
bos.perf.libperfstat
bos.perf.perfstat
bos.perf.proctools
xlC.aix50.rte:7.0.0.4 or later
xlC.rte:7.0.0.1 or later
mqm.Client.Bnd
mqm.Server.Bnd
gcc 3.3.2或者May 2005 XL C/C++ Enterprise Edition V7.0 for AIX PTF (7.0.0.2)
Pro*C/C++, Oracle Call Interface, Oracle C++ Call Interface, and Oracle
XML Developer’s Kit (XDK)
May 2005 XL C/C++ Enterprise Edition V7.0 for AIX PTF (7.0.0.2)
以上軟件包能夠從這裏下載到
- JDK 1.4.2 (64-bit)
- JDK 1.3.1.11 (32-bit)
- JDK 1.2.2.18
IBM JDK 1.4.2 (32-bit) is installed with this release.
1.檢查系統安裝版本
# oslevel -r
5300-12
若是版本低於5200-04 能夠到這裏下載patch
2.檢查軟件是否安裝
# lslpp -l bos.adt.base bos.adt.lib bos.adt.libm bos.perf.perfstat bos.perf.libperfstat bos.perf.proctools
Fileset Level State Description
----------------------------------------------------------------------------
Path: /usr/lib/objrepos
bos.adt.base 5.3.12.2 COMMITTED Base Application Development
Toolkit
bos.adt.lib 5.3.9.0 COMMITTED Base Application Development
Libraries
bos.perf.libperfstat 5.3.12.1 COMMITTED Performance Statistics Library
Interface
bos.perf.perfstat 5.3.12.0 COMMITTED Performance Statistics
Interface
bos.perf.proctools 5.3.12.1 COMMITTED Proc Filesystem Tools
Path: /etc/objrepos
bos.perf.libperfstat 5.3.8.0 COMMITTED Performance Statistics Library
Interface
bos.perf.perfstat 5.3.12.0 COMMITTED Performance Statistics
Interface
lslpp: 0504-132 Fileset bos.adt.libm not installed.
若是有庫文件沒有安裝,請使用smitty(CLI)或smit(GUI),根據嚮導進行安裝。
至此,OS部分的安裝就完成了
三.ORACLE 10.2.0.1安裝與配置
1 從oracle官方網站上下載Oracle Database 10g Release 2 (10.2.0.1.0) for AIX5L
注意下載須要首先註冊成爲oracle網站的用戶
文件以下:
# ls 10*
10gr2_aix5l64_database.cpio.gz
解壓
gunzip –d 10gr2_aix5l64_database.cpio.gz
# cpio -icdm < 10gr2_aix5l64_database.cpio
2 建立用戶組oinstall和dba
smit group
# tail -n 2 /etc/group
dba:!:202:
oinstall:!:203:
3 建立oracle用戶,用戶組爲oinstall和dba
useradd -g oinstall -G dba oracle
4修改oracle用戶的系統限額
vi /etc/security/limits
default:
fsize = -1
core = 2097151
cpu = -1
data = 262144
rss = 65536
stack = 65536
nofiles = 2000
root:
daemon:
bin:
sys:
adm:
uucp:
guest:
nobody:
lpd:
oracle:
data = -1
stack = -1
5.修改oracle用戶環境變量
ORACLE_BASE=/oracle;export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/10.2.0; export ORACLE_HOME
ORACLE_SID=shsf;export ORACLE_SIDexport PATH=$PATH:$ORACLE_BASE/product/10.2.0/bin
6.以oracle用戶登錄
export DISPLAY=本機的IP地址:0.0
7.以root執行rootpre.sh
# cd ./rootpre/
# sh rootpre.sh
8.oracle 執行 runinstall 在客戶端開啓xmanager之類的工具