I have created a table with column S_ROLL NUMBER(3) NOT NULL
Now I want to make this colum to as identity column.
I used this command
alter table students
modify
(
S_ROLL NUMBER GENERATED BY DEFAULT ON NULL AS IDENTITY
);
Then I'm getting this error.
S_ROLL NUMBER GENERATED BY DEFAULT ON NULL AS IDENTITY
*
ERROR at line 4:
ORA-30673: column to be modified is not an identity column
You're getting this error simply because modifying an existing column as IDENTITY column is not supported right now.
The solution is to add a new column and then drop the existing one (making sure that you do take care of the data too).