首页 » ORACLE 9i-23ai » Troubleshooting ORA-00600 [733] [TOP CALL HEAP] When Query V$SQL_PLAN

Troubleshooting ORA-00600 [733] [TOP CALL HEAP] When Query V$SQL_PLAN

一套oracle 11gR2数据库环境, SQL监控工具在采集SQL性能指标时,报错 ORA-00600: internal error code, arguments: [733], [1258291280], [top call heap], 记录一下该问题。

报告信息

Dump continued from file: /opt/app/oracle/diag/rdbms/stdtadb/TADB/trace/TADB_ora_3257.trc
ORA-00600: internal error code, arguments: [733], [1258291280], [top call heap], [], [], [], [], [], [], [], [], []


SELECT /*+ opt_param('parallel_execution_enabled', 'false') */
                       /* EXEC_FROM_DBMS_XPLAN */ id, position, depth , operation, options, object_name, cardinality, bytes, temp_space, cost, io_cost, cpu_cost, time, partition_start, partition_stop, object_node, other_tag, distribution, null, access_predicates, filter_predicates, other, null, null, other_xml, sql_profile, sql_plan_baseline, null, null, null, null, null, null, null,
                        null, null, null, null, null, null, null, null, null from (select /*+ no_merge(vp) */ 
                          vp.id id, vp.depth depth, vp.position position, 
                          vp.operation operation, vp.options options,
                          vp.cost cost, vp.time time, 
                          vp.cardinality cardinality, vp.bytes bytes, 
                          vp.object_node object_node,
                          vp.object_name object_name, vp.other_tag other_tag, 
                          vp.partition_start partition_start,
                          vp.partition_stop partition_stop, 
                          vp.distribution distribution, 
                          vp.temp_space temp_space, vp.io_cost io_cost,
                          vp.cpu_cost cpu_cost, 
                          vp.filter_predicates filter_predicates, 
                          vp.access_predicates access_predicates, 
                          vp.other other, vp.projection projection, 
                          vp.qblock_name qblock_name, 
                          vp.object_alias object_alias, 
                          vp.other_xml other_xml, 
                          v$sql.sql_profile sql_profile, 
                          v$sql.sql_plan_baseline sql_plan_baseline, 0 starts, 0 outrows, 0 crgets, 0 cugets,
                                     0 reads,
                                     0 writes, 0 etime,
                                     0 mem_opt,
                                     0 mem_one,
                                     null last_mem_used,
                                     null last_mem_usage,
                                     0 opt_cnt,
                                     0 one_cnt,
                                     0 multi_cnt,
                                     0 max_tmp,
                                     0 last_tmp
               from V$SQL_PLAN vp, v$sql where vp.SQL_ID = '5d222pxun5gnb' and vp.child_number=7 and vp.SQL_ID = v$sql.SQL_ID and v$sql.is_obsolete = 'N' and v$sql.address = vp.address and v$sql.child_number=7) order by id

ORA-600 [733]

Format: ORA-600 [733] [a] [b]

VERSIONS:
versions 7.0 to 12.1

DESCRIPTION:

When allocating an extent in the PGA, if the minimum size requested is greater than what is allowed for this port, ORA-600 [733] is reported.

This is a Program Global Area (PGA) heap/memory allocation error.

ARGUMENTS:
Arg [a] The minimum extent size requested, in bytes.
Arg [b] A comment supplied by the caller.

FUNCTIONALITY:
MEMORY IMPLEMENATION

IMPACT:
PROCESS FAILURE
NON CORRUPTIVE – No corruption to underlying data.

SUGGESTIONS:

If receiving this during a query with complex JOIN, for example, consider lowering sort_area_size or hash_area_size (if hash_join_enabled = true)
and rerun the query. This will reduce the PGA memory requirements and may clear the problem.

Known Issue

