Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Troubles with using minus over a database link ??

Troubles with using minus over a database link ??

From: kerkhofm <michel.kerkhoff_at_prive.ordina.nl>
Date: Wed, 27 Jan 1999 22:17:31 +0100
Message-ID: <78o04p$d2b$1@news.worldonline.nl>


This is one of those questions about procedures where sometimes something goes wrong
for apperently no reason and everybody starts guessing what the problem might be eventually ending in me rewriting all code to bypass some obscure bug......

This is the problem :
We have two different databases (two instances) connected via a database link. Every night
a procedure is started on db2 (local) to synchronise some data with db1 (remote,db1 is leading). For db2 only new or changed rows are required so we use the 'minus' option thus : select x,y,z from db1.table1 minus select x,y,z from db2.table. The minus option is used in several queries; some demanding some easy.

When the procedure is started during the nightbatch it sometimes happens (1 out of 5 times) that we get a 'end of communication channel' - error. The procedure is aborted.

When the trace file is checked the procedure is always aborted at a query using a minus. But since 75% of the procedure consists of cursors based (all neatly openend and closed) on queries with a minus, this can be accidental. Also it doesn't seem to matter if the query is demanding or easy.

So far we haven't come up with a proper explanation, but there are some theories :

Now i want to rewrite the code without minus to make shure that isn't the problem. But i don't know if it will help.

Is there anybody who can tell me what the problem is ???????  We use Oracle 7.3 and SQL*net 2.3

Rgds,
Michel Received on Wed Jan 27 1999 - 15:17:31 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US