开发者

What sort of Circular Dependencies does Oracle allow?

开发者 https://www.devze.com 2022-12-28 03:48 出处:网络
I am creating test cases and I need to cover circular dependencies. So far I hav开发者_StackOverflowe been able to create two tables such that Table A has a FK to B and B has a FK to A.

I am creating test cases and I need to cover circular dependencies. So far I hav开发者_StackOverflowe been able to create two tables such that Table A has a FK to B and B has a FK to A.

What other circular dependencies exist / are allowed between objects? I tried to create cycles between Views but Oracle successfully rejected that.


You can make constraints deferred, such that they are checked commit time rather than at DML time. That might open some possibilities.


Package pck_a can reference pck_b and vice versa.

Take a look into dba_dependencies to see what what references what.

But, what are the test cases supposed to test? Maybe, with that knowledge, people here could give you better answers.

0

精彩评论

暂无评论...
验证码 换一张
取 消