安裝oracle10g for aix

lixiang114發表於2010-06-12

1、確認系統結構是否為64位:
# su - root
# getconf HARDWARE_BITMODE
64

2、確認實體記憶體大小:
# lsattr -E -l sys0 -a realmem
realmem 1048576 Amount of usable physical memory in Kbytes False

3、確認交換空間大小:
# lsps -a
Page Space Physical Volume Volume Group Size %Used Active Auto Type
hd6 hdisk0 rootvg 512MB 1 yes yes lv

4、確認臨時空間大小:
# df -k /tmp
Filesystem 1024-blocks Free %Used Iused %Iused Mounted on
/dev/hd3 1048576 1013876 4% 35 1% /tmp

[@more@]

4.1 增加臨時空間:
需要增加(2028m - 512m = 1516m),pp為32M 需要增加1516/32=48個pp
extendlv hd3 48

5、確認磁碟空間大小:
# df -k
Filesystem 1024-blocks Free %Used Iused %Iused Mounted on
/dev/hd4 655360 600752 9% 1788 1% /
/dev/hd2 2097152 727992 66% 33767 7% /usr
/dev/hd9var 32768 18720 43% 442 6% /var
/dev/hd3 1048576 1013876 4% 35 1% /tmp
/dev/hd1 1048576 1015112 4% 20 1% /home
/proc - - - - - /proc
/dev/hd10opt 8388608 8040208 5% 1630 1% /opt

6、確認AIX版本:
# oslevel -r
5300-07

7、確認Fileset是否安裝齊全:
# lslpp -l bos.adt.base bos.adt.lib bos.adt.libm bos.perf.perfstat
> bos.perf.libperfstat bos.perf.proctools
Fileset Level State Description
----------------------------------------------------------------------------
Path: /usr/lib/objrepos
bos.adt.base 5.3.7.0 COMMITTED Base Application Development
Toolkit
bos.adt.lib 5.3.0.60 COMMITTED Base Application Development
Libraries
bos.perf.libperfstat 5.3.7.0 COMMITTED Performance Statistics Library
Interface
bos.perf.perfstat 5.3.7.0 COMMITTED Performance Statistics
Interface
bos.perf.proctools 5.3.7.0 COMMITTED Proc Filesystem Tools

Path: /etc/objrepos
bos.perf.libperfstat 5.3.7.0 COMMITTED Performance Statistics Library
Interface
bos.perf.perfstat 5.3.7.0 COMMITTED Performance Statistics
Interface
lslpp: 0504-132 Fileset bos.adt.libm not installed.

7.1、安裝Fileset:
#smitty installp
選擇install and Update from LATEST Available Software安裝所需包

安裝成功重新確認:


8、確認APAR是否安裝齊全:
#instfix -i -k "IY89080"
All filesets for IY89080 were found.

9、配置system引數:
#smit chgsys
修改Maximum number of PROCESSES allowed per user引數為2048


10、建立Oracle Group(oinstall dba)
#smit security

11、建立Oracle Users
#smit security
Primary GROUP oinstall
Group SET dba

11.1 修改oracle使用者password
#passwd oracle

12、修改oracle使用者系統配額:
#vi /etc/security/limits
default:
fsize = -1
core = 2097151
cpu = -1
data = 262144
rss = 65536
stack = 65536
nofiles = 2000

root:

daemon:

bin:

sys:

adm:

uucp:

guest:

nobody:

lpd:

oracle:
data = -1
stack = -1

13、配置oracle使用者環境變數(.profile):
$ su - oracle
$ vi .profile
ORACLE_BASE=/opt/oracle;
export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/10.2.0;
export ORACLE_HOME
ORACLE_SID=oracle;
export ORACLE_SID
PATH=$ORACLE_HOME/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:
export PATH

14、建立oracle資料庫目錄:
$ su - oracle
$ mkdir -p /opt/oracle/product/10.2.0

15、將oracle安裝包透過FTP上傳到AIX上,並透過如下命令進行解壓縮:
$ su - oracle
$ gunzip 10gr2_aix5l64_database.cpio.gz
$ cpio -idcmv < 10gr2_aix5l64_database.cpio.gz

16、執行rootpre.sh指令碼:
#su - root
#cd /opt/Disk1/rootpre
#./rootpre.sh
./rootpre.sh output will be logged in /tmp/rootpre.out_10-06-12.13:58:39
Saving the original files in /etc/ora_save_10-06-12.13:58:39....
Copying new kernel extension to /etc....
Loading the kernel extension from /etc

Oracle Kernel Extension Loader for AIX
Copyright (c) 1998,1999 Oracle Corporation


Successfully loaded /etc/pw-syscall.32bit_kernel with kmid: 0x2eb0ebc
Successfully configured /etc/pw-syscall.32bit_kernel with kmid: 0x2eb0ebc
The kernel extension was successfuly loaded.

Configuring Asynchronous I/O....

Configuring POSIX Asynchronous I/O....

Checking if group services should be configured....
Nothing to configure.

17、安裝oracle:
$ cd /opt/Disk1
$ ./runInstaller

.......安裝過程中......

18、執行orainstRoot.sh和root.sh指令碼:
# su - root
# cd /home/oracle/oraInventory
# ls
Contents logs orainstRoot.sh
ContentsXML oraInst.loc oui
install.platform oraInstaller.properties sessionContext.ser
#
# ./orainstRoot.sh
Changing permissions of /home/oracle/oraInventory to 775.
Changing groupname of /home/oracle/oraInventory to oinstall.
The execution of the script is complete
# cd /opt/oracle/product/10.2.0/
# ./root.sh
Running Oracle10 root.sh script...

The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /opt/oracle/product/10.2.0

Enter the full pathname of the local bin directory: [/usr/local/bin]:
Creating /usr/local/bin directory...
Copying dbhome to /usr/local/bin ...
Copying oraenv to /usr/local/bin ...
Copying coraenv to /usr/local/bin ...


Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
#

........
安裝結束。

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7417660/viewspace-1034390/,如需轉載,請註明出處,否則將追究法律責任。

相關文章