溫馨提示×

溫馨提示×

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

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

oracle11G 安裝

發布時間:2020-06-13 20:02:34 來源:網絡 閱讀:879 作者:cy_lyh 欄目:關系型數據庫

一、新建oracle用戶

[root@11g ~]# groupadd oinstall
[root@11g ~]# groupadd dba
[root@11g ~]# useradd -g oinstall -G dba oracle
[root@11g ~]# echo "oracle" |passwd --stdin oracle

二、安裝oracle所需的環境包(先配置好yum源)

[root@11g ~]# cat /etc/yum.repos.d/dvd.repo 
[server]
name=server
baseurl=file:///mnt/dvd/Server
enabled=1
gpgcheck=0
[root@11g ~]# ls /mnt/dvd/
blafdoc.css     eula.py    README-en.html         Server
Cluster         GPL        RELEASE-NOTES-en       supportinfo
ClusterStorage  p_w_picpaths     RELEASE-NOTES-en.html  TRANS.TBL
EULA            isolinux   RPM-GPG-KEY            VT
eula.en_US      README-en  RPM-GPG-KEY-oracle
[root@11g ~]# yum -y install binutils compat-libstdc++-33 elfutils-libelf elfutils-libelf-devel glibc glibc-common glibc-devel gcc gcc-c++ libaio-devel libaio libgcc libstdc++ libstdc++-devel make sysstat unixODBC unixODBC-devel pdksh numactl-devel glibc-headers

三、修改linux內核參數

[root@11g ~]# tail -13 /etc/sysctl.conf (在文件尾部插入如下內容)
#oracle 11G
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 4294967295
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 = 1048576
[root@11g ~]# /sbin/sysctl -p (不重啟使參數生效)

四、設置oracle用戶打開文件的最大數

[root@11g ~]# tail -10 /etc/security/limits.conf (在文件尾部插入如下內容)
#Oracle 11g
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft stack 10240
# End of file

五、修改登錄配置

[root@11g ~]# tail -2 /etc/pam.d/login
#Oracle 11g
session required pam_limits.so

六、配置主機名及hosts

[root@11g ~]# tail -1 /etc/sysconfig/network
HOSTNAME=11g.cubix.com
[root@11g ~]# tail -1 /etc/hosts
127.0.0.1	11g.cubix.com 11g

七、新建oracle安裝目錄

[root@11g ~]# mkdir -p /u01/app/oracle/product/11.2.0/db_1
[root@11g ~]# chown -R oracle:oinstall /u01
[root@11g ~]# chmod -R 755 /u01

八、修改oracle用戶的環境變量

[root@11g ~]# su - oracle
[oracle@11g ~]$ tail -5 .bash_profile
#Oracle 11g
export ORACLE_SID=orcl                                  #數據庫實例名
export ORACLE_BASE=/u01/app/oracle                      #Oracle安裝目錄
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1     #Oracle家目錄
export PATH=$PATH:$ORACLE_HOME/bin                      #Path搜索路徑
[oracle@11g ~]$ source .bash_profile                    #刷新.bash_profile配置
[oracle@11g ~]$ echo $ORACLE_SID                        #測試.bash_profile是否生效
orcl

九、解壓安裝包

[oracle@11g src]$ unzip p10404530_112030_LINUX_1of7.zip 
[oracle@11g src]$ unzip p10404530_112030_LINUX_2of7.zip

十、開始安裝數據庫

[root@11g ~]# xhost +
access control disabled, clients can connect from any host
[root@11g ~]# su - oracle
[oracle@11g ~]$ cd /usr/local/src/database/
[oracle@11g database]$ ./runInstaller 
Starting Oracle Universal Installer...

Checking Temp space: must be greater than 120 MB.   Actual 80306 MB    Passed
Checking swap space: must be greater than 150 MB.   Actual 5023 MB    Passed
Checking monitor: must be configured to display at least 256 colors.    Actual 16777216    Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2016-02-21_06-40-38PM. Please wait ...[oracle@11g database]$

oracle11G 安裝

oracle11G 安裝

oracle11G 安裝

oracle11G 安裝

oracle11G 安裝

oracle11G 安裝

oracle11G 安裝

oracle11G 安裝

oracle11G 安裝

oracle11G 安裝

oracle11G 安裝



向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

亚洲午夜精品一区二区_中文无码日韩欧免_久久香蕉精品视频_欧美主播一区二区三区美女