欧美一区二区三区老妇人-欧美做爰猛烈大尺度电-99久久夜色精品国产亚洲a-亚洲福利视频一区二区

在Oracle11gRAC環(huán)境下如何處理ORA-00845錯(cuò)誤-創(chuàng)新互聯(lián)

這篇文章主要為大家展示了“在Oracle11g RAC環(huán)境下如何處理ORA-00845錯(cuò)誤”,內(nèi)容簡(jiǎn)而易懂,條理清晰,希望能夠幫助大家解決疑惑,下面讓小編帶領(lǐng)大家一起研究并學(xué)習(xí)一下“在Oracle11g RAC環(huán)境下如何處理ORA-00845錯(cuò)誤”這篇文章吧。

成都創(chuàng)新互聯(lián)長(zhǎng)期為千余家客戶提供的網(wǎng)站建設(shè)服務(wù),團(tuán)隊(duì)從業(yè)經(jīng)驗(yàn)10年,關(guān)注不同地域、不同群體,并針對(duì)不同對(duì)象提供差異化的產(chǎn)品和服務(wù);打造開放共贏平臺(tái),與合作伙伴共同營(yíng)造健康的互聯(lián)網(wǎng)生態(tài)環(huán)境。為文圣企業(yè)提供專業(yè)的成都做網(wǎng)站、成都網(wǎng)站設(shè)計(jì),文圣網(wǎng)站改版等技術(shù)服務(wù)。擁有10余年豐富建站經(jīng)驗(yàn)和眾多成功案例,為您定制開發(fā)。

因機(jī)房空調(diào)停電原因機(jī)房溫度過高而導(dǎo)致兩個(gè)節(jié)點(diǎn)的Oracle11G RAC數(shù)據(jù)庫(kù)服務(wù)器自動(dòng)關(guān)機(jī)。等啟動(dòng)服務(wù)器后,發(fā)現(xiàn)數(shù)據(jù)庫(kù)起不來,如題如下:

[oracle@DB-2 ~]$ sqlplus  / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Wed Aug 2 10:35:31 2017

Copyright (c) 1982, 2009, Oracle.  All rights reserved.

Connected to an idle instance.

SQL> startup

ORA-00845: MEMORY_TARGET not supported on this system

SQL> exit

原因?yàn)槌跏蓟瘏?shù)MEMORY_TARGET或MEMORY_MAX_TARGET不能大于共享內(nèi)存(/dev/shm),為了解決這個(gè)問題,要不調(diào)整Oracle初始化參數(shù)要不調(diào)大/dev/shm。

Oracle原來參數(shù)文件相關(guān)參數(shù)文件如下:

orcl2.memory_max_target=68719476736

orcl1.memory_max_target=68719476736

*.memory_target=30558650368

orcl2.memory_target=68719476736

orcl1.memory_target=6871947673

操作系統(tǒng)的共享內(nèi)存(/dev/shm)參數(shù)如下:

[oracle@DB-1 shm]$ cat /etc/fstab | grep tmpfs

tmpfs                   /dev/shm                tmpfs   defaults,size=131072M        0 0

通過vi /etc/fstab命令分別修改兩個(gè)節(jié)點(diǎn)的size為64G,如下:

tmpfs                   /dev/shm                tmpfs   defaults,size=64G       0 0

[oracle@CRXJ-DB-1 ~]$ df -h

Filesystem            Size  Used Avail Use% Mounted on

/dev/mapper/vg_crxjdb1-LogVol02

                      2.3T  1.3T  882G  60% /

tmpfs                  64G   34G   30G  54% /dev/shm

/dev/sda1             194M   33M  152M  18% /boot

/dev/mapper/vg_crxjdb1-LogVol01

                      9.9G  151M  9.2G   2% /tmp

重新嘗試啟動(dòng)數(shù)據(jù)庫(kù),還是報(bào)ORA-00845錯(cuò)誤,因此對(duì)將初始化參數(shù)文件spfile導(dǎo)出成pfile后進(jìn)行編輯并重新生成spfile,過程如下:

[oracle@DB-1 ~]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Wed Aug 2 10:36:33 2017

Copyright (c) 1982, 2009, Oracle.  All rights reserved.

Connected to an idle instance.

SQL> create spfile from pfile='/home/oracle/pfile_yu.ora';

File created.

Elapsed: 00:00:00.21

