1、建立 oinstall、dba、oper 組
2、Oracle 用戶
3、系統(tǒng)參數(shù)調(diào)優(yōu) (AIX 6L 中對(duì) aio 已經(jīng)采用動(dòng)態(tài)形式,不需要配置,運(yùn)行 rootpre.sh 警告 aio 的問(wèn)題可以忽略)
4、檢查系統(tǒng)軟件包(依賴軟件包必須打齊 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 //插入第一張系統(tǒng)盤,選擇安裝語(yǔ)言
5、建立 vg 類型 scanable (orignal和big )---- auto start --- no concurennt--- PP size 256
在Oracle raw 裸設(shè)備的時(shí)候,scanable 這個(gè)特別要注意。
6、建立文件系統(tǒng)
#smit crfs // enhence journaled filesystem(jfs2) / mount point /大小
系統(tǒng)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
數(shù)據(jù) 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
單機(jī)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 // 裸設(shè)備對(duì)應(yīng)文件
/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
開始安裝數(shù)據(jù)庫(kù)
運(yùn)行 ./runInstaller
#dbca 建庫(kù)
1、自定義安裝數(shù)據(jù)庫(kù) custom database
2、raw 裸設(shè)備 。 選擇mapping file /home/Oracle/raw_map.txt
3、按上面建立的LV 對(duì)應(yīng)建庫(kù)
SQL> select * from v$tablespace; //系統(tǒng)表空間
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 本文出自:億恩科技【1tcdy.com】
服務(wù)器租用/服務(wù)器托管中國(guó)五強(qiáng)!虛擬主機(jī)域名注冊(cè)頂級(jí)提供商!15年品質(zhì)保障!--億恩科技[ENKJ.COM]
|