AIX上安裝Oracle 10201

來源:互聯網
上載者:User

描述在AIX上安裝Oracle10201的過程。

首先檢查系統是否滿足資料庫安裝需要:

# /usr/sbin/lsattr -E -l sys0 -a realmem

realmem 32604160 Amount of usable physical memory in Kbytes False

# /usr/sbin/lsps -a

Page Space      Physical Volume  Volume Group Size %Used Active  Auto  Type Chksum

hd6            hdisk0            rootvg      16384MB    1  yes  yes    lv    0

# df -k /tmp

Filesystem    1024-blocks      Free %Used    Iused %Iused Mounted on

/dev/hd3          3145728  3140388    1%      69    1% /tmp

# df -k

Filesystem    1024-blocks      Free %Used    Iused %Iused Mounted on

/dev/hd4          3145728  2608568  18%    10939    2% /

/dev/hd2          4194304  1991084  53%    47242    10% /usr

/dev/hd9var      2097152  1764848  16%    8269    3% /var

/dev/hd3          3145728  3140388    1%      69    1% /tmp

/dev/fwdump      1048576  1048080    1%        5    1% /var/adm/ras/platform

/dev/hd1          2097152  2096488    1%        5    1% /home

/dev/hd11admin      262144    261744    1%        5    1% /admin

/proc                  -        -    -        -    -  /proc

/dev/hd10opt      4194304  3945520    6%    8748    1% /opt

/dev/livedump      262144    261776    1%        4    1% /var/adm/ras/livedump

# /usr/bin/getconf HARDWARE_BITMODE

64

系統內容要求至少1G記憶體,SWAP分區大小對於大於8G的記憶體需要75%記憶體大小,當前配置為50%記憶體大小,雖然足夠使用,但是Oracle檢查可能會報錯,需要忽略檢查錯誤才行。

要求AIX作業系統在5.2以上:

# oslevel -r

6100-06

當前為6,滿足要求。

檢查作業系統檔案集:

# 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              6.1.6.0  COMMITTED  Base Application Development

                                                Toolkit

  bos.adt.lib                6.1.2.0  COMMITTED  Base Application Development

                                                Libraries

  bos.adt.libm              6.1.5.0  COMMITTED  Base Application Development

                                                Math Library

  bos.perf.libperfstat      6.1.6.0  COMMITTED  Performance Statistics Library

                                                Interface

  bos.perf.perfstat          6.1.6.0  COMMITTED  Performance Statistics

                                                Interface

  bos.perf.proctools        6.1.6.0  COMMITTED  Proc Filesystem Tools

Path: /etc/objrepos

  bos.adt.base              6.1.6.0  COMMITTED  Base Application Development

                                                Toolkit

  bos.perf.libperfstat      6.1.6.0  COMMITTED  Performance Statistics Library

                                                Interface

  bos.perf.perfstat          6.1.6.0  COMMITTED  Performance Statistics

                                                Interface

對於6來說,版本足夠高,因此安裝文檔上描述的補丁集不再需要。

# cat /etc/netsvc.conf | grep hosts

# hosts = value [, value]

# Use one or more of the following values for the hosts keyword:

#            The auth option is only valid when used in conjunction with a service value for the hosts keyword.

# local      Searches the local /etc/hosts file for resolving names

# local4      Searches the local /etc/hosts file for resolving only IPv4 addresses

# local6      Searches the local /etc/hosts file for resolving only IPv6 addresses

# hosts = nis=auth, bind6, dave4

# hostname

ZHY-DT-1

# domainname

# cat /etc/hosts | grep `eval hostname`

172.20.20.1    ZHY-DT-1

驗證系統是否僅使用/etc/hosts作為唯一驗證名次的方式。

利用smit security建立oinstall、dba組。

利用smit security建立oracle使用者,指定primary使用者組oinstall,GROUPSET為dba,指定使用者建立目錄/home/oracle

# id oracle

uid=202(oracle) gid=201(oinstall) groups=202(dba)

# passwd oracle

確認使用者建立成功並修改密碼。

