问题描述
嗨,
我有一个有5000表的数据仓库。
在这个数据仓库中,tablename中也有带有MDXT或MDRT或BIN的表,然后是4600!!400实际上使用400表。
这些表 (MDXT,BIN) 是什么?我可以用这些表做什么?我可以删除它们还是清理它们?最好的方法是什么?
最好的问候
我有一个有5000表的数据仓库。
select count(*) from tab where TABTYPE = 'TABLE'
在这个数据仓库中,tablename中也有带有MDXT或MDRT或BIN的表,然后是4600!!400实际上使用400表。
这些表 (MDXT,BIN) 是什么?我可以用这些表做什么?我可以删除它们还是清理它们?最好的方法是什么?
最好的问候
专家解答
假设你没有自己创建这些,那么:
MDXT
优化器在收集空间对象的统计信息时创建这些表:
When you run ANALYZE INDEX on a spatial domain index for a different schema (user), the user performing the ANALYZE operation needs the following privileges:
CREATE ANY TABLE to create missing temporary tables
DROP ANY TABLE to truncate or remove existing temporary tables
If the statistics are successfully collected, a table with the name in the form MDXT_%objID% will be created for each index for which the statistics are collected. Each such table will be populated with spatial statistics data, 512 rows by default.
所以如果你使用的是空间,我会考虑的unsafe移除这些。
https://docs.oracle.com/en/database/oracle/oracle-database/18/spatl/indexing-querying-spatial-data.html#GUID-F18EDF46-B0E2-437D-AB05-74941EC3608C
BIN
这些可能是recyclebin中删除的表格。您可以使用它来 “取消” 表格。阅读更多关于这方面的信息https://blogs.oracle.com/sql/how-to-recover-data-without-a-backup#Restore-Dropped-Tables
如果你确定你不想恢复这些,你可以清除retyclebin:
数据库将自我管理。所以我不会太在意这些。
MDXT
优化器在收集空间对象的统计信息时创建这些表:
When you run ANALYZE INDEX on a spatial domain index for a different schema (user), the user performing the ANALYZE operation needs the following privileges:
CREATE ANY TABLE to create missing temporary tables
DROP ANY TABLE to truncate or remove existing temporary tables
If the statistics are successfully collected, a table with the name in the form MDXT_%objID% will be created for each index for which the statistics are collected. Each such table will be populated with spatial statistics data, 512 rows by default.
所以如果你使用的是空间,我会考虑的unsafe移除这些。
https://docs.oracle.com/en/database/oracle/oracle-database/18/spatl/indexing-querying-spatial-data.html#GUID-F18EDF46-B0E2-437D-AB05-74941EC3608C
BIN
这些可能是recyclebin中删除的表格。您可以使用它来 “取消” 表格。阅读更多关于这方面的信息https://blogs.oracle.com/sql/how-to-recover-data-without-a-backup#Restore-Dropped-Tables
如果你确定你不想恢复这些,你可以清除retyclebin:
create table t ( c1 int ); insert into t values ( 1 ); commit; drop table t; select object_name from recyclebin; OBJECT_NAME BIN$fuKMAWqyE3XgU50DxAqccA==$0 purge recyclebin; select object_name from recyclebin; no rows selected
数据库将自我管理。所以我不会太在意这些。
文章转载自ASKTOM,如果涉嫌侵权,请发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。




