IBM DB2

416 views

Published on

Basics of IBM DB2

Published in: Education
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
416
On SlideShare
0
From Embeds
0
Number of Embeds
8
Actions
Shares
0
Downloads
3
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

IBM DB2

  1. 1. BIRLA VISHVAKARMA MAHAVIDHYALAYA IBM DB2 Database Software Sr. No. Names Enrollment No. 1. Rahul Pipaliya 140080116044 2. Rudra Patel 140080116050 3. Tushar Gonawala 140080116059 4. Rushang Patel 140080116064 PRESENTED TO: Prof. Bijal Dalwadi
  2. 2. Content • DB2 Product Family • DB2 Add-On Products • DB2 Administrative Programs • Table Spaces • Constraints • Data Types • Instance and Database • Controlling Authorities • Development Center • Backup Wizard • Failure Detection & Recovery • Comparison
  3. 3. DB2 PRODUCT FAMILY • DB2 UDB Enterprise Server Edition • DB2 UDB Workgroup Server Unlimited Edition • DB2 UDB Workgroup Server Edition • DB2 UDB Personal Edition • DB2 UDB Universal Developer's Edition • DB2 UDB Personal Developer's Edition • DB2 UDB Express Edition • DB2 Connect • DB2 Data Links Manager • DB2 Query Patroller • Spatial Extender • XML Extender • Replication • Data Warehouse • Information Catalog Center DB2 ADD-ON PRODUCTS
  4. 4. Content • DB2 Product Family • DB2 Add-On Products • DB2 Administrative Programs • Table Spaces • Constraints • Data Types • Instance and Database • Controlling Authorities • Development Center • Backup Wizard • Failure Detection & Recovery • Comparison
  5. 5. DB2 ADMINISTRATIVE PROGRAMS
  6. 6. Content • DB2 Product Family • DB2 Add-On Products • DB2 Administrative Programs • Table Spaces • Constraints • Data Types • Instance and Database • Controlling Authorities • Development Center • Backup Wizard • Failure Detection & Recovery • Comparison
  7. 7. TABLESPACES • An allocation of physical storage for a table or index is called a container i.e. a tablespace. • A Table space can be: 1. SMS - System managed space  files in the operating system file space 2. DMS - Database managed space  container is a fixed size pre-allocated file, or  raw disk space Tablespace HUMANRES Tablespace SCHED department employee project Container 0 Container 1 Container 2 Container 3
  8. 8. CONSTRAINTS • NOT NULL • Unique • Primary Key • Foreign key
  9. 9. DATA TYPES • Numeric data Smallint, Integer, BigInt, Decimal, Real, Double • String data 1. Single byte character strings Char, Varchar, Long varchar, Clob(Character Large Object) 2. Double byte character strings Graphic, Vargraphic, Long Vargraphic, DBClob 3. Binary strings BLOB(Binary Large Object) • Date and time data Date, Time, Timestamp
  10. 10. Content • DB2 Product Family • DB2 Add-On Products • DB2 Administrative Programs • Table Spaces • Constraints • Data Types • Instance and Database • Controlling Authorities • Development Center • Backup Wizard • Failure Detection & Recovery • Comparison
  11. 11. 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
  12. 12. DATABASES 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! Data files Database Tools (Threading pool) - Pinning (always kept in the memory) - LRU (Least Recently Used) Configuration file Recovery history file
  13. 13. Content • DB2 Product Family • DB2 Add-On Products • DB2 Administrative Programs • Table Spaces • Constraints • Data Types • Instance and Database • Controlling Authorities • Development Center • Backup Wizard • Failure Detection & Recovery • Comparison
  14. 14. CONTROLLING AUTHORITIES • SYSADM - System Administration Authority member in NT Administrators • SYSCTRL - System Control Authority • SYSMAINT - System Maintenance Authority • DBADM - Database Administration Authority creator and administrator of a single database • User authentication based on O/S authentication
  15. 15. Content • DB2 Product Family • DB2 Add-On Products • DB2 Administrative Programs • Table Spaces • Constraints • Data Types • Controlling Authorities • Instance and Database • Development Center • Backup Wizard • Failure Detection & Recovery • Comparison
  16. 16. DEVELOPMENT CENTER
  17. 17. DEVELOPMENT CENTER
  18. 18. DEVELOPMENT CENTER
  19. 19. DEVELOPMENT CENTER
  20. 20. DEVELOPMENT CENTER
  21. 21. DEVELOPMENT CENTER
  22. 22. Content • DB2 Product Family • DB2 Add-On Products • DB2 Administrative Programs • Table Spaces • Constraints • Data Types • Instance and Database • Controlling Authorities • Development Center • Backup Wizard • Failure Detection & Recovery • Comparison
  23. 23. BACKUP WIZARD
  24. 24. BACKUP WIZARD
  25. 25. Backup Options BACKUP WIZARD
  26. 26. Backup Performance BACKUP WIZARD
  27. 27. Backup Scheduling BACKUP WIZARD
  28. 28. Backup Wizard Summary BACKUP WIZARD
  29. 29. Backing Up a Database BACKUP WIZARD
  30. 30. Offline Backup Ready BACKUP WIZARD
  31. 31. Backed Up BACKUP WIZARD
  32. 32. Content • DB2 Product Family • DB2 Add-On Products • DB2 Administrative Programs • Table Spaces • Constraints • Data Types • Instance and Database • Controlling Authorities • Development Center • Backup Wizard • Failure Detection & Recovery • Comparison
  33. 33. FAILURE DETECTION • DB2 has a watchdog process to monitor itself from software failure. The watchdog is signalled any time the DB2 is dying. This watchdog will interrupt the cluster manager to tell it to start recovery. Software failure detection times are a fraction of a second. • The DB2 cluster manager performs checks to determine congestion or failure. Result in hardware failure detection in under 3 seconds without false failovers.
  34. 34. MEMBER FAILURE • DB2 Cluster Services automatically detects member’s death Inform other members and CFs Initiates automated member restart on same or remote host Member restart is like crash recovery in a single system, but is much faster • Other members fully available at all times CF holds update locks held by failed member Other members can continue to read and update data not locked by failed member.
  35. 35. • Client transparently re-routed to healthy members. • When a database member fails only in-flight data remains locked until member recovery is not completed. In-Flight = Data being updated on the failed member at the time it failed • Member restart completes Locks released and all data fully available MEMBER FAILURE
  36. 36. Content • DB2 Product Family • DB2 Add-On Products • DB2 Administrative Programs • Table Spaces • Constraints • Data Types • Instance and Database • Controlling Authorities • Development Center • Backup Wizard • Failure Detection & Recovery • Comparison
  37. 37. COMPARISION Topic IBM DB2 Database Software ORACLE Database Software Security Security outside of database makes DB2 more vulnerable to users subverting security. Oracle provides industry-leading security features within the database product, rendering it difficult to subvert security. Cost Effectiveness High long-term cost of ownership because customers must pay for the database product, security products and required services— plus upgrades and support services for all those products. Customers are not obliged to purchase add-on products for key security features, nor pay for upgrades and support for such products. Assurance IBM has not completed any independent security evaluations of DB2. No way to substantiate DB2 security claims. Oracle9i Database builds on 14 independent security evaluations. The evaluations substantiate Oracle’s security claims. Platform Support Lack of security features on many platforms. Secure Way ships on a different schedule, resulting in void in secure DB2 availability. Consistent product on all platforms, with security built-in from day one.
  38. 38. COMPARISION
  39. 39. INDUSTRIAL ANALYSIS “DB2 has heavily favored in this regards… with fewer and shorter outages for normal operational activities, the overall availability and reliability of the DBMS shows some clear differentiation.” -Solitaire Game “The industry thumb rule remains that 25% to 35% more DBA time is required for Oracle than for DBA 9 environment.” -ITG(Investment Technology Group) • IBM DB2 requires 43% less Staff compared to the oracle database software. • ITG Report: IBM requires 20% less spending on server. • ITG take on real world storage savings:  20% - 30% from Oracle 11g Advavnced Compression  60% - 80% from IBM DB2 9.7 Storage Optimization
  40. 40. THANK YOU

×