Home > Database > Mysql Tutorial > Oracle 11g报ORA-04031错误的解决办法

Oracle 11g报ORA-04031错误的解决办法

WBOY
Release: 2016-06-07 16:33:44
Original
1661 people have browsed it

将客户的Oracle数据库迁移到新小机上,客户在使用Oracle中遇到应用如下报错:

问题现象:
将客户的Oracle数据库迁移到新小机上,客户在使用Oracle中遇到应用如下报错:

 ·引发异常的应用:Hebcz.Platform.VM
·引发异常的类型:DDTek.Oracle.OracleException
·引发异常的方法:System.Collections.Generic.List`1[Hebcz.Platform.DTO.VM.VMTypeDTO] SelectVmTypeByAppTypeID(Int32)
·异常包含的消息:[4031] ORA-04031: unable to allocate 3896 bytes of shared memory ("shared pool","Select VOUCHERTYPEID,APPTYPE...","sga heap(1,0)","kglsim object batch")

解决办法:
用如下命令修改SGA_MAX_SIZE与SGA_TARGET的值,将大小从1G调整为5G,数据库正常。

SQL> alter system set sga_max_size=5G  scope=spfile;
SQL> alter system set sga_target=5G  scope=spfile;

本文永久更新链接地址:

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template