Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8695

number of rows selected

$
0
0

Hi team,

 

I was asked a question, suppose you are trying to select some data from db6. Now i want to track the progress as to how many rows have been selected is there a way to see.

Since db2top is giving delta information and snapshot we would be running twice.

ConnTime..: 18:23:39.156UOW Start.: 18:23:39.171Appl name.:        db2bpDB2 user..:     DB2SID  OS user...:       db2SID
  Agent id..:        27696Coord DBP.:            0Coord id..:       199919Client pid:     15007928Hash joins:            0
  Hash loops:            0HJoin ovf.:            0SQL Stmts.:            1Sorts.....:            0Sort time.:        0.000
  Sorts ovf.:            0Rows Read.:  571,319,286Rows Sel..:            0Read/Sel..:            0Rows Wrtn.:            0
  Rows Ins..:            0Rows Upd..:            0Rows Del..:            0Locks held:            3Trans.....:            0
  Open Curs.:            1Rem Cursor:            0Memory....:       192.0KDyn. SQL..:            1Static SQL:            0
  Cpu Time..:   337.861791AvgCpuStmt:      337.861

 

-+----+----+----+----+----+----+----+----+----+----+----+----+----+-- Dynamic statement [Fetch] -+----+----+----+----+----+----+----+----+----+----+----+----+----+-

  Start.....: 18:23:39.180Stop......:          N/ACpu Time..:   337.857589Elapse....:     0.000107FetchCount:            0
  Cost Est..:  513,582,400Card Est..:      109,312AgentTop..:            1SortTime..:            0SortOvf...:            0
  Sorts.....:            0Degree....:            1Agents....:            1l_reads...:   24,712,153p_reads...:      194,996
  DataReads.:   24,712,153IndexReads:            0TempReads.:            0HitRatio..:       99.21%MaxDbpCpu.:  0.000000[0]
  IntRowsDel:            0IntRowsUpd:            0IntRowsIns:            0

 

 

db2 "select AGENT_ID,APPL_NAME ,PERCENT_ROWS_SELECTED from sysibmadm.APPL_PERFORMANCE where AGENT_ID=27696"

 

I am not getting percentage or the number of rows selected.

Whats the best approach to get the number of rows selected for a particular agent id.


Viewing all articles
Browse latest Browse all 8695

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>