Download Administration and troubleshooting

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts
no text concepts found
Transcript
Microsoft SQL Server
Administration for SAP
Administration and
Troubleshooting
Overview





SQL Server Architecture
SQL Server with SAP
Performance Monitoring and Tuning
Administration and Troubleshooting
Database Backup and Restore
2
DB02
3
History of DB Size
4
Adding a file to a Database
5
Expanding a Database
6
Extending the Database
Database must be extended
Add new disk to
volume
Expand files and
set all files
to autogrow
Yes
Can
volume be
extended?
No
<SID>DATA1
PRIMARY
+
<SID>DATA1
<SID>DATA2
<SID>DATA3
<SID>DATA1
Add new
volume
Move one old file
to new volume
Expand files on old
and new volume
and set all files
to autogrow
<SID>DATA2
PRIMARY
PRIMARY
7
DB02
8
Server Properties
9
Server Properties
10
Server Properties
11
Server Properties
12
DB Maintenance Wizard
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
Errorlog from SAP
20
Errorlog
21
Errorlog
22
Logins
23
Logins
24
Logins
25
Logins
26
Table / Index fragmentation


DBCC SHOWCONTIG <with fast>
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
27
Attach and Detach Database
SQL Server
Query Analyzer - [Query - sapprod.master.sa - (untitled)]
detail stats.
DB: master
1
sp_detach_db ‘PRD’, ‘true’
C:\WINNT\System32\cmd.exe
detail stats.
2
Microsoft(R) Windows NT (TM)
(C) Copyright 19985-1996 Microsoft Corp.
C:\> mv F:\PRDDATA2\PRDDATA2.NDF G:\PRDDATA2\PRDDATA2.NDF
SQL Server
Query Analyzer - [Query - sapprod.master.sa - (untitled)]
detail stats.
DB: master
3
sp_attach_db ‘PRD’,‘F:\PRDDATA1\PRDDATA1.MDF’,
‘G:\PRDDATA2\PRDDATA2.NDF’,
SQL Server
Query Analyzer - [Query - sapprod.master.sa - (untitled)]
detail stats.
DB: PRD
4
sp_helpfile
28
Common Errors




Work process unable to login
Transaction log is full
SQL Server does not start
Database not available
29
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
30
Summary

Write Module Summary
31
Related documents