Dan,
 
Are you referring to an index on the source table (which is remote)? Since I'm creating the table on the destination side, there is no index. However, I am creating several indexes after the table created.
 
The answer is to use SQL%ROWCOUNT. I'm curious - how will an index help?
 
Thanks for the help.
 
Arup
----- Original Message -----
Sent: Friday, November 07, 2003 4:19 PM
Subject: Re: Getting Number of Rows in CTAS across DBLink

Arup,

Any chance there will be an index on the table?

Daniel

 
"Arup Nanda" <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]

 11/07/2003 12:34 PM
 Please respond to ORACLE-L


        To:        Multiple recipients of list ORACLE-L <[EMAIL PROTECTED]>
        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
 

Reply via email to