溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

AIX7.1安裝oracle 11g

發(fā)布時間:2020-07-24 01:34:31 來源:網(wǎng)絡(luò) 閱讀:1325 作者:llc018198 欄目:關(guān)系型數(shù)據(jù)庫
  1. 環(huán)境配置:

1).操作系統(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ù)強制執(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 --#將引導信息加入新盤中

bosboot: Boot p_w_picpath is 53276 512 byte blocks.

# bootlist -m normal hdisk0 hdisk1 --更改啟動順序

# 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]

安裝選項選擇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í)行完成。

啟動CDE

a、在AIX啟動時自動啟動CDE。使用root用戶登錄,并在命令行中執(zhí)行:

# /usr/dt/bin/dtconfig -e

b、在命令行中啟動CDE:

# /etc/rc.dt;exit

# /usr/dt/bin/dtlogin -daemon

c、確認CDE已經(jīng)啟動:

# ps -ef |grep dtlogin

# netstat -an |grep 177


2).修改系統(tǒng)時間和時區(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)重啟后自動掛載

-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

AIX7.1安裝oracle 11g

綁定后,多出了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)擴展交換分區(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

2.4系統(tǒng)參數(shù)文件

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

AIX7.1安裝oracle 11g上傳oracle安裝鏡像:

jar xvf 鏡像.ZIP。

安裝,,,

遇到INS-30060錯誤,解決辦法:# 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


補充:AIX掛載LINUX的NFS文件報錯解決:

# 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

開機自啟動

# 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


向AI問一下細節(jié)

免責聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI