Automating Common DBA Tasks - Grant Fritchey - SQL In The City 2013
-
Upload
red-gate-software -
Category
Technology
-
view
240 -
download
2
description
Transcript of Automating Common DBA Tasks - Grant Fritchey - SQL In The City 2013
![Page 1: Automating Common DBA Tasks - Grant Fritchey - SQL In The City 2013](https://reader033.fdocuments.net/reader033/viewer/2022060117/55879febd8b42a19368b4576/html5/thumbnails/1.jpg)
![Page 2: Automating Common DBA Tasks - Grant Fritchey - SQL In The City 2013](https://reader033.fdocuments.net/reader033/viewer/2022060117/55879febd8b42a19368b4576/html5/thumbnails/2.jpg)
•
•
•
![Page 3: Automating Common DBA Tasks - Grant Fritchey - SQL In The City 2013](https://reader033.fdocuments.net/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.fdocuments.net/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.fdocuments.net/reader033/viewer/2022060117/55879febd8b42a19368b4576/html5/thumbnails/5.jpg)
![Page 6: Automating Common DBA Tasks - Grant Fritchey - SQL In The City 2013](https://reader033.fdocuments.net/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.fdocuments.net/reader033/viewer/2022060117/55879febd8b42a19368b4576/html5/thumbnails/7.jpg)
![Page 8: Automating Common DBA Tasks - Grant Fritchey - SQL In The City 2013](https://reader033.fdocuments.net/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.fdocuments.net/reader033/viewer/2022060117/55879febd8b42a19368b4576/html5/thumbnails/9.jpg)
![Page 10: Automating Common DBA Tasks - Grant Fritchey - SQL In The City 2013](https://reader033.fdocuments.net/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.fdocuments.net/reader033/viewer/2022060117/55879febd8b42a19368b4576/html5/thumbnails/11.jpg)
![Page 12: Automating Common DBA Tasks - Grant Fritchey - SQL In The City 2013](https://reader033.fdocuments.net/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.fdocuments.net/reader033/viewer/2022060117/55879febd8b42a19368b4576/html5/thumbnails/13.jpg)
![Page 14: Automating Common DBA Tasks - Grant Fritchey - SQL In The City 2013](https://reader033.fdocuments.net/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.fdocuments.net/reader033/viewer/2022060117/55879febd8b42a19368b4576/html5/thumbnails/15.jpg)
•
•
•