automating common dba tasks - grant fritchey - sql in the city 2013
DESCRIPTION
Learn from Grant Fritchey about the common, repetitive tasks required to administer databases. Identify tools available to help make the tasks easier. Automate the resolution of these tasks in order to reduce time spent and errors produced.TRANSCRIPT
![Page 1: Automating Common DBA Tasks - Grant Fritchey - SQL In The City 2013](https://reader033.vdocument.in/reader033/viewer/2022060117/55879febd8b42a19368b4576/html5/thumbnails/1.jpg)
![Page 2: Automating Common DBA Tasks - Grant Fritchey - SQL In The City 2013](https://reader033.vdocument.in/reader033/viewer/2022060117/55879febd8b42a19368b4576/html5/thumbnails/2.jpg)
•
•
•
![Page 3: Automating Common DBA Tasks - Grant Fritchey - SQL In The City 2013](https://reader033.vdocument.in/reader033/viewer/2022060117/55879febd8b42a19368b4576/html5/thumbnails/3.jpg)
• Validate Production Deployment
• Validate Data Load
• Recover Objects From Backups
• Maintain Lookup Data
• Audit Database Structures
![Page 4: Automating Common DBA Tasks - Grant Fritchey - SQL In The City 2013](https://reader033.vdocument.in/reader033/viewer/2022060117/55879febd8b42a19368b4576/html5/thumbnails/4.jpg)
• Not just Production
• Deployments happen frequently
• Failed deployments are costly
• Recovery may be impossible
• Code creep occurs in databases too
![Page 5: Automating Common DBA Tasks - Grant Fritchey - SQL In The City 2013](https://reader033.vdocument.in/reader033/viewer/2022060117/55879febd8b42a19368b4576/html5/thumbnails/5.jpg)
![Page 6: Automating Common DBA Tasks - Grant Fritchey - SQL In The City 2013](https://reader033.vdocument.in/reader033/viewer/2022060117/55879febd8b42a19368b4576/html5/thumbnails/6.jpg)
• Provide a safety net for data movement
• Partial success is hard to identify
• More than just a row count
• Makes immediate recovery possible
![Page 7: Automating Common DBA Tasks - Grant Fritchey - SQL In The City 2013](https://reader033.vdocument.in/reader033/viewer/2022060117/55879febd8b42a19368b4576/html5/thumbnails/7.jpg)
![Page 8: Automating Common DBA Tasks - Grant Fritchey - SQL In The City 2013](https://reader033.vdocument.in/reader033/viewer/2022060117/55879febd8b42a19368b4576/html5/thumbnails/8.jpg)
• Oops
• Restore is first choice
• Restore may not be possible
• Not just objects, but data
![Page 9: Automating Common DBA Tasks - Grant Fritchey - SQL In The City 2013](https://reader033.vdocument.in/reader033/viewer/2022060117/55879febd8b42a19368b4576/html5/thumbnails/9.jpg)
![Page 10: Automating Common DBA Tasks - Grant Fritchey - SQL In The City 2013](https://reader033.vdocument.in/reader033/viewer/2022060117/55879febd8b42a19368b4576/html5/thumbnails/10.jpg)
• Common data
• Multiple locations
• Consistent behavior
• Accurate data retrieval
![Page 11: Automating Common DBA Tasks - Grant Fritchey - SQL In The City 2013](https://reader033.vdocument.in/reader033/viewer/2022060117/55879febd8b42a19368b4576/html5/thumbnails/11.jpg)
![Page 12: Automating Common DBA Tasks - Grant Fritchey - SQL In The City 2013](https://reader033.vdocument.in/reader033/viewer/2022060117/55879febd8b42a19368b4576/html5/thumbnails/12.jpg)
• Others with ‘sa’ priveleges
• Unknown state of server
• No deployment process
• No change log
• Legal compliance
![Page 13: Automating Common DBA Tasks - Grant Fritchey - SQL In The City 2013](https://reader033.vdocument.in/reader033/viewer/2022060117/55879febd8b42a19368b4576/html5/thumbnails/13.jpg)
![Page 14: Automating Common DBA Tasks - Grant Fritchey - SQL In The City 2013](https://reader033.vdocument.in/reader033/viewer/2022060117/55879febd8b42a19368b4576/html5/thumbnails/14.jpg)
• Compare works with
– Databases
– Backups
– Scripts
– Snapshots
• Use command line
• Learn PowerShell
![Page 15: Automating Common DBA Tasks - Grant Fritchey - SQL In The City 2013](https://reader033.vdocument.in/reader033/viewer/2022060117/55879febd8b42a19368b4576/html5/thumbnails/15.jpg)
•
•
•