Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Skip_unusable_index parameter

Shulou Source: shulou.com Published: 2022-06-01 03:00:12 10月04日 Update

Alter session/system set skip_unusable_index = true/false

The point:

1, if set to true, then allow DML on table with unusable indexes (and index partitions). Or set to false to disallow DML on table.

2, DML on tables with constraints which with unusable index status will failed because data maybe violated constraint if DML allowed.

3, if DML not referencing on index column, DML will successfull dispite of this parameter.

Suppose index idx_job_emp is defined on column job.

Alter session set skip_unusable_index = false

Insert into emp (empno, job, deptno) values (1) false, because index maintenance can not be skip.

Insert into emp (empno, deptno) values (1d10);-- successfull, because index does not indexing NULL value key.

[@ more@]

Tags: Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno vpn MariaDB Microsoft Shulou Technology