日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 运维知识 > linux >内容正文

linux

linux redhat5下安装oracle10g

發(fā)布時(shí)間:2025/3/20 linux 22 豆豆
生活随笔 收集整理的這篇文章主要介紹了 linux redhat5下安装oracle10g 小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
一,服務(wù)器系統(tǒng)<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

RedHat Enterprise Linux 5.0

?

二,數(shù)據(jù)庫(kù)軟件

Oracle10g (10.2.0)

?

三,硬件基本需求(命令查看需求如圖)

內(nèi)存/512M

交換分區(qū)/1G

tmp目錄大小/400M

安裝空間/2G

檢查內(nèi)存和交換分區(qū)的大小:·

[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

?

顯示package compat-libstdc++ is not installed? 說(shuō)明沒(méi)有安裝,接下來(lái),我們安裝。

首先找出compat-libstdc++這個(gè)的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

?

說(shuō)明安裝成功,照這個(gè)步驟把其他類(lèi)似的也安裝完。

接下來(lái),修改系統(tǒng)的版本

oracle10? Incompatible linux5? so Modify?

[root@ test ~]#vi /etc/redhat-release

Red Hat Enterprise Linux Server release 5.2 (Tikanga)替換為redhat-4

?

五、設(shè)置內(nèi)核參數(shù)

[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

設(shè)置完后保存。

?

然內(nèi)核參數(shù)立即生效:

[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組和用戶(hù)

?[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用戶(hù)下的環(huán)境變量:

[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

設(shè)置oracle內(nèi)核:

[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??? localhost
modify
127.0.0.1???? localhost.localdomain??? localhost
192.168.100.4??? RHEL5

?

配置完后,在root用戶(hù)在執(zhí)行:xhost +

上傳oracle10g包,解壓

執(zhí)行這個(gè):./ runInstaller? 成功的話(huà)會(huì)彈出以下安裝窗口

配置數(shù)據(jù)庫(kù)實(shí)力和密碼:

配置Inventory目錄

系統(tǒng)安裝前的環(huán)境檢查:

檢查后的安裝環(huán)境和安裝組件

?

開(kāi)始復(fù)制正式安裝文件:

?

執(zhí)行完有錯(cuò)誤,

出現(xiàn)這個(gè)的原因是因?yàn)橐?span lang="en-us">root用戶(hù)找到/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 安裝完成!

轉(zhuǎn)載于:https://blog.51cto.com/yangleitse/413461

總結(jié)

以上是生活随笔為你收集整理的linux redhat5下安装oracle10g的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。

如果覺(jué)得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。