創(chuàng)建用戶組、用戶和目錄bjdb節(jié)點下:[root@node1 /]# groupadd -g 200 oinstall[root@node1 /]# groupadd -g 201 dba[root@node1 /]# useradd..."/>
溫馨提示×

溫馨提示×

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

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

oracle11g 安裝過程

發(fā)布時間:2020-06-18 04:41:26 來源:網(wǎng)絡(luò) 閱讀:381 作者:天樂 欄目:關(guān)系型數(shù)據(jù)庫

安裝oracle軟件

1>創(chuàng)建用戶組、用戶和目錄

bjdb節(jié)點下:

[root@node1 /]# groupadd -g 200 oinstall

[root@node1 /]# groupadd -g 201 dba

[root@node1 /]# useradd -u 200 -g oinstall -G dba oracle

Creating mailbox file: File exists

[root@node1 /]# passwd oracle

Changing password for user oracle.

New UNIX password: 

BAD PASSWORD: it is based on a dictionary word

Retype new UNIX password: 

passwd: all authentication tokens updated successfully.


[root@node1 /]# mkdir -p /top/app/oracle

[root@node1 /]# chown -R oracle:oinstall /eb_db


shdb節(jié)點下創(chuàng)建相同的用戶組和用戶,腳本一樣;

關(guān)閉郵件服務(wù)器

[root@node1 /]# chkconfig sendmail off

2>修改內(nèi)核參數(shù)

/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@node1 /]# sysctl -p   //參數(shù)文件生效


/etc/security/limits.conf 文件下添加:

oracle              soft    nproc   2047

oracle              hard    nproc   16384

oracle              soft    nofile  1024

oracle              hard    nofile  65536

oracle              soft    stack   10240


/etc/pam.d/login 文件下添加:

session required /lib/security/pam_limits.so


/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


oracle用戶下修改 .bash_profile 文件

[oracle@beijing ~]$ vi .bash_profile 

# .bash_profile

# Get the aliases and functions

if [ -f ~/.bashrc ]; then

        . ~/.bashrc

fi

# User specific environment and startup programs


export EDITOR=vi

export ORACLE_SID=prod

export ORACLE_BASE=/u01/app/oracle

export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1

export LD_LIBRARY_PATH=$ORACLE_HOME/lib

export PATH=$ORACLE_HOME/bin:/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin

umask 022



創(chuàng)建監(jiān)聽:在oracle用戶下操作

Bash-3.00$ netca    //此后會打開一個創(chuàng)建監(jiān)聽的圖形化界面。進行后續(xù)配置。

Bash-3.00$ lsnrctl status  //查看監(jiān)聽狀態(tài)


3>安裝軟件并在bjdb上使用dbca創(chuàng)建數(shù)據(jù)庫

在bjdb和shdb上分別安裝oracle軟件


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

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

AI