Return-Path: <oracle-l-bounce@freelists.org>
Delivered-To: 2-oracle-l@orafaq.com
Received: (qmail 18424 invoked from network); 7 Sep 2007 17:11:05 -0500
Received: from freelists-180.iquest.net (HELO turing.freelists.org) (206.53.239.180)
  by 69.64.49.119 with SMTP; 7 Sep 2007 17:11:05 -0500
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 7C56A73BC63;
 Fri,  7 Sep 2007 17:32:24 -0400 (EDT)
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 15229-09; Fri, 7 Sep 2007 17:32:24 -0400 (EDT)
Received: from turing (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id EAE4C73BC35;
 Fri,  7 Sep 2007 17:32:23 -0400 (EDT)
Received: with ECARTIS (v1.0.0; list oracle-l); Fri, 07 Sep 2007 16:47:53 -0400 (EDT)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 5370F73BF6D
 for <oracle-l@freelists.org>; Fri,  7 Sep 2007 16:47:53 -0400 (EDT)
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 09245-06 for <oracle-l@freelists.org>;
 Fri, 7 Sep 2007 16:47:53 -0400 (EDT)
Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.184])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id EE1B373BF2E
 for <oracle-l@freelists.org>; Fri,  7 Sep 2007 16:47:52 -0400 (EDT)
Received: by nf-out-0910.google.com with SMTP id f5so532055nfh
        for <oracle-l@freelists.org>; Fri, 07 Sep 2007 14:26:32 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=beta;
        h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;
        bh=T+DQl5oPEVlPdxHcmXr1cHid4qv8jj6WoI0t+2+IKE8=;
        b=mUYdHWe1AoFaFNFP/5RI8uFoPIjCraVp/UzkMo0JBMnJ3VwQgQMgLSJKd58E3+1KZX/jnUwlgYkXkAUtqpsf9Zmdt3CKORmP1t6W3DZBc1SkdbGrLbJ/+0Rv/wkrs21c1jlwcDbzv+Q4a8nm3/0t/hJrjYzARdlQHBCm4KGGzIE=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=beta;
        h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;
        b=XRYmV6PBfRJ3DZc5KzAi5kIZA8cf+olIjv7YW8tNCAnXg9t5CR3qEwrYYlfNUIfEKhpO0BDG5qWSbVa+9Bl+5Y9UekHvQDARCKvX7nrDdYGXR1NGE47S1s0pFfESUAulGt9ZUAFfAD1/GLhv9gKthj3NzvUUr3mlcCedfKDrD5s=
Received: by 10.78.185.15 with SMTP id i15mr930656huf.1189200391968;
        Fri, 07 Sep 2007 14:26:31 -0700 (PDT)
Received: by 10.78.161.10 with HTTP; Fri, 7 Sep 2007 14:26:31 -0700 (PDT)
Message-ID: <4ef2fbf50709071426p35d0ff22ycbc272104680a7ed@mail.gmail.com>
Date: Fri, 7 Sep 2007 23:26:31 +0200
From: "Alberto Dell'Era" <alberto.dellera@gmail.com>
To: genegurevich@discover.com
Subject: Re: ora-1012
Cc: oracle-l <oracle-l@freelists.org>
In-Reply-To: <OF9C8CFB38.F29F3FAF-ON8625734F.006F8861-8625734F.006FC6D7@discover.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Disposition: inline
References: <OF34F1FCAE.E2CBFEF9-ON8625734D.00528B9C-8625734D.00529F9F@discover.com>
	 <OF9C8CFB38.F29F3FAF-ON8625734F.006F8861-8625734F.006FC6D7@discover.com>
X-archive-position: 1342
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: alberto.dellera@gmail.com
Precedence: normal
Reply-to: alberto.dellera@gmail.com
List-help: <mailto:ecartis@freelists.org?Subject=help>
List-unsubscribe: <oracle-l-request@freelists.org?Subject=unsubscribe>
List-software: Ecartis version 1.0.0
List-Id: oracle-l <oracle-l.freelists.org>
X-List-ID: oracle-l <oracle-l.freelists.org>
List-subscribe: <oracle-l-request@freelists.org?Subject=subscribe>
List-owner: <mailto:steve.adams@ixora.com.au>
List-post: <mailto:oracle-l@freelists.org>
List-archive: <http://www.freelists.org/archives/oracle-l>
X-list: oracle-l
X-Virus-Scanned: Debian amavisd-new at localhost.localdomain

From:

http://www.freelists.org/archives/oracle-l/11-2004/msg00238.html

"If the target INACTIVE connection is killed, then at source, any
further queries to the DBLINK connection may throw
ORA-02068 : following severe error from testlink04 ORA-01012: not logged on
at the first invocation of any SQL at target through the same session
at source. Subsequent calls will automatically trigger a new
connection at target."

So basically, I get from this description that if the remote session
is killed, the local session fails to notice it (that is consistent with
what happens with sqlplus) until you try to use it again.

In fact if memory serves right, this happened to me when a stupid firewall
started dropping db-link connections (TCP sockets) since no
activity was seen for X minutes. But it might be anything that
"kills" the connection.

HTH
Alberto

On 9/7/07, genegurevich@discover.com <genegurevich@discover.com> wrote:
> My appication team is running a batch process against a database (db1)
> which accesses tables in another database
> on the same server (db2) via a db link. Starting today their process
> suddenly fails with ora-1012 pointing to the db2.
> I looked at the alert log and udump directory on db2 and found no errors
> there. I searched metalink and google
> and also did not find much info pertaining to my situation (oracle 9208 on
> AIX 5.3). Does anyone have any advice
> on that. This is a big production issue right now

-- 
Alberto Dell'Era
"the more you know, the faster you go"
--
http://www.freelists.org/webpage/oracle-l


