OS安裝,RHEL6.5默認(rèn)安裝即可,關(guān)閉iptables,關(guān)閉selinux,修改本地hosts文件
創(chuàng)新互聯(lián)公司成都企業(yè)網(wǎng)站建設(shè)服務(wù),提供網(wǎng)站設(shè)計(jì)、成都網(wǎng)站建設(shè)網(wǎng)站開(kāi)發(fā),網(wǎng)站定制,建網(wǎng)站,網(wǎng)站搭建,網(wǎng)站設(shè)計(jì),響應(yīng)式網(wǎng)站設(shè)計(jì),網(wǎng)頁(yè)設(shè)計(jì)師打造企業(yè)風(fēng)格網(wǎng)站,提供周到的售前咨詢和貼心的售后服務(wù)。歡迎咨詢做網(wǎng)站需要多少錢(qián):13518219792~]# service iptables stop ~]# chkconfig --del iptables ~]# vim /etc/selinux/config #配置重啟后永久有效 SELINUX=disabled ~]# vim /etc/hosts
制作本地yum倉(cāng)庫(kù),oracle11gR2所依賴包安裝
~]# cd / /]# mkdir local.repo ~]# cd /media/RHEL_6.5\ x86_64\ Disc\ 1/ cp -rf * /localrepo/ ~]# vim /etc/yum.repos.d/localrepo [localrepo] name=localrepo baseurl=file:///localrepo gpgcheck=0 enabled=1 ~]# yum repolist Loaded plugins: product-id, refresh-packagekit, security, subscription-manager This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. localrepo | 3.9 kB 00:00 ... localrepo/primary_db | 3.1 MB 00:00 ... repo id repo name status localrepo localrepo 3,690 repolist: 3,690
安裝所依賴包:
yum install binutils-2.* compat-libstdc++-33* elfutils-libelf-0.* elfutils-libelf-devel-* gcc-4.* gcc-c++-4.* glibc-2.* glibc-common-2.* glibc-devel-2.* glibc-headers-2.* ksh-2* libaio-0.* libaio-devel-0.* libgcc-4.* libstdc++-4.* libstdc++-devel-4.* make-3.* sysstat-7.* unixODBC-2.* unixODBC-devel-2.* pdksh* -y 注意:還有一個(gè)包需要單獨(dú)安裝 rpm -ivh pdksh-5.2.14-30.x86_64.rpm warning: pdksh-5.2.14-30.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 73307de6: NOKEY error: Failed dependencies: pdksh conflicts with ksh-20120801-10.el6.x86_64 先要對(duì)ksh-20120801-10.el6.x86_64進(jìn)行卸載處理 rpm -e ksh-20120801-10.el6.x86_64 rpm -ivh pdksh-5.2.14-30.x86_64.rpm warning: pdksh-5.2.14-30.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 73307de6: NOKEY Preparing... ########################################### [100%] 1:pdksh ########################################### [100%]
~]# groupadd -g 1000 oinstall ~]# groupadd -g 1100 dba ~]# useradd -m -g oinstall -G dba -u 1200 oracle ~]# id oracle uid=1200(oracle) gid=1000(oinstall) groups=1000(oinstall),1100(dba) ~]# passwd oracle [oracle@~]$ vim .bash_profile # .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup programs PATH=$PATH:$HOME/bin export ORACLE_SID=***** export ORACLE_HOME=/home/u01/app/oracle/product/11.2.0/db_1 export PATH=$ORACLE_HOME/bin:$PATH export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib if [ $USER = "oracle" ]; then if [ $SHELL = "/bin/ksh" ]; then ulimit -p 16384 ulimit -n 65536 else ulimit -u 16384 -n 65536 fi fi export PATH
~]# mkdir -p /home/u01/app/oracle/product/11.2.0/db_1 ~]# chown -R oracle:oinstall /home/u01
~]# vim /etc/sysctl.conf #添加如下 # Controls the maximum size of a message, in bytes kernel.msgmax = 65536 # Controls the maximum shared segment size, in bytes kernel.shmmax = 32000000000 # Controls the maximum number of shared memory segments, in pages kernel.shmall = 8388608 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 = 4194304 net.core.wmem_default = 262144 net.core.rmem_max = 4194304 net.core.wmem_max = 262144 kernel.msgmnb = 65536 kernel.msgmax = 65536 fs.aio-max-nr = 262144 sysctl -p ~]# vim /etc/security/limits.conf #添加如下 oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536 ~]# vim /etc/pam.d/login #添加如下 session required pam_limits.so ~]# vim /etc/security/limits.d/90-nproc.conf # Default limit for number of user's processes to prevent # accidental fork bombs. # See rhbz #432903 for reasoning. * - nproc 16384 root soft nproc unlimited
授權(quán)oracle權(quán)限 tmp]# chmod 777 -R oracle/ [root tmp]# chown -R oracle.oinstall oracle/ 進(jìn)入oracle用戶進(jìn)行解壓 oracle]$ unzip p13390677_112040_Linux-x86-64_1of7.zip oracle]$ unzip p13390677_112040_Linux-x86-64_2of7.zip root用戶下進(jìn)行桌面共享xhost+ 進(jìn)入oracle用戶進(jìn)行安裝 oracle]# cd /tmp/oracle/database/ database]# ./runInstaller 注意安裝路徑要和之前配置的環(huán)境變量路徑一致,安裝時(shí)選擇僅安裝software,安裝驗(yàn)證時(shí)報(bào)的swap空間錯(cuò)誤可以忽略 后續(xù)建庫(kù)可用通過(guò)dbca完成,配置監(jiān)聽(tīng)通過(guò)netca
另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)cdcxhl.cn,海內(nèi)外云服務(wù)器15元起步,三天無(wú)理由+7*72小時(shí)售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國(guó)服務(wù)器、虛擬主機(jī)、免備案服務(wù)器”等云主機(jī)租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡(jiǎn)單易用、服務(wù)可用性高、性價(jià)比高”等特點(diǎn)與優(yōu)勢(shì),專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場(chǎng)景需求。
新聞標(biāo)題:RHEL6.5安裝oracle11gR2-創(chuàng)新互聯(lián)
文章出自:http://muchs.cn/article18/iodgp.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供手機(jī)網(wǎng)站建設(shè)、企業(yè)建站、網(wǎng)站設(shè)計(jì)公司、建站公司、App設(shè)計(jì)、自適應(yīng)網(wǎng)站
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)
猜你還喜歡下面的內(nèi)容
移動(dòng)網(wǎng)站建設(shè)知識(shí)