Oracle 26ai

ORA-02440

Cause

create table foo (... ref. con. ...) as select ...;


Action

Create the table as select, then alter the table to add the constraints afterwards.