ãŸããã
ãã®èšäºã§ã¯ã24æé365æ¥ã®æ å ±ã·ã¹ãã ïŒã€ãŸããããŠã³ã¿ã€ã ããªãïŒã®ããŒã¿ããŒã¹ã䜿çšããåºæ¬çãªã«ãŒãã³äœæ¥ãšãMS SQL Serverã§ã®å®è£ ãžã®ã¢ãããŒãã«ã€ããŠèª¬æããŸãã ãŸãããã®èšäºã¯ç°¡åãªæŠèŠã§ããããã¹ãŠã®äœåãååã«è©³çŽ°ã§ãããšã¯éããªãããšã«æ³šæããŠãã ããã ãã ãããã®æ å ±ã¯ãå¿ èŠã«å¿ããŠã1ã€ãŸãã¯å¥ã®ã«ãŒãã³äœæ¥ããã詳现ã«èª¿æ»ããã®ã«ååã§ãã
ãã®èšäºãžã®ä¿®æ£ãè¿œå ãã³ã¡ã³ãã«å«ãŸããŠããã°ããšãŠãæè¬ããŠããŸãã
ã¡ã³ããã³ã¹äœæ¥
ããŒã¿ããŒã¹ã§ã®æ¬¡ã®äž»ãªã«ãŒãã³æäœã¯åºå¥ãããŸãã
1ïŒã¹ã±ãžã¥ãŒã«ãããããã¯ã¢ãããšããã«ç¶ããªã«ããªãªãã®æ€èšŒ
2ïŒããã©ãŒãã³ã¹ãå®å šã«æ€èšŒããããã«ã以åã«äœæãããããã¯ã¢ããã®ã¹ã±ãžã¥ãŒã«ããã埩å
3ïŒã·ã¹ãã ããã³å¿ èŠãªãã¹ãŠã®ããŒã¿ããŒã¹ãé 眮ãããŠããã¹ãã¬ãŒãžã¡ãã£ã¢ã®åæ
4ïŒå¿ èŠãªãµãŒãã¹ã®å®æãã§ãã¯
5ïŒã¹ã±ãžã¥ãŒã«ãããã·ã¹ãã ããã©ãŒãã³ã¹ã®æé©å
6ïŒã¹ã±ãžã¥ãŒã«ãããããŒã¿æŽåæ§ãã§ãã¯
7ïŒã¹ã±ãžã¥ãŒã«ãããããŒã¿æ€èšŒ
æåã®3ã€ã®ãã€ã³ãã¯ãããŸããŸãªé害ã®åŸã«ã·ã¹ãã ãå埩ã§ãããããæãéèŠã§ãã ãã ããæåŸã®3ã€ã®ãã€ã³ãã¯èšç»ã©ããã«å®è¡ããå¿ èŠããããŸããããã«ããããŠãŒã¶ãŒã¯å¿«é©ã«äœæ¥ã§ãïŒãã¹ãŠã®èŠæ±ãè¿ éã«ããŸãã¯èš±å®¹æéå ã«å®äºãïŒãããŸããŸãªã¬ããŒãã·ã¹ãã ã§ããŒã¿ãæ£ãããªããŸããã
å®æçãªã¡ã³ããã³ã¹ãèªååããããã«ããããã®æäœã®äžéšããšãŒãžã§ã³ããŸãã¯Windowsã¹ã±ãžã¥ãŒã©ã®ã¿ã¹ã¯ãšããŠåœ¢åŒåã§ããŸãã
æ¡é 6ã¯ã CHECKDBã³ãã³ãã«åºã¥ããŠããŸã ã
æ¡é 7ã¯ãæ å ±ã·ã¹ãã ã§äœ¿çšããããµããžã§ã¯ãé åã«é¢é£ããŠå®è£ ãããŸãã
ãã©ã°ã©ã6ããã³7ã«ã€ããŠã¯è©³ãã説æããŸããã
次ã«ãæåã®5ã€ã®ãã€ã³ãããã詳现ã«åæããŸãã
ã¹ã±ãžã¥ãŒã«ãããããã¯ã¢ãããšãã®åŸã®ãªã«ããªãªãã®æ€èšŒ
ãã®ãããã¯ã«ã€ããŠã¯ååãªèšäºãæžãããŠããŸãïŒ çµã¿èŸŒã¿ããŒã«ã䜿çšããŠããŒã¿ããŒã¹ãããã¯ã¢ããããã³åŸ©å ããããã®èªåããã»ã¹ãå®è£ ããäŸãåç §ããŠãã ããïŒããã®ã¹ã±ãžã¥ãŒã«ãããäœæ¥ã¯ãã¡ã€ã³ãµãŒããŒã§ã¯ãªããåžžã«ããã¯ã¢ããã§è¡ãããšãæãŸããããšã«æ³šæããŠãã ããã ãã®ãããªããã¯ã¢ãããµãŒããŒã«ã¯ãææ°ã®ããŒã¿ãå¿ èŠã§ãïŒããšãã°ãã¬ããªã±ãŒã·ã§ã³ãéããŠïŒã ãŸããMS SQL Serverã®åã€ã³ã¹ã¿ã³ã¹ã®ãã¹ãŠã®ã·ã¹ãã ããŒã¿ããŒã¹ïŒtempdbãé€ãïŒãããã¯ã¢ããããå¿ èŠããããŸãã
ããã¯ã¢ããã倱æããå ŽåïŒãŸãã¯ããã¯ã¢ãããã§ãã¯ã§åé¡ãæããã«ãªã£ãå ŽåïŒããã®æ å ±ã管çè ã«å ±åããå¿ èŠããããŸãã ããšãã°ãã¡ãŒã«ãéä¿¡ããïŒ MS SQL Serverã§ã¡ãŒã«éç¥ãèšå®ãã ïŒã
次ã®è³ªåã«ãçããããã¯ã¢ããæŠç¥ãå®çŸ©ããããšãéèŠã§ãã
1ïŒããã¯ã¢ãããäœæããé »åºŠãšã¿ã€ãã³ã°ïŒãã«ãå·®åããã©ã³ã¶ã¯ã·ã§ã³ãã°ïŒ
2ïŒããã¯ã¢ãããåé€ããæéãšææã
ããã©ãŒãã³ã¹ãå®å šã«æ€èšŒããããã«ã以åã«äœæãããããã¯ã¢ããã®ã¹ã±ãžã¥ãŒã«ãããå埩
ãŸãããµãŒãããŒãã£ã®ãŠãŒãã£ãªãã£ãŸãã¯RESTOREã³ãã³ãã䜿çšããŠãããã¯ã¢ãããµãŒããŒã§ãã®æé ãå®è¡ããããšããå§ãããŸãã
ããã¯ã¢ããã®ãªã«ããªã倱æããå Žåããã®æ å ±ã管çè ã«å ±åããå¿ èŠããããŸãã ããšãã°ãã¡ãŒã«ãéä¿¡ããïŒ MS SQL Serverã§ã¡ãŒã«éç¥ãèšå®ãã ïŒã
ãŸãããã§ãã¯ãšããŠãã·ã¹ãã ããŒã¿ããŒã¹ã®ããã¯ã¢ããã³ããŒã埩å ããå¿ èŠããããŸãã ãããè¡ãã«ã¯ãã·ã¹ãã ããŒã¿ããŒã¹ã®ååãšã¯ç°ãªãååãæã€éåžžã®ãŠãŒã¶ãŒããŒã¿ããŒã¹ãšããŠåŸ©å ããã ãã§ååã§ãã
ã·ã¹ãã ããã³å¿ èŠãªãã¹ãŠã®ããŒã¿ããŒã¹ãé 眮ãããŠããã¹ãã¬ãŒãžã¡ãã£ã¢ã®åæ
ããã§ã¯ãåããŒã¿ããŒã¹ãå ããã¹ããŒã¹ã®éããã¡ã€ã«ãµã€ãºã®å€æŽæ¹æ³ãã¡ãã£ã¢å šäœã®ç©ºãã¹ããŒã¹ã®å€æŽæ¹æ³ãåæããå¿ èŠããããŸãïŒããšãã°ããã®ã¿ã¹ã¯ã®äžéšã¯ãMS SQL Serverã®ãªãã¬ãŒãã£ã³ã°ã·ã¹ãã ã®ããŒã¿ããŒã¹ãã¡ã€ã«ããã³è«çãã©ã€ãã®ããŒã¿ã®èªååéã䜿çšããŠå®è¡ã§ããŸãïŒ ïŒ
ãã®ãããªãã§ãã¯ã¯æ¯æ¥è¡ãããšãã§ããçµæãéä¿¡ã§ããŸãã ããšãã°ãã¡ãŒã«ãéä¿¡ããïŒ MS SQL Serverã§ã¡ãŒã«éç¥ãèšå®ãã ïŒã
ã·ã¹ãã ããŒã¿ããŒã¹ãç£èŠããããšãå¿ èŠã§ãã ãããè¡ãããªãå Žåãããšãã°ããããçºçããå¯èœæ§ããããŸãã
ãŸããã¡ãã£ã¢èªäœã®æ©èãäžè¯ã»ã¯ã¿ãŒããã¹ãããããšãéèŠã§ãã ãã®çš®ã®æ€èšŒã§ã¯ã¡ãã£ã¢ã«å€§ããªè² è·ããããããããã®ãããªãã¹ãã®éã«ã¯ãã¡ãã£ã¢ãäœæ¥ããå€ããããŒã¿ãå¥ã®ã¡ãã£ã¢ã«ç§»åããå¿ èŠããããŸãã
ãã®ã¿ã¹ã¯ã¯ãã§ã«çŽç²ã«ã·ã¹ãã 管çè ã®ã¿ã¹ã¯ã§ããããã詳现ã«ã¯æ€èšããŸããã å®å šã«å¶åŸ¡ããã«ã¯ãã·ã¹ãã 管çè ãšäº€æžããŠããã¹ãã¬ããŒããã¡ãŒã«ã§èªåçã«éä¿¡ããããšããå§ãããŸãã
ãã®ãã§ãã¯ã¯ã幎ã«1åè¡ãã®ãæé©ã§ãã
å¿ èŠãªãµãŒãã¹ã®å®æãã§ãã¯
äžè¬çã«èšãã°ããµãŒãã¹ã¯æ±ºããŠèœã¡ãã¹ãã§ã¯ãããŸããã ããã¯ã¢ãããµãŒããŒã¯ãããç®çãšããŠããããã©ã€ããªãµãŒããŒã«é害ãçºçããå Žåã«ããã©ã€ããªãµãŒããŒã«ãªããŸãã ãã ãããã°ãå®æçã«è¡šç€ºããå¿ èŠããããŸãã ãŸããæ å ±ã®èªååéãæ€èšããåŸã管çè ã«éç¥ããããšãã§ããŸãã ããšãã°ãçµæãã¡ãŒã«ã§éä¿¡ããïŒ MS SQL Serverã§ã¡ãŒã«éç¥ãèšå®ãã ïŒã
ãŸãããšãŒãžã§ã³ãïŒãŸãã¯Windowsã¿ã¹ã¯ã¹ã±ãžã¥ãŒã©ïŒèªäœã®ã¿ã¹ã¯ã確èªããå¿ èŠããããŸãã ããšãã°ãMS SQL Serverã§å®äºããã¿ã¹ã¯ã®èªåããŒã¿åéã䜿çšããŠããšãŒãžã§ã³ãã¿ã¹ã¯ã®æ€èšŒãèªååã§ããŸã ã
ã¹ã±ãžã¥ãŒã«ãããã·ã¹ãã ããã©ãŒãã³ã¹ã®æé©å
ããã«ã¯ã次ã®ã³ã³ããŒãã³ããå«ãŸããŸãã
1ïŒ MS SQL ServerããŒã¿ããŒã¹ã®ã€ã³ããã¯ã¹ããã©ã°ãèªååãã
2ïŒ MS SQL Serverã§ã®ããŒã¿ããŒã¹ã¹ããŒãã®å€æŽã«é¢ããããŒã¿ã®èªååé ïŒããšãã°ã dbForgeã䜿çšããŠãç®çã®ããã¯ã¢ããã埩å ããå€æŽãæ¯èŒã§ããããã«ããŸãïŒ
3ïŒ MS SQL Serverã®ãã³ã°ããããã»ã¹ã®èªååé€
4ïŒ æç¶ãåãã£ãã·ã¥ã®ã¯ãªãŒãã³ã° ïŒãã€ãäœãæ£ç¢ºã«ã¯ãªãŒãã³ã°ãããã決å®ããããšãéèŠã§ãïŒ
5ïŒ ããã©ãŒãã³ã¹ææšã®å®è£
6ïŒã€ã³ããã¯ã¹ã®éçºãšå€æŽïŒ ã¯ã©ã¹ã¿ãŒåã€ã³ããã¯ã¹ã®ç©èª ïŒ
åé ç®ã®è©³çŽ°ã¯èª¬æããŸãããããã€ã³ã5ã6ã«ã€ããŠèª¬æããŸãã
ãã©ã°ã©ã5ã§ã¯ãããŒã¿ããŒã¹ã®é床ã瀺ãã·ã¹ãã ãäœæããå¿ èŠããããŸãã ãã®æ¹æ³ã§ãå®è¡ã§ããŸãã
ãŸããã»ãšãã©ã®å ŽåãããŒã¿ããŒã¹ãã©ã¡ãŒã¿ã§AUTO_CLOSEãã©ã¡ãŒã¿ãç¡å¹ã«ããããšããå§ãããŸãã
ã¯ãšãªèªäœã®æé©åã«ã€ããŠããå°ã話ããŸãããã
å Žåã«ãã£ãŠã¯ãããŸããŸãªçç±ã§ïŒæ確ã§ãªãå ŽåããããŸãïŒããªããã£ãã€ã¶ãŒã¯èŠæ±ã䞊ååããããšã決å®ããŸãã ãããŠã圌ã¯åžžã«ãããæé©ã«è¡ããšã¯éããŸããã
äžè¬çãªæšå¥šäºé ããããŸãã
1ïŒåŠçïŒãµã³ããªã³ã°ãå€æŽïŒã®çµæãšããŠå€§éã®ããŒã¿ãååšããå Žåã䞊ååŠçããã®ãŸãŸã«ããŸãã
2ïŒåŠçïŒãµã³ããªã³ã°ãå€æŽïŒã®çµæãšããŠããŒã¿ãã»ãšãã©ãªãå Žåãã»ãšãã©ã®å Žåã䞊ååŠçã¯èšç»ãæé©ã«æ§ç¯ããŸããã
MS SQL Serverã®ã€ã³ã¹ã¿ã³ã¹ã®èšå®ã®2ã€ã®ãã©ã¡ãŒã¿ãŒã䞊ååŠçãæ åœããŸãã
1ïŒ æ倧䞊å床ïŒäžŠå床ããªãã«ããã«ã¯ãå€ãã1ãã«èšå®ããŸããã€ãŸããã¯ãšãªãã©ã³ã®å®è¡ã«é¢äžããããã»ããµã¯åžžã«1ã€ã ãã§ãïŒ
2ïŒ äžŠååŠçã®ã³ã¹ããããå€ïŒã»ãšãã©ã®å Žåãããã©ã«ãã®ãŸãŸã«ããŠããããšããå§ãããŸãïŒ
2ã€ã®äž»èŠãªè¡ããããŸãã
1ïŒããã»ããµãŒæéïŒQCPUãã¥ãŒïŒã®åŸ æ©-ããã¯ãèŠæ±ããã»ã¹ãæ¢ã«éå§ãããŠãããããã»ããµãŒãå®è¡ãåŸ æ©ããŠãããšãã§ãïŒäŸãã°ãå¥ã®ããã»ã¹ãèŠæ±ããã»ã¹ãæŒãåºããïŒ
2ïŒãªãœãŒã¹ã®åŸ æ©ïŒQRãã¥ãŒïŒ-ããã¯ãããã»ã¹ãå®è¡ã®ããã«ãªãœãŒã¹ã®è§£æŸãåŸ æ©ããããå®è¡ãç¶ç¶ããïŒãã£ã¹ã¯ãRAMãªã©ïŒå Žåã§ãã
ã¯ãšãªå®è¡æéTå šäœã¯ã次ã®åŒã§æ±ºå®ãããŸãã
T = TP + TQR + TCPU + TQCPUãããã§ïŒ
1ïŒTP-ã³ã³ãã€ã«æéã®èšç»
2ïŒTQR-ãªãœãŒã¹ã®ã¿ã€ã ã¢ãŠãïŒããã»ã¹ãQRãã¥ãŒã«ããæéïŒ
3ïŒTQCPU-å¿ èŠãªããã»ããµãŒã®ãªãªãŒã¹ã®åŸ æ©æéïŒããã»ã¹ãQCPUãã¥ãŒã«ããæéïŒ
4ïŒTCPU-ã¯ãšãªã®å®è¡æéïŒãã¹ãŠã®ããã»ããµãŒã§ã®åèšæéïŒ
ã·ã¹ãã ãã¥ãŒsys.dm_exec_query_statsãªã©ã§ïŒ
1ïŒtotal_worket_time = TP + TCPU + TQCPU
2ïŒtotal_elapsed_time = TQR + TCPU
ãã®ããšããããã«ãã€ã³ã§ã¯ãèŠæ±ãå®éã«ã©ãã ãå®è¡ãããããæ£ç¢ºã«èšãããšãã§ããªãããšãæå³ããŸãã ãã ããã»ãšãã©ã®å Žåãtotal_elapsed_timeã䜿çšãããšããªã¯ãšã¹ãèªäœã®å®è¡æéã«è¿ãæéãååŸã§ããŸãã ã¯ãšãªåŒã³åºãã®éå§ãšçµäºãäœããã®æ¹æ³ã§ããŒã¿ããŒã¹ã®ãã°ããŒãã«ã«èšé²ãããå Žåããã¬ãŒã¹ã䜿çšããããæ å ±ã·ã¹ãã èªäœã䜿çšããŠãã¯ãšãªå®è¡æéãããæ£ç¢ºã«æ±ºå®ããããšãã§ããŸãã ãã ãããã¬ãŒã¹ã«ãã£ãŠã·ã¹ãã ãããŒãããããããããã¯ã¢ãããµãŒããŒã§ããã¬ãŒã¹ãå®è¡ããã¡ã€ã³ãµãŒããŒããããŒã¿ãåéããããšããå§ãããŸãã ãã®åŸãè² è·ã¯ãããã¯ãŒã¯ã®ã¿ã«ãªããŸãã
䞊ååäžãèŠæ±ã«ã¯nããã»ã¹ãå²ãåœãŠãããŸãïŒStandart n <= 4ã®ãªãªãŒã¹ïŒã ãããŠããã®ãããªåããã»ã¹ã®å®è¡ã«ã¯ããã»ããµãŒæéãå¿ èŠã§ãïŒåã³ã¢ã§åžžã«1ã€ã®ããã»ã¹ãå®è¡ãããããã§ã¯ãããŸããïŒã ããã»ã¹ãå€ãã»ã©ã1ã€ä»¥äžã®ããã»ã¹ãä»ã®ããã»ã¹ã«åã£ãŠä»£ããããå¯èœæ§ãé«ããªããTQCPUã®å¢å ã«ã€ãªãããŸãã
次ã®å Žåã䞊ååãããšã¯ãšãªã®å®è¡ãé ããªãå¯èœæ§ããããŸãã
1ïŒã·ã¹ãã ã®ãã£ã¹ã¯ãµãã·ã¹ãã ã®ã¹ã«ãŒããããéåžžã«åŒ±ãå ŽåãèŠæ±ãåæãããšãããã®å解ã¯äžŠååŠçãªããããé·ããããå¯èœæ§ããããŸãã
2ïŒäžŠè¡ããŠäœ¿çšãããåŸã§èµ·åãããå¥ã®ããã»ã¹ã«ãã£ãŠçæãããããã»ã¹ã®ããŒã¿ãã¹ãã¥ãŒããããããŒã¿ç¯å²ããããã¯ãããããããšãå¯èœã§ãã
3ïŒè¿°èªã®ã€ã³ããã¯ã¹ããªãå ŽåãããŒãã«ã¹ãã£ã³ã«ã€ãªãããŸãã ã¯ãšãªå ã®äžŠåæäœã«ãããäžè²«æ§ã®ããå®è¡èšç»ãšæ£ããã€ã³ããã¯ã¹ã䜿çšããŠãã¯ãšãªãã¯ããã«é«éã«å®è¡ããããšããäºå®ããããã«ãããªãå ŽåããããŸãã
æšå¥šäºé ïŒ
倧ããªãµã³ãã«ããªããµãŒããŒã§ã®ãªã¯ãšã¹ãã®äžŠååãçŠæ¢ããã«ã¯ïŒTCPUãšTQCPUãç¹ã«åŸè ãæžå°ããå¯èœæ§ããããããtotal_worket_timeã€ã³ãžã±ãŒã¿ãŒãæžå°ããå¿ èŠããããŸãããããã£ãŠãåè ã¯ãã¹ãŠã®ããã»ã¹ã1ã€ã®ç·åœ¢ããã»ã¹ã«å€ãããããããŸãå€åããªãããšããããŸãïŒ ãããè¡ãã«ã¯ãã¯ãšãªãã©ã³ã®å®è¡ã«åžžã«1ã€ã®ããã»ããµã®ã¿ãé¢äžããããã«ã æ倧䞊å床ãã©ã¡ãŒã¿ãŒã1ã«èšå®ããå¿ èŠããããŸãã
ä»ã®æ¢è£œã®ãœãªã¥ãŒã·ã§ã³ã䜿çšããŠãããŒã¿ããŒã¹ã®é床ã決å®ããã·ã¹ãã ãæ§ç¯ããããšãã§ããŸãã ãããã®ãœãªã¥ãŒã·ã§ã³ãã©ã®ããã«æ©èœããããæ確ã«ç解ããåŸãããæ°å€ãæ£ãã解éããããšãéèŠã§ãã
è«æ±é 6ã«ãããšãã€ã³ã¿ãŒãããäžã«ã¯å€ãã®å æ¬çãªæ å ±ããããŸãã äž»ãªããšã¯ãã€ã³ããã¯ã¹ãè«ççã«ã©ã®ããã«é 眮ãããã©ã®ããã«æ©èœããããç解ããããšã§ãã
äž»ããŒãšã¯ã©ã¹ã¿ãŒã€ã³ããã¯ã¹ã¯åããã®ã§ã¯ãªãããšãæãåºãããŠãã ããã
äž»ããŒã¯ãããŒãã«ãšã³ããªãäžæã«ãããã£ãŒã«ããŸãã¯ãã£ãŒã«ãã®ã»ããã§ãïŒãã®ããã«ãäžæã®ã¯ã©ã¹ã¿ãŒåã€ã³ããã¯ã¹ãŸãã¯äžæã®éã¯ã©ã¹ã¿ãŒåã€ã³ããã¯ã¹ãäœæã§ããŸãïŒã ä»ã®ããŒãã«ã§å€éšããŒãšããŠäœ¿çšãããããŒã¿ã®æŽåæ§ã確ä¿ããŸãã
ã¯ã©ã¹ã¿ãŒã€ã³ããã¯ã¹ã¯åºæ¬çã«BããªãŒïŒãŸãã¯ãã®å€æŽïŒã§ããããã®ãªãŒãã«ã¯ããŒã¿ïŒè¡ïŒèªäœãå«ãŸããã¯ã©ã¹ã¿ãŒã€ã³ããã¯ã¹ãšããŠå®çŸ©ãããããŒãïŒãã£ãŒã«ããŸãã¯ãã£ãŒã«ãã®ã°ã«ãŒãïŒã§ãã ãã®å®çŸ©ã¯ãBããªãŒã®ãªãŒããšããŒãã«å«ãŸãããã®ã«å€§ãŸãã«é¢é£ããŠäžããããŸããããã®å®çŸ©ã¯ããã®ããªãŒãžã®æ€çŽ¢ãšæ¿å ¥ãç解ããããã«å¿ èŠã§ãã åæã«ãã¯ã©ã¹ã¿ãŒã€ã³ããã¯ã¹ã¯äžæã§ã¯ãªãå ŽåããããŸãããäžæã«ããããšããå§ãããŸãã
BããªãŒã¯ãã¯ã©ã¹ã¿ãŒã€ã³ããã¯ã¹ã«ãã£ãŠäžŠã¹æ¿ãããã圢åŒã§ããŒã¿ãæ ŒçŽããæ§é ã§ããããšãæãåºããŠãã ããã ãããã£ãŠãã¯ã©ã¹ã¿ãŒã€ã³ããã¯ã¹ãšããŠéžæããããã£ãŒã«ããé çªã«å¢æžããããšãéèŠã§ãã ã€ãŸããã¯ã©ã¹ã¿ãŒåã€ã³ããã¯ã¹ã®å ŽåãæŽæ°åïŒIDïŒã®ãã£ãŒã«ããšæ¥ä»ãšæå»ïŒtã¯åžžã«ããªãŒã®æåŸã«æžã蟌ãŸããŸãïŒã®ãã£ãŒã«ããé©ããŠããŸãããuniqueidentifieråã®ãã£ãŒã«ãã¯äžé©åã§ãããtã¯Bã®äžå®ã®åé 眮ã«ã€ãªãããŸã-treeãããã«ãããããŒã¿ããŒã¹ãé 眮ãããŠããã¹ãã¬ãŒãžã¡ãã£ã¢ã®èªã¿åãå€ãšã¬ã³ãŒãã®æ°ãå¢ããŸãã
æ®å¿µãªããããã®äºå®ã¯ç¡æã®ãªãœãŒã¹ã§ã¯æããã«ã«ããŒãããŠããªãããã倧æãœãããŠã§ã¢éçºè ã§ãå¿ããããŠããããšããããŸãããã€ã³ããã¯ã¹èªäœãšãã®ä»çµã¿ãåæããŸãã ãããŠããããããã¯ã©ã¹ã¿ãŒåã€ã³ããã¯ã¹ã䜿çšããŠå®è¡ã§ããããšãããã³å®è¡ããªãæ¹ãè¯ãããšãæ¢ã«çµè«ä»ããŠããŸãã
ãŸãã sys.dm_db_index_usage_statsã·ã¹ãã ãã¥ãŒã䜿çšããŠãã€ã³ããã¯ã¹ã䜿çšãããŠããããšã確èªããå¿ èŠããããŸãã
PSïŒãŸããããã¯ã¢ãããµãŒããŒäžã®ããŒã¿ãšããã®ããŒã¿ïŒã¬ããªã±ãŒã·ã§ã³ãªã©ïŒãåæããã·ã¹ãã èªäœãææ°ã§ããããšãåžžã«ç¢ºèªãã ãã¹ãŠã®MS SQL ServerããŒã¿ããŒã¹ã®ããŒãã«ããã³ãã¡ã€ã«ã®æé·ã«é¢ããããŒã¿ãåéããæ å ±ãèªååããå¿ èŠããããŸã ã ãããŠäž»ãªããšã¯ã å žåçãªDBAãšã©ãŒãç¯ããªãããšã§ã
以äžã¯ã Zabbixã䜿çšããŠMS SQL ServerããŒã¿ããŒã¹ãç£èŠãã MS SQL Server 2017 Standardã§é害ãå®è£ ããæ¹æ³ã®æŠèŠã§ãã
ãœãŒã¹ïŒ
» CHECKDB
» MS SQL Serverã§ã®é»åã¡ãŒã«éç¥ã®ã»ããã¢ãã
» 埩å
» MS SQL Serverã®ãªãã¬ãŒãã£ã³ã°ã·ã¹ãã ã®ããŒã¿ããŒã¹ãã¡ã€ã«ããã³è«çãã©ã€ãäžã®ããŒã¿ã®èªååé
» tSQLtããã³SQLQueryStressã䜿çšããããŒã¿ããŒã¹ããã©ãŒãã³ã¹ã®ãã¹ã
» AUTO_CLOSE
» 42GB msdbã¹ããŒãªãŒ
» ãããïŒ10ïŒç¡æã®SSMSãã©ã°ã€ã³
ã æ¯æ¥ã®ãµãŒãã¹ãã©ã³-ããŒã1ïŒèªåã€ã³ããã¯ã¹ããã©ã°
ã æ¯æ¥ã®ãµãŒãã¹ãã©ã³-ããŒã2ïŒçµ±èšã®èªåæŽæ°
ã æ¯æ¥ã®ãµãŒãã¹ãã©ã³-ããŒã3ïŒããã¯ã¢ããã®èªåäœæ
» MS SQL Serverã§å®äºããã¿ã¹ã¯ã«é¢ããããŒã¿ã®èªååé
» MS SQL ServerããŒã¿ããŒã¹ã®ã€ã³ããã¯ã¹ããã©ã°ãèªååãã
» MS SQL Serverã§ã®ããŒã¿ããŒã¹ã¹ããŒãã®å€æŽã«é¢ããããŒã¿ã®èªååé
» ããŒã¿ããŒã¹ç®¡çã®ããã®dbForgeã®äŸ¿å©ãªæ©èœMS SQL Server ïŒ
» MS SQL Serverã®ãã³ã°ããããã»ã¹ã®èªååé€
» æç¶ãåãã£ãã·ã¥ã®ã¯ãªãŒã³ã¢ãã
» ã¯ãšãªãã¹ãã¢ãããã·ãŒãžã£ãããã³ããªã¬ãŒã®ããã©ãŒãã³ã¹ã€ã³ãžã±ãŒã¿ãŒã®MS SQL Serverãžã®å®è£ ã èªåã«ãŒãã£ã³ã°
» Microsoft SQL Serverã®åæå®è¡æ§ãšäžç¢ºå®æ§ã®åºŠåã
» æåŸ ã®ãã¬ãŒã³ããŒã·ã§ã³
» ãªã¯ãšã¹ãå®è¡ã¹ããŒã
» 䞊å床
» T-SQLã䜿çšããããŒã¿ããŒã¹ã®æ¢çŽ¢
» ã¯ã©ã¹ã¿ãŒãã€ã³ããã¯ã¹ã®ç©èª
» ãã¹ãŠã®MS SQL ServerããŒã¿ããŒã¹ã®ããŒãã«ããã³ãã¡ã€ã«ã®æé·ã«é¢ããããŒã¿ãåéããèªåå
» äžè¬çãªDBA MS SQL Serverãšã©ãŒã«é¢ãã13çªç®ã®èšäº
» MS SQL Server 2017 Standardã§ã®é害ã®å®è£
» Zabbixã䜿çšããŠMS SQL ServerããŒã¿ããŒã¹ã远跡ãã
» Sys.dm_db_index_usage_stats
» çµã¿èŸŒã¿ããŒã«ã䜿çšããŠããŒã¿ããŒã¹ãããã¯ã¢ããããã³åŸ©å ããèªåããã»ã¹ã®äŸ