SQL Language (MOSC)

MOSC Banner

foreign key constraint violation

edited Apr 19, 2014 6:28AM in SQL Language (MOSC) 3 commentsAnswered

Hi ,

I prepared merge statements for 200 tables  .All there statemnts has to run on target server .It will fetch data using database link from source database and merge in target database .But while executing it is showing  foreign key constraint violated on target server . What I came to know all the tables has to be in order of child table and master table.Now how I will keep in proper order  of 200 tables to avoid foreign key constraint violation  error  , how I will find the proper order tables from database . Is there any sql for this ? Kindly help on this.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center