My Oracle Support Banner

ORA-00932 CREATING UNIQUE INDEX WITH DESCENDING ORDER (Doc ID 2729486.1)

Last updated on NOVEMBER 23, 2020

Applies to:

Oracle Database - Enterprise Edition - Version 19.6.0.0.0 to 20.3.0.0.0 [Release 19 to 20.0]
Information in this document applies to any platform.

Symptoms

creating a unique index with descending order raises ORA-932

create unique index employee on employee_in_shift (current_call_up_id desc) tablespace users online;
  *
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-00932: inconsistent datatypes: expected NUMBER got BINARY

When ascending index is created there is no problem
create unique index employee on employee_in_shift (current_call_up_id ) tablespace users online;
Index created.

It is not a partitioned table

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.