linux redhat5下安装oracle10g
生活随笔
收集整理的這篇文章主要介紹了
linux redhat5下安装oracle10g
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
一,服務器系統<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /> RedHat Enterprise Linux 5.0 ? 二,數據庫軟件 Oracle10g (10.2.0) ? 三,硬件基本需求(命令查看需求如圖) 內存/512M 交換分區/1G tmp目錄大小/400M 安裝空間/2G 檢查內存和交換分區的大小:· [root@test /]# grep MemTotal /proc/meminfo????? MemTotal:?????? 515296 kB [root@test /]# grep SwapTotal /proc/meminfo? SwapTotal:???? 1052248 kB 四、軟件基本要求:要裝一下rpm包。 make-3.79.1 gcc-3.2.3-34 glibc-2.3.2-95.20 compat-db-4.0.14-5 compat-gcc-7.3-2.96.128 compat-gcc-c++-7.3-2.96.128 compat-libstdc++-7.3-2.96.128 compat-libstdc++-devel-7.3-2.96.128 libXp openmotif21-2.1.30-8 setarch-1.3-1 然后檢查是不是裝了: [root@test Server]# rpm -q binutils compat-libstdc++ elfutils-libelf elfutils-libelf-devel gcc gcc-c++ glibc glibc-common glibc-devel glibc-headers libaio libaio-devel libgcc libstdc++ libstdc++-devel make sysstat unixODBC unixODBC-devel libXp binutils-2.17.50.0.6-12.el5 package compat-libstdc++ is not installed elfutils-libelf-0.137-3.el5 package elfutils-libelf-devel is not installed gcc-4.1.2-46.el5 gcc-c++-4.1.2-46.el5 glibc-2.5-42 glibc-common-2.5-42 glibc-devel-2.5-42 glibc-headers-2.5-42 libaio-0.3.106-3.2 libaio-devel-0.3.106-3.2 libgcc-4.1.2-46.el5 libstdc++-4.1.2-46.el5 libstdc++-devel-4.1.2-46.el5 make-3.81-3.el5 sysstat-7.0.2-3.el5 unixODBC-2.2.11-7.1 unixODBC-devel-2.2.11-7.1 libXp-1.0.0-8.1.el5
modify
127.0.0.1???? localhost.localdomain??? localhost
192.168.100.4??? RHEL5
?
顯示package compat-libstdc++ is not installed? 說明沒有安裝,接下來,我們安裝。 首先找出compat-libstdc++這個的rpm包,如下 [root@test /]# cd /mnt/Server/ [root@test Server]# ls -l compat-libstdc* -r--r--r-- 341 yangleitse root? 92078 2007-01-19 compat-libstdc++-296-2.96-138.i386.rpm -r--r--r-- 341 yangleitse root 237109 2007-01-19 compat-libstdc++-33-3.2.3-61.i386.rpm [root@test Server]# rpm -ivh compat-libstdc++-296-2.96-138.i386.rpm warning: compat-libstdc++-296-2.96-138.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186 Preparing...??????????????? ########################################### [100%] ??????? package compat-libstdc++-296-2.96-138.i386 is already installed?
說明安裝成功,照這個步驟把其他類似的也安裝完。 接下來,修改系統的版本 oracle10? Incompatible linux5? so Modify? [root@ test ~]#vi /etc/redhat-release 將Red Hat Enterprise Linux Server release 5.2 (Tikanga)替換為redhat-4?
五、設置內核參數 [root@test ~]# vi /etc/sysctl.conf?
kernel.sem = 250 32000 100 128 net.ipv4.ip_local_port_range = 1024 65000 net.core.rmem_default = 4194304 net.core.rmem_max = 4194304 net.core.wmem_default = 262144 net.core.wmem_max = 262144 設置完后保存。?
然內核參數立即生效: [root@test ~]# sysctl -p ? kernel.sem = 250 32000 100 128 net.ipv4.ip_local_port_range = 1024 65000 net.core.rmem_default = 4194304 net.core.rmem_max = 4194304 net.core.wmem_default = 262144 net.core.wmem_max = 262144?
七、添加oracle組和用戶 ?[root@test ~]# groupadd oinstall [root@test ~]# groupadd dba [root@test ~]# useradd -g oinstall -G dba oracle [root@test ~]# mkdir /home/db [root@test ~]# chown -R oracle:oinstall /home/oracle?
八、編輯Oracle用戶下的環境變量: [root@test ~]# vi /home/oracle/.bash_profile?
# .bash_profile?
# Get the aliases and functions if [ -f ~/.bashrc ]; then ??????? . ~/.bashrc fi # User specific environment and startup programs #oracle add export? ORACLE_SID=orcl export? ORACLE_BASE=/db/oracle export? ORACLE_HOME=$ORACLE_BASE/product/10.2.0 export? PATH=$PATH:/ORACLE_HOME/bin:$HOME/bin export? LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib export? LC_CTYPE=en_US.UTF-8 設置oracle內核: [root@test oracle]# vi /etc/security/limits.conf 在源文件最后加上: oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536?
[root@test oracle]# cat /dev/null>/etc/pam.d/login [root@test oracle]# vi /etc/pam.d/login?
session required /lib/security/pam_limits.so session required pam_limits.so [root@test oracle]# vi /etc/profile?
if [ $USER = "oracle" ]; then if [ $SHELL = "/bin/ksh" ]; then ulimit -p 16384 ulimit -n 65536 else ulimit -u 16384 -n 65536 fi fi?
九、修改/etc/hosts: 127.0.0.1??? RHEL5? localhost.localdomain??? localhostmodify
127.0.0.1???? localhost.localdomain??? localhost
192.168.100.4??? RHEL5
?
配置完后,在root用戶在執行:xhost + 上傳oracle10g包,解壓 執行這個:./ runInstaller? 成功的話會彈出以下安裝窗口 配置數據庫實力和密碼:配置Inventory目錄
系統安裝前的環境檢查:
檢查后的安裝環境和安裝組件
?
開始復制正式安裝文件: ?
執行完有錯誤,
出現這個的原因是因為要到root用戶找到/db/app/oracle/oraInventory [root@yanglei oraInventory]# ./orainstRoot.sh Changing permissions of /db/app/oracle/oraInventory to 770. Changing groupname of /db/app/oracle/oraInventory to oinstall. The execution of the script is complete 然后就OK了 安裝完成!
轉載于:https://blog.51cto.com/yangleitse/413461
總結
以上是生活随笔為你收集整理的linux redhat5下安装oracle10g的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Excel电子表格输入技巧大比拼
- 下一篇: 域用户的登录过程和GC的关系