ORA-904 ON VIRTUAL COLUMN WITH REFERENCES TO RENAMED COLUMN NAME WITH TYPE (Doc ID 1921442.1)

Last updated on DECEMBER 06, 2016

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.1 to 11.2.0.4 [Release 11.2]
Information in this document applies to any platform.

Symptoms

After successful Rename of a virtual column all requests on the table SELECT, MODIFY, RENAME, DROP virtual columns receives a ORA-00904

Changes

After successful Rename of a virtual column all requests on the table
SELECT, MODIFY, RENAME, DROP virtual columns receives a ORA-00904. The
virtual column depends on typed columns:

E.g.:

create table t1_test
(
a tr_test,
b tr_test,
s integer generated always as ( a.x + b.x ) virtual
);

If the column "a" is renamed then the virtual column expression is not
automatically updated and the old reference is used, therefore the ORA-904
error.

ORA-904 

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms