Return-Path: <root@fatcity.cts.com>
Received: from newsfeed.cts.com (newsfeed.cts.com [209.68.248.164])
 by naude.co.za (8.11.2/8.11.2) with SMTP id g4UMoH507588
 for <oracle-l@naude.co.za>; Thu, 30 May 2002 18:50:17 -0400
Received: from fatcity.UUCP (uucp@localhost)
 by newsfeed.cts.com (8.9.3/8.9.3) with UUCP id HAA34874;
 Thu, 30 May 2002 07:49:34 -0700 (PDT)
Received: by fatcity.com (26-Feb-2001/v1.0g-b71/bab) via UUCP id 0046F899; Thu, 30 May 2002 06:38:37 -0800
Message-ID: <F001.0046F899.20020530063837@fatcity.com>
Date: Thu, 30 May 2002 06:38:37 -0800
To: Multiple recipients of list ORACLE-L <ORACLE-L@fatcity.com>
X-Comment: Oracle RDBMS Community Forum
X-Sender: "Stephane Faroult"<sfaroult@oriolecorp.com>
Sender: root@fatcity.com
Reply-To: ORACLE-L@fatcity.com
Errors-To: ML-ERRORS@fatcity.com
From: "Stephane Faroult"<sfaroult@oriolecorp.com>
Subject: RE: updated rows count
Organization: Fat City Network Services, San Diego, California
X-ListServer: v1.0g, build 71; ListGuru (c) 1996-2001 Bruce A. Bergman
Precedence: bulk
Mime-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: binary
 ('binary' encoding is not supported, stored as-is)

>Hi All!=0D
>My client run big update 20,000 statements. I need
>to know how many rows wa=
>s updated (it's could be any number). =0D
>I thinking about triggers , but this table can be
>updated not only with thi=
>s big update. Other users can update rows too.=0D
>I need to know updated rows number just for this
>big update.=0D
>Thanks.=0D
>=0D
>update assethdr set atopsys=3D 'MS Windows 95
>4.00',atdept=3D'256MB', atcap=
>cty=3D850, atcapun=3D10000, atglcode=3D'19.99GB',
>atus1=3D'05/20/2002' wher=
>e ataltnbr=3D'0000000';=0D
>update assethdr set atopsys=3D 'MS Windows 95
>4.00',atdept=3D'256MB', atcap=
>cty=3D 850, atcapun=3D10000, atglcode=3D'19.99GB',
>atus1=3D'05/17/2002' whe=
>re ataltnbr=3D'00000000';=0D
>update assethdr set atopsys=3D 'MS Windows 2000 Pro
>5.00',atdept=3D'128MB',=
> atcapcty=3D 400, atcapun=3D10000,
>atglcode=3D'6.43GB', atus1=3D'05/20/2002=
>' where ataltnbr=3D'00000296';=0D
>............................=0D
>=0D
>=0D

Several solutions. SELECT COUNT(*) with the same WHERE clause is an obvious solution.
Checking ROWS_PROCESSED before and after the run in V$SQLAREA for the relevant line may be another option. Tracing the process is possible too.

Regards,

Stephane Faroult
Oriole
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Stephane Faroul
  INET: sfaroult@oriolecorp.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
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).

