溫馨提示×

溫馨提示×

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

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

在OL6.5_64上安裝Oracle11gR2_64

發(fā)布時間:2020-04-09 09:24:40 來源:網(wǎng)絡(luò) 閱讀:423 作者:PengChonggui 欄目:關(guān)系型數(shù)據(jù)庫
一、在Oracle Linux6.5安裝Oracle11gR2_64
1、修改selinux
vi/etc/selinux/config
 
This file controlsthe state of SELinux on the system.
# SELINUX= can takeone of these three values:
#     enforcing - SELinux security policy isenforced.
#     permissive - SELinux prints warningsinstead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=disabled     --修改為disabled
# SELINUXTYPE= cantake one of these two values:
#     targeted - Targeted processes areprotected,
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted
 
 
2、關(guān)閉iptables
1)永久性生效,重啟后不會復原
 
開啟:chkconfigiptables on 
關(guān)閉:chkconfigiptables off
 
2)即時生效,重啟復原
開啟:serviceiptables start
關(guān)閉:serviceiptables stop
狀態(tài):serviceiptables status
注:對于Linux下的其他服都可以用以上名利執(zhí)行開啟和關(guān)閉操作。
在開啟了防火墻是,作如下設(shè)置,開啟相關(guān)端口,修改/etc/sysconfig/iptables文檔,添加:
-ARH-Firewall -l -INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
-ARH-Firewall -l -INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
 
3)查看防火墻狀態(tài)
#chkconfigiptables --list
 
 
3、安裝yum
#mkdir/media/cdrom
#mount/dev/cdrom  /media/cdrom
 
#rm-rf   /etc/yum.repos.d/*.repo
#vi/etc/yum.repos.d/OL6.5iso.repo
[OL6.5iso]
name=OL6.5iso
baseurl=file:///media/cdrom
enabled=1
gpgcheck=0
 
#yum  clean all
#yum  list oracle-rdbms-server-11gR2-preinstall.x86_64
 
##卸載yum 源
#umount/media/cdrom
#eject/dev/cdrom
 
4、安裝oracle 依賴包
#yum  -y install oracle-rdbms-server-11gR2-preinstall.x86_64
 
5、設(shè)置DISPLAY
#exportDISPLAY=your_address.0:0
 
6、解壓oracle管理軟件的安裝包
#mkdir  /s01
#chownoracle:oinstall  /s01
# #將Oracle安裝包拷貝到/s01下
#unzipp13390677_112040_LINUX_1of7.zip
#unzipp13390677_112040_LINUX_2of7.zip
 
7、切換到oracle 用戶圖像界面
開始安裝oracle
#cd/s01/database
#./runInstaller
 
8、解決問題
操作系統(tǒng):Linux3.8.13-16.2.1.el6uek.x86_64 #1 SMP Thu Nov 7 17:01:44 PST 2013 x86_64 x86_64x86_64 GNU/Linux
【Question1】(簡稱【Q1】)/lib/ld-linux.so.2: bad ELF interpreter:No such file or directory
【原因】64bit的Linux操作系統(tǒng),無法運行32bit的應用程序
【解決辦法】需要安裝32bit的glibc庫
#yum installglibc*.i686
【檢查】下面語句查看是否成功安裝了
#rpm -qf/lib/ld-linux.so.2
 
【Q2】libXext.so.6:cannot open shared object file 
【原因】在64位的centos安裝64位的oracle的時候,有時候會出現(xiàn)“l(fā)ibXext.so.6: cannot open shared object file:”的錯誤。
這個原因主要是oracle在安裝的時候需要安裝一些32位的lib,也就是類似于windows下的dll
【解決方法】
#yum install -ylibXext.i686
 
9、在安裝過程中出現(xiàn)需要安裝的*.i686
#su - root
#yum -yinstall *.i686
 
 
10、切換到root用戶下執(zhí)行兩個腳本
#su -root
#./home/oracle/app/oraInventory/orainstRoot.sh
#./home/oracle/app/oracle/product/11.2.0/dbhome_1/root.sh
 
11、bash: sqlplus: command not found 解決方法
 
環(huán)境變量已經(jīng)配好,但是仍報錯:
 
# vi  .bash_profile
 
# .bash_profile
 
# Get the aliasesand functions
if [ -f ~/.bashrc ];then
        . ~/.bashrc
fi
 
# User specificenvironment and startup programs
 
PATH=$PATH:$HOME/bin
#AddORACLE_SID ,ORACLE_BASE,ORACLE_HOME AND PATH
exportPATH
unsetUSERNAME
exportEDITOR = vi
exportORACLE_SID = orcl
export ORACLE_BASE = /u01/app/oracle
exportORACLE_HOME = $ORACLE_BASE/product/11.2.0/dbhome_1/
export PATH = $PATH:/u01/app/oracle/product/11.2.0/dbhome_1/bin
umask 022
 
【解決方法】
# su -root
# ln -s /u01/app/oracle/product/11.2.0/dbhome_1/bin/sqlplus  /usr/bin
# su  - oracle
$sqlplus/nolog
SQL>conn  / as sysdba
Connected to an idleinstance.
 
SQL>startup
 
ORACLEinstance started.
……
Database mounted.
Databaseopened.

 


向AI問一下細節(jié)

免責聲明:本站發(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