一. 作為root用戶的工作
1. 配置內核參數
用root用戶登陸
#sam 進入system administrator manager
在其中選擇kernel configuration,進入以后在選擇configurable parameters
修改以下參數















2. 安裝Oracle9201所需要的磁盤空間
創建2個文件系統,一個用來安裝oracle,不小于
3. 創建dba組和oracle用戶
用root用戶登陸
#sam進入system administrator manager
在其中選擇accounts for users and groups
選擇groups,選擇menu中的actions選項中的add
輸入group name為dba,然后確定
回到accounts for users and groups
選擇users,選擇menu中的actions選項中的add
輸入login name為oracle,home directory為/home/oracle,primary group name為dba,確定,輸入密碼oracle并確認
二. 設置Oracle的環境變量
#su – oracle 用oracle用戶登陸
$vi .profile 修改參數文件
在文件的最后加入以下參數




















注:行末尾的“\”符號表示下一行接著上一行繼續
$. ./.profile應用環境變量文件
三.安裝系統的補丁
需要安裝的補丁有:GOLDQPK11i,MegPatch, PHKL_25506,PHSS_26263,PHSS_24638,第一個補丁在附帶的光盤里有,將光盤mount上去以后用swinstall –s /cdrom/GOLDQPK11i來安裝,剩下3個可以在itrc.hp.com找到,下載以后先用sh命令解開成為.depot文件,然后用swinstall –s 文件全名安裝補丁,例如PHKL_25506,假設下載到/tmp目錄




注:如果裝操作系統的時候打過了隨機的系統補丁,只需要打PHSS_26263這一個補丁就行了
四.修改系統的bug
執行以下命令










五.安裝oracle并建立數據庫(以下部分應為集成商或廠商完成)
將下載下來的server_9201_hpunix64_disk1.cpio.gz,server_9201_hpunix64_disk2.cpio.gz,server_9201_hpunix64_disk3.cpio.gz,server_9201_hpunix64_disk4.cpio.gz四個文件放到/oradata中,用gunzip 文件名解壓成4個.cpio的文件,然后用cpio –idcmv < 文件名解壓這4個cpio文件,生成4個目錄Disk1,Disk2,Disk3,Disk4
安裝xmanager,并用oracle用戶登陸到服務器,并啟動一個終端,在終端里輸入
$DISPLAY=Your PC IP:0.0
$export DISPLAY
$/oradata/Disk1/runInstaller
然后就出現了universal installer
點next,source path和destination里的name和home都應該已經設定好,如果destination沒有設定好,那自行輸入name和home,home的路徑要和.profile里設定的一樣
點next,選擇oracle9i dababase 9.2.0.1.0,點next
選擇custom,點next,選擇要安裝的組件,點next
在component locations中直接點next
在administrator group和operator group中都是dba,點next
在create database中選擇no,點next
jdk home是/opt/java1.3/jre,點next
看一下summary,然后點install開始安裝
安裝完了以后,提示要先運行root.sh,telnet服務器用root登陸
#cd /oracle/product/9.2.0.1
#sh root.sh
提示local bin directory為/usr/local/bin,直接回車
如有重復,就覆蓋
執行完root.sh以后返回xmanager,點ok
出現net configuration assistant對話框,點next
選No, I want to defer this configuration to another time,點next
輸入listener的name,點next
已經安裝了tcp協議,點next
使用默認端口1521,點next
提示是否要配置另外一個listener的時候,選擇no,點next
listener configuration complete,點next
選 No, I do not to change the naming methods configured,點next
Oracle Net Configuration Complete,點finish
出現database configuration assistant,點next
選create a database,點next
選general purpose,點next
輸入database的name和sid號,點next
選擇Dedicated server mode,點next
選擇character sets,選擇choose from the list of character sets,選擇ZHS16GBK,點next
出現database storage窗口,點next
選create database,點finish
看一下summary,點ok
然后開始建立數據庫,建好以后需要輸入sys和system用戶的密碼
完成安裝,exit退出。