NB Prob Bug Fixed Description
III 28741243 19.2 ORA-600 [733] / ORA-600 [17147] / ORA-600 [17183] When Selecting From V$SQLPLAN or ORA-2400 When Gathering Explain Plan
25974357 18.1 Sharded Database Drop Tablespace set fails with ORA-600[733]
17171365 12.1.0.2, 12.2.0.1 ORA-00600 [733] running background loader with large number of slaves
36688463 ORA-600 [733] for a query with large CASE statement
II 35865671 23.4 Dump Additional Information for ORA-00600 [733] With Encrypted Block
III 35792419 19.25, 23.4 ORA-600 [733], [1342177360], [top call heap] Encountered With Query Having Like With Bind Predicates
35316132 ORA-600 [733] – kgopcallocmem
II 33596145 ORA-600 [733] – kudmrs
II 35582034 AIM:ORA-600 [733] – dmsrfitreenodeinfoinit
III 32478452 19.13, 21.4 OGG process abends with ORA-600 [733] [pga heap] or ORA-600 [600]
35610656 aim:ORA-600 [733] – qjsnglobbuffromlob
II 32127227 19.11 ORA-600 [733] with ORACLE_LOADER access driver
II 32646713 ORA-600 [733] – kudmxdusavedoc
I 29901961 19.10 ORA-00600 [733] error
31672806 ORA-600 [733] may occur during AWR export
II 30556326 19.10 ORA-600 [733] with ORACLE_LOADER access driver – superseded
30458568 19.7, 20.1 ORA-600: [733] – dmsglCbkPPI
29927756 19.6, 20.1 BDASQL: Query on External Table Using CSV File on Object Store and column_array_size= -1 Returns ORA-00600
32102738 18.1 text/spatial cannot pass internal rowid format: ORA-600 [733]
III 25100063 12.2.0.1.DBRU:171121, 18.1 ORA-600 [733] ORA-7745 [memcpy] ORA-19505 by RMAN Backup to Platform or Restore when a large number of Tablespaces is Specified – Superseded
III 24409977 12.2.0.1.DBRU:190716, 18.1 GoldenGate Capure Terminates with ORA-600 [723], ORA-600 [733], or ORA-22275
I 18099513 12.1.0.2, 12.2.0.1, 18.1 stress: xdb: tpox: sb: sxi: ORA-600 [733] [1242271096] [pga heap] during test ru
I 14335877 12.2.0.1 ASM ORA-600[733] / ORA-7445[ktslpuchk()+107] in Scrubbing Disk
II 22159257 12.2.0.1, 18.3 ORA-600 [733], [2097152200], [top uga heap] from insert into csx column
III 23530747 12.2.0.1 ORA-600[733][PGA HEAP] during lob prefetch
23148192 12.2.0.1 ORA-00600: [733], [1388381656], [top call heap] – “not known to affect any released version” or “fixed before db is released”
II 18607120 12.1.0.2, 12.2.0.1 imc::gstxtint hit ora 600 [733]
I 18330222 12.1.0.2, 12.2.0.1 ORA-600 [733] When Select From V$IM_COL_CU
I 18155392 12.2.0.1 ORA-600 [733] During Sql Execution CDB When In-Memory Compression Unit (IMCU) Is Used
II 13546224 11.2.0.4, 12.1.0.1 ORA-600 using SDO_SAM.SPATIAL_CLUSTERS
II 13703772 11.2.0.4, 12.1.0.1 Replay process fails with ORA-600 [733] [..] [top call heap] during preprocess
III 13654572 11.2.0.4, 12.1.0.1 SQL May Fail With ORA-600:[733] When Doing Query Rewrite And If Interval Partitions Involved In Base Table
II 12660458 11.2.0.3, 12.1.0.1 Database fails to connect with ASM instance due to ORA-600[733] or ORA-15055
II 12374190 11.2.0.3, 12.1.0.1 Database instance ORA-600 [733] / crash / ORA-15055 using ASM
III 11822015 11.2.0.4, 12.1.0.1 ORA-600 [733] when reading online redo or archived redo
+ IIII 11666959 11.2.0.3, 12.1.0.1 ORA-7445 / LPX-200 / wrong results etc.. from new XML parser
II 10325953 11.2.0.3, 12.1.0.1 ORA-600[733] / ORA-4031 allocating memory for hash join – superceded
II 9936315 11.2.0.4, 12.1.0.1 ORA-600 [733] indexing a plain text file with AUTO_LEXER
III 9271344 11.2.0.1.BP03, 11.2.0.2, 12.1.0.1 ORA-600 [733] from hash GROUP BY query
11661552 11.2.0.3, 12.1.0.1 ORA-00600 [733] when Executing Frequent Itemset Queries
9316321 11.2.0.2, 12.1.0.1 ORA-600: [733] when creating indexes with a very large number of partitions
8584929 11.2.0.1 ORA-600 [773] / dump from scale up REPLAY
II 8253459 11.2.0.1 ORA-600 [733] / ORA-600 [17114] from parallel DML to interval partitioned table
II 7555504 10.2.0.5, 11.2.0.1 ORA-600 [733] when hash join access method is used
II 5369855 10.2.0.4, 11.1.0.6 OERI:733 or Spin (qksopLogSame) from star transformation
4058160 10.1.0.5, 10.2.0.1, 9.2.0.7 OERI[KGHALO2] accessing earlier version Gateway
4053658 10.2.0.1 OERI:KGHALP1 / OERI:733 for large elements in XDB
II 3854034 10.1.0.4, 10.2.0.1, 9.2.0.7 OERI[733] optimizing SQL using bitmap indexes
3570286 9.2.0.6, 10.1.0.4, 10.2.0.1 OERI[733] from high use of application context (DBMS_SESSION.SET_CONTEXT)
I 3299546 10.2.0.1, NOFIX Private memory growth / OERI[733] from repeated System.err.print / println calls
3166756 9.2.0.6, 10.1.0.3, 10.2.0.1 Self deadlock (ORA-60) / OERI possible on LOB index update
I 3202151 10.1.0.2, 9.2.0.7 Dump (kkqsgen) / OERI:KGHALO2 possible
2399954 9.2.0.3, 10.1.0.2 OERI:733 / OERI[KGHALF1] possible from PLSQL execution using many cursors
I 553250 8.1.7.0 OERI:17176 trying to bind < 32K to a Pl/Sql table

 

诊断内存使用

 alter system set events '600 {errarg:arg1=600}  heapdump (13)';
 select * from table(dbms_xplan.display_cursor('xxxxx', NULL, 'ALL'));


检查投影和谓词

 select ACCESS_PREDICATES from v$sql_plan where plan_hash_value = xxx;
 select FILTER_PREDICATES from v$sql_plan where plan_hash_value = xxx;
 select PROJECTION        from v$sql_plan where plan_hash_value = xxx;
 select lengthb(ACCESS_PREDICATES) from v$sql_plan where plan_hash_value = xxx;
 select lengthb(FILTER_PREDICATES) from v$sql_plan where plan_hash_value = xxx;
 select lengthb(PROJECTION)        from v$sql_plan where plan_hash_value = xxx;

select count(FILTER_PREDICATES),PLAN_HASH_VALUE, sql_id from V$sql_plan  
where sql_id=xxx
group  by PLAN_HASH_VALUE,sql_id order by 1 desc; 

该问题可能发生在大的谓词或投影列,超过了某限制。仅发生在12.1之前,  改变SQL 执行计划或列个数可能会绕过该问题。已知Bug 19846328 : ORA-00600 [733] [TOP CALL HEAP] WHILE SELECTING FROM V$SQL_PLAN

打赏

对不起,这篇文章暂时关闭评论。