Linux 7.4上安裝配置Oracle 11.2.0.4圖文教程
1. 配置Yum源及關(guān)閉SeLinux
[root@localhost ~]# mkdir /media/rhel [root@localhost ~]# mount /dev/cdrom /media/rhel mount: /dev/sr0 is write-protected, mounting read-only [root@localhost ~]# vi /etc/yum.repos.d/iso.repo [iso] name=iso baseurl=file:///media/rhel enabled=1 gpgcheck=0 [root@localhost ~]# vi /etc/selinux/config # modify SELINUX=disabled
2. 安裝桌面環(huán)境(如果未安裝)
[root@localhost ~]# yum -y group install "Server with GUI"
3. 安裝軟件包
[root@localhost ~]# yum -y install binutils binutils-devel compat-libcap1 compat-libstdc++-33 compat-libstdc++-33.i686 ksh elfutils-libelf elfutils-libelf-devel glibc glibc-common glibc-devel glibc-headers gcc gcc-c++ libaio libaio.i686 libaio-devel libaio-devel.i686 libgcc libstdc++ libstdc++.i686 libstdc++-devel libstdc++-devel.i686 make sysstat unixODBC unixODBC-devel libXp libXp-devel libXpm-devel telnet
4. 建立用戶
[root@localhost ~]# groupadd oinstall
[root@localhost ~]# groupadd dba
[root@localhost ~]# useradd -g oinstall -G dba oracle
[root@localhost ~]# passwd oracle
[root@localhost ~]# 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
umask 022
fi
5. 建立文件夾
[root@localhost ~]# mkdir -p /u01/oracle [root@localhost ~]# mkdir -p /u01/oracle/11.2.0/db_1 [root@localhost ~]# chown -R oracle:oinstall /u01/oracle/ [root@localhost ~]# chown -R oracle:oinstall /u01/oracle/11.2.0/db_1/ [root@localhost ~]# chmod -R 755 /u01/oracle/ [root@localhost ~]# chmod -R 755 /u01/oracle/11.2.0/db_1/
6. 配置系統(tǒng)核心參數(shù),Oracle用戶資源限制,Oracle用戶環(huán)境變量
[root@localhost ~]# MEMTOTAL=$(free -b | sed -n '2p' | awk '{print $2}')
[root@localhost ~]# SHMMAX=$(expr $MEMTOTAL / 2)
[root@localhost ~]# SHMMNI=4096
[root@localhost ~]# PAGESIZE=$(getconf PAGE_SIZE)
[root@localhost ~]# cat >> /etc/sysctl.conf << EOF
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmmax = $SHMMAX
kernel.shmall = $(expr \( $SHMMAX / $PAGESIZE \) \* \( $SHMMNI / 16 \))
kernel.shmmni = $SHMMNI
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
EOF
[root@localhost ~]# sysctl -p
[root@localhost ~]# vi /etc/security/limits.conf
# add to the end
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft stack 10240
oracle hard stack 32768
[root@localhost ~]# vi /home/oracle/.bash_profile
# add to the end
export ORACLE_SID=sdzy;
export ORACLE_BASE=/u01/oracle;
export ORACLE_HOME=/u01/oracle/11.2.0/db_1;
export PATH=$ORACLE_HOME/bin:$PATH:$HOME/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
[root@localhost ~]# reboot
7. 編輯主機(jī)名
[root@localhost ~]# vi /etc/hosts # add 192.168.10.11 oracle [root@localhost ~]# vi /etc/hostname # modify oracle [root@localhost ~]# vi /etc/sysconfig/network
8. 解壓安裝文件
[root@localhost ~]# cd /opt [root@localhost opt]# unzip p13390677_112040_Linux-x86-64_1of7.zip ;unzip p13390677_112040_Linux-x86-64_2of7.zip
9. 開始安裝
[oracle@localhost ~]$ cd $ORACLE_HOME/sysman/lib [oracle@localhost lib]$ cp ins_emagent.mk ins_emagent.mk.bak [oracle@localhost lib]$ vi ins_emagent.mk [root@localhost rhel]# xhost + access control disabled, clients can connect from any host [root@localhost rhel]# su - oracle [oracle@localhost ~]$ export DISPLAY=10.1.105.52:0.0 #此處IP請改為客戶端的IP [oracle@localhost ~]$ cd /opt/database/ [oracle@localhost database]$ ./runInstaller
[root@localhost opt]# rpm -ivh compat-libstdc++-33-3.2.3-72.el7.x86_64.rpm
[root@localhost opt]# /u01/oracle/oraInventory/orainstRoot.sh
總結(jié)
以上所述是小編給大家介紹的Linux 7.4上安裝配置Oracle 11.2.0.4圖文教程,希望對大家有所幫助,如果大家有任何疑問請給我留言,小編會及時回復(fù)大家的。在此也非常感謝大家對腳本之家網(wǎng)站的支持!
相關(guān)文章
Linux系統(tǒng)中l(wèi)l命令顯示內(nèi)容日期格式方式
本文介紹了在Linux系統(tǒng)中使用`ll`命令查看文件日期格式的方法,并提供了兩種修改日期格式的命令,第一種是臨時修改,使用`export`命令;第二種是永久修改,需要在配置文件中添加相關(guān)設(shè)置2025-02-02
APACHE支持.htaccess偽靜重寫出錯 No input file specified的解決方案
這篇文章主要介紹了APACHE支持.htaccess偽靜重寫出錯 No input file specified的解決方案,需要的朋友可以參考下2016-09-09
Linux下安裝Oracle(CentOS-Oracle 12c)的方法
這篇文章主要介紹了Linux下安裝Oracle(CentOS-Oracle 12c)的方法,本文實(shí)例講解,介紹的非常詳細(xì),具有參考借鑒價值,感興趣的朋友一起看看吧2016-11-11
Centos 6和Centos 7下服務(wù)啟動方法及添加到開機(jī)啟動項(xiàng)的方法
這篇文章主要介紹了Centos 6和Centos 7下服務(wù)啟動方法及添加到開機(jī)啟動項(xiàng)的方法的相關(guān)資料,需要的朋友可以參考下2016-10-10
Linux添加靜態(tài)路由兩種實(shí)現(xiàn)方法解析
這篇文章主要介紹了Linux添加靜態(tài)路由兩種實(shí)現(xiàn)方法解析,文中通過示例代碼介紹的非常詳細(xì),對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價值,需要的朋友可以參考下2020-08-08
linux下查看yum/rpm/dpkg某軟件是否已安裝的方法
這篇文章主要介紹了在linux下查看yum/rpm/dpkg某軟件是否已安裝的方法,文中給出了詳細(xì)的示例代碼,對大家具有一定的參考價值,需要的朋友們下面來一起看看吧。2017-03-03













