DatabaseAdministration.ppt

309 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
309
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
6
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

DatabaseAdministration.ppt

  1. 1. 11. Database Administration
  2. 2. Computational Architecture <ul><li>SQL Server architecture </li></ul><ul><ul><li>Single-process </li></ul></ul><ul><ul><li>Multithreaded </li></ul></ul><ul><ul><li>Multiprocessing at the thread level </li></ul></ul><ul><li>SMP </li></ul><ul><li>Cluster Server </li></ul><ul><ul><li>Failover </li></ul></ul><ul><ul><li>Load balancing </li></ul></ul><ul><li>Fault tolerance </li></ul>
  3. 3. DB Servers <ul><li>CPU </li></ul><ul><ul><li>Xeon: 2, 4, 8, 16, 32 </li></ul></ul><ul><ul><li>Itanium 64-bit </li></ul></ul><ul><ul><li>Chipset </li></ul></ul><ul><li>L2 Cache </li></ul><ul><ul><li>212 KB, 1M, 2M </li></ul></ul><ul><li>Bus Speed </li></ul><ul><li>RAM </li></ul><ul><ul><li>ECC SDRAM or RDRAM 8GB, 32GB </li></ul></ul><ul><li>Hot-Plug </li></ul><ul><ul><li>Hard drives, PCI, power supply, fans </li></ul></ul><ul><li>NIC: dual embedded </li></ul><ul><li>Chassis </li></ul><ul><ul><li>Floor-standing or rack-mounted format </li></ul></ul>
  4. 4. Storage Subsystem <ul><li>RAID </li></ul><ul><ul><li>Level 0: Stripe Sets </li></ul></ul><ul><ul><li>Level 1: Mirror Sets </li></ul></ul><ul><ul><li>Level 5: Stripe Sets with Parity </li></ul></ul><ul><li>Hardware-based RAID </li></ul><ul><li>SCSI </li></ul><ul><ul><li>Transfer rate: 160 MB/s (Ultra 3) </li></ul></ul><ul><ul><li>Max bus length: 12 m </li></ul></ul><ul><li>Fibre Channel </li></ul><ul><ul><li>Transfer rate: 100 MB/s </li></ul></ul><ul><ul><li>Max bus length: 500 m </li></ul></ul><ul><li>File system </li></ul>
  5. 5. Administration Overview <ul><li>Configure servers and clients </li></ul><ul><li>Manage jobs, alerts, and operators </li></ul><ul><li>Manage backup and restore </li></ul><ul><li>Manage security </li></ul><ul><li>Monitor server performance </li></ul>
  6. 6. Configure Servers and Clients <ul><li>Connectivity options </li></ul><ul><li>Standby server </li></ul><ul><li>Failover support </li></ul><ul><li>Configuration options </li></ul><ul><li>Configuring ODBC data sources </li></ul><ul><li>Configuring OLE DB clients </li></ul>
  7. 7. Automating Administrative Tasks <ul><li>Jobs </li></ul><ul><li>Operators </li></ul><ul><li>Events and alerts </li></ul>
  8. 8. Manage Backup and Restore <ul><li>Backup and restore strategies </li></ul><ul><li>Backup the database regularly </li></ul><ul><li>Frequently backup the transaction log </li></ul><ul><li>Differential database backup </li></ul><ul><li>Backup devices </li></ul><ul><li>Backup media </li></ul>
  9. 9. Manage Security <ul><li>Authentication </li></ul><ul><li>Permissions </li></ul><ul><li>User Accounts </li></ul><ul><ul><li>Groups (Roles) </li></ul></ul><ul><li>Database Audits </li></ul><ul><ul><li>Audit trail </li></ul></ul><ul><li>Privileges </li></ul><ul><ul><li>Views </li></ul></ul><ul><ul><li>SQL GRANT and REVOKE </li></ul></ul><ul><li>Security Plan </li></ul><ul><li>Encryption </li></ul>
  10. 10. Performance Monitoring <ul><li>Monitoring to improve performance </li></ul><ul><ul><li>Response time vs. throughput </li></ul></ul><ul><li>Factors that affect performance </li></ul><ul><ul><li>System resources </li></ul></ul><ul><ul><li>Operating system </li></ul></ul><ul><ul><li>Database application </li></ul></ul><ul><ul><li>Client application </li></ul></ul><ul><ul><li>Network </li></ul></ul><ul><li>Identifying bottlenecks </li></ul><ul><li>Monitoring tools </li></ul>
  11. 11. SQL Performance Monitoring Server Tools <ul><li>SQL Server Profiler </li></ul><ul><ul><li>monitor server and database activity </li></ul></ul><ul><li>SQL Server Performance Monitor </li></ul><ul><ul><li>predefined objects and counters </li></ul></ul><ul><li>Enterprise Manager </li></ul><ul><ul><li>graphical information about currently running processes </li></ul></ul><ul><li>Error Log </li></ul><ul><li>DBCC statements </li></ul><ul><li>Built-in functions </li></ul>
  12. 12. Performance Tuning <ul><li>Database Design </li></ul><ul><li>Application Design </li></ul><ul><li>Query Design </li></ul><ul><li>Utilities and Tools </li></ul><ul><li>Server Tuning </li></ul>

×