aix 5.3安装oracle 11g,AIX 5.3安装oracle 11g

参考安装文档:

Oracle? Database Installation Guide

11g Release 1 (11.1) for AIX Based Systems

Part Number B32076-03

检查操作系统位数和内存

# bootinfo -y

64

#

# bootinfo -r

1048576

# lsps -a

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

hd6 hdisk0 rootvg 512MB 1 yes yes lv

扩展交换内存 到1.5G 从16*32M到48*32M

# chps -s32 hd6

# lsps hd6

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

hd6 hdisk0 rootvg 1536MB 1 yes yes lv

或者直接查看详情

# lslv hd6

查看磁盘空间 ORACLE连软件带数据库需要6G空间(/opt) TMP需要至少400M

# df -m

Filesystem MB blocks Free %Used Iused %Iused Mounted on

/dev/hd4 32.00 19.45 40% 1670 28% /

/dev/hd2 2048.00 815.70 61% 31670 15% /usr

/dev/hd9var 512.00 498.72 3% 433 1% /var

/dev/hd3 3072.00 3069.50 1% 17 1% /tmp

/dev/hd1 32.00 31.64 2% 7 1% /home

/proc - - - - - /proc

/dev/hd10opt 10240.00 10156.23 1% 1617 1% /opt

/dev/ww 10240.00 5346.43 48% 2950 1% /ww

修改时区

# chtz BEIST-8

同步时间(可选)

# ntpdate 10.0.1.1

修改文件大小限制

chuser

fsize='-1' data='-1' core='-1' root

重启操作系统

# shutdown -r

增加目录/ww_,用于保存安装盘等,大小10g

mklv -t jfs2 -y ww rootvg 300

mkdir -p /ww

crfs -v jfs2 -d ww -m /ww -A yes

mount /dev/ww /ww

扩展文件系统

extendlv ww 20

chfs -a size=+640M /ww

使用FTP工具上传安装盘

校验安装盘的完整性

# cksum ww/*

4226392030 650295373 ww/aix.ppc64_11gR1_database_1013_1of2.zip

1762733015 32 ww/lost+found

下载上传安装unzip工具 unzip_aix.Z

uncompress unzip_aix.Z

chmod 777 unzip_aix

解压安装盘

./unzip aix.ppc64_11gR1_database_1013_1of2.zip

./unzip aix.ppc64_11gR1_database_1013_2of2.zip

#############################################################################

2.3 Checking the Software Requirements

2.3.1 Operating System Requirements

操作系统要求最低AIX 5L version 5.3, TL 05, Service Pack 06

# oslevel -s

5300-07-00-0000

检查文件集是否有以下内容

# 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.

安装缺少的文件集bos.adt.libm

因为安装盘已挂载,所以可以直接进行安装,否则先挂载1号安装盘

smit install_latest

# lslpp -l bos.adt.libm

Fileset Level State Description

----------------------------------------------------------------------------

Path: /usr/lib/objrepos

bos.adt.libm 5.3.7.0 COMMITTED Base Application Development Math Library

2.3.2 Compiler Requirements

需要两个组件

XL C/C++ Enterprise Edition V8.0 for AIX:

gcc 3.4.5

smit list software /XL 找到已安装了9.0.0.1版本

xlC.aix50.rte 9.0.0.1 C F XL C/C++ Runtime for AIX 5.2

并且已经安装了RPM管理器

rpm.rte 3.0.5.41 C F RPM Package Manager

如果没有安装,也可去网上下载后安装,方式如下:

1. Installing the RedHat Package Manager (RPM)

在安装GCC软件之前,必须安装RPM - the RedHat Package Manager。

你需要用installp安装RPM包, 下载此包的地址为:

ftp://ftp.software.ibm.com/aix/freeSoftwa...LLP/ppc/rpm.rte

安装rpm 包,必须以root 用户操作,命令如下:

# installp -qacXgd rpm.rte rpm.rte

rpm程序在/opt/freeware/bin/中

#cd /opt/freeware/bin/

GCC的下载 gcc-4.2.0-3.aix5.3.ppc.rpm

地址为http://www-03.ibm.com/servers/ai ... linux/download.html

http://www-03.ibm.com/systems/p/os/aix/linux/toolbox/ezinstall.html

因AIX5.3已默认安装rpm,只需要安装gcc即可

例如

#rpm -ivh gcc-4.2.0-3.aix5.3.ppc.rpm

2.3.3 Patch Requirement

# instfix -i -k "IY89080 IY92037 IY94343 Iz01060 Iz03260"

All filesets for IY89080 were found.

All filesets for IY92037 were found.

All filesets for IY94343 were found.

There was no data for Iz01060 in the fix database.

There was no data for Iz03260 in the fix database.

Comments

5200-10 - use AIX APAR IZ05734

5300-06 - use AIX APAR IZ01060

5300-07 - use AIX APAR IZ02837

5300-08 - use AIX APAR IZ02933

APAR is sysrouted TO one or more of the following:

IZ03475

IZ03621

IZ02837 IZ03475 已安装 未做操作

2.3.4 Additional Software Requirements

2.3.4.1 Oracle JDBC/OCI Drivers

因JDK5已安装,需要改一下PATH

find . -name java

# find . -name java

./opt/LicenseUseManagement/java

./usr/lib/java

