DB2 9 vs Oracle 10g Admin. Technology - IBM
DB2 9 vs Oracle 10g Admin. Technology - IBM
DB2 9 vs Oracle 10g Admin. Technology - IBM
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
<strong>DB2</strong> Information ManagementCLP Command 창배치 모드 사용 예● Batch or shell files can execute saved <strong>DB2</strong> command files● These can produce yet other output files for various purposes● Here is a “Generate RUNSTATS commands” example–x to suppress column headings–td to set the end of command delimiter as @–f to indicate input file name–z to indicate output file nameCLPxmp01.batdb2 connect to sampledb2 -x -td@ -f CLPxmp01.db2 -z CLPxmp01OUT.txtdb2 commit workdb2 connect resetCLPxmp01.db2select 'RUNSTATS ON TABLE'||rtrim(tabschema)||'.'||tabname||‘ON ALL COLUMNS ALLOW WRITE ACCESS;'from sysstat.tableswhere card = -1@CLPxmp01OUT.txtRUNSTATS ON TABLE SYS<strong>IBM</strong>.SYSVIEWSON ALLCOLUMNS ALLOW WRITE ACCESS;RUNSTATS ON TABLE SYS<strong>IBM</strong>.SYSVIEWDEPONALL COLUMNS ALLOW WRITE ACCESS;… etc., etc.<strong>DB2</strong> 9 <strong>vs</strong> <strong>Oracle</strong> <strong>10g</strong>© 2008 <strong>IBM</strong> Corporation 34