Home Database Mysql Tutorial 基于IBM AIX系统安装Oracle 11g R2

基于IBM AIX系统安装Oracle 11g R2

Jun 07, 2016 pm 04:49 PM

以下内容包涵了在IBM AIX 6.1系统上安装Oracle 11G R2的单实例安装手册,本册内容包括了oracle数据库软件静默安装和OUI(图形通用

1.安装Oracle数据库对硬件的基本要求

1.1内存的基本要求

至少1GB的物理内存

Oracle官方推荐内存2GB或者更多

这里我们如果是实验环境满足基本条件即可。实际生产环境要充分的评估业务使用情况和系统的架构来制定内存的分配和预留。

在CentOS 6.4下安装Oracle 11gR2(x64)

Oracle 11gR2 在VMWare虚拟机中安装步骤

Debian 下 安装 Oracle 11g XE R2

在AIX系统命令行中输入
# getconf REAL_MEMORY11927552
我们内存是12G,非常充裕,这个和实际生产系统使用的内存也差不多

下表列出内存与交换空间大小的对应关系 

可用内存RAM

交换空间需求

1GB2GB之间

内存大小的1.5

2GB16GB之间

等于内存的大小

超过16GB

16GB为准

 

查看要安装的AIX6.1系统的交换空间的尺寸,通过以下命令

# lsps -a

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

hd6 hdisk0 rootvg 11264MB 1 yes yes lv 0

输出的结果是我们物理内存12个G,这里系统还占用一小部分,如果不是的话,

chps –s number hd6 增加交换空间,例如 chps –s 28 hd6 28*pp size算出number数即可。

1.2 磁盘空间要求

l 至少1GB的/TMP 目录空间

我们继续满足条件,这个空间其实可以给大了,我们还要利用它存放oracle 11g安装包,这里我们给20个G.继续下一个环节

1.3 运行级别要求

l 确保系统运行在2级别模式

# cat /etc/.init.state

2.检查软件需求

2.1 操作系统要求

l AIX 5L V5.3 TL 09 SP1 ("5300-09-01"), 64 bit kernel

l AIX 6.1 TL 02 SP 1 ("6100-02-01), 64-bit kernel

l AIX 7.1 TL 0 SP 1 ("7100-00-01"), 64-bit kernel

我们满足上面罗列出的基本条件即可,或者更高的修订版本,但是不能比上面所列出的低。我们安装的是AIX 6.1的系统,确认操作系统版本,命令如下

# oslevel –s

6100-07-00-0000

满足安装条件,我们继续下一步

2.2 安装oracle 11G 所需要的操作系统环境包

我们要确保以下的操作系统环境包已安装

bos.adt.base

bos.adt.lib

bos.adt.libm

bos.perf.libperfstat 6.1.2.1or later

bos.perf.perfstat

bos.perf.proctools

xlC.aix61.rte.10.1.0.0or later

xlC.rte.10.1.0.0or later

gpfs.base 3.2.1.8or later

命令行查询是否安装

# lslpp -l bos.adt.base bos.adt.lib bos.adt.libm bos.perf.perfstat \

bos.perf.libperfstat bos.perf.proctools

一般情况只要将AIX升级到最新的TL,这一步应该没有问题

3.创建需要的操作系统组和用户

3.1 创建oinstall、dba组和oracle用户

命令行模式下:

# smit mkgroup 创建oinstall和dba组

# smit mkuser 创建oracle用户,同时把oracle的主组设置为oinstall,属组设置为dba

# passwd oracle 给一个密码

# id oracle

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

3.2 配置内核参数

命令行模式下:

# vi /etc/security/limits 修改以下内容,为-1

default:

fsize = -1

core = -1

cpu = -1

data = -1

rss = -1

stack = -1

nofiles = -1

设置aio的最大数值为65536这个是系统默认的不需要修改。

# ioo –o aio_maxreqs

aio_maxreqs = 65536

这里有需要声明的是在AIX 5L需要运行rootpre.sh脚本才能开启aio功能,在AIX 6L中默认已开启。在AIX 5和6中都是65536(6k)的值去做最大的异步io。

4.创建oracle软件的安装目录并配置oracle用户环境变量

4.1 如下所示

# mkdir -p /u01/app/oracle

# chown -R oracle:oinstall /u01/app/oracle

# chmod -R 775 /u01/app/oracle

$ su - oracle

$ vi /home/oracle/.profile

在空白处写上你所需要的环境变量

export ORACLE_BASE=/u01/app/oracle

export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1

export ORACLE_SID=xupeng11g

export PATH=/usr/sbin:$PATH

export PATH=$ORACLE_HOME/bin:$PATH

保存退出

$ . ./.profile 生效当前的环境变量

 

更多详情见请继续阅读下一页的精彩内容:

linux

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

Repo: How To Revive Teammates
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to solve the problem of mysql cannot open shared library How to solve the problem of mysql cannot open shared library Mar 04, 2025 pm 04:01 PM

This article addresses MySQL's "unable to open shared library" error. The issue stems from MySQL's inability to locate necessary shared libraries (.so/.dll files). Solutions involve verifying library installation via the system's package m

Reduce the use of MySQL memory in Docker Reduce the use of MySQL memory in Docker Mar 04, 2025 pm 03:52 PM

This article explores optimizing MySQL memory usage in Docker. It discusses monitoring techniques (Docker stats, Performance Schema, external tools) and configuration strategies. These include Docker memory limits, swapping, and cgroups, alongside

How do you alter a table in MySQL using the ALTER TABLE statement? How do you alter a table in MySQL using the ALTER TABLE statement? Mar 19, 2025 pm 03:51 PM

The article discusses using MySQL's ALTER TABLE statement to modify tables, including adding/dropping columns, renaming tables/columns, and changing column data types.

Run MySQl in Linux (with/without podman container with phpmyadmin) Run MySQl in Linux (with/without podman container with phpmyadmin) Mar 04, 2025 pm 03:54 PM

This article compares installing MySQL on Linux directly versus using Podman containers, with/without phpMyAdmin. It details installation steps for each method, emphasizing Podman's advantages in isolation, portability, and reproducibility, but also

What is SQLite? Comprehensive overview What is SQLite? Comprehensive overview Mar 04, 2025 pm 03:55 PM

This article provides a comprehensive overview of SQLite, a self-contained, serverless relational database. It details SQLite's advantages (simplicity, portability, ease of use) and disadvantages (concurrency limitations, scalability challenges). C

How do I configure SSL/TLS encryption for MySQL connections? How do I configure SSL/TLS encryption for MySQL connections? Mar 18, 2025 pm 12:01 PM

Article discusses configuring SSL/TLS encryption for MySQL, including certificate generation and verification. Main issue is using self-signed certificates' security implications.[Character count: 159]

Running multiple MySQL versions on MacOS: A step-by-step guide Running multiple MySQL versions on MacOS: A step-by-step guide Mar 04, 2025 pm 03:49 PM

This guide demonstrates installing and managing multiple MySQL versions on macOS using Homebrew. It emphasizes using Homebrew to isolate installations, preventing conflicts. The article details installation, starting/stopping services, and best pra

What are some popular MySQL GUI tools (e.g., MySQL Workbench, phpMyAdmin)? What are some popular MySQL GUI tools (e.g., MySQL Workbench, phpMyAdmin)? Mar 21, 2025 pm 06:28 PM

Article discusses popular MySQL GUI tools like MySQL Workbench and phpMyAdmin, comparing their features and suitability for beginners and advanced users.[159 characters]

See all articles