当前位置:网站首页>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);
边栏推荐
- C simply call FMU for simulation calculation
- canvas常用原型方法及绘制图片应用
- 【多线程】long和double的非原子性协定
- v-bind指令的详细介绍
- 2022年危险化学品经营单位安全管理人员上岗证题目及答案
- TXT text file storage
- The chess robot pinched the finger of a 7-year-old boy, and the pot of a software testing engineer? I smiled.
- Sentinel
- 正负数值的正则表达式
- [592. Fraction addition and subtraction]
猜你喜欢

2022 high voltage electrician examination simulated 100 questions and simulated examination

MDM data quality application description

个人博客小程序

js数组去重,id相同对某值相加合并

2022年安全员-B证考试模拟100题及答案

训练一个自己的分类 | 【包教包会,数据都准备好了】

2022年安全员-B证考试模拟100题及答案

Implementation principle of golang synergy

5 operators, expressions, and statements
![[English postgraduate entrance examination vocabulary training camp] day 15 - analyze, general, avoid, surveillance, compared](/img/a8/2c2fab613035f5e50524056d5f51a3.png)
[English postgraduate entrance examination vocabulary training camp] day 15 - analyze, general, avoid, surveillance, compared
随机推荐
19c SYSAUX表空间SQLOBJ$PLAN表过大,如何清理
OpenShift 4 - 使用 VerticalPodAutoscaler 优化应用资源 Request 和 Limit
Feign调用异常[Running, pool size = 10, active threads = 10, queued tasks = 0, completed tasks = n]
C simply call FMU for simulation calculation
阿里云服务器搭建和宝塔面板连接
实现批量数据增强 | keras ImageDataGenerator使用
Alibaba cloud server setup and pagoda panel connection
AMQ streams (1) of openshift 4 - multiple consumers receive data from partition
mysql5.7.38容器里启动keepalived
网络层的IP协议
侯捷STL标准库和泛型编程
Activiti启报错: Cannot create PoolableConnectionFactory (Could not create connection to database server
Informatics Olympiad all in one 1617: circle game | 1875: [13noip improvement group] circle game | Luogu p1965 [noip2013 improvement group] circle game
一款入门神器TensorFlowPlayground
sql server 的关键字在哪张系统表?
ES6 let and Const
推荐一个摆脱变量名纠结的神器和批量修改文件名方法
Recommend an artifact to get rid of the entanglement of variable names and a method to modify file names in batches
【592. 分数加减运算】
使用 GBase C API 执行存储过程是怎样的?