Oracle 10g for Redhat Enterprise Server 5資料庫安裝
在Redhat Enterprise Server 5上安裝Oracle10g的過程,分成兩個部分,第一部分是安裝rhel5,第二部分是安裝oracle 10g。此文件是針對預設安裝rhel5系統,對於安裝redhat的話對硬體沒什麼特殊要求,而oracle就不一樣了,官方網站上講最好有512M記憶體,1GB的swap,3.7GB的磁碟空間。
[@more@]一.安裝Oracle 10G
1.安裝前的準備工作
下載oracle,去oracle官方網站就可以下載,需要OTN賬號(免費註冊)。最好看看官方的安裝指導。文章連結如下:
http://www.oracle.com/technology/documentation/database10g.html 英文完全手冊大全
英文linux X86安裝指導
安裝手冊
安裝前的準備的工作(linux)
複製相應的軟體到作業系統
2.軟體要求
依據官方的安裝文件要求,系統上必須具有下面的軟體包:
binutils-2.15.92.0.2
compat-db-4.1.25-9
compat-libstdc++-296-2.96-132.7.2
control-center-2.8.0-12
gcc-3.4.3
gcc-c++-3.4.3
glibc-2.3.4
glibc-common-2.3.4
gnome-libs-1.4.1.2.90-44.1
libstdc++-3.4.3-22.1
libstdc++-devel-3.4.3-22.1
make-3.80-5
pdksh-5.2.14-30
sysstat-5.0.5-1
xscreensaver-4.18
libXp-1.0.0-8.i386.rpm
openmotif22-2.2.3-18.i386.rpm
compat-db-4.2.52-5.1.i386.rpm
compat-gcc-34-3.4.6-4.i386.rpm
compat-gcc-34-c++-3.4.6-4.i386.rpm
compat-libstdc++-33-3.2.3-61.i386.rpm
libaio-0.3.106-3.2.i386.rpm
一般情況下除了compat的一些包和libXp的包沒安裝外,其他的包都已經安裝了,可以使用這個命令進行查詢:
rqm -q gcc gcc-c++ glibc make openmotif setarch compat-db libXp
查詢到沒有的包,可以從Redhat光碟上去找,也可以去上去下載。
rpm -Uvh libXp*.rpm
3.硬體要求
記憶體:512M;hard-disk:6GB(Redhat系統);4GB(oracle目錄);swap:1024M
# grep SwapTotal /proc/meminfo
# grep MemTotal /proc/meminfo
檢查得到的值 >=400m
4.建立Oracle組和使用者帳戶
接下來,建立用於安裝和維護Oracle10g軟體的Linux組和使用者帳戶。使用者帳戶將稱為oracle,而組將稱為oinstall和dba。以root使用者身份執行以下命令:
# mkdir -p /u01/app
# /usr/sbin/groupadd oinstall
# /usr/sbin/groupadd dba
# /usr/sbin/useradd -g oinstall -G dba -d /u01/app/oracle oracle
設定oracle帳戶口令
# passwd oracle
Changing password for user oracle.
New password:
Retype new password:
passwd:all authentication tokens updated successfully.
# chown -R oracle:oinstall /u01/app/oracle
# chmod -R 775 /u01/app/oracle
5.配置Linux核心引數
Linux核心非常出色。與大多數*NIX系統不同,Linux允許在系統啟動和執行時修改大多數核心引數。完成核心引數更改後不必重新啟動系統。Oracle資料庫 10g需要以下所示的核心引數設定。其中給出的是最小值,因此如果您的系統使用的值較大,則不要更改它。
需要以root身份登陸後執行以下命令
#cat >> /etc/sysctl.conf <
>kernel.shmmax = 268435456
>kernel.shmmni = 4096
# semaphores: semmsl, semmns, semopm, semmni
>kernel.sem = 250 32000 100 128
>fs.file-max = 65536
>net.ipv4.ip_local_port_range = 1024 65000
>net.core.rmem_default=262144
>net.core.rmem_max=262144
>net.core.wmem_default=262144
>net.core.wmem_max=262144
EOF
# /sbin/sysctl -p
以root身份執行以下命令來驗證配置:
#/sbin/sysctl -a | grep shm
kernel.shmall = 2097152
kernel.shmmax = 268435456
kernel.shmmni = 4096
#/sbin/sysctl -a | grep sem
kernel.sem = 250 32000 100 128
#/sbin/sysctl -a | grep file-max
fs.file-max = 65536
#/sbin/sysctl -a | grep net
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default=262144
net.core.rmem_max=262144
net.core.wmem_default=262144
net.core.wmem_max=262144
如果系統的引數設定比上述小,則編輯或更改這些引數,完成後,執行/sbin/sysctl -p 啟用更改
6.為oracle使用者設定Shell限制
Oracle建議對每個Linux帳戶可以使用的程式數和開啟的檔案數設定限制。要進行這些更改,以root使用者的身份執行下列命令:
# vi /etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
7.Oracle使用者的環境變數
要使用Oracle產品,應該或必須設定幾個環境變數。對於資料庫伺服器,建議設定以下環境變數:
ORACLE_BASE 、ORACLE_HOME、ORACLE_SID、PATH
以 oracle 身份登入,並透過在 .bash_profile 中新增以下行,將 ORACLE_BASE 新增到登入配置檔案:
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
export ORACLE_SID=orcl
export PATH=$PATH:$ORACLE_HOME/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib
export TMP=/tmp
export TMPDIR=$TMP
umask 022
$ source .bash_profile
8.安裝oracle軟體
在安裝oracle軟體之前,還有幾個步驟:
(1)首先修改Redhat發行標識
由於oracle10g具有系統安裝監測,當監測到的系統不符合安裝配置規定的要求時,安裝不能正常進行,故要更改作業系統的版本標識,這一操作不會影響任何系統問題,可以在安裝結束後恢復為正常狀態。
備份/etc/redhat-release檔案為/etc/redhat-release.bak
以root許可權修改/etc/redhat-release檔案
將檔案的內容Red Hat Enterprise Linux Server release 5.1 (Tikanga)
修改為Red Hat Enterprise Linux Server release 4 (Tikanga)
(2)解壓下載的oracle軟體到相應的目錄
$ unzip 10201_database_linux32.zip -d /tmp/oracle
#xhost +
以oracle使用者登陸,進行安裝
$./runInstaller
然後跳出圖形介面,開啟我們的oracle安裝之旅,後面的主要是填寫SID 以及oracle使用者密碼等,安裝路徑一般採用預設的就可以了,等安裝結束後根據提示執行2個shell指令碼。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7490392/viewspace-1023822/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 「Oracle」Oracle 資料庫安裝Oracle資料庫
- RedHat Advance Server上安裝Oracle 9204 RAC參考手冊(轉)RedhatServerOracle
- Red Hat Enterprise Linux Server 7.4 安裝LinuxServer
- Oracle 10g 在linux redhat as4 系統安裝圖解全過程Oracle 10gLinuxRedhat圖解
- Oracle 資料庫打包安裝Oracle資料庫
- ISO 映象安裝oracle 10gOracle 10g
- oracle rac資料庫的安裝Oracle資料庫
- vgant 安裝oracle資料庫racOracle資料庫
- RedHat FC5安裝xmmsRedhat
- windows server2008安裝mysql資料庫WindowsServerMySql資料庫
- Oracle 12c資料庫安裝Oracle資料庫
- Windows server 2016伺服器上安裝oracle資料庫的教程圖解WindowsServer伺服器Oracle資料庫圖解
- oracle 10g建立資料庫鏈的簡化Oracle 10g資料庫
- RedHat上靜默安裝Oracle11gRedhatOracle
- redhat7.2靜默安裝Oracle11.2.0.4RedhatOracle
- redhat7.6安裝Oracle11G RACRedhatOracle
- Oracle:Redhat 7 + Oracle RAC 11g 安裝 bug 總結OracleRedhat
- sql server2016叢集資料庫解除安裝SQLServer資料庫
- Oracle 資料庫 10g中的分割槽功能(轉)Oracle資料庫
- windows2008R2安裝oracle 10gWindowsOracle 10g
- 靜默安裝Oracle11g資料庫Oracle資料庫
- 靜默安裝Oracle資料庫11gOracle資料庫
- 使用RPM安裝ORACLE-21c資料庫Oracle資料庫
- 使用RPM安裝ORACLE-19c資料庫Oracle資料庫
- redhat安裝dockerRedhatDocker
- 如何做好SQL Server資料庫安裝規劃OMSQLServer資料庫
- Ubuntu 16.04下安裝資料庫Oracle客戶端Ubuntu資料庫Oracle客戶端
- Oracle 11G資料庫單例項安裝Oracle資料庫單例
- CentOS7 安裝Oracle12c資料庫CentOSOracle資料庫
- ORACLE---Aix7.1 安裝Oracle11.2.0.4版本資料庫OracleAI資料庫
- 11. Oracle for Linux安裝和配置—11.3. Oracle安裝和配置—11.3.2. 資料庫建立OracleLinux資料庫
- Red Hat 7.9安裝達夢資料庫DM8 使用Xmanager Enterprise 5啟動圖形化時報錯資料庫
- oracle 11g 單例項資料庫的安裝Oracle單例資料庫
- Ubuntu 16.04下安裝Oracle資料庫的ODBC驅動UbuntuOracle資料庫
- oracle下載安裝及PLSQL連線資料庫教程OracleSQL資料庫
- 靜默方式安裝、升級oracle(二): 建立資料庫Oracle資料庫
- Oracle21c資料庫安裝問題記錄Oracle資料庫
- RedHat 7 靜默安裝Oracle11g的補充RedhatOracle
- 【配置安裝】靜默安裝Oracle資料庫軟體12c&19cOracle資料庫