oracle error ORA-02449: unique/primary keys in table referenced by foreign keys

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • somashekar
    New Member
    • Feb 2013
    • 1

    oracle error ORA-02449: unique/primary keys in table referenced by foreign keys

    Is there any solution this oracle error without droping child table how we can drop parent table


    please tell any solution for this error : ORA-02449: unique/primary keys in table referenced by foreign keys
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    You have to drop the foreign keys first.

    Comment

    • rski
      Recognized Expert Contributor
      • Dec 2006
      • 700

      #3
      Code:
      drop table parent cascade constraints;
      It will drop parent table and all foreign keys, which point to it.

      Comment

      Working...