Slide 1 ______

______

______SMS 2.0 Database Maintenance 2020 User Group Conference ______

______

______

______

Slide 2 ______

Agenda • Cleanup Guide ______• After Image Files • Temp Files • Task Scheduler Jobs • Tune-Up Service ______• Index Rebuild ______

______

______

______

Slide 3 ______

______

Cleanup Guide • How to clean up areas of the database. • SMS 2.0 Database Cleanup Guide ______

______

______

______

______Slide 4 ______After Image Files

• What is After Imaging? • How to maintain the archive files so local or remote hard drive does not fill up? ______Use the current dbscan.bat

• Local Server Set Aidaysold=5 **** Delete old AI Archive files older than %Aidaysold% days **** forfiles /P %AiArchiveStuDir% /M *.* /D -%Aidaysold% /C “cmd /c @file” ______forfiles /P %AiArchiveFinDir% /M *.* /D -%Aidaysold% /C “cmd /c del @file”

• Remote Server Set remotedaysold=5 REM Delete the old AI and Skyback files on NAS or UNC share including sub directories PushD \\server_host\share_name && (forfiles /S /M *.* /D -%Remotedaysold% /C “cmd /c del @file”) & PopD ______

______

______

______

Slide 5 ______Cleanup Temp Files on web/rq Server del %PROPATH%\Wrk\lbi* /F /Q /A:H del %PROPATH%\Wrk\dbi* /F /Q /A:H del %PROPATH%\Wrk\srt* /F /Q /A:H ______del %PROPATH%\Wrk\rcd* /F /Q /A:H • Clean_web_rq_server del %PROPATH%\Wrk\*.trc /F /Q del %PROPATH%\Wrk\protrace. * /F /Q del %PROPATH%\Wrk\*.xml /F /Q del %PROPATH%\Wrk\QQQ* /F /Q ______del %PROPATH%\Wrk\SKR*.* /F /Q del %PROPATH%\Wrk\*.jpg /F /Q del %PROPATH%\Wrk\*.tmp /F /Q del %PROPATH%\Wrk\*.html /F /Q del %PROPATH%\Wrk\*.log.txt /F /Q forfiles /P %PROPATH%\\Wrk /M *.log /D -30 /C “cmd /c del @file” ______for /D %%f in (%PROPATH%\\Wrk\*-*-*-*-*) do %%f /s /q.

______

______

______

Slide 6 ______Dbscan.bat Contents of REM This section cleans up backup, archive, and log files (/D -2 will keep two days). REM Delete old backup files ______echo **** Delete old backup files older than %bkdaysold% days **** forfiles /P %BackupDir% /M skyback*.* /D -%bkdaysold% /C “cmd /c del @file” forfiles /P %BackupDir% /M BackupLog*.* /D -14 /C “cmd /c del @file” REM Delete the old AI AutoArchive Files echo **** Delete old AI Archive files older than %Aidaysold% days **** forfiles /P %AiArchiveStuDir% /M *.* /D -%Aidaysold% /C “cmd /c del @file” forfiles /P %AiArchiveFinDir% /M *.* /D -%Aidaysold% /C “cmd /c del @file” ______REM Delete the old AI and Skyback files on NAS or UNC share - this command will search sub directories. REM Change the UNC and remove the “REM” in fron font of PushD to clean up backup files on a remote server echo. REM PushD “\\server_host\share_name" && (forfiles /S /M *.* /D -%Remotedaysold% /C “cmd /c del @file”) & PopD ______

______

______

______Slide 7 ______del %PROPATH%\\Wrk\lbi* /F /Q /A:H del %PROPATH%\\Wrk\dbi* /F /Q /A:H Dbscan.bat del %PROPATH%\\Wrk\srt* /F /Q /A:H del %PROPATH%\\Wrk\rcd* /F /Q /A:H del %PROPATH%\\Wrk\*.trc /F /Q :FinishScript del %PROPATH%\\Wrk\protrace. * /F /Q ______echo **** properties and clean up temp files **** del %PROPATH%\\Wrk\*.xml /F /Q del %BackupDir%\*skylog.log del %PROPATH%\\Wrk\QQQ* /F /Q copy %DLC%\properties\*.properties %BackupDir% del %PROPATH%\\Wrk\SKR*.* /F /Q copy %DLC%\startup.pf %BackupDir% del %PROPATH%\\Wrk\*.jpg /F /Q copy %CustRptDir%\*.* %BackupDir%\custreports\ del %PROPATH%\\Wrk\*.tmp /F /Q copy %ConfigDir%\*.* %BackupDir%\config\ ______del %PROPATH%\\Wrk\*.html /F /Q Del %PROPATH%\\Wrk\*.log.txt /F /Q

forfiles /P %PROPATH%\\Wrk /M *.log /D -30 /C “cmd /c del @file” for /D %%f in (%PROPATH%\\Wrk\*-*-*-*-*) do rmdir %%f /s /q ______

______

______

______

Slide 8 ______Tune-Up Service • Type 1 vs. Type 2 Database • Dump and Load the Skyward Database ______• Set OpenEdge components to Standard Settings ______

______

______

______

______

Slide 9 ______Tune-Up Service

Over , a database can outgrow its original setup, become ______fragmented, and lose performance. Skyward can districts ensure that their database is properly tuned and performing properly. As part of the Tune-Up Service, a Skyward technician will scan your database for any internal corruption and “tune” the database -up parameters. Skyward will also perform a database dump and load to Type 2 storage areas to improve performance, manageability, and ______maintenance.

https://support.skyward.com/Page.ashxITServicesTuneUpCheckUpService ______

______

______

______Slide 10 ______Index Rebuild

An index rebuild can increase performance. Over time, the indexes can become fragmented; much like a hard drive can become fragmented over time as programs are added, modified, and unloaded. When you run an index rebuild, it will repair broken ______indexes in the database, activate deactivated indexes, and compress blocks to minimize space usage. It will not repair corruption in the database. Skyward recommend you perform an index rebuild once per year unless symptoms warrant it sooner. If the index rebuild indicates an error, contact Skyward. Steps to Running an Index Build Process ______• Backup Database SMS 2.0 Index Build User Guide • Stop Database • Disable After Imaging • Run Index Build Command ______• Setup for After Imaging • Start Database ______

______

______

Slide 11 ______OEE Database Settings • Buffers ______• Shared Memory • Benefits of Servers with a lot of Memory ______

______

______

______

______

Slide 12 ______OEE Pool Range Settings App Servers ______

______

Web Brokers ______Production and Training Setups

______

______

______Slide 13 ______

______

______

______

______

______

______

Slide 14 ______

______Thank you for attending! ______

______

______

______

______