Author Topic: loadid row count  (Read 4343 times)

sbutal02

  • Guest
loadid row count
« on: June 03, 2010, 11:58:42 AM »
How do I obtain a count of the number of records (rows) associated with a particular loadid, if the loadid is no longer in the system log ?

Justin Derrick

  • IBM Content Manager OnDemand Consultant
  • Administrator
  • Hero Member
  • *****
  • Posts: 2231
  • CMOD Guru for hire...
    • View Profile
    • Tenacious Consulting
Re: loadid row count
« Reply #1 on: June 04, 2010, 08:24:27 AM »
Hi.

You're likely going to have to query the database directly.  In DB2 on AIX, you'd do this:

db2 connect to archive
db2 "select count(*) from <owner>.<table> where doc_name like '<objname>%'"
db2 terminate

You'll need to know the name of the instance owner, and the table(s) associated with the Application Group, and the object name (ie '123FAA') you're interested in.

To get the number of rows for ALL objects inside a specific table, try something like this.
db2 connect to archive
db2 "select doc_name,count(*) from <owner>.<table> group by doc_name"
db2 terminate

Hope this helps!

-JD.
IBM CMOD Professional Services: http://TenaciousConsulting.com
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/
FREE IBM CMOD Education & Webinars:  https://CMOD.Training/

Interests: #AIX #Linux #Multiplatforms #DB2 #TSM #SP #Performance #Security #Audits #Customizing #Availability #HA #DR

Vadim V N

  • Newbie
  • *
  • Posts: 5
  • System Engineer at Kuehne + Nagel
    • View Profile
Re: loadid row count
« Reply #2 on: June 07, 2010, 12:14:44 AM »
Hi,

Another alternative for Justin's suggestion, if you don't want to search for the right table, is to use "arsdoc query" or "arsdoc get" with [-i "WHERE DOC_NAME LIKE 'xxxFAA'"]. Then you'll get either txt list of respective DB rows which you can count, or the report file itself, where you can count number of reports.

The way you do it depends on the means you have and personal preferences.

nijagunakote

  • Guest
Re: loadid row count
« Reply #3 on: August 02, 2010, 10:00:06 AM »
What is the version of CMOD you are running?

Version 8.4.1 has a new folder called "System Load" where load statistics are collected.
It will give you all information about a load.

-Nija

Alessandro Perucchi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1002
    • View Profile
Re: loadid row count
« Reply #4 on: August 02, 2010, 11:47:31 PM »
What is the version of CMOD you are running?

Version 8.4.1 has a new folder called "System Load" where load statistics are collected.
It will give you all information about a load.

-Nija

Hello Nija,

yes, but if the information he wanted was from several years in the past, then the "System Load" won't have it. It is use only for the loads you did after you setup the "System Load".
So if you want some info from a load you did in version 8.3 or 8.4.0.X... then you won't find anything in "System Load".

Cheers,
Alessandro
Alessandro Perucchi

#Install #Migrations #Conversion #Educate #Repair #Upgrade #Migrate #Enhance #Optimize #AIX #Linux #Multiplatforms #DB2 #Windows #Oracle #TSM #Tivoli #Performance #Audits #Customizing #Availability #HA #DR #JavaApi #ContentNavigator #ICN #WEBi #ODWEK #Services #PDF #AFP #XML