RAC下主機(jī)修改時(shí)區(qū)導(dǎo)致db無法open怎么辦-創(chuàng)新互聯(lián)

這篇文章主要介紹了RAC下主機(jī)修改時(shí)區(qū)導(dǎo)致db無法open怎么辦,具有一定借鑒價(jià)值,感興趣的朋友可以參考下,希望大家閱讀完這篇文章之后大有收獲,下面讓小編帶著大家一起了解一下。

在龍巖等地區(qū),都構(gòu)建了全面的區(qū)域性戰(zhàn)略布局,加強(qiáng)發(fā)展的系統(tǒng)性、市場(chǎng)前瞻性、產(chǎn)品創(chuàng)新能力,以專注、極致的服務(wù)理念,為客戶提供網(wǎng)站設(shè)計(jì)、成都做網(wǎng)站 網(wǎng)站設(shè)計(jì)制作按需設(shè)計(jì)網(wǎng)站,公司網(wǎng)站建設(shè),企業(yè)網(wǎng)站建設(shè),品牌網(wǎng)站設(shè)計(jì),成都營(yíng)銷網(wǎng)站建設(shè),成都外貿(mào)網(wǎng)站建設(shè)公司,龍巖網(wǎng)站建設(shè)費(fèi)用合理。

11.2.0.4.rac 主機(jī)修改時(shí)區(qū)導(dǎo)致db無法open 

os:redhat linux

db:11.2.0.4 rac

desc:crs啟動(dòng)后,除db外都可以正常啟動(dòng)。

查看crs和db的log,文件最后修改時(shí)間跟主機(jī)時(shí)間一致,但log里的時(shí)間不一致,如下為crs和dblog里的日志

crs log

==========================================

2015-05-04 10:30:24.139:

[client(19430)]CRS-4743:File /u02/app/11.2.0/grid/oc4j/j2ee/home/OC4J_DBWLM_config/system-jazn-data.xml was updated from OCR(Size: 13365(New), 13378(Old) bytes)

2015-05-04 10:31:33.583:

[cssd(18287)]CRS-1601:CSSD Reconfiguration complete. Active nodes are gzsjdb1 gzsjdb2 .

2015-05-04 10:31:56.583:

[crsd(19096)]CRS-2772:Server 'gzsjdb2' has been assigned to pool 'Generic'.

2015-05-04 10:31:56.584:

[crsd(19096)]CRS-2772:Server 'gzsjdb2' has been assigned to pool 'ora.jzxn'. #出問題時(shí)日志

2015-05-04 16:31:02.619: #問題解決后的日志

[client(26295)]CRS-10051:CVU found following errors with Clusterware setup : PRVF-7573 : Sufficient swap size is not available on node "gzsjdb1" [Required = 16GB (1.6777216E7KB) ; Found = 10GB (1.0485752E7KB)]

PRVF-5415 : Check to see if NTP daemon or service is running failed

PRVG-1101 : SCAN name "scan-cl

db log

============================

Fri Jun 12 03:45:16 2015 #出問題時(shí)日志

Thread 1 advanced to log sequence 54 (LGWR switch)

  Current log# 3 seq# 54 mem# 0: /oradata/oradata/jzxn/redo03.log

Fri Jun 12 03:47:38 2015

Thread 1 cannot allocate new log, sequence 55

Checkpoint not complete

  Current log# 3 seq# 54 mem# 0: /oradata/oradata/jzxn/redo03.log

Fri Jun 12 03:47:43 2015

opidcl aborting process unknown ospid (29020) as a result of ORA-28

Fri Jun 12 05:13:24 2015

Thread 1 advanced to log sequence 55 (LGWR switch)

  Current log# 1 seq# 55 mem# 0: /oradata/oradata/jzxn/redo01.log

Fri Jun 12 14:31:04 2015  #問題解決后的日志

Starting ORACLE instance (normal)

************************ Large Pages Information *******************

Per process system memlock (soft) limit = UNLIMITED

