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.
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|