ÀÎÅÚ¼¹ö,Á¶¸³¼¹ö,HP,IBM¼¹ö,½ºÅ丮Áö Àü¹®ÄÁ¼³ÆÃ - (ÁÖ)TERA TEC
|
| |
| |
TERA HPC |
|
| |
TERA OEM / ODM |
|
| |
TERA Backup |
|
| |
| |
| |
|
| |
|
|
|
|
|
| |
|
| |
| MySQL
Á¦Ç° ¼Ò°³ |
| |
MySQL
Enterprise (per Server-annual)
- ±â¾÷¿¡¼ÀÇ »ç¿ëÀ» À§ÇÑ ¶óÀ̼¾½º ¿Í Áö¿ø¼ºñ½º¸¦ Æ÷ÇÔ Á¦Ç° MySQL
Cluster (per CPU)
- 99.999%ÀÇ °¡¿ë¼º°ú 5ÃÊ ¹Ì¸¸ÀÇ Fail Over
- ¸Þ¸ð¸® Ŭ·¯½ºÅÍ ¿£Áø
MySQL Cluster (EMIC
per CPU/annual)
- MySQLÀÎÁõ ¹ÞÀº 3rd Party Ŭ·¯½ºÅÍ
- µð½ºÅ© ±â¹ÝÀÇ Å¬·¯½ºÅÍ
MySQL Embedded (per
server)
- ¼ÒÇÁÆ®¿þ¾î °³¹ß»ç ¶Ç´Â Çϵå¿þ¾î °³¹ß»ç¸¦ À§ÇÑ ÀÓº£µù ¶Ç´Â ¹øµéÀ» À§ÇÑ MySQL
|
|
| MySQL
ÀåÁ¡ |

|
| |
| MySQL
DBMS |
MySQLÀÇ ÄÚµå ǰÁúÀÌ ºñ±³´ë»óÀÌ µÇ´Â
»ó¿ë Á¦Ç°º¸´Ù ¶Ù¾î³²À» Áõ¸í
Reasoning found that: MySQL
code quality was 6x better than that of comparable
proprietary code
MySQL benefits from the large communities of programmers
who "battle test" the code
MySQL benefits from users who not only report bugs,
but track down their root cause and fix them |

MySQL has a defect density that is about six times
lower than comparable proprietary projects. |
| |
| |
|
| |
| |
|
| |
| |
| MySQL
5.0 »õ·Î¿î ±â´É |

