ORA-02303: cannot drop or replace a type with type or table dependents

后端 未结 4 1533
误落风尘
误落风尘 2021-02-07 13:15

I\'m newbee in oracle and I try to change varchar(50) to 250

CREATE OR REPLACE TYPE CEQ_OWNER.TY         


        
相关标签:
4条回答
  • There are other types or tables that depend on the type you want to change. If it's a dependent type, then you can use the FORCE option to change the type.

    If it's a table that directly or indirectly uses the type, then you will need to create a new type and a new table, migrate all the data, and finally drop and rename tables and types.

    See this Oracle documentation for some further information.

    0 讨论(0)
  • 2021-02-07 13:42

    Try:

    drop type your_type force;
    
    0 讨论(0)
  • 2021-02-07 13:49

    There are some dependency for the Object you are trying to Modify or Drop.

    If you want to skip this first drop the dependant Object and try to DROP or MODIFY

    Like in the below Screenshot

    Regards, Arul

    0 讨论(0)
  • 2021-02-07 13:53

    I was looking everywhere for the syntax also, but was having a hard time finding the documentation. From the page that Codo linked... notice that the FORCE is between the object name and as object

    create or replace type ceq_owner.type_rec_parae2 FORCE as object    
    (
      ...
      BONETAT_DESC  VARCHAR2(250),
      ... 
    )
    / 
    
    0 讨论(0)
提交回复
热议问题