# id nobody

uid=4294967294(nobody) gid=4294967294(nobody)

確認nobody使用者存在。

利用smit chuser命令修改oracle使用者的shell配置:Soft FILE size、Soft CPU time、Soft DATA segment和Soft STACK size的限制都為-1。

利用smit chgsys配置系統參數:設定Maximum number of PROCESSES allowed per user大於等於2048。

# su - oracle

$ echo $SHELL

/usr/bin/ksh

$ ls -al

total 16

drwxr-xr-x    2 oracle  oinstall        256 Dec 22 01:06 .

drwxr-xr-x    5 bin      bin            256 Dec 22 00:51 ..

-rwxr-----    1 oracle  oinstall        254 Dec 22 00:51 .profile

-rw-------    1 oracle  oinstall        32 Dec 22 01:06 .sh_history

$ vi .profile

".profile" 9 lines, 254 characters

 


PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:.

export PATH

if [ -s "$MAIL" ]          # This is at Shell startup.  In normal

then echo "$MAILMSG"        # operation, the Shell checks

fi                          # periodically.

umask 022

AIXTHREAD_SCOPE=S; export AIXTHREAD_SCOPE

串連Oracle使用者,在環境變數中添加umask 022和AIX_THREAD_SCOPE環境變數。

將資料庫安裝目錄授權給oracle使用者:

# chown -R oracle:oinstall /data

建立安裝目錄:

$ mkdir -p /data/oracle/oradata

$ mkdir -p /data/oracle/product/10.2

在oracle使用者的profile檔案中添加下面的資訊:

ORACLE_SID=zhtrade; export ORACLE_SID

ORACLE_BASE=/data/oracle; export ORACLE_BASE

ORACLE_HOME=/data/oracle/product/10.2; export ORACLE_HOME

PATH=$ORACLE_HOME/bin:$PATH; export PATH

DISPLAY=172.20.10.150:1.0; export DISPLAY

利用cpio –idcmv < 10gr2_aix5l64_database.cpio解壓檔案,然後利用圖形方式開始安裝。

在運行/data/software/Disk1/runInstaller進行安裝之前,需要首先用root來運行rootpre.sh:

# ./rootpre.sh

./rootpre.sh output will be logged in /tmp/rootpre.out_10-12-22.02:41:36

Saving the original files in /etc/ora_save_10-12-22.02:41:36....

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.64bit_kernel with kmid: 0x50ca6000

 Successfully configured /etc/pw-syscall.64bit_kernel with kmid: 0x50ca6000

The kernel extension was successfuly loaded.

Configuring Asynchronous I/O....

Asynchronous I/O is not installed on this system.

You will need to install it, and either configure it yourself using

'smit aio' or rerun the Oracle root installation procedure.

Configuring POSIX Asynchronous I/O....

Posix Asynchronous I/O is not installed on this system.

You will need to install it, and either configure it yourself using

'smit aio' or rerun the Oracle root installation procedure.

Checking if group services should be configured....

Nothing to configure.

下面運行runInstaller開始資料庫軟體的安裝:

選擇進階安裝,對安裝過程進行定製;

由於設定了ORACLE_BASE和ORACLE_HOME環境變數,所以oraInvertory目錄和組資訊不需要改變;

選擇企業版,並載入中文語言;

ORACLE_HOME目錄選擇,這裡預設是正確的;

Oracle檢查安裝條件時會監測AIX6超過了預期的5.2或5.3,直接忽略這個問題開始安裝;

選擇安裝類型的時候選擇僅安裝資料庫軟體;

最後利用root運行兩個指令碼,安裝完成。

# /data/oracle/oraInventory/orainstRoot.sh

Changing permissions of /data/oracle/oraInventory to 775.

Changing groupname of /data/oracle/oraInventory to oinstall.

The execution of the script. is complete

# /data/oracle/product/10.2/root.sh

Running Oracle10 root.sh script...

The following environment variables are set as:

    ORACLE_OWNER= oracle

    ORACLE_HOME=  /data/oracle/product/10.2

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.

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.