熱點推薦:
您现在的位置: 電腦知識網 >> 編程 >> Oracle >> 正文

AIX 4.3.3 上面安裝 oracle 9.2

2022-06-13   來源: Oracle 

   檢查物理內存(RAM >= MB)
  # lsattr El sys a realmem
  realmem Amount of usable physical memory in Kbytes False
  #
  我們的是G呵呵夠了
   檢查swap空間(等於物理內存或者G最好大一些)
  # lsps a
  Page Space Physical Volume Volume Group Size %Used Active Auto Type
  hd hdisk rootvg MB yes yes lv
  #
  我們的是G呵呵
   檢查磁盤空間主要注意兩點
  a) 安裝 主要是存放 ORACLE CODE這個空間建議在G左右或者更大一點
  b) 另外安裝Oracle的過程中Oracle Universal Installer 需要大約M左右的臨時空間可以使用系統默認的/tmp目錄
  也可以自己設置環境變量TMPDIR來指定一個具有足夠空間的目錄或者在安裝過程中指定一個有足夠空間的臨時目錄
  如
  TMPDIR=/oratools
  export TMPDIR
  一般來說oracle的安裝文件都放在內置盤上所以我們需要看看內置盤的空間
  # lsdev Cc disk
  hdisk Available Bit LVD SCSI Disk Drive
  hdisk Available L SSA Logical Disk Drive
  #
  我們看到hdisk是內置盤現在確定其大小
  # lspv hdisk
  PHYSICAL VOLUME: hdisk VOLUME GROUP: rootvg
  PV IDENTIFIER: cafebebe VG IDENTIFIER cafebee
  PV STATE: active
  STALE PARTITIONS: ALLOCATABLE: yes
  PP SIZE: megabyte(s) LOGICAL VOLUMES:
  TOTAL PPs: ( megabytes) VG DESCRIPTORS:
  FREE PPs: ( megabytes) HOT SPARE: no
  USED PPs: ( megabytes)
  FREE DISTRIBUTION:
  USED DISTRIBUTION:
  #
  我們看到TOTAL 為GFREE 為G夠了呵呵
   檢查 OS 的版本兩種方法
  你可以用oslevel 命令確定當前的AIX 版本
  # oslevel
  
  #
  或者你也可以用oslevel r確定當前的AIX 版本和ML(the maintenance level of the system)
  # oslevel r
  
  #
  這樣的結果類似於用instfix 命令查看當前的ML:
  $ instfix i | grep ML
  All filesets for _AIX_ML were found
  All filesets for _AIX_ML were found
  All filesets for _AIX_ML were found
  All filesets for _AIX_ML were found
  All filesets for _AIX_ML were found
  All filesets for _AIX_ML were found
  All filesets for _AIX_ML were found
  All filesets for _AIX_ML were found
  All filesets for _AIX_ML were found
  All filesets for _AIX_ML were found
  All filesets for _AIX_ML were found
  Not all filesets for _AIX_ML were found
  All filesets for _AIX_ML were found
  All filesets for _AIX_ML were found
  All filesets for AIXML were found
  $
  可見我們的是AIX ML是
   查看OS 是否為 bit
  如果是 bit位的OS可以裝 bit 或者 bit 的oracle i 但是 bit的OS 只能裝 bit 的oracle
  因為oracle 沒有 bit的所以我們必須驗證我們的OS 是位的OS:
  也是有兩種方法
  # locale
  LANG=C
  LC_COLLATE=C
  LC_CTYPE=C
  LC_MONETARY=C
  LC_NUMERIC=C
  LC_TIME=C
  LC_MESSAGES=C
  LC_ALL=
  #
  或者
  # bootinfo y
  
  #
  看看OS的patch夠不夠
  Oracle的文檔上對於AIX 要求至少在ML 並且IY IY IYIY這四個patch實際上
  但是實際上我們還需要一個IY文檔上說這個包僅僅是和CPU的使用效率有關的包可以不要但是我安裝的經驗
  是一定要否則會出問題上述包如果不存在那麼需要到下面的站點download
  
  $ instfix i | grep ML
  All filesets for _AIX_ML were found
  All filesets for _AIX_ML were found
  All filesets for _AIX_ML were found
  All filesets for _AIX_ML were found
  All filesets for _AIX_ML were found
  All filesets for _AIX_ML were found
  All filesets for _AIX_ML were found
  All filesets for _AIX_ML were found
  All filesets for _AIX_ML were found
  All filesets for _AIX_ML were found
  All filesets for _AIX_ML were found
  Not all filesets for _AIX_ML were found
  All filesets for _AIX_ML were found
  All filesets for _AIX_ML were found
  All filesets for AIXML were found
  $
  顯然我們的AIX 是 ML
  查看某個patch是否安裝了
  # instfix i | grep IY
  All filesets for IY were found
  表示已經有這個patch了
  # instfix i | grep IY
  Not all filesets for IY were found
  表示沒有安裝IY這個patch
   特別要說明的是JAVA是在AIX 的默認安裝中是不安裝的需要手工安裝
  (在AIX 就不要手工裝了系統的默認安裝就會安裝java)
  至少需要JDK 對應的patch是 IY
  如果使用HTTP SERVER那麼就需要JDK 對應的patch是: IY
  下載地址
  ftp://serv/aix/efixes/
  (如果已經裝了這個補丁會有一個/usr/jdk_base目錄它就是你的JAVA_HOME)
   檢查是否具備所需的OS package
  AIX 需要下列package
  bosadtbase bosadtlib bosadtlibm bosperfperfstat
  我們可以使用lslpp pl os_package 命令來查看
  # lslpp l bosadtbase
  Fileset Level State Description
  
  Path: /usr/lib/objrepos
  bosadtbase COMMITTED Base Application Development
  Toolkit
  # lslpp l bosadtlib
  Fileset Level State Description
  
  Path: /usr/lib/objrepos
  bosadtlib COMMITTED Base Application Development
  Libraries
  # lslpp l bosadtlibm
  Fileset Level State Description
  
  Path: /usr/lib/objrepos
  bosadtlibm COMMITTED Base Application Development
  Math Library
  #
  如果上面需要的patch和packgae沒有安裝那麼去相應的站點download他們並使用smit的update all來安裝他們
  安裝過程中有時候會出現類似 這個包已經被安裝了或者指定的目錄不對 等錯誤這時候去你指定的目錄下面看看
  如果有toc文件我們需要刪除它(它是個隱含文件需要用ls a 查看)然後重新update all
   上面的都做完了以後reboot機器
  shutdown Fr
   檢查一下剛才的patch和package都有了現在給oracle劃分存儲空間
  首先需要一個地方存放安裝文件假設為/oratools我們需要進入
  smit- System Storage Management (Physical & Logical Storage)
  -File Systems 或者 -Logical Volume Manager
  (如果你是個AIX新手那麼你最好就選擇FS讓系統為你建立邏輯卷就好了呵呵
  如果想裝OPS或者RAC那麼你就要用先建邏輯卷再建文件系統的方法了因為系統建立的邏輯卷也許會重名呵呵)
  -Add / Change / Show / Delete File Systems
  -Journaled File Systems
  -Add a Journaled File System
  - Add a Large File Enabled Journaled File System(選擇這個可以支持大於G的文件系統)
  這是系統會出現讓你選擇一個vg的窗口最好不要選擇rootvg因為我們通常把和OS相關的東西放在那裡
  然後出現類似下面的窗口
  SIZE of file system (in byte blocks) [] #
  * MOUNT POINT []
  Mount AUTOMATICALLY at system restart? no
  (注意將Mount AUTOMATICALLY at system restart設置為自動mount)
   在建立一個ORACLE_HOME主目錄(方法同上)
   建立dba 組
  smit group - Add a Group
   建立oracle 用戶
  smit user - Add a User
   以oracle登陸修改profile
  PATH=/usr/bin:
From:http://tw.wingwit.com/Article/program/Oracle/201311/18728.html
    推薦文章
    Copyright © 2005-2022 電腦知識網 Computer Knowledge   All rights reserved.