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

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

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)

Hot Topics

Java Tutorial
1664
14
PHP Tutorial
1268
29
C# Tutorial
1247
24
MySQL: Simple Concepts for Easy Learning MySQL: Simple Concepts for Easy Learning Apr 10, 2025 am 09:29 AM

MySQL is an open source relational database management system. 1) Create database and tables: Use the CREATEDATABASE and CREATETABLE commands. 2) Basic operations: INSERT, UPDATE, DELETE and SELECT. 3) Advanced operations: JOIN, subquery and transaction processing. 4) Debugging skills: Check syntax, data type and permissions. 5) Optimization suggestions: Use indexes, avoid SELECT* and use transactions.

MySQL's Role: Databases in Web Applications MySQL's Role: Databases in Web Applications Apr 17, 2025 am 12:23 AM

The main role of MySQL in web applications is to store and manage data. 1.MySQL efficiently processes user information, product catalogs, transaction records and other data. 2. Through SQL query, developers can extract information from the database to generate dynamic content. 3.MySQL works based on the client-server model to ensure acceptable query speed.

Explain the role of InnoDB redo logs and undo logs. Explain the role of InnoDB redo logs and undo logs. Apr 15, 2025 am 12:16 AM

InnoDB uses redologs and undologs to ensure data consistency and reliability. 1.redologs record data page modification to ensure crash recovery and transaction persistence. 2.undologs records the original data value and supports transaction rollback and MVCC.

MySQL: An Introduction to the World's Most Popular Database MySQL: An Introduction to the World's Most Popular Database Apr 12, 2025 am 12:18 AM

MySQL is an open source relational database management system, mainly used to store and retrieve data quickly and reliably. Its working principle includes client requests, query resolution, execution of queries and return results. Examples of usage include creating tables, inserting and querying data, and advanced features such as JOIN operations. Common errors involve SQL syntax, data types, and permissions, and optimization suggestions include the use of indexes, optimized queries, and partitioning of tables.

MySQL's Place: Databases and Programming MySQL's Place: Databases and Programming Apr 13, 2025 am 12:18 AM

MySQL's position in databases and programming is very important. It is an open source relational database management system that is widely used in various application scenarios. 1) MySQL provides efficient data storage, organization and retrieval functions, supporting Web, mobile and enterprise-level systems. 2) It uses a client-server architecture, supports multiple storage engines and index optimization. 3) Basic usages include creating tables and inserting data, and advanced usages involve multi-table JOINs and complex queries. 4) Frequently asked questions such as SQL syntax errors and performance issues can be debugged through the EXPLAIN command and slow query log. 5) Performance optimization methods include rational use of indexes, optimized query and use of caches. Best practices include using transactions and PreparedStatemen

Why Use MySQL? Benefits and Advantages Why Use MySQL? Benefits and Advantages Apr 12, 2025 am 12:17 AM

MySQL is chosen for its performance, reliability, ease of use, and community support. 1.MySQL provides efficient data storage and retrieval functions, supporting multiple data types and advanced query operations. 2. Adopt client-server architecture and multiple storage engines to support transaction and query optimization. 3. Easy to use, supports a variety of operating systems and programming languages. 4. Have strong community support and provide rich resources and solutions.

MySQL vs. Other Programming Languages: A Comparison MySQL vs. Other Programming Languages: A Comparison Apr 19, 2025 am 12:22 AM

Compared with other programming languages, MySQL is mainly used to store and manage data, while other languages ​​such as Python, Java, and C are used for logical processing and application development. MySQL is known for its high performance, scalability and cross-platform support, suitable for data management needs, while other languages ​​have advantages in their respective fields such as data analytics, enterprise applications, and system programming.

How does MySQL index cardinality affect query performance? How does MySQL index cardinality affect query performance? Apr 14, 2025 am 12:18 AM

MySQL index cardinality has a significant impact on query performance: 1. High cardinality index can more effectively narrow the data range and improve query efficiency; 2. Low cardinality index may lead to full table scanning and reduce query performance; 3. In joint index, high cardinality sequences should be placed in front to optimize query.

See all articles