以下内容包涵了在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
交换空间需求
1GB到2GB之间
内存大小的1.5倍
2GB到16GB之间
等于内存的大小
超过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 生效当前的环境变量
更多详情见请继续阅读下一页的精彩内容:

InnoDBBufferPool reduces disk I/O by caching data and indexing pages, improving database performance. Its working principle includes: 1. Data reading: Read data from BufferPool; 2. Data writing: After modifying the data, write to BufferPool and refresh it to disk regularly; 3. Cache management: Use the LRU algorithm to manage cache pages; 4. Reading mechanism: Load adjacent data pages in advance. By sizing the BufferPool and using multiple instances, database performance can be optimized.

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.

MySQL is worth learning because it is a powerful open source database management system suitable for data storage, management and analysis. 1) MySQL is a relational database that uses SQL to operate data and is suitable for structured data management. 2) The SQL language is the key to interacting with MySQL and supports CRUD operations. 3) The working principle of MySQL includes client/server architecture, storage engine and query optimizer. 4) Basic usage includes creating databases and tables, and advanced usage involves joining tables using JOIN. 5) Common errors include syntax errors and permission issues, and debugging skills include checking syntax and using EXPLAIN commands. 6) Performance optimization involves the use of indexes, optimization of SQL statements and regular maintenance of databases.

MySQL is suitable for beginners to learn database skills. 1. Install MySQL server and client tools. 2. Understand basic SQL queries, such as SELECT. 3. Master data operations: create tables, insert, update, and delete data. 4. Learn advanced skills: subquery and window functions. 5. Debugging and optimization: Check syntax, use indexes, avoid SELECT*, and use LIMIT.

MySQL efficiently manages structured data through table structure and SQL query, and implements inter-table relationships through foreign keys. 1. Define the data format and type when creating a table. 2. Use foreign keys to establish relationships between tables. 3. Improve performance through indexing and query optimization. 4. Regularly backup and monitor databases to ensure data security and performance optimization.

MySQL is an open source relational database management system that is widely used in Web development. Its key features include: 1. Supports multiple storage engines, such as InnoDB and MyISAM, suitable for different scenarios; 2. Provides master-slave replication functions to facilitate load balancing and data backup; 3. Improve query efficiency through query optimization and index use.

SQL is used to interact with MySQL database to realize data addition, deletion, modification, inspection and database design. 1) SQL performs data operations through SELECT, INSERT, UPDATE, DELETE statements; 2) Use CREATE, ALTER, DROP statements for database design and management; 3) Complex queries and data analysis are implemented through SQL to improve business decision-making efficiency.

The basic operations of MySQL include creating databases, tables, and using SQL to perform CRUD operations on data. 1. Create a database: CREATEDATABASEmy_first_db; 2. Create a table: CREATETABLEbooks(idINTAUTO_INCREMENTPRIMARYKEY, titleVARCHAR(100)NOTNULL, authorVARCHAR(100)NOTNULL, published_yearINT); 3. Insert data: INSERTINTObooks(title, author, published_year)VA


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Dreamweaver Mac version
Visual web development tools

WebStorm Mac version
Useful JavaScript development tools

Zend Studio 13.0.1
Powerful PHP integrated development environment