Looking into the internals, it appears that the EXCHANGE locks the entire
table for one exchange, at the same time as the other is trying to get
one only on the partition. It's an exclusive, blocking lock, which requires
the DBA person to kill the entire process if nothing happens. What I
can't figure out is, why doesn't it do the exchange after it gets the lock?
It just does nothing. We couldn't even execute a SELECT or DESCribe.
One DBA believed it to be a bug with Oracle, and one that probably won't be
fixed soon. It seems to me that any time this happens to a database,
where no queries are possible, and no error is returned, it's safe to say
it's something Oracle should look at.
The command name is EXCHANGE so it seems reasonable it wants to manipulate 2 Tables. Both Tables I expect to be guarded with locks. EXCLUSIVE locks!
If a process has one lock, it's of little utility. It needs both. Therefore after it has one lock it tries to get the other. Only to find the other
lock hold by a process, that wants to EXCHANGE too. That process in turn needs another lock to complete the EXCHANGE. You can guess which process
holds that lock.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.