您好,登錄后才能下訂單哦!
問題描述:巡檢時發(fā)現(xiàn)某一個節(jié)點(diǎn)數(shù)據(jù)庫down了,通過sqlplus 進(jìn)行系統(tǒng)時顯示連接的是一個空實(shí)例,嘗試通過startup重啟數(shù)據(jù)庫報錯,提示MEMORY_TARGETnot supported on this system,查看告警日志報MEMORY_TARGET失敗,要增加/dev/shm大小才可以解決問題
登錄數(shù)據(jù)庫時報錯信息如下:
[oracle@db01 ~]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.4.0 Productionon Mon Oct 30 09:26:35 2017
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup
ORA-00845: MEMORY_TARGET not supported on this system
后臺日志報如下信息:
Starting ORACLE instance (normal)
WARNING: You are trying to use theMEMORY_TARGET feature. This feature requires the /dev/shm file system to bemounted for at least 13522436096 bytes. /dev/shm is either not mounted or ismounted with available space less than this size. Please fix this so that MEMORY_TARGETcan work as expected. Current available is 12203786240 and used is 454021120bytes. Ensure that the mount point is /dev/shm for this directory.
memory_target needs larger /dev/shm
問題分析:
由于Oracle11g中使用的是AMM,當(dāng)MEMORY_TARGET大于/dev/shm時就提示不支持此系統(tǒng),從而報錯無法啟動數(shù)據(jù)庫,由于/dev/shm是通過tmpfs通過大小的,在Linux環(huán)境中可以通過修改此大小解決問題
解決方法:
1、 查看當(dāng)前的tmpfs大小信息
[oracle@i60001~]$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_db01-LogVol02 229G 65G 153G 30% /
tmpfs 12G 434M 12G 4% /dev/shm--此處要修改
/dev/sde1 485M 40M 420M 9% /boot
/dev/mapper/vg_db01-LogVol00 30G 5.0G 24G 18% /usr
[oracle@i60001~]$ mount -o size=20G -onr_inodes=1000000 -o noatime,nodiratime -o remount /dev/shm
mount: onlyroot can do that
修改tmpfs大小要通過root用戶下面操作,切換到root用戶
[oracle@i60001~]$ su root
Password:
2、修改tmpfs大小
[root@db01oracle]# mount -o size=20G -o nr_inodes=1000000 -o noatime,nodiratime-o remount /dev/shm
[root@db01oracle]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_db01-LogVol02 229G 65G 153G 30% /
tmpfs 20G 434M 20G 3% /dev/shm--修改后的大小
/dev/sde1 485M 40M 420M 9% /boot
/dev/mapper/vg_db01-LogVol00 30G 5.0G 24G 18% /usr
3、修改tmpfs大小后,再登錄數(shù)據(jù)庫中重啟實(shí)例
[oracle@db01~]$ sqlplus / as sysdba
SQL*Plus:Release 11.2.0.4.0 Production on Mon Oct 30 09:42:02 2017
Copyright (c)1982, 2013, Oracle. All rights reserved.
Connected toan idle instance.
SQL>startup;
ORACLEinstance started.
Total SystemGlobal Area 1.3462E+10 bytes
Fixed Size 2265984 bytes
Variable Size 7381978240 bytes
DatabaseBuffers 6039797760 bytes
Redo Buffers 38014976 bytes
Databasemounted.
Database opened.-顯示啟動成功
--查詢當(dāng)前的數(shù)據(jù)庫實(shí)例是否正常
SQL>select open_mode from v$database;
OPEN_MODE
--------------------
READ WRITE
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報,并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。