What are the benefits¡¦?
¡¤ ºñÁö´Ï½º ·ÎÁ÷À» µ¥ÀÌÅͺ£À̽º ³»¿¡ ÀÓº£µå ½ÃÅ´
¡¤ µ¥ÀÌÅͺ£À̽ºÀÇ ¸·´ëÇÑ ÇÁ·Î¼¼½Ì ÆÄ¿ö¸¦ »ç¿ë
¡¤ µ¥ÀÌÅͼ¾Åͳ×ÀÇ ³×Æ®¿÷ Æ®·¡ÇÈÀ» °¨¼Ò½ÃÅ´
¡¤ º¸¾È °ü¸®°¡ ¿ëÀÌÇØÁü
¡¤ »çÀü ¼³Á¤µÈ SQL Æ©´×ÀÌ °¡´ÉÇØÁü
¡¤ À¯»çÇÑ ¹®ÀåÀÇ Áö¿øÀ¸·Î ÀÌÀüºñ¿ëÀÌ °¨¼Ò
¡¤ Ç¥ÁØ SQLÃâ·ÂÀ» °¡´ÉÇϰÔÇÔ
¡¤ °¢ row¿¡ ´ëÇÑ À¯ÀúÀÇ µ¿ÀÛÀ» ÅëÇØ ºñÁö´Ï½º ·ÎÁ÷À» ±¸µ¿ÇÔ
¡¤ °¢ µ¥ÀÌÅͺ£À̽º ¿ÀºêÁ§Æ®¿¡ ´ëÇÑ À¯ÀúÀÇ »ç¿ëÀ» °¨½Ã
¡¤ µ¥ÀÌÅͼ¾Åͳ»ÀÇ ³×Æ®¿÷ Æ®·¡ÇÈ °¨¼Ò
¡¤ À¯»çÇÑ ¹®ÀåÀÇ Áö¿øÀ¸·Î ÀÌÀüºñ¿ëÀÌ °¨¼Ò
¡¤ ¹Î°¨ÇÑ µ¥ÀÌÅÍ¿¡ ´ëÇÑ º¸¾ÈÀ» °ÈÇÔ
¡¤ º¹ÀâÇÑ µ¥ÀÌÅÍ¿¡ ´ëÇÑ º¸´Ù °£ÆíÇÑ Á¢±ÙÀ» °¡´ÉÇÏ°Ô ÇÔ
¡¤ º¹ÀâÇÑ Å×À̺í À̸§ ´ë½Å Á»´õ ¾Ë±â½¬¿î À̸§À¸·Î Á¢±Ù°¡´É
¡¤ ÇÊ¿ä¾ø´Â columnÀ̳ª row¸¦ Á¦°ÅÇÔÀ¸·Î½á ¼º´É Çâ»ó
¡¤ ÀÏ·ÃÀÇ ¿¬°üµÈ µ¥ÀÌÅÍ¿¡ ´ëÇØ Á»´õ °èȹÀûÀÎ ÀÛ¾÷ÀÌ °¡´É
¡¤ ÀÏ·ÃÀÇ µ¥ÀÌÅÍ Á¶ÇÕ¿¡ ´ëÇÑ º¸´Ù ¼¼¹ÐÇÑ °ËÅä °¡´É
¡¤ µ¥ÀÌÅͺ£À̽ºÀÇ ¸ÞŸµ¥ÀÌÅ͸¦ º¸´Ù ½±°Ô º¼ ¼ö ÀÖµµ·Ï ÇÔ
¡¤ ±âÁ¸ SHOW ¹æ½Ä°ú ´Þ¸® ¸ÞŸµ¥ÀÌÅ͸¦ Äõ¸®¿¡ »ç¿ë
¡¤ ÇϳªÀÇ DBA ¿öÅ©½ºÅ×À̼ǿ¡¼ ¿ø°ÝÀÇ MySQLÀ» ½ÃÀÛ/ÁßÁö ½Ãų ¼ö ÀÖ½¿
¡¤ ¿ø°Ý¿¡¼ my.cnf¼³Á¤À» Ãß°¡/¼öÁ¤/»èÁ¦ ÇÒ ¼ö ÀÖ½¿
¡¤ ¿ø°Ý¿¡¼ °¢Á¾ ·Î±×¸¦ È®ÀÎÇÒ ¼ö ÀÖ½¿
¡¤ ¼¹ö³»ÀÇ ¸ðµç MySQLÀνºÅϽºÀÇ »óŸ¦ ½±°Ô È®ÀÎ °¡´É
¡¤ À߸øµÈ µ¥ÀÌÅͰ¡ µ¥ÀÌÅͺ£À̽º¿¡ µé¾î°¡´Â°ÍÀ» ¸·¾ÆÁÜ
¡¤ Ä÷³ÀÇ ·êÀ» ¹Ýµå½Ã Áö۵µ·Ï ÇÔ(ENUM)
¡¤ ANSI, DB2, MSSQL, OracleµîÀÇ ¸ðµå¸¦ Á¦°ø
¡¤ MySQL¿¡¼ ½±°Ô ½Ç¼öÇÒ ¼ö ÀÖ´Â ¸¹Àº°ÍÀ» Á¦°Å
¡¤ ¿øÇÏ´Â °æ¿ì¿¡´Â MySQLÀÌ ÀÌÀü°ú °°Àº ÀüÅëÀûÀÎ ¹æ½ÄÀ¸·Î µ¿ÀÛÇÏ°Ô ÇÔ
¡¤ ¿©·¯´ëÀÇ MySQL ¶Ç´Â ´Ù¸¥ µ¥ÀÌÅͺ£À̽º°£ Æ®·£Àè¼Ç Áö¿ø
¡¤ °íµµÀÇ Á¤¹ÐÇÔÀÌ ÇÊ¿äÇÑ ¾îÇø®ÄÉÀ̼ǿ¡¼ Ȱ¿ë(±ÝÀ¶ µî)
¡¤ ´õ¿í Á¤È®ÇÑ ºÎµ¿¼Ò¼ýÁ¡ °è»ê Áö¿ø
¡¤ Çâ»óµÈ ¾ÈÁ¤¼º ¹× Ŭ·¯½ºÅ͸¦ À§ÇÑ º°µµÀÇ ¿ÀºêÁ§Æ® Áö¿ø
¡¤ Ŭ·¯½ºÅÍ¿¡¼ÀÇ Äõ¸® ij½¬Áö¿øÀ¸·Î ´õ ³ªÀÌÁø ¼º´É
|
| |
| |
|
| |
| |
|
| |
| |
| MySQL
HA ¼Ö·ç¼Ç |
| |
| MySQL
Scale-Out Comparison |
¼öÁ÷Àû È®Àå
- °ªºñ½Ñ º´·Ä ÇÁ·Î¼¼¼ Çϵå¿þ¾î ÇÊ¿ä
- ¿ÀǼҽº ¼ÒÇÁÆ®¿þ¾î »ç¿ë Èûµë
- Ç÷§Æû¿¡ Á¾¼ÓÀûÀÓ
- È®Àå¿¡ ºñ¿ëÀû ºÎ´ãÀÌ Å |
 |
