安装oracle10g for aix

1、确认系统结构是否为64位:
# su - root
# getconf HARDWARE_BITMODE
64

2、确认物理内存大小:
# lsattr -E -l sys0 -a realmem
realmem 1048576 Amount of usable physical memory in Kbytes False

3、确认交换空间大小:
# lsps -a
Page Space Physical Volume Volume Group Size %Used Active Auto Type
hd6 hdisk0 rootvg 512MB 1 yes yes lv

4、确认临时空间大小:
# df -k /tmp
Filesystem 1024-blocks Free %Used Iused %Iused Mounted on
/dev/hd3 1048576 1013876 4% 35 1% /tmp

[@more@]

4.1 增加临时空间:
需要增加(2028m - 512m = 1516m),pp为32M 需要增加1516/32=48个pp
extendlv hd3 48

5、确认磁盘空间大小:
# df -k
Filesystem 1024-blocks Free %Used Iused %Iused Mounted on
/dev/hd4 655360 600752 9% 1788 1% /
/dev/hd2 2097152 727992 66% 33767 7% /usr
/dev/hd9var 32768 18720 43% 442 6% /var
/dev/hd3 1048576 1013876 4% 35 1% /tmp
/dev/hd1 1048576 1015112 4% 20 1% /home
/proc - - - - - /proc
/dev/hd10opt 8388608 8040208 5% 1630 1% /opt

6、确认AIX版本:
# oslevel -r
5300-07

7、确认Fileset是否安装齐全:
# 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.7.0 COMMITTED Base Application Development
Toolkit
bos.adt.lib 5.3.0.60 COMMITTED Base Application Development
Libraries
bos.perf.libperfstat 5.3.7.0 COMMITTED Performance Statistics Library
Interface
bos.perf.perfstat 5.3.7.0 COMMITTED Performance Statistics
Interface
bos.perf.proctools 5.3.7.0 COMMITTED Proc Filesystem Tools

Path: /etc/objrepos
bos.perf.libperfstat 5.3.7.0 COMMITTED Performance Statistics Library
Interface
bos.perf.perfstat 5.3.7.0 COMMITTED Performance Statistics
Interface
lslpp: 0504-132 Fileset bos.adt.libm not installed.

7.1、安装Fileset:
#smitty installp
选择install and Update from LATEST Available Software安装所需包

安装成功重新确认:


8、确认APAR是否安装齐全:
#instfix -i -k "IY89080"
All filesets for IY89080 were found.

9、配置system参数:
#smit chgsys
修改Maximum number of PROCESSES allowed per user参数为2048


10、创建Oracle Group(oinstall dba)
#smit security

11、创建Oracle Users
#smit security
Primary GROUP oinstall
Group SET dba

11.1 修改oracle用户password
#passwd oracle

12、修改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

13、配置oracle用户环境变量(.profile):
$ su - oracle
$ vi .profile
ORACLE_BASE=/opt/oracle;
export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/10.2.0;
export ORACLE_HOME
ORACLE_SID=oracle;
export ORACLE_SID
PATH=$ORACLE_HOME/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:
export PATH

14、创建oracle数据库目录:
$ su - oracle
$ mkdir -p /opt/oracle/product/10.2.0

15、将oracle安装包通过FTP上传到AIX上,并通过如下命令进行解压缩:
$ su - oracle
$ gunzip 10gr2_aix5l64_database.cpio.gz
$ cpio -idcmv < 10gr2_aix5l64_database.cpio.gz

16、运行rootpre.sh脚本:
#su - root
#cd /opt/Disk1/rootpre
#./rootpre.sh
./rootpre.sh output will be logged in /tmp/rootpre.out_10-06-12.13:58:39
Saving the original files in /etc/ora_save_10-06-12.13:58:39....
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.32bit_kernel with kmid: 0x2eb0ebc
Successfully configured /etc/pw-syscall.32bit_kernel with kmid: 0x2eb0ebc
The kernel extension was successfuly loaded.

Configuring Asynchronous I/O....

Configuring POSIX Asynchronous I/O....

Checking if group services should be configured....
Nothing to configure.

17、安装oracle:
$ cd /opt/Disk1
$ ./runInstaller

.......安装过程中......

18、运行orainstRoot.sh和root.sh脚本:
# su - root
# cd /home/oracle/oraInventory
# ls
Contents logs orainstRoot.sh
ContentsXML oraInst.loc oui
install.platform oraInstaller.properties sessionContext.ser
#
# ./orainstRoot.sh
Changing permissions of /home/oracle/oraInventory to 775.
Changing groupname of /home/oracle/oraInventory to oinstall.
The execution of the script is complete
# cd /opt/oracle/product/10.2.0/
# ./root.sh
Running Oracle10 root.sh script...

The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /opt/oracle/product/10.2.0

Enter the full pathname of the local bin directory: [/usr/local/bin]:
Creating /usr/local/bin directory...
Copying dbhome to /usr/local/bin ...
Copying oraenv to /usr/local/bin ...
Copying coraenv to /usr/local/bin ...


Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
#

........
安装结束。

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/7417660/viewspace-1034390/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/7417660/viewspace-1034390/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值