If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > How Analyse the Tables in DB2

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-15-08, 01:31
goudelly1 goudelly1 is offline
Registered User
 
Join Date: Apr 2008
Posts: 21
How Analyse the Tables in DB2

Dear All,

Please give the solution for analysing the tables in DB2 database.

Thanks,

Mohan Reddy
Reply With Quote
  #2 (permalink)  
Old 07-15-08, 02:11
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
what is meant with : analysing the tables
you can do many thinks as select * from table and many more complex statements
or do you mean runstats : (analyse is the oracle command I think ?)
have a look at
http://publib.boulder.ibm.com/infoce...c/r0001980.htm
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #3 (permalink)  
Old 07-15-08, 03:23
goudelly1 goudelly1 is offline
Registered User
 
Join Date: Apr 2008
Posts: 21
Hi,

Thanks for your replay and it is useful for me.

I have 2 databases in DB2 and i want complete schema/database to RUNSTATS one time insted of table by table. (Like in Oracle dbms_stats).

Thnaks for replay once again.

Mohan Reddy
Reply With Quote
  #4 (permalink)  
Old 07-15-08, 07:17
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Try REORGCHK UPDATE STATISTICS ON SCHEMA ...
Reply With Quote
  #5 (permalink)  
Old 07-15-08, 07:37
laknar laknar is offline
Registered User
 
Join Date: Jul 2008
Posts: 80
Hi,
Write a shell script to do reorg for entire database.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On