当前位置:网站首页>19c sysaux tablespace sqlobj$plan table is too large. How to clean it up
19c sysaux tablespace sqlobj$plan table is too large. How to clean it up
2022-07-28 09:24:00 【hzdba】
19c SYSAUX Table space SQLOBJ$PLAN How to clean a watch that is too big ? Again official MOS And no relevant information can be found on the Internet , Do you have a boss to point out
SEGMENT_NAME PARTITION_NAME SEGMENT_TYPE BYTES/1024/1024
------------------------------ ------------------------------ ------------------ ---------------
SQLOBJ$PLAN TABLE 3479
Other answers 1:
https://www.modb.pro/db/421266
Go and have a look at the specific contents recorded in this form , Refer to this I met case Go and analyze
Other answers 2:
https://community.oracle.com/mosc/discussion/4504696/purge-sysaux-tablespace-with-purging-sqlobj-plan, Take a look at this document , It's very similar to your problem .
Other answers 3:
Reference resources MOS file :
- Reducing the Space Usage of the SQL Management Base in the SYSAUX Tablespace (Doc ID 1499542.1)
- How to Reduce SYSAUX Tablespace Occupancy Due to Fragmented TABLEs and INDEXes (Doc ID 1563921.1)
1、 First of all to see SYSAUX Usage of tablespace objects :
set lines 130set pages 10000col SgmntSize heading 'Sgmnt|Size|Mb'col SgmntSize format 99999col TSname heading 'TSpace|Name|'col TSname format a25col SgmntOwner heading 'Sgmnt|Owner|'col SgmntOwner format a15col SgmntName heading 'Sgmnt|Name|'col SgmntName format a35col SgmntType heading 'Sgmnt|Type|'col SgmntType format a5SELECT ROUND(SUM(ds.bytes)/1024/1024,0) as "SgmntSize", ds.TableSpace_name as "TSname", ds.owner as "SgmntOwner", ds.segment_name as "SgmntName", ds.segment_type as "SgmntType"FROM dba_segments dsWHERE ds.segment_type IN ('TABLE','INDEX')AND TableSpace_name = 'SYSAUX'GROUP BY ds.TableSpace_name, ds.owner, ds.segment_name, ds.segment_typeORDER BY "SgmntSize" DESC;
2、 adopt DBMS_SPM.DROP_SQL_PLAN_BASELINE Delete unwanted SQL The baseline .
3、shrink space
It is recommended to do this when the database load is light :
select space_usage_kbytes from v$sysaux_occupants where occupant_name = 'SQL_MANAGEMENT_BASE';alter table "SYS"."SQL$" enable row movement;alter table "SYS"."SQL$TEXT" enable row movement;alter table "SYS"."SQLOBJ$AUXDATA" enable row movement;alter table "SYS"."SQL$" shrink space cascade;alter table "SYS"."SQL$TEXT" shrink space cascade;alter table "SYS"."SQLOBJ$AUXDATA" shrink space cascade;alter table "SYS"."SQL$" disable row movement;alter table "SYS"."SQL$TEXT" disable row movement;alter table "SYS"."SQLOBJ$AUXDATA" disable row movement;alter table "SYS"."SQLOBJ$" shrink space cascade;alter table "SYS"."SQLOBJ$DATA" shrink space cascade;alter table "SYS"."SQL$" modify lob ("SPARE2") (shrink space cascade);alter table "SYS"."SQL$TEXT" modify lob ("SPARE2") (shrink space cascade);alter table "SYS"."SQL$TEXT" modify lob ("SQL_TEXT") (shrink space cascade);alter table "SYS"."SQLOBJ$" modify lob ("SPARE2") (shrink space cascade);alter table "SYS"."SQLOBJ$DATA" modify lob ("COMP_DATA") (shrink space cascade);alter table "SYS"."SQLOBJ$DATA" modify lob ("SPARE2") (shrink space cascade);alter table "SYS"."SQLOBJ$AUXDATA" modify lob ("SPARE2") (shrink space cascade);
边栏推荐
- Activiti启报错: Cannot create PoolableConnectionFactory (Could not create connection to database server
- How to obtain the subordinate / annotation information of KEGG channel
- 5 operators, expressions, and statements
- 这两套代码有什么区别呢?
- MQTT.js 入门教程:学习笔记
- Dapp安全总结与典型安全事件分析
- 【C语言】详解顺序表(SeqList)
- 7 C control statements: branches and jumps
- OpenShift 4 之AMQ Streams(1) - 多个Consumer从Partition接收数据
- F - jealous two-dimensional reverse order pair
猜你喜欢

台大林轩田《机器学习基石》习题解答和代码实现 | 【你值得拥有】

【C语言】详解顺序表(SeqList)

Promise学习笔记
![[592. Fraction addition and subtraction]](/img/3a/1a76a8acd60a6d45eebed612fd3971.png)
[592. Fraction addition and subtraction]

快速上手Flask(一) 认识框架Flask、项目结构、开发环境

C#简单调用FMU ,进行仿真计算

QT基础练手小程序-简单计算器设计(附带源码,解析)

RGB-T追踪——【多模态融合】Visible-Thermal UAV Tracking: A Large-Scale Benchmark and New Baseline

Magic Bracelet-【群论】【Burnside引理】【矩阵快速幂】
![[advanced drawing of single cell] 07. Display of KEGG enrichment results](/img/77/0a9006743734c1993785d087f957f0.png)
[advanced drawing of single cell] 07. Display of KEGG enrichment results
随机推荐
01-TensorFlow计算模型(一)——计算图
Informatics Olympiad all in one 1617: circle game | 1875: [13noip improvement group] circle game | Luogu p1965 [noip2013 improvement group] circle game
Design for failure常见的12种设计思想
【C语言】详解顺序表(SeqList)
【多线程】long和double的非原子性协定
力扣题(1)—— 两数之和
3D全景展示新模式,成为破局的关键
一款入门神器TensorFlowPlayground
Train your own classification [Bao Jiaobao, the data are ready]
376. Swing sequence [greedy, dynamic planning -----]
阿里云服务器搭建和宝塔面板连接
Feign调用异常[Running, pool size = 10, active threads = 10, queued tasks = 0, completed tasks = n]
Introduction to official account
ES6 let与const
AMQ streams (1) of openshift 4 - multiple consumers receive data from partition
Openshift 4 - use verticalpodautoscaler to optimize application resource request and limit
【解决】ERROR in [eslint] ESLint is not a constructor
mysql主从架构 ,主库挂掉重启后,从库怎么自动连接主库
LeetCode_406_根据身高重建队列
Force deduction question (1) -- sum of two numbers