| |
¼öÆòÀû È®Àå
- ÀϹÝÀûÀÎ ÀÎÅÚ/AMD ¼¹ö »ç¿ë
- ¿ÀǼҽº ¼ÒÇÁÆ®¿þ¾îÀÇ »ç¿ëÀÌ ¿ëÀÌ
- Ç÷§Æû¿¡ ºñÁ¾¼ÓÀû
- ¿ë·® È®ÀåÀ» À§Çؼ Àú·ÅÇϰí ÀÏ¹Ý ÀûÀÎ ¼¹öÀÇ Ãß°¡·Î
°¡´É |
 |
| |
Why
Clustering? |
 |
| |
| |
| MySQL
Cluster (MMDB Cluster) |
| |
| ¸ÞÀÎ
¸Þ¸ð¸® ±â¹ÝÀÇ MySQL Cluster |
| |
99.999%ÀÇ °¡µ¿½Ã°£À»
º¸ÀåÇÏ´Â °í°¡¿ë¼º Ŭ·¯½ºÅÍ
- ÀϹÝÀûÀÎ Çϵå¿þ¾î¸¦ »ç¿ëÇÏ¿© ¸ÞÀÎÇÁ·¹ÀÓ ¼öÁØÀÇ ½Å·Ú¼º È®º¸
- º´·ÄÀû ¼¹ö ±¸Á¶; no single point of failure
- ¡°Shared nothing¡± ¾ÆÅ°ÅÃó; °øÀ¯ µð½ºÅ©°¡ ÇÊ¿ä ¾ø½¿
- Ŭ·¯½ºÅͰ£ ·£ ¶Ç´Â SCI¸¦ ÅëÇÑ ´ÙÁß ¸®Çø®ÄÉÀÌ¼Ç ºü¸¥
¼º´É
- ÀÚµ¿ÈµÈ ·Îµå ¹ë·¯½Ì
- ºü¸¥ Fail over (< 0.5 sec.)
- ¸Þ¸ð¸® ¸¸À» »ç¿ëÇÏ¿© µ¿ÀÛ 
|
| Clustering
the current MySQL Server |

|
| MySQL
Cluster Architecture |
MySQL
Cluster Nodes Three
node types
- MySQL Server (mysqld)
- Data nodes (ndbd)
- Management nodes (ndb_mgmd)
Can run on same or different servers

|
| Minimal
configuration with redundancy |

|
| Configuration
for High Performance |

|
| Data
distribution on 2 nodes |

|
| Failure
detection: Heartbeats, lost connections |

