一、在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)永久性生效,重啟后不會復(fù)原
開啟:chkconfigiptables on
關(guān)閉:chkconfigiptables off
2)即時生效,重啟復(fù)原
開啟: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的應(yīng)用程序
【解決辦法】需要安裝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.

創(chuàng)新互聯(lián)成都網(wǎng)站建設(shè)定制網(wǎng)站,是成都營銷推廣公司,為
航空箱提供網(wǎng)站建設(shè)服務(wù),有成熟的網(wǎng)站定制合作流程,提供網(wǎng)站定制設(shè)計服務(wù):原型圖制作、網(wǎng)站創(chuàng)意設(shè)計、前端HTML5制作、后臺程序開發(fā)等。成都網(wǎng)站設(shè)計熱線:028-86922220
另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)cdcxhl.cn,海內(nèi)外云服務(wù)器15元起步,三天無理由+7*72小時售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國服務(wù)器、虛擬主機、免備案服務(wù)器”等云主機租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡單易用、服務(wù)可用性高、性價比高”等特點與優(yōu)勢,專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場景需求。
文章名稱:在OL6.5_64上安裝Oracle11gR2_64-創(chuàng)新互聯(lián)
網(wǎng)頁地址:http://chinadenli.net/article28/dgpdcp.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供電子商務(wù)、關(guān)鍵詞優(yōu)化、網(wǎng)站建設(shè)、Google、企業(yè)建站、軟件開發(fā)
廣告
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源:
創(chuàng)新互聯(lián)