Your SlideShare is downloading. ×
0
DB2intro.ppt
DB2intro.ppt
DB2intro.ppt
DB2intro.ppt
DB2intro.ppt
DB2intro.ppt
DB2intro.ppt
DB2intro.ppt
DB2intro.ppt
DB2intro.ppt
DB2intro.ppt
DB2intro.ppt
DB2intro.ppt
DB2intro.ppt
DB2intro.ppt
DB2intro.ppt
DB2intro.ppt
DB2intro.ppt
DB2intro.ppt
DB2intro.ppt
DB2intro.ppt
DB2intro.ppt
DB2intro.ppt
DB2intro.ppt
DB2intro.ppt
DB2intro.ppt
DB2intro.ppt
DB2intro.ppt
DB2intro.ppt
DB2intro.ppt
DB2intro.ppt
DB2intro.ppt
DB2intro.ppt
DB2intro.ppt
DB2intro.ppt
DB2intro.ppt
DB2intro.ppt
DB2intro.ppt
DB2intro.ppt
DB2intro.ppt
DB2intro.ppt
DB2intro.ppt
DB2intro.ppt
DB2intro.ppt
DB2intro.ppt
DB2intro.ppt
DB2intro.ppt
DB2intro.ppt
DB2intro.ppt
DB2intro.ppt
DB2intro.ppt
DB2intro.ppt
DB2intro.ppt
DB2intro.ppt
DB2intro.ppt
DB2intro.ppt
DB2intro.ppt
DB2intro.ppt
DB2intro.ppt
DB2intro.ppt
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

DB2intro.ppt

1,712

Published on

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

  • Be the first to like this

