2

I have defined custom type in Oracle db 12c.

create or replace type integer_varray as varray (4000) of int;

Now I realized that I need more than 4 000 records over there so I would like to extend this definition to 5 000 without loosing all data that are already in these arrays.

Is it possible? How?

EDIT: usage is like

create table capacities
(
  id       int generated by default as identity (START WITH 1000000) not null
  ... other fields
  capacity integer_varray                                            not null
);

1 Answer 1

4

Yes, you can using ALTER TYPE .. MODIFY LIMIT with CASCADE option

ALTER TYPE integer_varray  MODIFY LIMIT 5000 CASCADE;

Demo

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.