Oracle10g + Solaris9 for x86 + vmware安裝步驟
最後更新:2017-02-28
來源:互聯網
上載者:User
oracle
轉自:CSDN
Oracle於近期發布了最新的Oracle10g for Solaris x86的版本,於是在vmware的Solaris9中測試安裝了一下。
本文只是記錄安裝的基本步驟,對於建立dba使用者組和oracle使用者等步驟的命令一概省略。
注意必須是Solaris9的版本,至少文檔中沒有明確說明支援Solaris8或者Solaris10
1。到Oracle的OTN網站上下載Oracle10g for Solaris x86的安裝盤
http://www.oracle.com/technology/software/products/database/oracle10g/htdocs/solx86soft.html
2。下載完畢以後,得到solarisx86_DB_10_1_0_3_Disk1.cpio.gz檔案
解壓,產生Disk1目錄
$ gunzip solarisx86_DB_10_1_0_3_Disk1.cpio.gz
$ cpio -idcmv < solarisx86_DB_10_1_0_3_Disk1.cpio
3。要求的硬體設定如下
Physical memory (RAM) :512 MB (524288 KB)
# /usr/sbin/prtconf | grep "Memory size"
Swap space :1 GB (1048576 KB) 或者RAM 的2倍
# /usr/sbin/swap -s
Disk space in /tmp:400 MB (409600 KB)
# df -h /tmp
Disk space for software files:2.5 GB (2621440 KB)
包括了給Companion CD 上的產品預留的1 GB (1048576 KB) 空間。Companion CD 上的產品可以不用安裝,但是oralce推薦安裝。
Disk space for database files:1.2 GB (1258290 KB)
# df -h
4。要求的軟體配置如下
作業系統必須是Solaris 9
# uname -r
以下包必須安裝
SUNWarc SUNWlibms SUNWi1of
SUNWbtool SUNWsprot SUNWi1cs
SUNWhea SUNWi15cs SUNWlibm
SUNWtoo SUNWxwfnt
# pkginfo -i SUNWarc SUNWbtool SUNWhea SUNWlibm \
SUNWlibms SUNWsprot SUNWtoo SUNWi1of \
SUNWi1cs SUNWi15cs SUNWxwfnt
以下patch必須安裝
111713-06, SunOS 5.9_x86: Shared library patch for C++
111728-03, SunOS 5.9_x86: Math Library (libm) patch
112234-12, SunOS 5.9_x86: Kernel Patch
113986-08, SunOS 5.9_x86: linker Patch
115114-02, SunOS 5.9_x86: Patch for assembler
116013-02, SunOS 5.9_x86: ps utility patch (Available only from your local Sun solution center)
# /usr/sbin/patchadd -p | grep <patch_number>
如果沒有安裝到http://sunsolve.sun.com下載並且安裝,安裝包
解壓下載的zip包到/var/spool/pkg目錄,比如產生/var/spool/pkg/111713-06目錄,然後
# /usr/sbin/patchadd /var/spool/pkg/111713-06
5。建立dba組和oracle使用者
6。建立/var/opt/oracle目錄,並且將改目錄的屬主改為oracle使用者
# mkdir -p /var/opt/oracle
# chown oracle:dba /var/opt/oracle
6。設定系統核心參數,要求如下
semsys:seminfo_semmni 100
semsys:seminfo_semmns 1024
semsys:seminfo_semmsl 256
semsys:seminfo_semvmx 32767
shmsys:shminfo_shmmax 4294967295
shmsys:shminfo_shmmni 100
備份原檔案
# cp /etc/system /etc/system.orig
編輯設定檔
# vi /etc/system
添加如下行
set semsys:seminfo_semmni=100
set semsys:seminfo_semmns=1024
set semsys:seminfo_semmsl=256
set semsys:seminfo_semvmx=32767
set shmsys:shminfo_shmmax=4294967295
set shmsys:shminfo_shmmni=100
儲存設定檔
7。重啟系統
# sync;sync;reboot
8。登入oracle使用者,開始安裝oracle10g
runInstaller
9。後續步驟跟其它作業系統的安裝沒有區別,不再贅述。