1  begin
  2  execute immediate 'drop table emp1';
  3  execute immediate 'create table emp1 as select * from emp';
  4  dbms_output.put_line('Number of rows:'||SQL%ROWCOUNT);
  5* end;
SQL> /
Number of rows:14
 
PL/SQL procedure successfully completed.
 
SQL>

On 11/07/2003 03:34:25 PM, Arup Nanda wrote:
> 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

Mladen Gogala
Oracle DBA



Note:
This message is for the named person's use only.  It may contain confidential, 
proprietary or legally privileged information.  No confidentiality or privilege is 
waived or lost by any mistransmission.  If you receive this message in error, please 
immediately delete it and all copies of it from your system, destroy any hard copies 
of it and notify the sender.  You must not, directly or indirectly, use, disclose, 
distribute, print, or copy any part of this message if you are not the intended 
recipient. Wang Trading LLC and any of its subsidiaries each reserve the right to 
monitor all e-mail communications through its networks.
Any views expressed in this message are those of the individual sender, except where 
the message states otherwise and the sender is authorized to state them to be the 
views of any such entity.

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Mladen Gogala
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).

Reply via email to