Microsoft SQL Server Administration for SAP Administration and Troubleshooting
2 Overview
3 DB02
4 History of DB Size
5 Adding a file to a Database
6 Expanding a Database
7 Extending the Database Database must be extended Can volume be extended? Add new disk to volume Add new volume Move one old file to new volume YesNo + Expand files and set all files to autogrow PRIMARY DATA1 DATA2 DATA3 Expand files on old and new volume and set all files to autogrow PRIMARY DATA1 PRIMARY DATA1 DATA2
8 DB02
9 Server Properties
10 Server Properties
11 Server Properties
12 Server Properties
13 DB Maintenance Wizard
14 DB Maintenance Wizard
15 DB Maintenance Wizard
16 DB Maintenance Wizard
17 DB Maintenance Wizard
18 DB Maintenance Wizard
19 DB Maintenance Wizard
20 Errorlog from SAP
21 Errorlog
22 Errorlog
23 Logins
24 Logins
25 Logins
26 Logins
27 Table / Index fragmentation DBCC SHOWCONTIG DBCC SHOWCONTIG DBCC INDEXDEFRAG ~20% degradation, few % CPU less disk space / restartable Fillfactor & Data Cache utilization OLTP / OLAP requirement SORT_IN_TEMPDB DBCC CLEANTABLE Parallel index creation
28 Attach and Detach Database detail stats. SQL Server Query Analyzer - [Query - sapprod.master.sa - (untitled)] DB: master sp_detach_db ‘PRD’, ‘true’ detail stats. SQL Server Query Analyzer - [Query - sapprod.master.sa - (untitled)] DB: PRD sp_helpfile detail stats. SQL Server Query Analyzer - [Query - sapprod.master.sa - (untitled)] DB: master sp_attach_db ‘PRD’,‘F:\PRDDATA1\PRDDATA1.MDF’, ‘G:\PRDDATA2\PRDDATA2.NDF’, detail stats. C:\WINNT\System32\cmd.exe Microsoft(R) Windows NT (TM) (C) Copyright Microsoft Corp. C:\> mv F:\PRDDATA2\PRDDATA2.NDF G:\PRDDATA2\PRDDATA2.NDF
29 Common Errors Work process unable to login Transaction log is full SQL Server does not start Database not available
30 Lab Expand the test database Add a file to the test database Detach the test database, copy the files and attach it as test1 database
31 Summary Write Module Summary