ORA-04030: 在尝试分配 123416 字节 (QERHJ hash-joi,kllcqas:kllsltba) 时进程内存不足

有个11g环境,报错如下

Mon Jul 17 09:12:30 2023
Errors in file /u01/app/oracle/diag/rdbms/orcl/orcl1/trace/orcl1_ora_3060.trc  (incident=129931):
ORA-04030: 在尝试分配 123416 字节 (QERHJ hash-joi,kllcqas:kllsltba) 时进程内存不足
Incident details in: /u01/app/oracle/diag/rdbms/orcl/orcl1/incident/incdir_129931/orcl1_ora_3060_i129931.trc
Use ADRCI or Support Workbench to package the incident.
See Note 411.1 at My Oracle Support for error and packaging details.
Errors in file /u01/app/oracle/diag/rdbms/orcl/orcl1/trace/orcl1_ora_3060.trc  (incident=129932):
ORA-04030: 在尝试分配 824504 字节 (pga heap,kco buffer) 时进程内存不足
ORA-04030: 在尝试分配 123416 字节 (QERHJ hash-joi,kllcqas:kllsltba) 时进程内存不足
Incident details in: /u01/app/oracle/diag/rdbms/orcl/orcl1/incident/incdir_129932/orcl1_ora_3060_i129932.trc
Use ADRCI or Support Workbench to package the incident.
See Note 411.1 at My Oracle Support for error and packaging details.
Mon Jul 17 09:12:45 2023
Errors in file /u01/app/oracle/diag/rdbms/orcl/orcl1/incident/incdir_129931/orcl1_ora_3060_i129931.trc:
ORA-04030: 在尝试分配 824504 字节 (pga heap,kco buffer) 时进程内存不足
ORA-04030: 在尝试分配 123416 字节 (QERHJ hash-joi,kllcqas:kllsltba) 时进程内存不足
Errors in file /u01/app/oracle/diag/rdbms/orcl/orcl1/trace/orcl1_ora_3060.trc  (incident=129933):
ORA-04030: 在尝试分配 824504 字节 (pga heap,kco buffer) 时进程内存不足
ORA-04030: 在尝试分配 123416 字节 (QERHJ hash-joi,kllcqas:kllsltba) 时进程内存不足
Incident details in: /u01/app/oracle/diag/rdbms/orcl/orcl1/incident/incdir_129933/orcl1_ora_3060_i129933.trc
Errors in file /u01/app/oracle/diag/rdbms/orcl/orcl1/incident/incdir_129931/orcl1_ora_3060_i129931.trc:
ORA-04030: 在尝试分配 824504 字节 (pga heap,kco buffer) 时进程内存不足
ORA-04030: 在尝试分配 123416 字节 (QERHJ hash-joi,kllcqas:kllsltba) 时进程内存不足
Dumping diagnostic data in directory=[cdmp_20230717091253], requested by (instance=1, osid=3060), summary=[incident=129933].
Mon Jul 17 09:13:45 2023
Sweep [inc2][129933]: completed
Sweep [inc2][129931]: completed
Mon Jul 17 09:18:55 2023
Auto-tuning: Shutting down background process GTX2
Mon Jul 17 09:20:43 2023
Auto-tuning: Starting background process GTX2
Starting background process GTX2
Mon Jul 17 09:20:43 2023
GTX2 started with pid=211, OS id=9379
Mon Jul 17 09:22:19 2023
Errors in file /u01/app/oracle/diag/rdbms/orcl/orcl1/trace/orcl1_ora_3060.trc  (incident=129934):
ORA-04030: 在尝试分配 30200 字节 (kxs-heap-w,qergsStart:sbp_qergsm) 时进程内存不足
Incident details in: /u01/app/oracle/diag/rdbms/orcl/orcl1/incident/incdir_129934/orcl1_ora_3060_i129934.trc
Use ADRCI or Support Workbench to package the incident.
See Note 411.1 at My Oracle Support for error and packaging details.
Mon Jul 17 09:22:27 2023
Dumping diagnostic data in directory=[cdmp_20230717092227], requested by (instance=1, osid=3060), summary=[incident=129934].

处理办法:参考MOS文档(Doc ID 1325100.1)

1、首先停止实例,

   # echo 'vm.max_map_count=262144' >>/etc/sysctl.conf
   # sysctl -p

重新启动实例

2、在实例中修改。重启生效

alter system set "_use_realfree_heap"=TRUE scope=spfile;
alter system set "_realfree_heap_pagesize_hint"=200000 scope=spfile;

如是12c或者更高版本

alter system set "_use_realfree_heap"=TRUE scope=spfile;
alter system set "_realfree_heap_pagesize"=200000 scope=spfile;

你可能感兴趣的:(OracleDB,oracle,运维)