Home > Database > Mysql Tutorial > body text

在AIX 6.1 上安装 Oracle 10g 裸设备

WBOY
Release: 2016-06-07 17:03:14
Original
1182 people have browsed it

1、建立 oinstall、dba、oper 组2、oracle 用户3、系统参数调优 (AIX 6L 中对 aio 已经采用动态形式,不需要配置,运行 rootpre

1、建立 oinstall、dba、oper 组
2、Oracle 用户

3、系统参数调优 (AIX 6L 中对 aio 已经采用动态形式,不需要配置,运行 rootpre.sh 警告 aio 的问题可以忽略)

4、检查系统软件包(依赖软件包必须打齐 smit installp)
bos.adt.base
bos.adt.lib
bos.adt.libm
bos.perf.libperfstat
bos.perf.perfstat
bos.perf.proctools
 
rsct.basic.rte                         (For RAC configurations only)
rsct.compat.clients.rte        (For RAC configurations only)
 
The August 2007 IBM C++ Runtime Environment Components for AIX (9.0.1)
xlC.aix61.rte:9.0.0.1            
xlC.rte:9.0.0.1      

#smit languge     //插入第一张系统盘,选择安装语言

5、建立 vg 类型 scanable (orignal和big )---- auto start --- no concurennt--- PP size  256
在oracle  raw 裸设备的时候,scanable 这个特别要注意。

6、建立文件系统
#smit crfs      // enhence journaled filesystem(jfs2) / mount point /大小

系统LV:
mklv -y'users_512m' -t 'jfs2' -w'n' -s'n' -r'n' jzhcdatavg 2
mklv -y'tools_512m'  -t 'jfs2' -w'n' -s'n' -r'n' jzhcdatavg 2
mklv -y'temp_512m'   -t 'jfs2' -w'n' -s'n' -r'n' jzhcdatavg 2
mklv -y'undotbs1_2g'   -t 'jfs2' -w'n' -s'n' -r'n' jzhcdatavg 8
mklv -y'undotbs2_2g'   -t 'jfs2' -w'n' -s'n' -r'n' jzhcdatavg 8
mklv -y'log11_1g'   -t 'jfs2' -w'n' -s'n' -r'n' jzhcdatavg 4
mklv -y'log12_1g'   -t 'jfs2' -w'n' -s'n' -r'n' jzhcdatavg 4
mklv -y'log21_1g'   -t 'jfs2' -w'n' -s'n' -r'n' jzhcdatavg 4
mklv -y'log22_1g'   -t 'jfs2' -w'n' -s'n' -r'n' jzhcdatavg 4
mklv -y'log31_1g'   -t 'jfs2' -w'n' -s'n' -r'n' jzhcdatavg 4
mklv -y'log32_1g'   -t 'jfs2' -w'n' -s'n' -r'n' jzhcdatavg 4
mklv -y'indx_512m'   -t 'jfs2' -w'n' -s'n' -r'n' jzhcdatavg 2
mklv -y'spfile_512m'   -t 'jfs2' -w'n' -s'n' -r'n' jzhcdatavg 2
mklv -y'cntrl1_512m'   -t 'jfs2' -w'n' -s'n' -r'n' jzhcdatavg 2
mklv -y'cntrl2_512m'   -t 'jfs2' -w'n' -s'n' -r'n' jzhcdatavg 2
mklv -y'cntrl3_512m'   -t 'jfs2' -w'n' -s'n' -r'n' jzhcdatavg 2
mklv -y'sysaux_2g'   -t 'jfs2' -w'n' -s'n' -r'n' jzhcdatavg 8
mklv -y'systems_2g'   -t 'jfs2' -w'n' -s'n' -r'n' jzhcdatavg 8
mklv -y'srvcfg_512m'   -t 'jfs2' -w'n' -s'n' -r'n' jzhcdatavg 2

数据 LV:
mklv -y' data1lv01_1g' -t 'jfs2 -w'n' -s'n' -r'n' hc_datavg1 4
mklv -y' data1lv02_1g' -t 'jfs2 -w'n' -s'n' -r'n' hc_datavg1 4
mklv -y' data1lv03_1g' -t 'jfs2 -w'n' -s'n' -r'n' hc_datavg1 4
mklv -y' data1lv04_1g' -t 'jfs2 -w'n' -s'n' -r'n' hc_datavg1 4
mklv -y' data1lv05_1g' -t 'jfs2 -w'n' -s'n' -r'n' hc_datavg1 4
mklv -y' data1lv06_1g' -t 'jfs2 -w'n' -s'n' -r'n' hc_datavg1 4
mklv -y' data1lv07_1g' -t 'jfs2 -w'n' -s'n' -r'n' hc_datavg1 4
mklv -y' data1lv08_1g' -t 'jfs2 -w'n' -s'n' -r'n' hc_datavg1 4
mklv -y' data1lv09_1g' -t 'jfs2 -w'n' -s'n' -r'n' hc_datavg1 4
mklv -y' data1lv10_1g' -t 'jfs2 -w'n' -s'n' -r'n' hc_datavg1 4
mklv -y' data1lv11_1g' -t 'jfs2 -w'n' -s'n' -r'n' hc_datavg1 4
mklv -y' data1lv12_1g' -t 'jfs2 -w'n' -s'n' -r'n' hc_datavg1 4
mklv -y' data1lv13_1g' -t 'jfs2 -w'n' -s'n' -r'n' hc_datavg1 4
mklv -y' data1lv14_1g' -t 'jfs2 -w'n' -s'n' -r'n' hc_datavg1 4
mklv -y' data1lv15_1g' -t 'jfs2 -w'n' -s'n' -r'n' hc_datavg1 4
mklv -y' data1lv16_1g' -t 'jfs2 -w'n' -s'n' -r'n' hc_datavg1 4
mklv -y' data1lv17_1g' -t 'jfs2 -w'n' -s'n' -r'n' hc_datavg1 4
mklv -y' data1lv18_1g' -t 'jfs2 -w'n' -s'n' -r'n' hc_datavg1 4
mklv -y' data1lv19_1g' -t 'jfs2 -w'n' -s'n' -r'n' hc_datavg1 4
mklv -y' data1lv20_1g' -t 'jfs2 -w'n' -s'n' -r'n' hc_datavg1 4


单机AIX 安装oracle
#vi .profile
umask 022
PS1="[`whoami`@`hostname`:"'$PWD]$'
export PS1
ORACLE_BASE=/oracle/app/oracle
export ORACLE_BASE
ORACLE_SID=cachedb
export ORACLE_SID
ORACLE_HOME=/oracle/app/oracle/product/10.2.0/db_1
export ORACLE_HOME
NLS_LANG='AMERICAN_AMERICA.ZHS16GBK'
export NLS_LANG
LD_LIBRARY_PATH=$ORACLE_HOME/lib
export LD_LIBRARY_PATH
PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:.
export PATH
PATH=$ORACLE_HOME/bin:$PATH
export PATH
export DBCA_RAW_CONFIG=/home/oracle/raw_map.txt    // 裸设备对应文件

/home/oracle/raw_map.txt 文件为
system=/dev/rsystems_2g
users=/dev/rusers_512m
temp=/dev/rtemp_512m
undotbs1=/dev/rundotbs1_2g
undotbs2=/dev/rundotbs2_2g
control1=/dev/rcntrl1_512m
control2=/dev/rcntrl2_512m
control3=/dev/rcntrl3_512m
redo1_1=/dev/rlog11_1g
redo1_2=/dev/rlog12_1g
redo2_1=/dev/rlog21_1g
redo2_2=/dev/rlog22_1g
redo3_1=/dev/rlog31_1g
redo3_2=/dev/rlog32_1g
spfile=/dev/rspfile_512m
indx=/dev/rindx_512m
tools=/dev/rtools_512m
sysaux=/dev/rsysaux_2g

开始安装数据库
运行 ./runInstaller

#dbca 建库
1、自定义安装数据库 custom database

2、raw 裸设备 。 选择mapping file  /home/oracle/raw_map.txt

3、按上面建立的LV 对应建库

SQL> select * from v$tablespace;   //系统表空间

       TS# NAME                           INC BIG FLA ENC
---------- ------------------------------ --- --- --- ---
         0 SYSTEM                         YES NO  YES
         1 UNDOTBS1                       YES NO  YES
         2 SYSAUX                         YES NO  YES
         3 TEMP                           NO  NO  YES
         4 USERS                          YES NO  YES

linux

source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template