Data

697 views

Published on

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
697
On SlideShare
0
From Embeds
0
Number of Embeds
292
Actions
Shares
0
Downloads
4
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Data

  1. 1. About me• MySQL DBA at www.163.com (October 2010 – August 2012) – Managing 100+ MySQL hosts,300+ MySQL instances – Design Schema – Database Architecture and Design – Performance Tuning
  2. 2. What is database administrator?• Installing and upgrading the database server and application tools• Allocating system storage and planning future storage requirements for the database system• Enrolling users and maintaining system security• Controlling and monitoring user access to the database• Monitoring and optimizing the performance of the database• Planning for backup and recovery of database information• Backing up and restoring the database• Generating Various reports by querying from database as per need
  3. 3. History• Database concept – The database concept has evolved since the 1960s to ease increasing difficulties in designing, building, and maintaining complex information systems (typically with many concurrent end-users, and with a large amount of diverse data). It has evolved together with database management systems which enable the effective handling of databases. Though the terms database and DBMS define different entities, they are inseparable: a databases properties are determined by its supporting DBMS. With the progress in technology in the areas of processors, computer memory, computer storage and computer networks, the sizes, capabilities, and performance of databases and their respective DBMSs have grown in orders of magnitudes. For decades it has been unlikely that a complex information system can be built effectively without a proper database supported by a DBMS. The utilization of databases is now spread to such a wide degree that virtually every technology and product relies on databases and DBMSs for its development and commercialization, or even may have such embedded in it. Also, organizations and companies, from small to large, heavily depend on databases for their operations. – No widely accepted exact definition exists for DBMS. However, a system needs to provide considerable functionality to qualify as a DBMS. Accordingly its supported data collection needs to meet respective usability requirements (broadly defined by the requirements below) to qualify as a database. Thus, a database and its supporting DBMS are defined here by a set of general requirements listed below. Virtually all existing mature DBMS products meet these requirements to a great extent, while less mature either meet them or converge to meet them.
  4. 4. What is RDBMS?Who is Edgar F. Codd? Who is Bill Inmon?
  5. 5. What is RDBMS?A short definition of an RDBMS is: a DBMS in whichdata is stored in tables and the relationships amongthe data are also stored in tables. The data can beaccessed or reassembled in many different wayswithout having to change the table forms.
  6. 6. Database Software• Oracle – Oracle 11g – Oracle ERP – Oracle BI – Oracle Exadata
  7. 7. Database Software• PostgreSQL-9.1.4• Greenplum (Data Warehouse)
  8. 8. Database Software• MySQL – MySQL Community Server (innodb plugin) – Perona Server – MariaDB – Infobright (Data Warehouse)
  9. 9. Database Software• MS SQL Sever• SQL Server Fast Track(Data Warehouse)
  10. 10. What is NoSQL?
  11. 11. What is NoSQL?In computing, NoSQL (mostly interpreted as "notonly SQL") is a broad class of database managementsystems identified by its non-adherence to thewidely used relational database managementsystem model, that is NoSQL databases are notprimarily built on tables, and as a result, generallydo not use SQL for data manipulation.
  12. 12. NoSQL Software– Oracle Berkeley DB– Redis– MongoDB– Hbase– MySQL handlesocket– Cassandra
  13. 13. What the google has brought to us?
  14. 14. What the google has brought to us?• MapReduce
  15. 15. What the google has brought to us?• MapReduce• GFS
  16. 16. What the google has brought to us?• MapReduce• GFS• Bigtable
  17. 17. What the google has brought to us?• MapReduce• GFS• Bigtable• F1
  18. 18. What the google has brought to us?• MapReduce• GFS• Bigtable• F1• Flashcache
  19. 19. SQL(Structured Query Language)
  20. 20. SQL(Structured Query Language)• Data Query Language(DQL) – SELECT
  21. 21. SQL(Structured Query Language)• Data Query Language(DQL) – SELECT• Data Definition Language(DDL) – CREATE DROP ALTER
  22. 22. SQL(Structured Query Language)• Data Query Language(DQL) – SELECT• Data Definition Language(DDL) – CREATE DROP ALTER• Data Manipulation Language(DML) – INSERT UPDATE DELETE
  23. 23. SQL(Structured Query Language)• Data Query Language(DQL) – SELECT• Data Definition Language(DDL) – CREATE DROP ALTER• Data Manipulation Language(DML) – INSERT UPDATE DELETE• Data Controlling Language(DCL) – GRANT REVOKE COMMIT ROLLBACK
  24. 24. What is ACID?
  25. 25. What is ACID?– Atomicity
  26. 26. What is ACID?– Atomicity– Consistency
  27. 27. What is ACID?– Atomicity– Consistency– Isolation
  28. 28. What is ACID?– Atomicity– Consistency– Isolation– Durability
  29. 29. What is mvcc?
  30. 30. What is mvcc?• Multi-Version Concurrency Control
  31. 31. What is mvcc?• Multi-Version Concurrency Control – Redo log
  32. 32. What is mvcc?• Multi-Version Concurrency Control – Redo log – Undo log
  33. 33. What is mvcc?• Multi-Version Concurrency Control – Redo log – Undo log – Commit
  34. 34. What is mvcc?• Multi-Version Concurrency Control – Redo log – Undo log – Commit – Rollback
  35. 35. System Architecture
  36. 36. System Architecture• High Performance
  37. 37. System Architecture• High Performance• High Availability
  38. 38. System Architecture• High Performance• High Availability• High Scalability
  39. 39. System Architecture• High Performance• High Availability• High Scalability• High safety
  40. 40. Thank you• http://www.mysqlperformanceblog.com/• Gmail:zqtommyora25@gmail.com

×