共計 2004 個字符,預計需要花費 6 分鐘才能閱讀完成。
本篇內容主要講解“centos7 怎么安裝 grid 并啟用 oracle restart”,感興趣的朋友不妨來看看。本文介紹的方法操作簡單快捷,實用性強。下面就讓丸趣 TV 小編來帶大家學習“centos7 怎么安裝 grid 并啟用 oracle restart”吧!
[root@yue ~]# cat /etc/redhat-release
CentOS Linux release 7.4.1708 (Core)
圖形界面安裝,對話框顯示不完全的問題
默認我們安裝的時候都是: ./runInstaller 也就是直接運行安裝文件,但是這種默認安裝的方式就會出現上述錯誤,為了避免上述情況出現可以通過指定參數安裝:
./runInstaller -jreLoc /usr/lib/jvm/jre-1.8.0
安裝到 86% 時報錯
解決方法:
在 makefile 中添加鏈接 libnnz11 庫的參數
修改 /app/data/oracle/product/11g/sysman/lib/ins_emagent.mk 文件
將:$(MK_EMAGENT_NMECTL)修改為:$(MK_EMAGENT_NMECTL) -lnnz11
然后點擊 Retry 繼續安裝,就可以安裝成功了
centos7 pmap 要加上 -p 參數才能看到完整路徑
安裝 root.sh 腳本時,報錯,
ohasd failed to start
Failed to start the Clusterware. Last 20 lines of the alert log follow:
2016-01-01 02:14:46.806:
[client(11401)]CRS-2101:The OLR was formatted using version 3.
2016-01-01 02:14:49.572:
[client(11424)]CRS-1001:The OCR was formatted using version 3.
查相關資料需安裝補丁包 18370031,參考下面鏈接:
https://fatdba.com/2016/01/06/oracle-gi-11-2-installation-on-rhel-7-error-ohasd-failed-to-start-failed-to-start-the-clusterware-last-20-lines-of-the-alert-log-follow-ohasd-failed-to-start-at-u01app11-2-0gridcrsinstallr/
安裝補丁后,執行 ROOT.SH
[oracle@localhost bin]$ ./crs_stat -t
Name Type Target State Host
————————————————————
ora.cssd ora.cssd.type OFFLINE OFFLINE
ora.diskmon ora….on.type OFFLINE OFFLINE
ora.evmd ora.evm.type ONLINE ONLINE localhost
ora.ons ora.ons.type OFFLINE OFFLINE
linux7 下,root.sh 腳本沒有正確安裝,可能是 BUG 造成 OHASD 服務沒有開機啟動,6 之前是在 /etc/inittab 添加啟動目錄,7 改變了,需在下面目錄創建軟連接,設置開機啟動
[root@yue multi-user.target.wants]# ln -s /etc/systemd/system/oracle-ohasd.service /usr/lib/systemd/system/multi-user.target.wants/oracle-ohasd.service
http://www.lunar2013.com/2016/01/linux7%EF%BC%88centosrheloel%EF%BC%89%E5%92%8Coracle-rac%E7%8E%AF%E5%A2%83%E7%B3%BB%E5%88%97-7-%E7%BD%91%E7%BB%9C%E7%AE%A1%E7%90%86%E4%B9%8B%E6%B7%BB%E5%8A%A0%E7%BD%91%E5%8D%A1.html
srvctl start database -d devdb 報 ORA-01031: insufficient privileges
將 GRID 添加到 DBA 組即可
usermod -a -G dba grid
http://blog.itpub.net/23135684/viewspace-689072
到此,相信大家對“centos7 怎么安裝 grid 并啟用 oracle restart”有了更深的了解,不妨來實際操作一番吧!這里是丸趣 TV 網站,更多相關內容可以進入相關頻道進行查詢,關注我們,繼續學習!