数据库启动提示: ORA-27102: out of memory
生活随笔
收集整理的這篇文章主要介紹了
数据库启动提示: ORA-27102: out of memory
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
今天做壓力測試的時(shí)候,修改數(shù)據(jù)參數(shù)出現(xiàn)ORA-27102: out of memory錯(cuò)誤,最后發(fā)現(xiàn)是系統(tǒng)參數(shù)設(shè)置的問題,限制了oracle的sga大小 修改系統(tǒng)參數(shù)前,一定要備份參數(shù)文件, create spfile from pfile='/opt/oracle/product/11.1/db_1/dbs/initorcl.ora'; -------?查看sga的大小 SQL> show parameter sga NAME???????????????????????????????? TYPE??????? VALUE ------------------------------------ ----------- ------------------------------
lock_sga???????????????????????????? boolean???? FALSE pre_page_sga???????????????????????? boolean???? FALSE sga_max_size???????????????????????? big integer 1552M
sga_target?????????????????????????? big integer 1536M 修改sga_max_size alter system set sga_max_size=10240M scope=spfile; 重新啟動(dòng)數(shù)據(jù)庫 SQL> startup force
ORA-27102: out of memory
Error: 28: No space left on device 出現(xiàn)ORA-27102錯(cuò)誤,這是我們可以使用備分的參數(shù)文件啟動(dòng)數(shù)據(jù)庫; startup pfile='/opt/oracle/product/11.1/db_1/dbs/initorcl.ora'; 問題到這里,雖然庫可以啟動(dòng),但參數(shù)還是沒有改。 這是我們可以修改一下系統(tǒng)參數(shù)/etc/sysctl.conf文件中的kernel.shmall參數(shù) 原參數(shù) ------------------------------------------------------------------------------- fs.file-max = 6553600 kernel.shmall=2097152
kernel.shmmax=2147483648
kernel.shmmni=4096 ------------------------------------------------------------------------------- 修改后為 -------------------------------------------------------------------------------- fs.file-max = 6553600 kernel.shmall = 4194304
kernel.shmmax = 2147483648 kernel.shmmni = 4096 --------------------------------------------------------------------------------- 修改完這些參數(shù)后,我們就可以正常啟動(dòng)了 先創(chuàng)建spfile,然后我們以spfile啟動(dòng) SQL> create spfile from pfile; File created. SQL> startup force
ORACLE instance started. Total System Global Area 1620189184 bytes Fixed Size????????????????? 2144824 bytes
Variable Size???????????? 922748360 bytes
Database Buffers????????? 671088640 bytes Redo Buffers?????????????? 24207360 bytes Database mounted. Database opened. 我們?cè)俅涡薷?alter system set sga_max_size=10240M scope=spfile; <A href="mailto:orcl@SYS>startupforce">orcl@SYS>startupforce ORACLE instance started. Total System Global Area 1.0689E+10 bytes Fixed Size????????????????? 2147392 bytes Variable Size??????????? 9596570560 bytes
Database Buffers???????? 1073741824 bytes
Redo Buffers?????????????? 17014784 bytes Database mounted. Database opened. 問題成功解決
lock_sga???????????????????????????? boolean???? FALSE pre_page_sga???????????????????????? boolean???? FALSE sga_max_size???????????????????????? big integer 1552M
sga_target?????????????????????????? big integer 1536M 修改sga_max_size alter system set sga_max_size=10240M scope=spfile; 重新啟動(dòng)數(shù)據(jù)庫 SQL> startup force
ORA-27102: out of memory
Error: 28: No space left on device 出現(xiàn)ORA-27102錯(cuò)誤,這是我們可以使用備分的參數(shù)文件啟動(dòng)數(shù)據(jù)庫; startup pfile='/opt/oracle/product/11.1/db_1/dbs/initorcl.ora'; 問題到這里,雖然庫可以啟動(dòng),但參數(shù)還是沒有改。 這是我們可以修改一下系統(tǒng)參數(shù)/etc/sysctl.conf文件中的kernel.shmall參數(shù) 原參數(shù) ------------------------------------------------------------------------------- fs.file-max = 6553600 kernel.shmall=2097152
kernel.shmmax=2147483648
kernel.shmmni=4096 ------------------------------------------------------------------------------- 修改后為 -------------------------------------------------------------------------------- fs.file-max = 6553600 kernel.shmall = 4194304
kernel.shmmax = 2147483648 kernel.shmmni = 4096 --------------------------------------------------------------------------------- 修改完這些參數(shù)后,我們就可以正常啟動(dòng)了 先創(chuàng)建spfile,然后我們以spfile啟動(dòng) SQL> create spfile from pfile; File created. SQL> startup force
ORACLE instance started. Total System Global Area 1620189184 bytes Fixed Size????????????????? 2144824 bytes
Variable Size???????????? 922748360 bytes
Database Buffers????????? 671088640 bytes Redo Buffers?????????????? 24207360 bytes Database mounted. Database opened. 我們?cè)俅涡薷?alter system set sga_max_size=10240M scope=spfile; <A href="mailto:orcl@SYS>startupforce">orcl@SYS>startupforce ORACLE instance started. Total System Global Area 1.0689E+10 bytes Fixed Size????????????????? 2147392 bytes Variable Size??????????? 9596570560 bytes
Database Buffers???????? 1073741824 bytes
Redo Buffers?????????????? 17014784 bytes Database mounted. Database opened. 問題成功解決
總結(jié)
以上是生活随笔為你收集整理的数据库启动提示: ORA-27102: out of memory的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Oracle如何监控表的DML次数
- 下一篇: 深入mysql ON DUPLICATE