IBM AIX6.1下Oracle 10g安装实施报告
1. 检查系统版本
# oslevel -r
6100-05
2.检查系统位数
# getconf HARDWARE_BITMODE
64
3.检查系统内存
# lsattr -E -l sys0 -a realmem
realmem 7929856 Amount of usable physical memory in Kbytes False
本例有8G内存,大于2G,足够安装Oracle。
4.查看分页空间大小
# lsps -a
Page Space Physical Volume Volume Group Size %Used Active
Auto Type Chksum
hd6 hdisk0 rootvg 512MB 2 yes
yes lv 0
5.增加分页空间大小
# chps -s 56 hd6
6.确定分页空间大小是否达到目的
# lsps -a
Page Space Physical Volume Volume Group Size %Used Active
Auto Type Chksum
hd6 hdisk0 rootvg 14848MB 1 yes
yes lv 0
7.查看文件系统大小
最小要求:
/ 2G
/usr 6G
/var 2G
/tmp 4G
/home 6G
/admin 2G
查看命令:
# df -g
Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/hd4 20.00 19.49 3% 13278 1% /
/dev/hd2 6.00 4.03 33% 46232 5% /usr
/dev/hd9var 3.00 2.73 10% 8821 2% /var
/dev/hd3 6.00 5.99 1% 61 1% /tmp
/dev/fwdump 0.25 0.25 1% 4 1%
/var/adm/ras/platform
/dev/hd1 6.00 6.00 1% 11 1% /home
/dev/hd11admin 0.25 0.25 1% 5 1% /admin
/proc - - - - - /proc
/dev/hd10opt 0.50 0.31 39% 8697 11% /opt
/dev/livedump 0.25 0.25 1% 4 1%
/var/adm/ras/livedump
/dev/fslv00 30.00 28.81 4% 6 1% /oracle
8.增加文件系统大小
# chfs -a size=8G /usr
Filesystem size changed to 16777216
# chfs -a size=2G /admin
Filesystem size changed to 4194304
也可用smit来扩展文件系统空间
9.确认文件系统大小
# df -g
Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/hd4 20.00 19.49 3% 13278 1% /
/dev/hd2 8.00 6.03 25% 46232 4% /usr
/dev/hd9var 3.00 2.73 10% 8821 2% /var
/dev/hd3 6.00 5.99 1% 61 1% /tmp
/dev/fwdump 0.25 0.25 1% 4 1%
/var/adm/ras/platform
/dev/hd1 6.00 6.00 1% 11 1% /home
/dev/hd11admin 2.00 2.00 1% 5 1% /admin
/proc - - - - - /proc
/dev/hd10opt 0.50 0.31 39% 8697 11% /opt
/dev/livedump 0.25 0.25 1% 4 1%
/var/adm/ras/livedump
/dev/fslv00 30.00 28.81 4% 6 1% /oracle
10.检查以下文件集是否已安装
# lslpp -l bos.adt.base bos.adt.lib bos.adt.libm bos.perf.perfstat
Fileset Level State Description
------------------------------------------------------------------
----------
Path: /usr/lib/objrepos
bos.adt.base 6.1.5.0 COMMITTED Base Application
Development
Toolkit
bos.adt.lib 6.1.2.0 COMMITTED Base Application
Development
Libraries
bos.adt.libm 6.1.5.0 COMMITTED Base Application
Development
Math Library
bos.perf.perfstat 6.1.5.0 COMMITTED Performance
Statistics
Interface
Path: /etc/objrepos
bos.adt.base 6.1.5.0 COMMITTED Base Application
Development
Toolkit
bos.perf.perfstat 6.1.5.0 COMMITTED Performance
Statistics
Interface
本例已经安装完整,如未安装完整,请将安装盘放入光驱,使用installp或者
smitty installp命令将缺少部分安装完全。
11.检查以下的APAR修补包是否已经安装
Instfix –ik IY58143 IY59386 IY60930 IY66513 IY68989 IY70159
如果未打这些补丁建议打上,本例不打。
12.创建用户组dba和用户oracle
可用命令也可用smit,创建用户的时候最好定义好用户的跟目录,按照传统习
惯一般定义为/home/oracle。
13.利用xftp等工具往服务器传送Oracle安装包,本例放置在/oracle/setup目
录下。
如传输过程中被限制上传文件大小,请修改以下配置参数。
./etc/security/limits里,将fsize的值设置为-1,表示无限制。
14.创建安装目录,并将其改变所有者极其权限
# mkdir -p /oracle/app/oracle/product/10.2.0/db_1
# chown -R oracle:dba /oracle/app/oracle
# chmod -R 775 /oracle/app/oracle
15.设置环境变量
$ pwd
/home/oracle
$ vi .profile
export ORACLE_BASE=/oracle/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
export ORACLE_SID=orcl1
export $ORACLE_HOME/bin:$PATH
16.解压安装包
# chown -R oracle:dba /oracle/setup
# chmod -R 775 /oracle/setup
# su – oracle
$ pwd
/oracle/setup
$ ls
10gr2_aix5l64_database.cpio.gz
$ gunzip 10gr2_aix5l64_database.cpio.gz
$ ls
10gr2_aix5l64_database.cpio
$cpio -idcmv < 10gr2_aix5l64_database.cpio
$ ls
10gr2_aix5l64_database.cpio Disk1
$ cd Disk1
$ ls
doc response runInstaller welcome.html
install rootpre stage
$ pwd
/oracle/setup/Disk1
17.用root用户执行rootpre.sh脚本
# pwd
/oracle/setup/Disk1/rootpre
# ls
ORCLcluster pw-syscall pw-syscall64
loadext pw-syscall32 rootpre.sh
# ./rootpre.sh
./rootpre.sh output will be logged in /tmp/rootpre.out_12-11-
Saving the original files in /etc/ora_save_12-11-13.21:50:56....
Copying new kernel extension to /etc....
Loading the kernel extension from /etc
Oracle Kernel Extension Loader for AIX
Copyright (c) 1998,1999 Oracle Corporation
Successfully loaded /etc/pw-syscall.64bit_kernel with kmid:
0x50a6a000
Successfully configured /etc/pw-syscall.64bit_kernel with kmid:
0x50a6a000
The kernel extension was successfuly loaded.
Configuring Asynchronous I/O....
Asynchronous I/O is not installed on this system.
You will need to install it, and either configure it yourself using
'smit aio' or rerun the Oracle root installation procedure.
Configuring POSIX Asynchronous I/O....
Posix Asynchronous I/O is not installed on this system.
You will need to install it, and either configure it yourself using
'smit aio' or rerun the Oracle root installation procedure.
Checking if group services should be configured....
Nothing to configure.
18.测试图形界面能否显示
打开xmanager passive
# xhost +
access control disabled, clients can connect from any host
# su - oracle
$ export DISPLAY=192.168.2.45:0.0
$ xclock
看看能否显示时钟
19.安装Oracle软件
$ cd /oracle/setup/Disk1
$ ls
doc response runInstaller welcome.html
install rootpre stage
$ ./runInstaller
20.安装网络监听器 $ pwd /oracle/app/oracle/product/10.2.0/db_1/bin
$netca
21.安装数据库 $ pwd /oracle/app/oracle/product/10.2.0/db_1/bin $ dbca
|