RuNetã§ã¯ã次ã®SQL Serverç£æ»è³æãèŠã€ããããšãã§ããŸããã
Habrãé ãããšã£ãŠããŸãã-SQL Serverã®å€æŽã®è¿œè·¡ã«é¢ããè¯ãæçš¿ãããã«ãããŸãã
ãã ããææ°ã®å®å šãªSQL Serverç£æ»ã¬ã€ããäœæãããšããåé¡ã¯æªè§£æ±ºã®ãŸãŸã§ãïŒ ãã®ãããªã¬ã€ããäœæããèšç»ããããŸã- ãã®ãããªãã®ãšããã«äŒŒããã®ïŒã
ãããŸã§ã®éããã®æçš¿ã§ã¯ãNetWrix SQL Server Change Reporterããã°ã©ã ã䜿çšããSQL Serverç£æ»æ©èœã«ã€ããŠèª¬æããŸãã ãã®ããã°ã©ã ã«ã¯ãåºæ¬ç¡æãšæ¡åŒµåçšã®2ã€ã®ããŒãžã§ã³ããããŸãã ãŸããããã°ã©ã ã®åºæ¬ããŒãžã§ã³ã«å«ãŸãããã®ãæ€èšããŠããã詳现ããŒãžã§ã³ã«ã€ããŠè©³ãã説æããŸãã
ããã«ãæè¿ã SQL Server Change Auditingãœãªã¥ãŒã·ã§ã³ã®æ°ããããŒãžã§ã³ã§ããNetWrix SQL Server Change Reporter 2.5ããªãªãŒã¹ããŸããã æ°ããããŒãžã§ã³ã§ã¯ãããŒã¿ããŒã¹ã³ã³ãã³ãã®ç£æ»ã®ãµããŒããè¿œå ããŸãããããã¯ããŠãŒã¶ãŒãé·ãéåŸ ã¡æãã§ããæ©èœã§ãã
èå³ã®ããæ¹ã¯ç«ãæè¿ããŸã
ããã°ã©ã ãå¿ èŠãªçç±ãšãã®æ©èœããå§ããŸãããã
ãã®äž»ãªæ©èœ ïŒ
- ã€ã³ã¹ã¿ã³ã¹ãããŒã¿ããŒã¹ããŠãŒã¶ãŒãããŒã«ããã°ã€ã³ãã¹ããŒããæš©éãããŒãã«ãã¹ãã¢ãããã·ãŒãžã£ãããã³ãã®ä»ã®SQL Serverãªããžã§ã¯ãã«å€æŽãå ããããŸãã ãããã®å€æŽã«åºã¥ããŠãæ確ã§ããããããã¬ããŒããçæãããŸã
- ããŒã¿ããŒã¹ã®å 容ã«å ãããããã¹ãŠã®å€æŽãèšé²ãããŸãã ãã®æ å ±ã«åºã¥ããŠãã¬ããŒããäœæãããŸãïŒé»åã¡ãŒã«ã§èªåçã«éä¿¡ã§ããŸãïŒ
- æ å ±ã»ãã¥ãªãã£ã®åéã®æšæºã®èŠä»¶ïŒç£æ»äººã«æäŸã§ããæšæºã¬ããŒãã®å¹ åºãã©ã€ãã©ãªïŒãžã®æºæ ãä¿èšŒããŸã
- åæã®æ®µéã§ã¯ããµãŒããŒãšããŒã¿ããŒã¹ã®ãã¯ã©ãã·ã¥ãã«ã€ãªããå¯èœæ§ã®ããäžæ£ã§æãŸãããªãå€æŽãèšé²ãããŸãã
- 誰ããã©ãã§ããã€ãã©ã®ã¯ãŒã¯ã¹ããŒã·ã§ã³ããå€æŽããããã¬ããŒãã«è¡šç€ºãã
- ãªã³ããã³ãã§ã¬ããŒããäœæããæ©èœïŒã¢ãããã¯ã¬ããŒãïŒ
- åéãããç£æ»ããŒã¿ã®ä¿åãšããããã®ããŒã¿ã«åºã¥ãã¬ããŒãã®äœæïŒä»»æã®æéïŒ
æ¬æ ŒçãªSQL Serverå€æŽè¿œè·¡ã·ã¹ãã ã§ã¯äžååãªã®ã¯ãªãã§ããïŒ
ç£æ»ãµãã·ã¹ãã ã¯SQL Server 2008ã§åããŠå°å ¥ããããã以æ¥ããŸãå€æŽãããŠããŸããïŒ SQL Server 2012ã®ç£æ»æ©èœã®ãããªã¬ãã¥ãŒãåç §ããŠãã ããïŒã äžæ¹ãããŒã¿ããŒã¹ç®¡çè ã«ãšã£ãŠã¯ãããŒã¿ããŒã¹ã®æ§æãšå 容ã®å€æŽã«è¿ éã«å¯Ÿå¿ããããšãéèŠã§ãã ã€ãã³ãã«é¢ãã倧éã®ããŒã¿ãç°¡åã«åä¿¡ã§ããæšæºã®ç£æ»ã·ã¹ãã ã®ã¿ã䜿çšããå Žåãããã¯äžå¯èœã§ãã DBAãå€æŽãæåã§è¿œè·¡ãããããã«å¯ŸåŠããæéãããŸããªãããšã«åæããŸãã ãã¡ããããã®ãããªåé¡ã¯ã¹ã¯ãªããïŒããšãã°ã 1ã2 ïŒãæžãããšã§è§£æ±ºãããŸããã圌ãã®ä»äºã®çµæãšããŠåŸãããæ å ±ã¯ãæ§ããã«èšã£ãŠããäœãå€ãã£ãããããã«ç解ããããšã¯ã§ããŸãã-ããªãã¯ããã解éããããã«è¿œå ã®æéãè²»ããå¿ èŠããããŸãã å°èŠæš¡ãªçµç¹ã®å Žåããã®ãªãã·ã§ã³ã¯ç®¡çè ã®å€å€§ãªæéãå¿ èŠãšããŸãããäŸç¶ãšããŠåãå ¥ããããå¯èœæ§ã¯ååã«ãããŸãã ãã ããSQLãµãŒããŒã®æ°ã®å¢å ãšããŒã¿ããŒã¹ã®å€æŽã«äŒŽããå€æŽéç¥ããã»ã¹ã®èªååã®å¿ èŠæ§ãå¢å ããŠããŸãã
ãã®ãããNetWrix SQL Server Change Reporterã¯ãSQL Serverã®å€æŽã远跡ããããã»ã¹ãç°¡çŽ åããããã«äœæãããŸããã ãã®ããã°ã©ã ã§ã¯ãã€ãã³ããã°ããŒã¿ãšSQL Serveræ§æã®ã¹ãããã·ã§ããããååŸããæ å ±ã䜿çšããNetWrix AuditAssuranceãã¯ãããžã䜿çšããŠããŸãã ãããã£ãŠãè¡ãããå€æŽã®è¡šç€ºã®å®å šæ§ãšè¡šç€ºãããæ å ±ã®å¯èŠæ§ãéæãããŸãã ãããŠä»ãããã°ã©ã èªäœã«ã€ããŠã®è©³çŽ°ã
ããã°ã©ã ã¯ã©ã®ããã«æ©èœããŸããïŒ
ãããããç§ãã¡ã®ããã°ã©ã ã®äžè¬ååããã§ã«ãåç¥ã§ãããïŒã¬ãã¥ãŒ1ã2ã3ãåç §ïŒã
以äžã®ç¹ã«ã€ããŠç°¡åã«èª¬æããŸãã
- 補åã®äœæ¥ã¯ã¿ã¹ã¯ã¹ã±ãžã¥ãŒã©ã«åºã¥ããŠããŸããã¿ã¹ã¯ã¹ã±ãžã¥ãŒã©ã§ã¯ãã¹ã±ãžã¥ãŒã«ãããã¿ã¹ã¯ã補åå°çšã«äœæããã1æ¥ã«1åïŒãŸãã¯ããé »ç¹ã«ïŒç£æ»ããŒã¿ã®åéãéå§ãããŸãã ããŒã¿åéãå®äºãããšã補åã¯æå®ãããé»åã¡ãŒã«ã¢ãã¬ã¹ã«ã¬ããŒããéä¿¡ããããŒã¿ãSQLããŒã¿ããŒã¹ã«ã¢ããããŒãããŸãïŒåŸè ã¯åçšããŒãžã§ã³ã§ã®ã¿äœ¿çšå¯èœã§ãïŒã
- é»åã¡ãŒã«ã¬ããŒãã«å ããŠã補åã®åçšããŒãžã§ã³ã«ã¯ãSQL Reporting Servicesã«åºã¥ããç¹å®ã®ç£æ»ã¿ã¹ã¯çšã«èšèšãããã¬ããŒãã®ã©ã€ãã©ãªãå«ãŸããŠããŸãã ã¬ããŒãã©ã€ãã©ãªã®æäœã¯ãã³ã³ãœãŒã«ããçŽæ¥å®è¡ããããšããæšæºã®ãã©ãŠã¶ãä»ããŠWebããŒã¿ã«ããå®è¡ããããšãã§ããŸãã
- ãã§ã«åéãããç£æ»ããŒã¿ã«é¢ããæ å ±ãå«ãã¬ããŒãã¯ãã€ã§ãå©çšã§ããå¿ èŠã«å¿ããŠããŒã¿åéèªäœãæåã§éå§ã§ããŸãã
ãã®ããã°ã©ã ã¯ã2000幎ãã2012幎ã®ããŒãžã§ã³ã®SQL Serverã§åäœããŸãïŒã¯ããæ°ããããŒãžã§ã³ã®SQL ServerããµããŒãããŠããŸãïŒã ç£æ»ããŒã¿ãåéããã«ã¯ãããã°ã©ã ã®å®è¡ã«äœ¿çšããããµãŒãã¹ã¢ã«ãŠã³ãã«ãã¿ãŒã²ãããµãŒããŒã®ã·ã¹ãã 管çè æš©éãå¿ èŠã§ãã
NetWrix SQL Server Change Reporter 2.5ã¯ã芳å¯ãããSQL Serverã®ã€ã³ã¹ã¿ã³ã¹ãååšãããã¡ã€ã³å ã®ã³ã³ãã¥ãŒã¿ãŒã«ã€ã³ã¹ããŒã«ãããŸãã ããã°ã©ã ã®ã€ã³ã¹ããŒã«ããã»ã¹ã¯éåžžã«ç°¡åãªã®ã§ã説æããŸããã
ããã°ã©ã ãã€ã³ã¹ããŒã«ããããæ§æããå¿ èŠããããŸãã ããã°ã©ã ã®åºæ¬ããŒãžã§ã³ãšæ¡åŒµããŒãžã§ã³ã®æ§æã€ã³ã¿ãŒãã§ãŒã¹ã¯ç°ãªãããšã«æ³šæããŠãã ããã
ç¡æç
ç¡æçã¯ç¹å¥ãªãŠãŒãã£ãªãã£ã§èšå®ãããŸãã
ã§ããããšïŒ
- ããã°ã©ã ãã¢ã¯ãã£ããŒããã
- å€æŽã远跡ãããµãŒããŒã€ã³ã¹ã¿ã³ã¹ãæå®ãã
- ä¿ç®¡å Žæãéžæ
- ã¬ããŒãé ä¿¡ã®é »åºŠã決å®ãã
- é»åã¡ãŒã«ã¬ããŒãã®èšå®ïŒSMTPãµãŒããŒãåä¿¡è ã¢ãã¬ã¹ãªã©ïŒãèšå®ãã
- è¿œå èšå®ãè¡ã
åºæ¬ããŒãžã§ã³ã§ã®ããŒã¿åé
NetWrix SQL Server Change Reporterã¯ãæ¯æ¥åå3æã«ããŒã¿ãèªåçã«åéããŸãã ã¿ã¹ã¯ã¹ã±ãžã¥ãŒã©ã§æéãå€æŽã§ããŸãïŒã¿ã¹ã¯ã®ååã¯NetWrix SQL Server Change Reporterã§ãïŒã ããŒã¿åéãæåã§éå§ããããšãã§ããŸãã
ã¿ã¹ã¯ãéå§ããããšãSQL Serveræ§æã®ã¹ãããã·ã§ãããååŸãããã€ãã³ããã°ããŒã¿ãåæãããæ§æã®ç¶æ ã以åã®ç¶æ ãšæ¯èŒãããå€æŽã«é¢ããæ å ±ãæå®ãããé»åã¡ãŒã«ã¢ãã¬ã¹ã«éä¿¡ãããŸãã
ç¡æã®åºæ¬ããŒãžã§ã³ã§ã®ã¬ããŒãã®è¡šç€º
ã芧ã®ãšãããå€æŽã®äœæè ãšå€æŽãè¡ãããã¯ãŒã¯ã¹ããŒã·ã§ã³ã¯ç€ºãããŠããŸããã ç¡æçã«ã¯ããŠãŒã¶ãŒããã°ã€ã³ãã¢ã¯ã»ã¹æš©ãããŒã«ãããã³ããŒã¿ããŒã¹ã¹ããŒãã®å€æŽã«é¢ããã¬ããŒããå«ãŸããŠããŸãã è¿œå æ©èœã¯ãããã°ã©ã ã®åçšããŒãžã§ã³ã§å©çšã§ããŸãã
ã¹ã±ãžã¥ãŒã«ãããã¬ããŒãã®åä¿¡ã«å ããŠããªã³ããã³ãã¬ããŒããåä¿¡ã§ããŸãã
- ã¬ããŒããã¥ãŒã¢ãŒãèµ·åãã
- SQLãµãŒããŒã®ã€ã³ã¹ã¿ã³ã¹ãã¬ããŒãã®ã¿ã€ããã¹ãããã·ã§ããã®æ¥ä»ãæå®ããŸã
- çæ -ã¬ããŒãã®ã¿ã€ãïŒcsvãŸãã¯htmlïŒãéžæããé©åãªå Žæã«ä¿åããŸã
èŠããã«ãããã¯ç¡æçã®ä»äºã§ãã é«åºŠãªããŒãžã§ã³ïŒ20æ¥éãã¹ãå¯èœïŒã§ã¯ãããå€ãã®æ©èœãå©çšã§ããŸãã
ããã°ã©ã ã®ãã«ããŒãžã§ã³
å§ããããã«ããã¹ãŠã®äœæ¥ã¯NetWrixãšã³ã¿ãŒãã©ã€ãºç®¡çã³ã³ãœãŒã«ãä»ããŠè¡ãããŸãã
ããã°ã©ã ãæ§æããŸãã
- ç£èŠå¯èœãªãªããžã§ã¯ããäœæããŸãïŒãªããžã§ã¯ãã¯ãã©ã«ããŒã«ã°ã«ãŒãåã§ããŸãïŒ
- æ°ãã管çãªããžã§ã¯ããŠã£ã¶ãŒããéããŸã-ã³ã³ãã¥ãŒã¿ãŒã³ã¬ã¯ã·ã§ã³ãéžæããŸã
- 次ã«ãã³ã³ãã¥ãŒã¿ãŒã®ã³ã¬ã¯ã·ã§ã³ã®ååãèšå®ããããŒã¿ãåéããã¢ã«ãŠã³ããæå®ããŸã
- SMTPãµãŒããŒèšå®ãæ§æãã
- é«åºŠãªã¬ããŒããåä¿¡ããæ©èœã®æ§æ
- 次ã«ãSQLãµãŒããŒã®ã€ã³ã¹ã¿ã³ã¹ãè¿œå ããŸã
- SQLãµãŒããŒã®ã€ã³ã¹ã¿ã³ã¹ã®ååãæå®ããŸã
- 次ã Configure SQL Server Change Reporter Settingsã¹ããŒãžã§ãSQL Serveræ§æå€æŽã¬ããŒãã®åä¿¡è
ãæå®ããå¿
èŠããããŸãã
- ããŒã¿ããŒã¹ã³ã³ãã³ãã®å€æŽã®ç£æ»ã¯åå¥ã«æå¹ã«ããå¿
èŠãããããšã«æ³šæããŠãã ããã ãã®ã¿ã€ãã®ç£æ»ã¯ãMS SQL Server 2005以éã®ããŒãžã§ã³ã§ãµããŒããããŠããŸãã
ããŒã¿ããŒã¹ã³ã³ãã³ãã®ç£æ»ãèšå®ããã«ã¯ãç¬èªã®ãã€ã¢ãã°ããã¯ã¹ïŒ Database Content Audit ïŒã䜿çšããŸããããã§ã¯ãç£èŠããããŒã¿ã®ã«ãŒã«ãèšå®ãããŸã
ã
- æå®ãéžæããå¿ èŠããããŸãã
- ããŒã¿ããŒã¹å€æŽã®ç£æ»ã§ããŒã¿ãåéããã«ãŒã«ãè¿œå ããŸãïŒ è¿œå ïŒ
次ã®åã¿ã€ãã¯çŸåšãµããŒããããŠããªãããšã«æ³šæããŠãã ããïŒtextãntextãimageãbinaryãvarbinaryãTimestampãsql_variantã
確èªã¢ã¯ã·ã§ã³ã®ãã¢-ããã°ã©ã ãæ§æãããŸãã
äœæããç£èŠå¯Ÿè±¡ãªããžã§ã¯ãã¯ã 管ç察象ãªããžã§ã¯ãããŒãïŒãã®å Žåã¯éçšãµãŒããŒïŒã«è¡šç€ºãããŸããã
ããã°ã©ã ã§äœæ¥ãã
ãããã£ãŠãããã°ã©ã ãã»ããã¢ããããããšã§ãã»ãšãã©ã®äœæ¥ãæ¢ã«å®äºããŠããŸãã å€æŽã«é¢ããèŠçŽã¬ããŒãã¯ãæ¯æ¥ã¡ãŒã«ã¢ãã¬ã¹ã«éä¿¡ãããŸãã èªåããŒã¿åéãåŸ
ããã«ã¬ããŒããæåã§åä¿¡ããå¿
èŠãããå Žåã¯ã[ å®è¡ ]ãã¿ã³ãã¯ãªãã¯ããŸãã
ããŒã¿åéãå®äºãããšãæå®ãããã¡ãŒã«ã¢ãã¬ã¹ã«æçµã¬ããŒããéä¿¡ãããŸãã ã¬ããŒãã®äŸ
ããã°ã©ã ã¯ãèªåã¬ããŒããåä¿¡ã§ããã ãã§ãªãããªã³ããã³ãã®ã¬ããŒãïŒã¢ãããã¯ã¬ããŒãïŒãçæã§ããŸãã ïŒ ç®¡ç察象ãªããžã§ã¯ã->æ¬çªãµãŒããŒ-> SQL Serverå€æŽã¬ããŒã¿ãŒ-ã¢ãããã¯ã¬ããŒã ïŒã
ããã§ã¯ãSQL Serverãéžæããã¬ããŒããçæããæéãèšå®ããç£æ»ã®çš®é¡ïŒæ§æãŸãã¯ããŒã¿ããŒã¹ã³ã³ãã³ãïŒãéžæããŸãã [ å®è¡ ]ãã¯ãªãã¯ãããšãhtmlãŸãã¯csvã¬ããŒããéžæã§ããŸãã
ãã1ã€ã®éèŠãªæ©èœã¯ãé«åºŠãªã¬ããŒãã§ãã
æ¡åŒµã¬ããŒãã䜿çšãããšãäºåå®çŸ©ããããã£ã«ã¿ãŒãšãã³ãã¬ãŒãã䜿çšããŠç¹å®ã®åé¡ã解決ããããã«äœæãããã¬ããŒããåãåãããšãã§ããŸãã ãããã®ã¬ããŒãã®å€ãã¯ãæ å ±ã»ãã¥ãªãã£èŠå¶ã«ãã矩åä»ããããŠããŸãã
ã³ã³ãœãŒã«ãŸãã¯SQL Report Manager WebããŒã¿ã«ã§ãã©ãŠã¶ãŒãä»ããŠè¡šç€ºã§ããŸãã 2çš®é¡ã®ã¬ããŒããå©çšå¯èœã§ãã
ïŒ ãã¹ãŠã®å€æŽããã³ãªããžã§ã¯ãã®å€æŽ ïŒã
ãã©ã«ããŒããã¬ããŒããéžæãããã©ã¡ãŒã¿ãŒãèšå®ããŠã[ ã¬ããŒãã®è¡šç€º ]ãã¯ãªãã¯ããŸã ã 以äžã¯ãSQLãµãŒããŒãžã®ãã¹ãŠã®å€æŽã«é¢ããã¬ããŒãã§ãã
ãããŠãäŒçµ±ã«ãããšãããã°ã©ã ã®èšå®ãšãããšã®é£æºã®ãããã¯ã«é¢ãããã¬ãŒã³ããŒã·ã§ã³ã
ããã°ã©ã ã¯Webãµã€ãããããŠã³ããŒãã§ããŸãïŒç»é²ãå¿ èŠã§ãïŒã
PS 11æ15æ¥ã«ã¯ãæ°ããããŒãžã§ã³ã®NetWrix SQL Server Change Reporterã䜿çšããŠSQL Serverã®å€æŽã远跡ããæ¹æ³ã«ã€ããŠèª¬æããWebäŒè°ããããŸãã ä»ããåå ããŠãã ãã ã