Total Shared Global Region in Large Pages = 0 KB (0%)

解決過程:起初沒有注意這個(gè)時(shí)間問題,對(duì)crs重啟后,仍然是db的資源不正常,后發(fā)現(xiàn)日志時(shí)間不對(duì),經(jīng)詢問項(xiàng)目組節(jié)點(diǎn)2由默認(rèn)時(shí)間(Etc/GMT-1)改為東8區(qū)(Asia/Shanghai)的時(shí)區(qū)后,節(jié)點(diǎn)2就無法連接db,節(jié)點(diǎn)1修改時(shí)區(qū)后仍可連接。直至今天節(jié)點(diǎn)1也無法連接db.

出現(xiàn)db日志、crs日志等和主機(jī)時(shí)間不一致,是因?yàn)樵趓ac新頒布中,grid也有屬于自己的時(shí)區(qū),在安裝過程中,默認(rèn)值與操作系統(tǒng)的TZ環(huán)境變量相同。

本例是因?yàn)闀r(shí)間不一致,導(dǎo)致db無法open,修改grid時(shí)區(qū)后,重啟crs,db可以正常open.

1.查看系統(tǒng)時(shí)區(qū)

$cat /etc/sysconfig/clock

ZONE=Asia/Shanghai

2.查看crs里配置的時(shí)區(qū)

[root@gzsjdb1 install]# cat s_crsconfig_gzsjdb1_env.txt.bak

### This file can be used to modify the NLS_LANG environment variable, which determines the charset to be used for messages.

### For example, a new charset can be configured by setting NLS_LANG=JAPANESE_JAPAN.UTF8 

### Do not modify this file except to change NLS_LANG, or under the direction of Oracle Support Services

TZ=Etc/GMT-1 #仍然為默認(rèn)的美國(guó)時(shí)區(qū)

NLS_LANG=AMERICAN_AMERICA.AL32UTF8

TNS_ADMIN=

ORACLE_BASE=

3.修改crs的時(shí)區(qū)為Asia/Shanghai

[root@gzsjdb1 install]# cat s_crsconfig_gzsjdb1_env.txt

### This file can be used to modify the NLS_LANG environment variable, which determines the charset to be used for messages.

### For example, a new charset can be configured by setting NLS_LANG=JAPANESE_JAPAN.UTF8 

### Do not modify this file except to change NLS_LANG, or under the direction of Oracle Support Services

TZ=Asia/Shanghai

NLS_LANG=AMERICAN_AMERICA.AL32UTF8

TNS_ADMIN=

ORACLE_BASE=

[root@gzsjdb1 install]# pwd

/u02/app/11.2.0/grid/crs/install

[root@gzsjdb1 install]#

4.重啟crs

5.經(jīng)驗(yàn)證crs日志,db日志等都與主機(jī)保持一致,通過plsqldev可以登錄數(shù)據(jù)庫(kù)。

[root@gzsjdb2 ~]# date

Fri Jun 12 15:12:58 CST 2015

感謝你能夠認(rèn)真閱讀完這篇文章,希望小編分享的“RAC下主機(jī)修改時(shí)區(qū)導(dǎo)致db無法open怎么辦”這篇文章對(duì)大家有幫助,同時(shí)也希望大家多多支持創(chuàng)新互聯(lián),關(guān)注創(chuàng)新互聯(lián)-成都網(wǎng)站建設(shè)公司行業(yè)資訊頻道,更多相關(guān)知識(shí)等著你來學(xué)習(xí)!

新聞名稱:RAC下主機(jī)修改時(shí)區(qū)導(dǎo)致db無法open怎么辦-創(chuàng)新互聯(lián)
網(wǎng)址分享:http://muchs.cn/article14/dhcgge.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站營(yíng)銷、品牌網(wǎng)站設(shè)計(jì)品牌網(wǎng)站建設(shè)、服務(wù)器托管、建站公司、動(dòng)態(tài)網(wǎng)站

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)

成都網(wǎng)站建設(shè)公司