|
| Single
Node Failure |
What happens
if node 1 fails?
Detection of node failure. Primary fragment F1 handled
by node 2
Automatic restart and recovery of node 1
- Node 1 recovers F1 and F3 from node 2 and rejoins
the cluster. 
|
| System
Recovery |

|
| Availability
features - Summary (1/2) |
- Node Failure Reliability
- Data redundancy with synchronous replication
- Fast seamless switch-over since data is already
replicated
- Multiple node failures recovered from without
system stop
- Network partitioning protocol to avoid database
partitioning
- System Failure Reliability
- Logging with check pointing
- Database restored to transaction consistent state
after system crash
- Application failure reliability
- On-line Backup & Restore
- Node architecture built to eliminate single-point-of-failure
- MySQL Servers connected to all data nodes
- Data node with replicated data on multiple servers
- Management server node may fail without effecting
the database
- Disaster Recovery
- Geographic Data redundancy with MySQL Replication
between remote sites
- Online software upgrade
- Version handling of messages between database
nodes |
| |
| |
| |
|
| |
| |
|
| |
|
| |
| MySQL
<- Oracle |
| |
Migrate
to MySQL from Oracle
No one disputes the fact that Oracle has more bells
and whistles than the MySQL database server.
Core feature set of the MySQL database server
| Database Feature |
Available
in MySQL |
| Open Source |
¡î |
| Pluggable Storage Engine Architecture (MyISAM,
InnoDB, Merge, Memory, Archive, Cluster) |
¡î |
| High-Availability Clustered Database |
¡î |
| ANSI SQL, SubQueries, Joins, Cursors, Prepared
Statements |
¡î |
| Stored Procedures, Triggers, SQL and User-Defined
Functions |
¡î |
| Updateable Views |
¡î |
| ACID Transactions, Commit, Rollback |
¡î |
| Distributed Transactions |
¡î |
| Row-level Locking |
¡î |
| Snapshot/Consistent Repeatable Reads (readers
don¡¯t block writers and vice-versa) |
¡î |
| Server-enforced Referential Integrity |
¡î |
| Strong Data type support (Numeric, VARCHAR,
BLOB, etc) |
¡î |
| High-Precision Numeric Data types |
¡î |
| Robust Indexing (clustered, b-tree, hash,
full-text) |
¡î |
Dynamic Memory Caches |
¡î |
Unique Query Cache |
¡î |
| Cost-Based Optimizer |
¡î |
No one disputes the fact that Oracle has more bells
and whistles than the MySQL database server.
Core feature set of the MySQL database server
| Database Feature |
Available
in MySQL |
| Database Feature |
¡î |
| Unicode, UTF-8 |
¡î |
| XML, XPath |
¡î |
| Geospatial support |
¡î |
Replication (Row-based and Statement-based)
|
¡î |
Partitioning (Range, List, Hash, Key, Composite)
|
¡î |
| VLDB (terabytes) capable |
¡î |
High-speed, parallel data load utility
|
¡î |
| Online Backup with Point-in-Time Recovery |
¡î |
Automatic Restart/Crash Recovery |
¡î |
Automatic Storage Management (auto-expansion,
undo management) |
¡î |
| Compressed and Archive Tables |
¡î |
| Information Schema |
¡î |
| Robust Security (SSL, fine grained object
privileges) |
¡î |
| Built-in data encryption and decryption |
¡î |
Built-in Event Scheduler |
¡î |
| Drivers (ODBC, JDBC, .NET, PHP, etc) |
¡î |
| Tools (Workbench, Administrator, Query Browser,
Migration Toolkit) |
¡î |
| Multiple Platforms (RedHat, SuSE, Fedora,
Solaris, HPUS, AIX, SCO, FreeBSD, Mac OS,
Windows) |
¡î |
|
Examining
MySQL Performance and Scalability
Customers
such as Friendster serve up over
1.5 billion queries a day across 24TB of
data with MySQL. |
Los
Alamos Labs who manages 7TB of data with
MySQL |
Cox
Communications, who experiences
4 million inserts of new customer data every
2 hours |
|
Practical
Suggestions for Easy Migration from Oracle to MySQL
The figure below outlines the three
basic steps to migrate from Oracle to MySQL:
|
Fast Start
Fault Recovery
- InnoDB¿Í NDB Cluster¸¸ ÀÚµ¿ÈµÈ Crash
Recovery °¡´É
- InnoDB´Â Fast Recovery ¿É¼Ç »ç¿ë°¡´É
- ±âŸ ½ºÅ丮Áö ¿£ÁøÀÇ °æ¿ì ¹é¾÷°ú ¹ÙÀ̳ʸ® ·Î±×¸¦ ÀÌ ¿ëÇÏ¿© ¼öµ¿À¸·Î º¹±¸ ÇÏ¿©¾ß
ÇÔ
- Mysqlbinlog À¯Æ¿¸®Æ¼¸¦ ÀÌ¿ëÇÏ¿© ƯÁ¤ ½ÃÁ¡À¸·ÎÀÇ º¹±¸ °¡´É
|
ÆÄƼ¼Å´× Å×À̺í
- MySQLÀº ÆÄƼ¼Å´× Å×À̺íÀÇ ±âº»ÀûÀÎ ´Ü°è·Î½á Merge
½ºÅ丮Áö ¿£ÁøÀ» Á¦°ø
- Merge ½ºÅ丮Áö ¿£ÁøÀº µ¿ÀÏÇÑ Ä÷³°ú À妽º¸¦ °¡Áø MyISAMÅ×À̺íÀ» ÇϳªÀÇ
°¡»ó Å×À̺í·Î¼ »ç¿ë°¡´É
- Select¿Í Insert°¡ °¡´ÉÇϳª InsertÀÇ °æ¿ì °¡»ó Å×ÀÌ ºí¿¡ Æ÷ÇԵǴÂ
ù¹øÂ° ¶Ç´Â ¸¶Áö¸· Å×À̺íÀ» ÁöÁ¤ÇÏ¿©¼ ¸¸ °¡´É
|
DB Link
- MySQL 5.0¿¡¼ »õ·Î µµÀÔµÈ Federated ½ºÅ丮Áö
¿£ ÁøÀÌ À¯»çÇÑ ¿ªÇÒÀ» ¼öÇà
- ¿ø°Ý¿¡ À§Ä¡ÇÑ µ¥ÀÌÅͺ£À̽ºÀÇ Å×À̺íÀ» ·ÎÄà Å×À̺í°ú °°ÀÌ »ç¿ë°¡´É
- SQL¹®À» ¿ø°Ý µ¥ÀÌÅͺ£À̽º¿¡ Àü´ÞÇÏ¿© °á°ú¸¦ ¾ò¾î¿À ´Â ¹æ½ÄÀ¸·Î½á Æ®·£Àè¼ÇÀÌ ºÒ°¡´ÉÇϸç
ó¸® ÈÄ ·ÎÄ÷ΠÀü¼ÛµÇ´Â µ¿¾È ¿ø°Ý µ¥ÀÌÅͺ£À̽º°¡ º¯°æµÈ´Ù¸é
º¯°æµÇ Áö ¾ÊÀº µ¥ÀÌÅ͸¦ °¡Á®¿À°ÔµÉ À§Ç輺ÀÌ ÀÖ´Ù.
- Â÷±â¹öÀü¿¡¼´Â Æ®·£Àè¼ÇÀÌ Áö¿øµÉ ¿¹Á¤ |
Cursor
- MySQLÀº ¼¹ö»çÀ̵å Ä¿¼¸¸À» Áö¿ø
- MySQLÀÌ Áö¿øÇÏ´Â Ä¿¼ ±â´ÉÀº ¾ÆÁ÷ °£´ÜÇÑ ¼öÁØÀ̸ç read-only,
- non-scrollingÀÌ¸ç ¾÷µ¥ÀÌÆ®°¡ ºÒ°¡´É
|
PL/SQL
°ú Oracle ÇÁ·Î±×·¡¹Ö
- MySQLÀº ÀÚüÀûÀÎ ÇÁ·Î±×·¡¹Ö ºÒ°¡´É
- UDF(User Defined Function)À» »ç¿ëÇÏ¿© ±â´É Ãß°¡ °¡´É
- C·Î ÇÁ·Î±×·¡¹Ö ÇÏ¿© ÄÄÆÄÀϽÿ¡ Ãß°¡ÇÏ¿©¾ß Çϸç Ãß°¡ µÉ°æ¿ì ³×ÀÌÆ¼ºê ÇÔ¼ö¿Í °°ÀÌ
»ç¿ë°¡´É
- ÇÁ·Î±×·¡¹ÖÀÌ ¾î·Á¿ö Àß »ç¿ëµÇÁö ¾ÊÀ¸¸ç UDF¸¸ °è¹ß ÇÏ´Â ¼µå ÆÄƼ ¾÷ü°¡ ÀÖ½¿
|
Replication
- Replication ÀÚü ±â´ÉÀº MySQL¿ª½Ã ¾ÈÁ¤È
´Ü°è
- ¸ÖƼ ¸¶½ºÅÍ ¸®Çø®ÄÉÀ̼ÇÀÌ °¡´ÉÇϳª ¾ÆÁ÷ Row ·¹º§ ¸®Çø®ÄÉÀ̼ÇÀÌ ¾Æ´Ñ Statement
·¹º§ ¸®Çø®ÄÉÀ̼ÇÀ¸·Î Auto Incrementµî¿¡¼ ÀϾ
¼ö ÀÖ´Â ¹®Á¦¸¦ ÇÇ Çϱâ À§Çؼ´Â °¢°¢ÀÇ Master¿¡ Auto Increment ¿É¼ÇÀ»
ÁÖ¾î¾ß ÇÔ |
Oracle
RAC
- MySQL ÀÚüÀûÀ¸·Î´Â ¸Þ¸ð¸® ±â¹Ý Ŭ·¯½ºÅ͸¸À» Á¦°ø
- ½ÇÁ¦ RAC¿Í ºñ½ÁÇÑ µð½ºÅ© ±â¹Ý Ŭ·¯½ºÅÍ´Â Continuent¶ó´Â ¼µå ÆÄƼ¾÷üÀÇ
¼Ö·ç¼Ç »ç¿ë
-> MySQL 5.1.x Cluster¡¦
- Oracle RAC¿Í °°ÀÌ ÇϳªÀÇ °øÀ¯ ½ºÅ丮Áö¸¦ »ç¿ëÇÏ´Â ¹æ½ÄÀÌ ¾Æ´Ï¸ç ¸Þ¸ð¸® Ŭ·¯½ºÅÍ¿Í
µð½ºÅ© ±â¹Ý Ŭ·¯½ºÅÍ ¸ðµÎ ³»ºÎÀûÀÎ ¸®Çø®ÄÉÀÌ¼Ç ¿£ÁøÀ»
»ç¿ëÇÏ´Â ¹æ½ÄÀÓ
|
DBMS Comparison
| |
MS-SQL |
Oracle Database
|
MySQL 5.0 |
| Number
of Processors |
1 |
1 |
Limited only by OS |
| Max Database Size |
4 GB |
4 GB |
65+ GB per table |
| Max RAM |
1 GB |
1 GB |
Limited only by OS |
| OS Availability |
Windows |
Windows; Linux |
Windows; Linux; BSD; Solaris; others |
| Upgradable |
Yes |
Yes |
Yes |
| Included GUI Management
Tool |
No, available |
Yes; Web based |
No; third party available |
| 64-Bit Support |
separately |
No |
Yes |
| Support for Stored
Procedures |
Yes |
Yes |
Yes |
| Support for Views |
Yes |
Yes |
Yes |
| Support for Triggers |
Yes |
Yes |
Yes |
| Support for Replication |
Yes |
Yes; undocumented |
Yes |
| Support for XML |
Yes |
No |
Yes |
| Auto Tuning |
Yes |
No |
No |
| Automated Scheduling |
No |
Yes |
OS support
(cron, scheduled tasks, etc.) |
| Technical Support
Available |
Yes |
No |
Yes |
|
| |
|
| |
| |
|
| |
| |
|
|
|
|