I've tried to research about the subject, but it seems to be this error is more related to views and materialized views than to tables... Having attempted to solve it by my own in vain, here's my simplified setup.
I've got a table DDL similar to the following:
CREATE TABLE "TEST"."COUNTRY"
( "ID_COUNTRY" NUMBER INVISIBLE NOT NULL ENABLE,
"COD_COUNTRY" CHAR(3 BYTE) DEFAULT NULL,
"DESC_COUNTRY" CHAR(3 BYTE) DEFAULT NULL,
"ID_XYZ" CHAR(5 BYTE),
PRIMARY KEY ("ID_COUNTRY")
TABLESPACE "MY_TBS" ENABLE;
GRANT DELETE ON "TEST"."COUNTRY" TO "USER01";
GRANT INSERT ON "TEST"."COUNTRY" TO "USER01";
GRANT SELECT ON "TEST"."COUNTRY" TO "USER01";
GRANT UPDATE ON "TEST"."COUNTRY" TO "USER01";
Trying to re-order the columns of the table with the invisible/visible method, I was able to do it easily in some tables as expected. Yet there are others I have trouble doing so that doesn't seem to have anything special or different to the others this method worked... Here's an example using the table I shared above:
ALTER TABLE COUNTRY MODIFY (COD_COUNTRY INVISIBLE, DESC_COUNTRY INVISIBLE)
Table COUNTRY altered.
ALTER TABLE COUNTRY MODIFY (COD_COUNTRY VISIBLE, DESC_COUNTRY VISIBLE)
Error report -
ORA-01732: data manipulation operation not legal on this view
01732. 00000 - "data manipulation operation not legal on this view"
*Cause:
*Action:
I'd like to be able to make those columns visible again and understand why I got this error about views even if I'm attempting these statements in a table.