./usr/java5/bin/java

./usr/java5/jre/bin/java

./usr/java14/bin/java

./usr/java14/jre/bin/java

ls -l /usr/lib/java

echo $PATH

vi /etc/envi*

将其中的java14改为java5 然后验证一下

# java -version

java version "1.5.0"

Java(TM) 2 Runtime Environment, Standard Edition (build pap32devifx-20070725 (SR5a))

IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 AIX ppc-32 j9vmap3223-20070426 (JIT enabled)

J9VM - 20070420_12448_bHdSMR

JIT - 20070419_1806_r8

GC - 200704_19)

JCL - 20070725

##########################################################################

2.6 Creating Required Operating System Groups and Users

检查是否安装过ORACLE?

more /etc/oraInst.loc

创建组

Creating the Oracle Inventory Group

smit security

oinstall

dba

oper

asmadmin

使用命令行方式如下:

# mkgroup -A oinstall

# mkgroup dba

# mkgroup oper

# mkgroup asmadmin

创建oracle用户

oracle

uid=440(oracle) gid=200(oinstall) groups=201(dba),202(oper)

使用命令行方式如下:

mkuser pgrp='oinstall' groups='oper,dba,asmadmin' oracle

设置oracle的口令

passwd oracle

2.7 Configure Shell Limits and System Configuration Parameters

2.7.1 Configure Shell Limits

smit chuser

Soft FILE size -1 (Unlimited)

Soft CPU time -1 (Unlimited) Note: This is the default value.

Soft DATA segment -1 (Unlimited)

Soft STACK size -1 (Unlimited)

Soft Real Memory size -1 (Unlimited)

使用命令行方式如下:

chuser fsize='-1' data='-1' stack='-1' core='-1' oracle

2.7.2 Configure System Configuration Parameters

# smit chgsys

Maximum number of PROCESSES 2048

ARG/ENV list size in 4K byte blocks 128

使用命令行

chdev -l sys0 -a maxuproc='2048' -a ncargs='128'

2.8 Identifying Required Software Directories

Oracle Base Directory 如/mount_point/app/oracle_sw_owner /u01/app/oracle

Oracle Inventory Directory 如/u01/app/oraInventory

Oracle Home Directory 如oracle_base/product/11.1.0/db_1

先查看是否已有ORACLE目录?

# more /etc/oratab

创建目录如下:

mkdir -p /opt/app

chown -R oracle:oinstall /opt/app

chmod -R 775 /opt/app/

##########################################################################

2.10 Choosing a Storage Option for Oracle Database and Recovery Files

创建ORACLE的数据目录如下:

Database file directory:

# mkdir /opt/oradata

# chown oracle:oinstall /opt/oradata

# chmod 775 /opt/oradata

The default location for Database file directory is $ORACLE_BASE/oradata.

Recovery file directory (flash recovery area):

# mkdir /opt/flash_recovery_area

# chown oracle:oinstall /opt/flash_recovery_area

# chmod 775 /opt/flash_recovery_area

##########################################################################

2.12 Preparing Disk Groups for an Automatic Storage Management Installation

使用一个已存在ASM 方法略

2.12.5 Step 4: Configuring Disks for Automatic Storage Management

确认有可用磁盘

# /usr/sbin/lsdev -Cc disk

If a disk is not listed as available, then enter the following command to configure the new

disks:

# /usr/sbin/cfgmgr

此次不使用ASM 略去

##########################################################################

2.12.6 Identifying Required Raw Partitions for Database Files

2.13 Stopping Existing Oracle Processes

##########################################################################

2.14 Configuring the oracle User's Environment

先配置AIX,使xmanager 可以登录

原来没有安装CDT,依次插入1号盘2号盘,安装CDT

/etc/rc.dt

再使用xmanager xclock成功。

oracle用户进入

修改.profile 文件

umask 022

AIXTHREAD_SCOPE=S; export AIXTHREAD_SCOPE

连DISPLAY也设上,方便

DISPLAY=10.0.10.143:0.0; export DISPLAY

修改完后,使之生效

$ . ./.profile

#######################################################################

如果不使用/tmp做为临时文件夹,可以另外建一个大点的文件系统做为临时文件夹,不过要设置环境变量

此处没有设置,具体设置略

#######################################################################

不在profile文件中设置ORACLE_SID等变量,而是在使用时临时设置

ORACLE_BASE=/opt/app/oracle

ORACLE_SID=sales

export ORACLE_BASE ORACLE_SID

不要设置这两个变量

unset ORACLE_HOME

unset TNS_ADMIN

最后检查一下

umask

env | more

#######################################################################

2.15 Running the rootpre.sh Script

仅在未安装过ORACLE的环境上运行!

在安装盘上没有找到rootpre目录,只好上传下载来的rootpre zip包

Switch user to root:

./rootpre.sh

#######################################################################

安装过程

如果使用DVD光盘

/usr/sbin/mount -rv cdrfs /dev/cd0 /dvd

安装检查时,Warning

Checking for rsct.basic.rte(0.0); Not found. Failed<<<<

Checking for rsct.compat.clients.rte(0.0); Not found. Failed<<<<

另外一warning是swap space

Expected result: 1536MB

Actual Result: 1520M

忽略后next

先安装软件,最后使用脚本建库,比较顺利完成.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值