一、在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)建站是專業(yè)的青山湖網(wǎng)站建設(shè)公司,青山湖接單;提供成都做網(wǎng)站、成都網(wǎng)站設(shè)計,網(wǎng)頁設(shè)計,網(wǎng)站設(shè)計,建網(wǎng)站,PHP網(wǎng)站建設(shè)等專業(yè)做網(wǎng)站服務(wù);采用PHP框架,可快速的進行青山湖網(wǎng)站開發(fā)網(wǎng)頁制作和功能擴展;專業(yè)做搜索引擎喜愛的網(wǎng)站,專業(yè)的做網(wǎng)站團隊,希望更多企業(yè)前來合作!
網(wǎng)站名稱:在OL6.5_64上安裝Oracle11gR2_64
當前路徑:http://aaarwkj.com/article14/pphhde.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站內(nèi)鏈、品牌網(wǎng)站建設(shè)、靜態(tài)網(wǎng)站、企業(yè)網(wǎng)站制作、面包屑導(dǎo)航、用戶體驗
聲明:本網(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)