本文参考了 oracle 联机文档 (点击联机文档可查看原始连接))
以root用户登录操作系统,
一. 检查硬件是否符合安装标准
1检查内存情况
# /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 lv
3检查临时文件夹以及挂载分区的大小
# df -m /tmp
Filesystem MB blocks Free %Used Iused %Iused Mounted on
/dev/hd3 2048.00 2041.28 1% 30 1% /tmp
# 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之类的工具
本文转自 珏石头 51CTO博客,原文链接:http://blog.51cto.com/gavinshaw/720751,如需转载请自行联系原作者