Return-Path: <ml-errors@fatcity.com>
Received: from ensim.rackshack.net (root@localhost)
 by orafaq.net (8.11.6/8.11.6) with ESMTP id hA81vLE09198
 for <oracle-l@orafaq.net>; Fri, 7 Nov 2003 19:57:21 -0600
X-ClientAddr: 66.27.56.212
Received: from www3.fatcity.com (rrcs-west-66-27-56-212.biz.rr.com [66.27.56.212])
 by ensim.rackshack.net (8.11.6/8.11.6) with ESMTP id hA81vLc09193
 for <oracle-l@orafaq.net>; Fri, 7 Nov 2003 19:57:21 -0600
Received: (from root@localhost)
 by www3.fatcity.com (8.11.6/8.11.6) id hA7L0Tx02436
 for oracle-l@orafaq.net; Fri, 7 Nov 2003 13:00:29 -0800
Received: by fatcity.com (05-Jun-2003/v1.0g-b73/bab) via fatcity.com id 005D6015; Fri, 07 Nov 2003 13:04:51 -0800
Message-ID: <F001.005D6015.20031107130451@fatcity.com>
Date: Fri, 07 Nov 2003 13:04:51 -0800
To: Multiple recipients of list ORACLE-L <ORACLE-L@fatcity.com>
X-Comment: Oracle RDBMS Community Forum
X-Sender: Jared.Still@radisys.com
Sender: ml-errors@fatcity.com
Reply-To: ORACLE-L@fatcity.com
Errors-To: ML-ERRORS@fatcity.com
From: Jared.Still@radisys.com
Subject: Re: Getting Number of Rows in CTAS across DBLink
Organization: Fat City Network Services, San Diego, California
X-ListServer: v1.0g, build 73; ListGuru (c) 1996-2003 Bruce A. Bergman
Precedence: bulk
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="=_alternative 0073508688256DD7_="
--=_alternative 0073508688256DD7_=
Content-Type: text/plain; charset="us-ascii"

Ah, just noticed the 'dblink' part of your message.

V$mystat probably won't help there.

Jared






"Arup Nanda" <orarup@hotmail.com>
Sent by: ml-errors@fatcity.com
 11/07/2003 12:34 PM
 Please respond to ORACLE-L

 
        To:     Multiple recipients of list ORACLE-L <ORACLE-L@fatcity.com>
        cc: 
        Subject:        Getting Number of Rows in CTAS across DBLink


List,
 
When I create a table as select * from another table across a dblink, how 
do I find out how many rows were created in the table? Is there a 
statistic somewhere, documented or otherwise, that tells me how many rows 
were fetched?
 
Currently I am using a rather convoluted approach - using the statistic, 
bytes received via SQL*Net to dblink, and dividing that by the average row 
size to get an approximate idea of the number of rows. However, this 
approximation is far from even reasonably accurate; and since the rowsize 
can change radically, it can be way off the mark. Any help or pointers 
will be highly appreciated.
 
Thanks.
 
Arup Nanda


--=_alternative 0073508688256DD7_=
Content-Type: text/html; charset="us-ascii"


<br><font size=2 face="sans-serif">Ah, just noticed the 'dblink' part of your message.</font>
<br>
<br><font size=2 face="sans-serif">V$mystat probably won't help there.</font>
<br>
<br><font size=2 face="sans-serif">Jared</font>
<br><font size=2 face="sans-serif"><br>
</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td>
<td><font size=1 face="sans-serif"><b>&quot;Arup Nanda&quot; &lt;orarup@hotmail.com&gt;</b></font>
<br><font size=1 face="sans-serif">Sent by: ml-errors@fatcity.com</font>
<p><font size=1 face="sans-serif">&nbsp;11/07/2003 12:34 PM</font>
<br><font size=2 face="sans-serif">&nbsp;</font><font size=1 face="sans-serif">Please respond to ORACLE-L</font>
<br>
<td><font size=1 face="Arial">&nbsp; &nbsp; &nbsp; &nbsp; </font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; To: &nbsp; &nbsp; &nbsp; &nbsp;Multiple recipients of list ORACLE-L &lt;ORACLE-L@fatcity.com&gt;</font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; cc: &nbsp; &nbsp; &nbsp; &nbsp;</font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; Subject: &nbsp; &nbsp; &nbsp; &nbsp;Getting Number of Rows in CTAS across DBLink</font></table>
<br>
<br>
<br><font size=2 face="Arial">List,</font>
<br><font size=3 face="Times New Roman">&nbsp;</font>
<br><font size=2 face="Arial">When I create a table as select * from another table across a dblink, how do I find out how many rows were created in the table? Is there a statistic somewhere, documented or otherwise, that tells me how many rows were fetched?</font>
<br><font size=3 face="Times New Roman">&nbsp;</font>
<br><font size=2 face="Arial">Currently I am using a rather convoluted approach - using the statistic, bytes received via SQL*Net to dblink, and dividing that by the average row size to get an approximate idea of the number of rows. However, this approximation is far from even reasonably accurate; and since the rowsize can change radically, it can be way off the mark. Any help or pointers will be highly appreciated.</font>
<br><font size=3 face="Times New Roman">&nbsp;</font>
<br><font size=2 face="Arial">Thanks.</font>
<br><font size=3 face="Times New Roman">&nbsp;</font>
<br><font size=2 face="Arial">Arup Nanda</font>
<br>
<br>
--=_alternative 0073508688256DD7_=--
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: 
  INET: Jared.Still@radisys.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru@fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

