Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Change Column from CHAR to VARCHAR2: ORA-02267

Re: Change Column from CHAR to VARCHAR2: ORA-02267

From: DA Morgan <damorgan_at_x.washington.edu>
Date: Wed, 26 Jan 2005 10:22:44 -0800
Message-ID: <1106763609.378499@yasure>


Don Seiler wrote:

> I want to change a CHAR(15) field in two tables to VARCHAR2(32). However
> whenever I do I get this error:
>
> ORA-02267: column type incompatible with referenced column type
>
> I must note that this field is the sole PK field in the first table, and
> part of the PK in the other table. It is also the FK from the second table
> to the first. I did disable the PK and FK constraints first but it made no
> difference.

Drop the foreign key first.

-- 
Daniel A. Morgan
University of Washington
damorgan_at_x.washington.edu
(replace 'x' with 'u' to respond)
Received on Wed Jan 26 2005 - 12:22:44 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US