|
原帖由 lilyzhang918 于 2007-12-20 03:12 发表 ![]()
...
我本来以为如果做过distribute transaction都应该有一个DX的lock,即使是只做了query。所以之前没看到DX的lock就没往那里想。结果今天发现9i才会有DX的lock, 8i是没有的。
谢谢Yong Huang和大家的帮助。
Actually, DX locks are in Oracle 7 and all later versions. The weird thing is that sometimes it does not show up in a session that does not create it. I mean, if you have a distributed transaction (including a query), the DX may not show up in a different session that monitors the first session. I think it only shows up if the first session's status is active (v$session.status='ACTIVE'). But in the first session itself, it should show.
Another weird thing is that if the database link is to the localhost (not to another DB server), DX locks won't show up.
Yong Huang |
|