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

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

RHEL5.4安装Oracle-10g

發布時間:2025/1/21 编程问答 35 豆豆
生活随笔 收集整理的這篇文章主要介紹了 RHEL5.4安装Oracle-10g 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

1.???? 檢查環境

1.1??????? 操作系統檢查 ?

rhel5.4不支持 ? ??

解決方法:

方法一:

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

?

Red Hat Enterprise Linux Server release 5.1 (Tikanga)

?

將當前的 release 版本修改成為已經測試通過的 release 版本號

redhat-4

:wq 保存退出 ?

cat /etc/redhat-release ?查看文件內容

?

方法二: 添加忽略版本信息

[oracle@localhost database]$ ls

doc install response runInstaller stage welcome.html

[oracle@localhost database]$ ./ runInstaller ignoresysprereqs

?

1.2??????? 內核版本 =2.6.9-5.EL ? ? ?

檢查命令 uname -r?

?

1.3??????? 所需軟件包的檢查 ? ? ? ? ? ?

檢查命令 rpm -q 包名字 或者 rpm -qa |grep 包名

binutils-2.15.92.0.2-13.EL4

compat-db-4.1.25-9

compat-libstdc++-296-2.96-132.7.2

control-center-2.8.0-12

gcc-3.4.3-22.1.EL4

gcc-c++-3.4.3-22.1.EL44

glibc-2.3.4-2.9

glibc-common-2.3.4-2.9

gnome-libs-1.4.1.2.90-44.1 redhat 5沒有可以不裝)

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-5.rhel4.2 redhat 5 沒有不用安裝)

setarch-1.6-1

?

也可以一次檢查所有的

rpm -q --qf '%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n' binutils compat-db gcc pdksh make sysstat?

?

發現有的包沒有安裝 rpm -ivh 報名 安裝或者使用yum -y install ?包名

2.???? 檢查網絡配置

iP

vim ?/etc/hosts?

192.168.1.100 ? test

?

ping test

加入一行記錄

ip地址 ? ?主機名

注意:不要刪除里面的任何內容,特別127.0.0.1 必須存在

?

3.???? 創建操作系統用戶和組

The OSDBA group (dba) :數據庫管理員組

操作系統擁護加入了dba組,就是數據庫管理員

?

The Oracle Inventory group (oinstall)

一定是數據庫管理員的primary

?

The Oracle software owner user (typically, oracle)

安裝軟件的擁有者

?

3.1創建組:

/usr/sbin/groupadd oinstall

/usr/sbin/groupadd dba

?

?

創建軟件擁有者帳戶

3.2創建用戶

/usr/sbin/useradd -g oinstall -G dba ?oracle

?

3.3給用戶密碼

passwd oracle

?

4.???? 檢查nobody帳戶是否存在

id nobody?

如果不存在

useradd nobody?

?

5.???? 檢查內核參數

vim ?/etc/sysctl.conf?

?

#for oracle?

kernel.shmall = 2097152

kernel.shmmax = 2147483648

kernel.shmmni = 4096

kernel.sem = 250 32000 100 128

fs.file-max = 65536

net.ipv4.ip_local_port_range = 1024 65000

net.core.rmem_default = 1048576

net.core.rmem_max = 1048576

net.core.wmem_default = 262144

net.core.wmem_max = 262144

?

生效:sysctl -p

?

6.???? 檢查和配置shell的限制

6.1 ?nofile 使用我文件描述符的最大數

nproc ?當個用戶打開最大進程數

vim /etc/security/limits.conf?

oracle ? ? ? ? ? ? ?soft ? ?nproc ? 2047

oracle ? ? ? ? ? ? ?hard ? ?nproc ? 16384

oracle ? ? ? ? ? ? ?soft ? ?nofile ?1024

oracle ? ? ? ? ? ? ?hard ? ?nofile ?65536

?

6.2? vim /etc/pam.d/login?

加入

session ? ?required ? ? /lib/security/pam_limits.so

session ? ?required ? ? pam_limits.so

?

6.3? vim /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

?

檢查語法 source ?/etc/profile

?

7.???? 創建所需要的目錄

?

根目錄 oracle_base

存儲目錄 oracle Inventory directoy (oui幫你創建)

家目錄 oracle_home

?

建立根: /u01/app/oracle

mkdir -p /u01/app/oracle

chown -R oracle:oinstall /u01/app/oracle

chmod -R 775 /u01/app/oracle

?

8.???? 創建數據文件和恢復文件的目錄(都可以不建立,使用OUI默認創建)

?

9.???? 配置用戶的環境變量

我這里使用oracle安裝

cd /home/oracle?

vim .bash_profile?

?

ORACLE_BASE=/u01/app/oracle

ORACLE_SID=orcl

export ORACLE_BASE ORACLE_SID

ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1

export ORACLE_HOME?

source .bash_profile 生效

?

10. oracle10g安裝程序拷貝進去,解壓

11. 設置權限

chown -R oracle:oinstall /u01

??? chmod -R 775 /u01

12. 安裝

第一種方法:建議注銷以oracle登陸

cd /u01/database?

./ruanInstall

第二種方法: su - oracle

轉載于:https://blog.51cto.com/coolsky/890027

總結

以上是生活随笔為你收集整理的RHEL5.4安装Oracle-10g的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。