暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

Oracle 19C 无法启用Auto Indexes特性

IT小Chen 2021-04-14
1363

Oracle 19C 无法启用Auto Indexes特性

环境:

OS:Red Hat Enterprise Linux Server release 7.5 (Maipo)

DB:Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production

Version 19.3.0.0.0

说明:

近期查看Oracle 19C新特性,发现Auto Indexes特性特别实用,想模拟实验看看效果;

1 查看auto_index特性未启用;

SQL> select * from dba_auto_index_config;

2 在启用Automatic Indexing时报如下错误,不支持该特性:

SQL> alter session set container=cjcpdb;

SQL> EXEC DBMS_AUTO_INDEX.CONFIGURE('AUTO_INDEX_MODE','IMPLEMENT');

BEGIN DBMS_AUTO_INDEX.CONFIGURE('AUTO_INDEX_MODE','IMPLEMENT'); END;

 

*

ERROR at line 1:

ORA-40216: feature not supported

ORA-06512: at "SYS.DBMS_SYS_ERROR", line 79

ORA-06512: at "SYS.DBMS_AUTO_INDEX_INTERNAL", line 9180

ORA-06512: at "SYS.DBMS_AUTO_INDEX", line 283

ORA-06512: at line 1

 

问题原因:

只有在EXADATA systems系统下才支持Auto Index特性。

Auto indexing will be allowed only in EXADATA systems, if not it will raise ORA-40216: feature not supported when we try it turn it on in non exadata systems.

 

ORA-40216 When Using Auto Index Feature (Doc ID 2570076.1)

APPLIES TO:

Oracle Database - Enterprise Edition - Version 19.3.0.0.0 and laterInformation in this document applies to any platform.

SYMPTOMS

When attempting to use auto index feature ,e.g. DBMS_AUTO_INDEX.CONFIGURE('AUTO_INDEX_MODE','IMPLEMENT');it reports

ORA-40216: feature not supportedORA-6512: at "SYS.DBMS_SYS_ERROR", line 79ORA-6512: at "SYS.DBMS_AUTO_INDEX_INTERNAL", line 9180ORA-6512: at "SYS.DBMS_AUTO_INDEX", line 283ORA-6512: at line 1

 

CHANGES

 

CAUSE

This issue has been discussed in

Bug 30017206 : ADW : AUTO INDEX FEATURE NOT WORKING IN FUTURE PRODUCTION

Closed as 'Not a Bug.'Development explains:Auto indexing will be allowed only in EXADATA systems, if not it will raise ORA-40216: feature not supported when we try it turn it on in non exadata systems. 

SOLUTION

Do not use AUTO INDEX FEATURE in non-exadata systems.

 

想学习AUTO INDEX FEATURE可以查看docs.oracle.com

Database Administrator’s Guide---21 Managing Indexes

21.7 Managing Auto Indexes

You can use the automatic indexing feature to configure and use auto indexes in an Oracle database to improve database performance.

......


文章转载自IT小Chen,如果涉嫌侵权,请发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论