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

Oracle10G R2(10.2.0.1)在AIX5.2.0.4(64bit)上的安裝

2022-06-13   來源: Oracle 

  主機環境
  
  # lsdev Cc processor
  proc Available Processor
  proc Available Processor
  proc Available Processor
  proc Available Processor
  proc Available Processor
  proc Available Processor
  proc Available Processor
  proc Available Processor
  proc Available Processor
  proc Available Processor
  proc Available Processor
  proc Available Processor
  
  # lsdev Cc memory
  Lcache Available L Cache
  mem   Available Memory
  # lsattr El mem
  goodsize Amount of usable physical memory in Mbytes False
  size   Total amount of physical memory in Mbytes False
  # lsattr El Lcache
  size Size of L cache in Kbytes False
  #
  
  下載完畢個文件databasecomp cluster 准備ftp上傳到服務器上提示超過file size limit慘啊穿了好久居然要出錯還要重傳
  
  # ulimit a
  time(seconds)    unlimited
  file(blocks)    
  data(kbytes)    
  stack(kbytes)    
  memory(kbytes)   
  coredump(blocks)  
  nofiles(descriptors)
  
  # ulimit Ha
  time(seconds)    unlimited
  file(blocks)    
  data(kbytes)     unlimited
  stack(kbytes)    
  memory(kbytes)    unlimited
  coredump(blocks)   unlimited
  nofiles(descriptors) unlimited
  
  修改參數限制file和stack需要在/etc/security/limits中修改了
  
  # ulimit unlimited
  # ulimit a
  time(seconds)    unlimited
  file(blocks)     unlimited
  data(kbytes)    
  stack(kbytes)    
  memory(kbytes)   
  coredump(blocks)  
  nofiles(descriptors)
  # ulimit Ha
  time(seconds)    unlimited
  file(blocks)     unlimited
  data(kbytes)     unlimited
  stack(kbytes)    
  memory(kbytes)    unlimited
  coredump(blocks)   unlimited
  nofiles(descriptors) unlimited
  
  這裡有點不明白為什麼說soft limit不能超過hard limit的為什麼我一條命令就把兩個的輸出都變成unlimited了
  
  # ulimit s unlimited
  # ulimit a
  time(seconds)    unlimited
  file(blocks)     unlimited
  data(kbytes)    
  stack(kbytes)    unlimited
  memory(kbytes)   
  coredump(blocks)  
  nofiles(descriptors)
  # unlimit d unlimited
  ksh: unlimit: not found
  # unlimit d unlimited
  ksh: unlimit: not found
  # ulimit d unlimited
  # ulimit m unlimited
  # ulimit a
  time(seconds)    unlimited
  file(blocks)     unlimited
  data(kbytes)     unlimited
  stack(kbytes)    unlimited
  memory(kbytes)    unlimited
  coredump(blocks)  
  nofiles(descriptors)
  
  # gunzip gr_aixl_databasecpiogz
  # cpio idcmv <gr_aixl_databasecpio
  
  擴大tmp和home的空間
  lslpp l 檢查這些包安裝了沒有
  bosadtbase
  bosadtlib
  bosadtlibm
  bosperflibperfstat
  bosperfperfstat
  bosperfproctools
  xlCaixrte: or later
  xlCrte: or later
  
  下載aix需要的補丁
  All installations Authorized Problem Analysis Reports (APARs) for AIX L v
  
  ML :
  ■ IY: large percentage of CPU time spent in ldata_balance
  
  routine
  ■ IY: deadlock with concurrent renaming and unlinking
  
  under JFS
  ■ IY: dlsym returns null even for valid symbol in AIX
  
  ML
  ■ IY: chvg b can cause corruption and crash
  ■ IY: AIO can hang in knotunlock
  ■ IY: mklvcopy on a striped lv is failing to update lvcb
  
  這裡描述了oracleg和aix需要的一些軟件的信息
  <tabase_id=NOT&p_id=>
  
  建立oinstall dba 組建立oracle用戶主組為oinstallgroup set包含dba
  smitty chuser 改變oracle用戶的soft ulimit data stack file cpu 為l
  smitty chgsys改用戶的最大進程數為
  
  建立目錄結構
  
  # mkdir p /home/oracle/product/
  # chown R oracle:oinstall /home/oracle/product/
  # chmod R /home/oracle/product/
  
  配置文件內容
  
  umask
  ORACLE_SID=orcl; export ORACLE_SID
  ORACLE_BASE=/home/oracle; export ORACLE_BASE
  ORACLE_HOME=$ORACLE_BASE/product/; export ORACLE_HOME
  AIXTHREAD_SCOPE=S; export AIXTHREAD_SCOPE
  PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X:/sbin:
  
  export PATH
  
  if [ s $MAIL ]      # This is at Shell startup In normal
  then echo $MAILMSG    # operation the Shell checks
  fi             # periodically
  
  將多個補丁放在一個目錄中smitty update_all安裝選擇保存舊文件和不提交
  
  $ /runInstaller
  **************************************************************************
  
  Your platform requires the root user to perform certain preinstallation
  OS preparation The root user should run the shell script rootpresh be
  fore
  you proceed with Oracle installation rootpresh can be found at the top
  level
  of the CD or the stage area
  
  Answer y if root has run rootpresh so you can proceed with Oracle
  installation
  Answer n to abort installation and then ask root to run rootpresh
  
  **************************************************************************
  
  Has rootpresh been run by root? [y/n] (n)
  
  # /rootpresh
  /rootpresh output will be logged in /tmp/rootpreout_::
  Saving the original files in /etc/ora_save_::
  Copying new kernel extension to /etc
  Loading the kernel extension from /etc
  
  Oracle Kernel Extension Loader for AIX
  Copyright (c) Oracle Corporation
  
  Successfully loaded /etc/pwsyscallbit_kernel with kmid: xc
  Successfully configured /etc/pwsyscallbit_kernel with kmid: xc
  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
  
  然後剩下的都是圖形界面的選擇了好像gR的安裝比以前的i等簡單得多了profile文件中居然沒寫什麼也沒有安裝錯誤
From:http://tw.wingwit.com/Article/program/Oracle/201311/18541.html
    推薦文章
    Copyright © 2005-2022 電腦知識網 Computer Knowledge   All rights reserved.