Oracle9.2.0.4 在 Red Hat Enterprise 4上的安裝
幾天的時間,無數次的baidu和google,終於把基於rhel4的oracle9i安裝好了。
得出的經驗就是一定要按照文件上的去做,把每個補丁打齊了,就應該可以正常的安裝了。
下面是轉貼的安裝文件
[@more@]下面我們開始安裝:
1、開啟一個終端,以root使用者登入或者是:su -
2、還是建立必要的使用者和組,這在unix/linux的管理中是一個好習慣:
su -
# groupadd oinstall
# groupadd dba
# useradd -g oinstall -G dba oracle
# passwd oracle
3、準備檔案目錄:
# mkdir -p /opt/ora9/product/9.2
# mkdir /var/opt/oracle
# chown oracle.dba /var/opt/oracle
# chown -R oracle.dba /opt/ora9
4.1 設定核心引數
改動 /etc/sysctl.conf 這個檔案,加入以下的語句:
kernel.shmmax = 536870912
kernel.shmmni = 4096
kernel.shmall = 2097152
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
4.2 設定oracle對檔案的要求:
編輯檔案:/etc/security/limits.conf 加入以下語句:
oracle soft nofile 65536
oracle hard nofile 65536
oracle soft nproc 16384
oracle hard nproc 16384
4.3 檢視系統中是否安有以下幾個軟體包:
compat-db-4.1.25-9
compat-gcc-32-3.2.3-47.3
compat-gcc-32-c++-3.2.3-47.3
compat-oracle-rhel4-1.0-3
compat-libcwait-2.0-1
compat-libgcc-296-2.96-132.7.2
compat-libstdc++-296-2.96-132.7.2
compat-libstdc++-33-3.2.3-47.3
gcc-3.4.3-9.EL4
gcc-c++-3.4.3-9.EL4
gnome-libs-1.4.1.2.90-44
gnome-libs-devel-1.4.1.2.90-44
libaio-devel-0.3.102-1
libaio-0.3.102-1
make-3.80-5
openmotif21-2.1.30-11
xorg-x11-deprecated-libs-devel-6.8.1-23.EL
xorg-x11-deprecated-libs-6.8.1-23.EL
如果沒有就需要手動安裝了。
5、設定系統環境:
設定oracle使用者的環境, 新開一個終端,su - oracle
開啟.bashrc檔案,將如下內容加入:
#oracle 9i
export ORACLE_BASE=/opt/ora9
export ORACLE_HOME=/opt/ora9/product/9.2
export PATH=?$ORACLE_HOME/bin:?$ORACLE_HOME/Apache/Apache/bin:?$PATH
export ORACLE_OWNER=oracle
export ORACLE_SID=ora9i
export ORACLE_TERM=vt100
export LD_ASSUME_KERNEL=2.4.1
export THREADS_FLAG=native
export LD_LIBRARY_PATH=/opt/ora9/product/9.2/lib:?$LD_LIBRARY_PATH
export PATH=/opt/ora9/product/9.2/bin:?$PATH
#
# change this NLS settings to suit your country:
# example:
# german_germany.we8iso8859p15, american_america.we8iso8859p2 etc.
#
export LANG=en_US
6.1、解壓檔案,安裝前打補丁,切換到root使用者的控制檯:
su -root
mkdir ora9i
將3個安裝檔案解壓縮
gunzip [Oracle9i.Database.Release.2.--.9.2.0.4.0.for.Linux.x86].ship_9204_linux_disk1.cpio.gz
gunzip [Oracle9i.Database.Release.2.--.9.2.0.4.0.for.Linux.x86].ship_9204_linux_disk2.cpio.gz
gunzip [Oracle9i.Database.Release.2.--.9.2.0.4.0.for.Linux.x86].ship_9204_linux_disk3.cpio.gz
cpio -idmv < linux_9204_disk1.cpio
cpio -idmv < linux_9204_disk2.cpio
cpio -idmv < linux_9204_disk3.cpio
生成三個資料夾:Disk1, Disk2, Disk3
6.2、打安裝前的補丁:
所需patch:
p3006854_9204_LINUX.zip
p4198954_40_LINUX.zip
以root身份執行.
打p3006854_9204_LINUX.zip
# unzip p3006854_9204_LINUX.zip
Archive: p3006854_9204_LINUX.zip
creating: 3006854/
inflating: 3006854/rhel3_pre_install.sh
inflating: 3006854/README.txt
# cd 3006854
# sh rhel3_pre_install.sh
打p4198954_40_LINUX.zip
(解決oracle agent在安裝完成配置過程中出錯)
解壓縮 p4198954_40_LINUX.zip
生成
compat-libcwait-2.1-1.i386.rpm
compat-oracle-rhel4-1.0-5.i386.rpm
README.txt
執行compat-libcwait-2.1-1.i386.rpm和compat-oracle-rhel4-1.0-5.i386.rpm
6.3進行安裝
su - root
# xhost +
su - oracle
$ export LANG=en_US
cd /ora9i/Disk1
./runInstaller
一直點next就可以安裝ok了
(安裝過程中要以root 身份執行orainstRoot.sh和 root.sh)
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/8193225/viewspace-1003334/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Red Hat Enterprise Linux Server 7.4 安裝LinuxServer
- 在Red Hat和Centos上安裝MongoDBCentOSMongoDB
- Red Hat Enterprise Linux 9的簡介Linux
- G005-OS-INS-02 Red Hat Enterprise Linux V8.2 安裝Linux
- Red Hat Linux安裝CentOS的yum源LinuxCentOS
- How to disable transparent hugepages (THP) on Red Hat Enterprise Linux 7Linux
- How to disable transparent Hugepage (THP) on Red Hat Enterprise Linux 8?Linux
- Linux red hat 核心版下安裝NginxLinuxNginx
- Red Hat Enterprise Linux 10 下載 - 紅帽企業 LinuxLinux
- 《Red Hat Enterprise Linux 9 系統管理實戰》簡介Linux
- Red Hat 7.x 配置ArcGIS Enterprise開機自動啟動
- Red Hat 7.9安裝達夢資料庫DM8 使用Xmanager Enterprise 5啟動圖形化時報錯資料庫
- Red Hat 7.5 Yum Replacement
- 甲骨文與紅帽擴大合作,將Red Hat Enterprise Linux引入 Oracle Cloud InfrastructureLinuxOracleCloudASTStruct
- Red Hat Enterprise Linux 6 7關閉透明大頁面及透明大頁面基礎概念Linux
- Linux Red Hat啟動時顯示system not foundLinux
- Red Hat 7.9安裝達夢資料庫DM8圖形化顯示英文和亂碼資料庫
- 收購Red Hat,能否讓步履維艱的IBM走出困境?IBM
- 解決出現This system is not registered to Red Hat Subscription Management的問題
- 攻略 - 自建 Red Hat 企業級系統 Vagrant Box
- VS Code擴充--Language Support for Java(TM) by Red Hat(1.3.0)Java
- 在GCP的Kubernetes上安裝daprGC
- 第4步:在伺服器上安裝amh皮膚伺服器
- 在CentOS上安裝dockerCentOSDocker
- 在Windows上安裝MavenWindowsMaven
- 在centos上安裝molochCentOS
- SDL在win上安裝
- 在virtualbox上安裝ubuntuUbuntu
- 在Ubuntu上安裝MariaDBUbuntu
- 在CentOS上安裝GitCentOSGit
- 在Linux上安裝gskitLinux
- 在Debian上安裝freeswitch
- 在DebianStretch上安裝FFmpeg
- 在Android上安裝EntwareAndroid
- 在docker上安裝AWVSDocker
- 在ubuntu上安裝docker, 使用國內的安裝源UbuntuDocker
- 三國爭霸 Mint、Ubuntu 和 Red Hat 巔峰對決Ubuntu
- Node-red節點安裝換源
- 紅帽釋出 Red Hat Enterprise Linux 9!轉向邊緣和多雲|下一代企業 IT 基礎設施旗艦Linux