溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點(diǎn)擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

red hat6.1 部署32位 oracle 11g

發(fā)布時(shí)間:2020-04-02 09:30:18 來源:網(wǎng)絡(luò) 閱讀:551 作者:rooney0987 欄目:關(guān)系型數(shù)據(jù)庫

檢查系統(tǒng)環(huán)境:

[root@localhost ~]# grep MemTotal /proc/meminfo #物理內(nèi)存不低于1GB

MemTotal:        1491520 kB

[root@localhost ~]# grep SwapTotal /proc/meminfo #交換分區(qū)為物理內(nèi)存的1.5-2陪;物理內(nèi)存為2-16GB時(shí),交換分區(qū)與物理內(nèi)存相同

SwapTotal:       2097148 kB


安裝oracle依賴軟件:

yum install -y binutils compat-libcap1-1.10-1 compat-libstdc++-33 gcc gcc-c++ glibc glibc glibc-devel glibc-devel ksh libgcc libgcc libstdc++ libstdc++ libstdc++-devel libstdc++-devel libaio libaio libaio-devel  libaio-devel make sysstat elftils-libelf unixODBC unixODBC unixODBC-devel elfutils-libelf elfutils-libelf-devel


修改系統(tǒng)環(huán)境:

groupadd oinstall
groupadd dba
useradd -g oinstall -G dba oracle
echo "qwe123"| passwd root --stdin
mkdir /opt/oracle
chown -R oracle:oinstall /opt/oracle/
chmod -R 755 /opt/oracle/
[root@localhost ~]# vim ~oracle/.bash_profile
umask 022
export ORACLE_BASE=/opt/oracle
export ORACLE_SID=/orc1
export DISPLAY=:0.0
export LANG=zh_CN.UTF-8
[root@localhost ~]# vim /etc/sysctl.conf
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 536870912
kernel.shmmni = 4096
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 = 1048586
[root@localhost ~]# vim /etc/security/limits.conf
oracle        soft    nproc           8192
oracle        hard    nofile           65536
oracle       soft    nofile          32768
oracle       hard    nproc         16384
[root@localhost ~]# xhost +
[root@localhost ~]# su oracle
[oracle@localhost root]$ cd /opt/oracle/database/
[oracle@localhost database]$ ./runInstaller -jreLoc /usr/lib/jvm/jre-1.6.0


圖形界面安裝:

1.看到安裝界面,“yes”再下一步就行了。

red hat6.1 部署32位 oracle 11g


2.創(chuàng)建并配置一個(gè)數(shù)據(jù)庫red hat6.1 部署32位 oracle 11g

3.選擇服務(wù)器類型red hat6.1 部署32位 oracle 11g 4.單實(shí)例安裝

red hat6.1 部署32位 oracle 11g

5.這里我選擇“典型安裝”

red hat6.1 部署32位 oracle 11g


8.配置密碼和安裝路徑

red hat6.1 部署32位 oracle 11g

9.自動(dòng)檢查環(huán)境參數(shù)和安裝

red hat6.1 部署32位 oracle 11g


安裝完成以后提示用root初始化:

red hat6.1 部署32位 oracle 11g

添加oracle的路徑:

[root@localhost ~]# vim ~oracle/.bash_profile

export ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_1/

PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin

[root@localhost bin]# dbstart /home/oracle/app/oracle/product/11.2.0/dbhome_1/


進(jìn)入數(shù)據(jù)庫:

[root@localhost bin]# su oracle

[oracle@localhost bin]$ sqlplus sys/Benet4.0 AS SYSDBA


SQL*Plus: Release 11.2.0.1.0 Production on Tue Dec 30 19:46:37 2014


Copyright (c) 1982, 2009, Oracle.  All rights reserved.


Connected to an idle instance.


SQL> 


向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI