問(wèn)題:
成都創(chuàng)新互聯(lián)是一家網(wǎng)站設(shè)計(jì)公司,集創(chuàng)意、互聯(lián)網(wǎng)應(yīng)用、軟件技術(shù)為一體的創(chuàng)意網(wǎng)站建設(shè)服務(wù)商,主營(yíng)產(chǎn)品:成都響應(yīng)式網(wǎng)站建設(shè)公司、成都品牌網(wǎng)站建設(shè)、營(yíng)銷型網(wǎng)站建設(shè)。我們專注企業(yè)品牌在網(wǎng)站中的整體樹立,網(wǎng)絡(luò)互動(dòng)的體驗(yàn),以及在手機(jī)等移動(dòng)端的優(yōu)質(zhì)呈現(xiàn)。網(wǎng)站設(shè)計(jì)制作、網(wǎng)站建設(shè)、移動(dòng)互聯(lián)產(chǎn)品、網(wǎng)絡(luò)運(yùn)營(yíng)、VI設(shè)計(jì)、云產(chǎn)品.運(yùn)維為核心業(yè)務(wù)。為用戶提供一站式解決方案,我們深知市場(chǎng)的競(jìng)爭(zhēng)激烈,認(rèn)真對(duì)待每位客戶,為客戶提供賞析悅目的作品,網(wǎng)站的價(jià)值服務(wù)。
數(shù)據(jù)庫(kù)啟動(dòng)報(bào)錯(cuò):ORA-00119、ORA-00132等
環(huán)境:
DB:Oracle 11.2.0.4.0
OS:Redhat 6.5
問(wèn)題現(xiàn)象:
啟動(dòng)數(shù)據(jù)庫(kù)報(bào)錯(cuò):
[grid@rac01 ~]$ srvctl start database -d cjcdb
PRCR-1079 : Failed to start resource ora.cjcdb.db CRS-5017: The resource action "ora.cjcdb.db start" encountered the following error: ORA-00119: invalid specification for system parameter REMOTE_LISTENER ORA-00132: syntax error or unresolved network name 'rac-scan.cjc.com:1521' . For details refer to "(:CLSN00107:)" in "/u01/app/11.2.0/grid/log/rac02/agent/crsd/oraagent_oracle/oraagent_oracle.log". CRS-5017: The resource action "ora.cjcdb.db start" encountered the following error: ORA-00119: invalid specification for system parameter REMOTE_LISTENER ORA-00132: syntax error or unresolved network name 'rac-scan.cjc.com:1521' . For details refer to "(:CLSN00107:)" in "/u01/app/11.2.0/grid/log/rac01/agent/crsd/oraagent_oracle/oraagent_oracle.log". CRS-2674: Start of 'ora.cjcdb.db' on 'rac02' failed CRS-2674: Start of 'ora.cjcdb.db' on 'rac01' failed CRS-2632: There are no more servers to try to place resource 'ora.cjcdb.db' on that would satisfy its placement policy
其中remote_listener參數(shù)值為:rac-scan.cjc.com:1521
懷疑DNS解析SCAN失敗
登錄到rac01執(zhí)行nslookup rac-scan.cjc.com
[root@rac01 bin]# nslookup rac-scan.cjc.com ;; connection timed out; trying next origin ;; connection timed out; no servers could be reached
查看resolv.conf配置信息被清空了,實(shí)際上每次服務(wù)器重啟網(wǎng)卡resolv.conf配置都會(huì)被自動(dòng)清空
[root@rac01 bin]# cat /etc/resolv.conf # Generated by NetworkManager nameserver 8.8.8.8
檢查網(wǎng)卡配置文件里沒(méi)有指定90的DNS,手動(dòng)添加90DNS。
[root@rac02 bin]# cd /etc/sysconfig/network-scripts/ [root@rac02 network-scripts]# vim ifcfg-eth0 DNS1="192.168.31.90"
重新添加resolv.conf配置信息
[root@rac01 bin]# vim /etc/resolv.conf # Generated by NetworkManager nameserver 8.8.8.8 domain cjc.com nameserver 192.168.31.90 options rotate options timeout:2 options attempts:5
可以正常解析了
[root@rac01 bin]# nslookup rac-scan.cjc.com Server:192.168.31.90 Address:192.168.31.90#53 Name:rac-scan.cjc.com Address: 192.168.31.60 Name:rac-scan.cjc.com Address: 192.168.31.70 Name:rac-scan.cjc.com Address: 192.168.31.50
啟動(dòng)數(shù)據(jù)
[root@rac01 bin]# ./srvctl start instance -d cjcdb -i cjcdb1 [root@rac01 bin]# ./srvctl start instance -d cjcdb -i cjcdb2
檢查實(shí)例狀態(tài)
[root@rac01 bin]# ./srvctl status database -d cjcdb Instance cjcdb1 is running on node rac01 Instance cjcdb2 is running on node rac02
歡迎關(guān)注我的微信公眾號(hào)"IT小Chen",共同學(xué)習(xí),共同成長(zhǎng)??!