No Downloads
Views
Total Views
1,712
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
77
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. DB2 UDB 8.2 Intro Helia / Martti Laiho
  • 2. DB2 Family of Editions <ul><li>DB2 Everyplace </li></ul><ul><li>Personal Edition </li></ul><ul><li>Satellite Edition </li></ul><ul><li>Workgroup Edition </li></ul><ul><li>Enterprise Edition </li></ul><ul><li>Enterprise-Extended Edition </li></ul><ul><li>DB2 Personal Developer&apos;s Edition </li></ul><ul><li>DB2 Universal Developer&apos;s Edition </li></ul>
  • 3. DB2 Administration Programs
  • 4. Add-on Products <ul><li>DB2 Connect </li></ul><ul><li>DB2 Data Links Manager </li></ul><ul><li>DB2 Query Patroller </li></ul><ul><li>Spatial Extender </li></ul><ul><li>XML Extender </li></ul><ul><li>Replication </li></ul><ul><li>Data Warehouse </li></ul><ul><li>Information Catalog Center </li></ul>
  • 5. Development <ul><li>Development Center </li></ul><ul><li>Visual Studio …. integrations </li></ul>
  • 6. DB2 Objects <ul><li>System </li></ul><ul><li>Instance(s) - environment, security </li></ul><ul><li>Database(s) - config, catalog, logs </li></ul><ul><li>Nodegroup(s) </li></ul><ul><li>Partition(s) </li></ul><ul><li>Tablespace(s) </li></ul><ul><li>Table(s) </li></ul><ul><li>Index(es) </li></ul><ul><li>Long data </li></ul>
  • 7. Table spaces <ul><li>An allocation of physical storage for a table space is called a container </li></ul><ul><li>A Table space can be: </li></ul><ul><ul><li>SMS - System managed space </li></ul></ul><ul><ul><ul><li>files in the operating system file space </li></ul></ul></ul><ul><ul><li>DMS - Database managed space </li></ul></ul><ul><ul><ul><li>container is a fixed size pre-allocated file, or </li></ul></ul></ul><ul><ul><ul><li>raw disk space </li></ul></ul></ul>
  • 8. Instance and Databases Database manager configuration file Database configuration file Database data files Database configuration file Database data files . .. Instance Database Database Log files Log files db2systm
  • 9. DB2 Directories and Files (Windows) DB2 Instance information Programs DAS system database directory node directory
  • 10. Samples
  • 11. Database Catalog Control Caches Buffer pool Log caches Recovery log file - Connections, open DBs - Locks, open objects - Procedures before image / after image x Checkpoint Commit/Rollback Applications Fast access! Slow access! Data files Database Tools (Threading pool) - Pinning - LRU WAL Configuration file Recovery history file
  • 12. Constraints <ul><li>NOT NULL </li></ul><ul><li>Unique </li></ul><ul><li>Primary Key </li></ul><ul><li>Foreign key </li></ul><ul><li>Check </li></ul>
  • 13. Data Types <ul><li>Numeric data </li></ul><ul><ul><ul><li>Smallint, Integer, BigInt, Decimal, Real, Double </li></ul></ul></ul><ul><li>String data </li></ul><ul><ul><li>Single byte character strings </li></ul></ul><ul><ul><ul><li>Char, Varchar, Long varchar, Clob </li></ul></ul></ul><ul><ul><li>Double byte character strings </li></ul></ul><ul><ul><ul><li>Graphic, Vargraphic, Long Vargraphic, DBClob </li></ul></ul></ul><ul><ul><li>Binary strings </li></ul></ul><ul><ul><ul><li>BLOB </li></ul></ul></ul><ul><li>Date and time data </li></ul><ul><ul><ul><li>Date, Time, Timestamp </li></ul></ul></ul>
  • 14. Controlling Authorities <ul><li>SYSADM - System Administration Authority </li></ul><ul><ul><li>member in NT Administrators </li></ul></ul><ul><li>SYSCTRL - System Control Authority </li></ul><ul><li>SYSMAINT - System Maintenance Authority </li></ul><ul><li>DBADM - Database Administration Authority </li></ul><ul><ul><li>creator and administrator of a single database </li></ul></ul><ul><li>User authentication based on OpSys authentication </li></ul>
  • 15. Installing the Server <ul><li>Communication software </li></ul><ul><ul><li>TCP/IP preferred </li></ul></ul><ul><li>User account of the installer </li></ul><ul><ul><li>belong to Administrators group </li></ul></ul><ul><ul><li>name max 8 chars </li></ul></ul><ul><ul><li>Advanced NT user rights </li></ul></ul><ul><ul><ul><li>Act as part of the operating system </li></ul></ul></ul><ul><ul><ul><li>Increase quotas </li></ul></ul></ul><ul><ul><ul><li>Create a token object </li></ul></ul></ul><ul><ul><ul><li>Replace a process level token </li></ul></ul></ul>
  • 16. Installing a DB2 Client <ul><li>Administration client </li></ul><ul><ul><li>Control Center </li></ul></ul><ul><ul><li>Command Center, Performance Monitor, ... </li></ul></ul><ul><li>Run-time clients </li></ul><ul><ul><li>Client Configuration Assistant (CCA) </li></ul></ul><ul><ul><li>Command Center </li></ul></ul>
  • 17. Command Line Processor
  • 18. Control Center
  • 19. Instance Administration Tasks
  • 20. Control Center
  • 21. Database Administration Tasks
  • 22. Backup Wizard ..
  • 23. .. Backup Wizard
  • 24. .. Backup Options
  • 25. .. Backup Performance
  • 26. .. Backup Scheduling
  • 27. Backup Wizard Summary
  • 28. Backing Up a Database
  • 29. Offline Backup Ready
  • 30. Backed Up
  • 31. Customized Control Center
  • 32. Change User (Security)
  • 33. Event Monitor ..
  • 34. .. Event Monitor
  • 35. .. Event Monitor
  • 36. .. Event Monitor
  • 37. Tools ..
  • 38. Health Center
  • 39. &nbsp;
  • 40. Information Catalog Center
  • 41. Command Center
  • 42. Access Plan
  • 43. Development Center
  • 44. &nbsp;
  • 45. &nbsp;
  • 46. &nbsp;
  • 47. &nbsp;
  • 48. &nbsp;
  • 49. Stored Procedure Builder
  • 50. .. Stored Procedure Builder
  • 51. .. Stored Procedure SQL Statement
  • 52. .. A Generated Stored Procedure CREATE PROCEDURE MARTTI.Proc1 ( OUT var0 int ) SPECIFIC MARTTI.Test1 RESULT SETS 1 LANGUAGE SQL ------------------------------------------------------------------------ -- SQL Stored Procedure ------------------------------------------------------------------------ P1: BEGIN -- Declare variable DECLARE var0_TMP int DEFAULT 0; -- Declare cursor DECLARE cursor1 CURSOR WITH RETURN FOR SELECT COUNT(*) FROM Db2Admin.Employee; -- Cursor left open for client application OPEN cursor1; SET var0 = var0_TMP; END P1
  • 53. CLI
  • 54. Journal – Task History
  • 55. Journal – Database History
  • 56. Journal – Database History
  • 57. Journal - Messages
  • 58. Journal – Notification Log
  • 59. Memory Visualizer
  • 60. Information Center

×