一.安裝 Oracle Linux 6.1 系統
我這裡使用VBox 來安裝,具體使用參考:
Oracle Virtual Box 安裝使用 說明
在安裝OS 時安裝如下包:
Base System > Base
Base System > Client management tools
Base System > Compatibility libraries
Base System > Hardware monitoring utilities
Base System > Large Systems Performance
Base System > Network file system client
Base System > Performance Tools
Base System > Perl Support
Servers > Server Platform
Servers > System administration tools
Desktops > Desktop
Desktops > Desktop Platform
Desktops > Fonts
Desktops > General Purpose Desktop
Desktops > Graphical Administration Tools
Desktops > Input Methods
Desktops > X Window System
Development > Additional Development
Development > Development Tools
Applications >Internet Browser
二.安裝 Oracle 11gR2
之前也整理了幾篇Oracle安裝的文章,參考:
Linux平台oracle 資料庫 安裝文檔
64位 Linux平台下Oracle安裝文檔
這裡我們看一下在Oracle Linux 下Oracle 的安裝。
2.1 安裝軟體下載
Oracle從11g開始安裝介質就可以獨立進行安裝,從OTN上我們只能下載到11.2.0.1版本,從MOS上,我們可以下載到11.2.0.3版本。 我這裡使用MOS上的11.2.0.3版本進行測試。
OTN上的:
http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html
2.2 解壓縮 Patchset
Oracle 11g的Patchset 分幾個檔案,每個檔案的作用都不同。
第一, 二個包表示database , 如果升級資料庫,只需要這2個檔案即可。
第三個包表示grid, 用來升級RAC 的CRS。如果升級RAC 要先用這個檔案。
第四個表示用戶端,
第五個表示gateways,
第六個表示examples, 這個是我們的樣本檔案安裝包。
第七個表示deinstall .
更多內容參考:
Oracle 11gR2 Patchset 不同檔案作用 說明
#11.2.0.3
unzipp10404530_112030_Linux-x86-64_1of7.zip
unzipp10404530_112030_Linux-x86-64_2of7.zip
2.3 修改hosts 檔案
The "/etc/hosts" file mustcontain a fully qualified name for the server.
<IP-address> <fully-qualified-machine-name> <machine-name>
For example.
127.0.0.1 localhost
192.168.3.201 dave