Błąd FK w tabelach przy imporcie

0

Wywala mi taki błąd po dodaniu przez sql developera zaprojektowanej bazy w data modelerze:

SQL Error: ORA-02449: unique/primary keys in table referenced by foreign keys
02449. 00000 - "unique/primary keys in table referenced by foreign keys"
*Cause: An attempt was made to drop a table with unique or
primary keys referenced by foreign keys in another table.
*Action: Before performing the above operations the table, drop the
foreign key constraints in other tables. You can see what
constraints are referencing a table by issuing the following
command:
SELECT * FROM USER_CONSTRAINTS WHERE TABLE_NAME = "tabnam";

I to przy każdej tabeli. Zna ktoś może rozwiązanie?

0

Wszystko masz napisane w błędzie.Próbujesz usunąć tabelę ale klucz tej tabeli lub unique jest kluczem obcym w innych tabelach/tabeli.Oracle nie pozwoli CI tego zrobić bo spójność danych nie została by zachowana.

Pozdrawiam

0

może zacznij od tego co dokładnie próbujesz zrobić.

1 użytkowników online, w tym zalogowanych: 0, gości: 1