AIX上安装Oracle 10201(一)

2014-11-24 17:54:43 · 作者: · 浏览: 4

首先检查系统是否满足数据库安装需要:


# /usr/sbin/lsattr -E -l sys0 -a realmem


realmem 32604160 Amount of usable physical memory in Kbytes False


# /usr/sbin/lsps -a


Page Space Physical Volume Volume Group Size %Used Active Auto Type Chksum


hd6 hdisk0 rootvg 16384MB 1 yes yes lv 0


# df -k /tmp


Filesystem 1024-blocks Free %Used Iused %Iused Mounted on


/dev/hd3 3145728 3140388 1% 69 1% /tmp


# df -k


Filesystem 1024-blocks Free %Used Iused %Iused Mounted on


/dev/hd4 3145728 2608568 18% 10939 2% /


/dev/hd2 4194304 1991084 53% 47242 10% /usr


/dev/hd9var 2097152 1764848 16% 8269 3% /var


/dev/hd3 3145728 3140388 1% 69 1% /tmp


/dev/fwdump 1048576 1048080 1% 5 1% /var/adm/ras/platform


/dev/hd1 2097152 2096488 1% 5 1% /home


/dev/hd11admin 262144 261744 1% 5 1% /admin


/proc - - - - - /proc


/dev/hd10opt 4194304 3945520 6% 8748 1% /opt


/dev/livedump 262144 261776 1% 4 1% /var/adm/ras/livedump


# /usr/bin/getconf HARDWARE_BITMODE


64


系统内容要求至少1G内存,SWAP分区大小对于大于8G的内存需要75%内存大小,当前配置为50%内存大小,虽然足够使用,但是Oracle检查可能会报错,需要忽略检查错误才行。


要求AIX操作系统在5.2以上:


# oslevel -r


6100-06


当前为6,满足要求。


检查操作系统文件集:


# 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 6.1.6.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.libperfstat 6.1.6.0 COMMITTED Performance Statistics Library


Interface


bos.perf.perfstat 6.1.6.0 COMMITTED Performance Statistics


Interface


bos.perf.proctools 6.1.6.0 COMMITTED Proc Filesystem Tools


Path: /etc/objrepos


bos.adt.base 6.1.6.0 COMMITTED Base Application Development


Toolkit


bos.perf.libperfstat 6.1.6.0 COMMITTED Performance Statistics Library


Interface


bos.perf.perfstat 6.1.6.0 COMMITTED Performance Statistics


Interface


对于6来说,版本足够高,因此安装文档上描述的补丁集不再需要。


# cat /etc/netsvc.conf | grep hosts


# hosts = value [, value]


# Use one or more of the following values for the hosts keyword:


# The auth option is only valid when used in conjunction with a service value for the hosts keyword.


# local Searches the local /etc/hosts file for resolving names


# local4 Searches the local /etc/hosts file for resolving only IPv4 addresses


# local6 Searches the local /etc/hosts file for resolving only IPv6 addresses


# hosts = nis=auth, bind6, dave4


# hostname


ZHY-DT-1


# domainname


# cat /etc/hosts | grep `eva l hostname`


172.20.20.1 ZHY-DT-1


验证系统是否仅使用/etc/hosts作为唯一验证名次的方式。


利用smit security创建oinstall、dba组。


利用smit security创建oracle用户,指定primary用户组oinstall,GROUPSET为dba,指定用户创建目录/home/oracle


# id oracle


uid=202(oracle) gid=201(oinstall) groups=202(dba)


# passwd oracle


确认用户创建成功并修改密码。


# id nobody


uid=4294967294(nobody) gid=4294967294(nobody)


确认nobody