如何更改 table 监控设置

How to change table monitoring setting

我正在努力提高 Oracle table 的性能。

我一直在使用 'monitoring' 和 'logging' 子句创建的 table。这两个降低了查询性能,我需要将监控更改为 nomonitoring(不删除 tables)。

效果很好:

alter table some_table nologging

但是要将监控更改为不监控,我使用;

alter table some_table nomonitoring

查询执行无任何错误,但 table 结构没有变化。

我已经在互联网上研究了几天,而且正如我在这里看到的那样,没有针对我的特定问题的主题。

提前致谢。

monitoring/nomonitoring 选项已弃用,不再在 Oracle 中使用。

Quote from the Oracle 11.2 manual

Formerly, you enabled DBMS_STATS to automatically gather statistics for a table by specifying the MONITORING keyword in the CREATE (or ALTER) TABLE statement. Starting with Oracle Database 11g, the MONITORING and NOMONITORING keywords have been deprecated and statistics are collected automatically. If you do specify these keywords, they are ignored.

(强调我的)