編輯相關(guān)內(nèi)容如下:

orcl2.memory_max_target=64424509440

orcl1.memory_max_target=64424509440

*.memory_target=64424509440

orcl2.memory_target=64424509440

orcl1.memory_target=64424509440

重新生成spfile并啟動(dòng)數(shù)據(jù)庫(kù):

SQL> create spfile from pfile='/home/oracle/pfile_yu.ora';

File created.

Elapsed: 00:00:00.18

SQL> exit

Disconnected

[oracle@DB-1 ~]$ sqlplus  / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Wed Aug 2 10:40:30 2017

Copyright (c) 1982, 2009, Oracle.  All rights reserved.

Connected to an idle instance.

SQL> startup

ORACLE instance started.

Total System Global Area 6.4137E+10 bytes

Fixed Size                  2219552 bytes

Variable Size            3.8118E+10 bytes

Database Buffers         2.5770E+10 bytes

Redo Buffers              247029760 bytes

Database mounted.

Database opened.

SQL>

數(shù)據(jù)庫(kù)啟動(dòng)成功。

在另一個(gè)節(jié)點(diǎn)也進(jìn)行類似操作,兩個(gè)節(jié)點(diǎn)數(shù)據(jù)庫(kù)都正常啟動(dòng)并運(yùn)行,應(yīng)用能正常訪問了。

注:在節(jié)點(diǎn)一生成完spfile后,在節(jié)點(diǎn)二上企圖啟動(dòng)數(shù)據(jù)庫(kù),但還是報(bào)錯(cuò):

[oracle@DB-2 ~]$ sqlplus  / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Wed Aug 2 10:35:31 2017

Copyright (c) 1982, 2009, Oracle.  All rights reserved.

Connected to an idle instance.

SQL> startup

ORA-00845: MEMORY_TARGET not supported on this system

查看操作系統(tǒng)信息:

[oracle@DB-2 ~]$ df -h|grep shm

tmpfs                  64G  397M   63G   1% /dev/shm

[oracle@DB-2 ~]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Wed Aug 2 10:46:28 2017

Copyright (c) 1982, 2009, Oracle.  All rights reserved.

Connected to an idle instance.

SQL> create pfile='/home/oracle/pfile_yu.ora' from  spfile; 

create pfile='/home/oracle/pfile_yu.ora' from  spfile

*

ERROR at line 1:

ORA-01565: error in identifying file '?/dbs/spfile@.ora'

ORA-27037: unable to obtain file status

Linux-x86_64 Error: 2: No such file or directory

Additional information: 3

對(duì)于以上問題,從節(jié)點(diǎn)一把參數(shù)文件復(fù)制過來后直接生成spfile

[oracle@DB-1 ~]$ scp pfile_yu.ora DB-2:/home/oracle/pfile_yu.ora                                                                                                                 100% 1929     1.9KB/s   00:00   

[oracle@DB-2 ~]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Wed Aug 2 10:54:48 2017

Copyright (c) 1982, 2009, Oracle.  All rights reserved.

Connected to an idle instance.

SQL> create spfile from pfile='/home/oracle/pfile_yu.ora';

File created.

SQL> startup

ORACLE instance started.

Total System Global Area 6.4137E+10 bytes

Fixed Size                  2219552 bytes

Variable Size            3.3554E+10 bytes

Database Buffers         3.0333E+10 bytes

Redo Buffers              247029760 bytes

Database mounted.

Database opened.

SQL> exit

以上是“在Oracle11g RAC環(huán)境下如何處理ORA-00845錯(cuò)誤”這篇文章的所有內(nèi)容,感謝各位的閱讀!相信大家都有了一定的了解,希望分享的內(nèi)容對(duì)大家有所幫助,如果還想學(xué)習(xí)更多知識(shí),歡迎關(guān)注創(chuàng)新互聯(lián)-成都網(wǎng)站建設(shè)公司行業(yè)資訊頻道!

分享名稱:在Oracle11gRAC環(huán)境下如何處理ORA-00845錯(cuò)誤-創(chuàng)新互聯(lián)
文章起源:http://chinadenli.net/article42/cecohc.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站改版App開發(fā)網(wǎng)站設(shè)計(jì)外貿(mào)建站ChatGPT電子商務(wù)

廣告

聲明:本網(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)站網(wǎng)頁(yè)設(shè)計(jì)