DB2 reorg runstats rebind specific operation

Source: Internet
Author: User
Tags db2 rtrim

DB2 reorg runstats rebind specific operation

#reorg table
Db2-x "SELECT ' reorg table ' | | RTrim (Tabschema) | | tabname| | '; ' from syscat.tables where type= ' T ' "> Reorg.sql

#reorg Index
Db2-x "SELECT ' reorg indexes all for table ' | | RTrim (Tabschema) | | tabname| | '; ' from syscat.tables where type= ' T ' "> Reorg_index.sql

#runstats table
Db2-x "SELECT ' runstats on table ' | | RTrim (Tabschema) | | tabname| | ' and indexes all, ' from syscat.tables where tabschema= ' nrwausr ' and type= ' T ' "> Runstats.sql

# rebind
Db2-x "SELECT ' rebind package ' | | RTrim (Pkgschema) | | pkgname| | '; ' from Syscat.packages where Pkgschema isn't in (' Nullid ') and pkgschema= ' Nrwausr ' "> Rebind.sql

DB2-TVF reorg.sql-z Reorg_error.log
DB2-TVF reorg_index.sql-z Reorg_index.log
DB2-TVF runstats.sql-z Runstats_error.log
DB2-TVF rebind.sql-z Rebind_error.log

DB2 reorg runstats rebind specific operation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.