環(huán)境配置:
創(chuàng)新互聯(lián)公司主要從事成都網(wǎng)站設(shè)計(jì)、網(wǎng)站建設(shè)、網(wǎng)頁設(shè)計(jì)、企業(yè)做網(wǎng)站、公司建網(wǎng)站等業(yè)務(wù)。立足成都服務(wù)靈山,十多年網(wǎng)站建設(shè)經(jīng)驗(yàn),價(jià)格優(yōu)惠、服務(wù)專業(yè),歡迎來電咨詢建站服務(wù):028-869222201).操作系統(tǒng)版本:
# oslevel -s
7100-01-06-1241
給rootvg做鏡像:
# lsdev -Cc disk -- #查看系統(tǒng)盤的分配情況
hdisk0 Available 07-08-00 SAS Disk Drive
hdisk1 Available 07-08-00 SAS Disk Drive
hdisk2 Available 07-08-00 SAS Disk Drive
# chdev -l hdisk1 -a pv=yes --#將hdisk1配置為PV
hdisk1 changed
# extendvg -f rootvg hdisk1 --#將hdisk1配置入rootvg中(可以加-f參數(shù)強(qiáng)制執(zhí)行添加到rootvg中的操作)
# mirrorvg rootvg
0516-1804 chvg: The quorum change takes effect immediately.
0516-1126 mirrorvg: rootvg successfully mirrored, user should perform
bosboot of system to initialize boot records. Then, user must modify
bootlist to include: hdisk1 hdisk0.
# bosboot -a -d /dev/hdisk1 --#將引導(dǎo)信息加入新盤中
bosboot: Boot p_w_picpath is 53276 512 byte blocks.
# bootlist -m normal hdisk0 hdisk1 --更改啟動(dòng)順序
# lsvg -l rootvg
rootvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
hd5 boot 1 2 2 closed/syncd N/A
hd6 paging 33 66 2 open/syncd N/A
hd8 jfs2log 1 2 2 open/syncd N/A
hd4 jfs2 2 4 2 open/syncd /
hd2 jfs2 5 10 2 open/syncd /usr
hd9var jfs2 1 2 2 open/syncd /var
hd3 jfs2 39 78 2 open/syncd /tmp
hd1 jfs2 1 2 2 open/syncd /home
hd10opt jfs2 1 2 2 open/syncd /opt
hd11admin jfs2 1 2 2 open/syncd /admin
lg_dumplv sysdump 6 12 2 open/syncd N/A
livedump jfs2 1 2 2 open/syncd /var/adm/ras/livedump
安裝CDE圖形界面:
#smit install_bundle
安裝路徑選擇/dev/cd0
INPUT device / directory for software [/dev/cd0]
安裝選項(xiàng)選擇CDE,如
# Bundle (Locations)
AllDevicesKernels
Alt_Disk_Install
App-Dev
CC_EVAL.DocServices
CC_EVAL.Graphics
CDE
DocServices
GNOME
最后選擇安裝設(shè)置,如。
* INPUT device / directory for software /dev/cd0
* BUNDLE CDE
* SOFTWARE to install [all]
……
ACCEPT new license agreements? yes
回車執(zhí)行,安裝提示插入第二張光盤,直到最后安裝執(zhí)行完成。
啟動(dòng)CDE
a、在AIX啟動(dòng)時(shí)自動(dòng)啟動(dòng)CDE。使用root用戶登錄,并在命令行中執(zhí)行:
# /usr/dt/bin/dtconfig -e
b、在命令行中啟動(dòng)CDE:
# /etc/rc.dt;exit
# /usr/dt/bin/dtlogin -daemon
c、確認(rèn)CDE已經(jīng)啟動(dòng):
# ps -ef |grep dtlogin
# netstat -an |grep 177
2).修改系統(tǒng)時(shí)間和時(shí)區(qū):
3).創(chuàng)建oracle用戶和用戶組:
# id oracle
uid=202(oracle) gid=201(oinstall) groups=402(dba),403(oper)
4)創(chuàng)建安裝oracle數(shù)據(jù)庫的目錄:
創(chuàng)建datavg
#mkdir /u01
#mklv -t jfs2 -y lv_databack datavg 100G
-t 為邏輯卷類型
-y為邏輯卷名字
datavg是指定卷組
#crfs -v jfs2 -d lv_databack -A yes -m /databack
-v 為文件系統(tǒng)的類型
-d為邏輯卷名字
-A 為系統(tǒng)重啟后自動(dòng)掛載
-m為掛載的目錄
#mount /u01
# df -g /u01
Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/lv_u01 100.00 83.91 17% 42585 1% /u01
$ mkdir -p /u01/app/oracle/product/11.2.0/db_1
修改目錄權(quán)限
修改oracle環(huán)境變量:
export ORACLE_SID=ORCL
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1
export PATH=$PATH:$ORACLE_HOME/bin
生效:
$ ./.profile
5)網(wǎng)卡綁定:
綁定前:
# lsdev -Cc adapter
ent0 Available 01-08 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902)
ent1 Available 01-09 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902)
綁定方法:smitty etherchannel
綁定后,多出了ent2網(wǎng)卡
# lsdev -Cc adapter | grep ent
ent0 Available 01-08 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902)
ent1 Available 01-09 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902)
ent2 Available EtherChannel / IEEE 802.3ad Link Aggregation
6)hosts文件:
# cat /etc/hosts | grep oracle
192.168.1.98 oracle
7)擴(kuò)展交換分區(qū):
chps -s 3 hd6 交換分區(qū)
# lsps -a
Page Space Physical Volume Volume Group Size %Used Active Auto Type Chksum
hd6 hdisk0 rootvg 16896MB 1 yes yes lv 0
安裝基本條件:
The following operating system filesets are required for AIX 7.1:
bos.adt.base
bos.adt.lib
bos.adt.libm
bos.perf.libperfstat
bos.perf.perfstat
bos.perf.proctools
xlC.rte.11.1.0.2
or later
gpfs.base 3.3.0.11
or later
系統(tǒng)其它設(shè)置
default:
fsize = -1
core = -1
cpu = -1
data = -1
rss = -1
stack = -1
nofiles = -1
lsattr -EH -l sys0 -a ncargs 檢查內(nèi)核參數(shù)ncargs的值
lsattr -EH -l sys0 -a maxuproc 檢查內(nèi)核參數(shù)maxuproc的值
ioo -o aio_maxreqs 在AIX7.1中檢查內(nèi)核參數(shù)maxreqs的值
修改命令:
chdev -l sys0 -a ncargs=256
chdev -l sys0 -a maxuproc=16384
ioo -o aio_maxreqs=65536 在AIX6.1中檢查內(nèi)核參數(shù)maxreqs的值
修改命令:
no -p -o tcp_ephemeral_low=9000
no -p -o tcp_ephemeral_high=65500
no -p -o udp_ephemeral_low=9000
no -p -o udp_ephemeral_high=65500
no -p -o udp_sendspace=655360
no -p -o udp_recvspace=655360
no -p -o tcp_sendspace=655360
no -p -o tcp_recvspace=655360
no -p -o rfc1323=1
no -p -o sb_max=1310720
no -r -o ipqmaxlen=512
上傳oracle安裝鏡像:
jar xvf 鏡像.ZIP。
安裝,,,
遇到INS-30060錯(cuò)誤,解決辦法:# chmod 775 -R /tmp/CVU_11.2.0.3.0_oracle、
安裝完成:
$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.3.0 Production on Thu Jan 29 14:17:59 2015
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> !oslevel
7.1.0.0
補(bǔ)充:AIX掛載LINUX的NFS文件報(bào)錯(cuò)解決:
# showmount -e 192.168.1.13
export list for 192.168.1.13:
/var/ftp/software *.*
# mount 192.168.1.13:/var/ftp/software /software
mount: 1831-008 giving up on:
192.168.1.13:/var/ftp/software
vmount: Operation not permitted.
解決辦法:
# nfso -o nfs_use_reserved_follvports=1
Setting nfs_use_reserved_ports to 1
# mount 192.168.1.13:/var/ftp/software /software
# df -g /software
Filesystem GB blocks Free %Used Iused %Iused Mounted on
192.168.1.13:/var/ftp/software 1574.90 948.00 40% 73951 1% /software
==================================================================
# mkgroup -'A' id='2000' adms='root' finstall
# mkgroup -'A' id='2001' adms='root' fdba
# mkgroup -'A' id='2002' adms='root' foper
# mkuser id='2010' pgrp='finstall' groups='fdba,foper' home='/home/fol' fol
# id fol
uid=2010(fol) gid=2000(finstall) groups=2001(fdba),2002(foper)
# passwd fol
Changing password for "fol"
fol's New password:
Enter the new password again:
# chdev -l hdisk30 -a pv=yes
hdisk30 changed
# mkvg -f -y datavg hdisk30
datavg
開機(jī)自啟動(dòng)
# chvg -ay datavg
# mkdir /fol
# mklv -t jfs2 -y follv datavg 100G
follv
# crfs -v jfs2 -d follv -A yes -m follv
File system created successfully.
104854196 kilobytes total disk space.
New File System size is 209715200
mkdir -p /fol/app/oracle/product/11.2.0/db_1
chown -R fol:finstall /fol/app/oracle
# chown -R fol:finstall /fol/app/oracle
# chmod -R 775 /fol/app/
export ORACLE_SID=CWFOLB
export ORACLE_BASE=/fol/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1
export PATH=$PATH:$ORACLE_HOME/bin
./runInstaller -invPtrLoc /fol/app/oracle/oraInst.loc
mklv -t jfs2 -y foldata datavg 450G
crfs -v jfs2 -d foldata -A yes -m /foldata
mklv -t jfs2 -y folarch datavg 250G
crfs -v jfs2 -d folarch -A yes -m /folarch
mklv -t jfs2 -y folback datavg 150G
crfs -v jfs2 -d folback -A yes -m /folback
另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)cdcxhl.cn,海內(nèi)外云服務(wù)器15元起步,三天無理由+7*72小時(shí)售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國服務(wù)器、虛擬主機(jī)、免備案服務(wù)器”等云主機(jī)租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡(jiǎn)單易用、服務(wù)可用性高、性價(jià)比高”等特點(diǎn)與優(yōu)勢(shì),專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場(chǎng)景需求。