Chinaunix首页 | 论坛 | 博客
  • 博客访问: 171803
  • 博文数量: 29
  • 博客积分: 2110
  • 博客等级: 大尉
  • 技术积分: 325
  • 用 户 组: 普通用户
  • 注册时间: 2006-07-01 11:32
文章分类

全部博文(29)

文章存档

2012年(3)

2010年(4)

2009年(5)

2007年(16)

2006年(1)

我的朋友

分类: LINUX

2009-12-13 10:57:16

Oracle 10gR2 on power 安装 linux EL4 for ppc

 

 

硬件平台:IBM P550 划分2Lpar 各两核CPU 16G内存

系统平台:linux RHAS4.8 for ppc

数据库:Oracle 10GR2 on Power

 

安装步骤

一、检查系统硬件需求

内存:2048M>Memory>1024             swap=1.5*Memory

        2049M>Memory>8192             swap=Memory      

         Memory>8192                         swap=0.75*Memory

硬盘:/tmp 剩余空间大于400M 1.5G—3.5G磁盘空间用来安装oracle软件

 

二、检查系统软件需求 注①

binutils-2.15.92.0.2-13
compat-libstdc++-33-3.2.3-47.3
gcc-3.4.3-22.1
gcc-ppc32-3.4.3-22.1
gcc-c++-3.4.3-22.1
gcc-c++-ppc32-3.4.3-22.1
glibc-2.3.4-2.9
glibc-2.3.4-29 (64-Bit)
libgcc-3.4.3-9.EL4
libgcc-3.4.3-9.EL4.ppc64.rp
libstdc++-3.4.3-9.EL4
libstdc++-devel-3.4.3-9.EL4
libaio-0.3.103-3
libaio-0.3.103-3 (64-Bit)
   libaio-devel-0.3.103-3 (64-Bit)
 
上述包必须安装,如未安装,请在系统安装光盘中找到并安装
 
IBM XL C/C++ Advanced Edition V7.0.1 for Linux Runtime Environment Component 请下载安装

 

三、创建Oracle 用户和组

#groupadd oinstall

#groupadd dba

#useradd –g oinstall –G dba oracle

#passwd oracle

检查nobody用户是否存在,不存在创建之

       #id nobody (#useradd nobody)

四、更改内核参数

编辑/etc/sysctl.conf 更改或添加如下参数为:

kernel.shmall = 2097152

kernel.shmmax = 2147483648  注②

kernel.shmmni = 4096

kernel.sem = 250 32000 100 128

fs.file-max = 65536

net.ipv4.ip_local_port_range = 1024 65000

net.core.rmem_default = 262144

net.core.rmem_max = 262144

net.core.wmem_default = 262144

net.core.wmem_max = 262144

 

#sysctl –p  使上述参数生效

设置shelloracle 用户的限制

1、      编辑/etc/security/limits.conf 添加如下信息

     oracle           soft    nproc   2047

     oracle           hard    nproc   16384

     oracle           soft    nofile  1024

     oracle           hard    nofile  65536

2、      编辑 /etc/pam.d/login添加如下信息:

   session    required     pam_limits.so

3、      编辑 /etc/profile 添加如下信息:

if [ $USER = "oracle" ]; then

        if [ $SHELL = "/bin/ksh" ]; then

              ulimit -p 16384

             ulimit -n 65536

        else

              ulimit -u 16384 -n 65536

        fi

fi

 

 

 

五、创建oracle安装目录

#mkdir –p /oracle/app/product/10.2.0.1/db_1

#chown –R oracle:oinstall /oracle

#chmod –R 755 /oracle

 

六、配置oracle用户环境变量

#xhost +  注③

#su – oracle

$vi .bash_profile

 umask 022

$source .bash_profile

七、安装oracle

# 安装包我们放在了/tmp目录下

#cpio –idmv < 10201_database_lin_ppc.cpio

#su – oracle

$ . /tmp/Disk/runInstaller

八、Oracle 的图形界面安装

 

 

注①:在数据库安装进度大约69%时,relink阶段 会出现如下报错信息:

INFO: Exception thrown from action: make

Exception Name: MakefileException

ExceptionString:Errorin invoking arget 'relink' of makefile

'/app/oracle/product/10.2.0.1/db_1/precomp/lib/ins_precomp.mk'

See '/app/oraInventory/logs/installActions2009-12-09_10-52-16AM.log' for details.

 

此问题官方安装文档给出如下解释:

Relink of Database 10g release 2 fails when you install Database 10g release 2 (10.2.0.1) on Red Hat Enterprise Linux 4 (Update 2 or later). To resolve this issue, you need to install the patch mentioned in Oracle bug 4767801 and retry linking.

解决方法:用metalink帐户登陆、下载4767801bug的补丁,安装后问题解决

 

注②安装数据库后,启动时出现如下错误提示:

SQL> startup

ORA-27102: out of memory

LINUX_PPC64 Error: 28: No space left on device

 

Oracle® Database Error Messages 10g Release 2 (10.2) 中给出如下解释

ORA-27102: out of memory

Cause: Out of memory

Action: Consult the trace file for details

 

查看trace文件信息如下:

[root@oracle1 udump]# cat orcl_ora_16702.trc 

/app/admin/orcl/udump/orcl_ora_16702.trc

Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production

With the Partitioning, OLAP and Data Mining options

ORACLE_HOME = /app/oracle/product/10.2.0.1/db_1/

System name:    Linux

Node name:      oracle1

Release:        2.6.9-89.EL

Version:        #1 SMP Mon Apr 20 10:25:13 EDT 2009

Machine:        ppc64

Instance name: orcl

Redo thread mounted by this instance: 0 

Oracle process number: 0

Unix process pid: 16702, image: oracle@oracle1

skgm warning: ENOSPC creating segment of size 0000000080000000

fix shm parameters in /etc/system or equivalent

 

磁盘空间使用情况如下

[root@oracle1 udump]# df -i

Filesystem Inodes   IUsed   IFree IUse% Mounted on

 

/dev/mapper/VolGroup00-LogVol00

 15499264  345777 15153487    3% /

/dev/sda2              26208      23   26185    1% /boot

none                 2156752       1 2156751    1% /dev/shm

故障原因:

      kernel.shmmax 设置的共享内存为2G 而我们安装oracleSGA4G所导致

解决方法:

更改 kernel.shmmax = 2147483648

kernel.shmmax = 8589934592  #8G 物理内存的1/2

 

注③:如果远程图形界面安装oracle 此处要设置为:#xhost  remote_host_ip

阅读(2549) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~