* °³¿ä
MySQL DB¸¦ ¿¬µ¿ÇÏ¿© Query Designer¿¡¼ ODI¸¦ ÀÛ¼ºÇÏ´Â ¹æ¹ýÀ» ¾Ë¾Æº¾´Ï´Ù.
* »ó¼¼ ¼³¸í
OZÁ¦Ç°¿¡¼´Â MySQL DB¿Í ¿¬µ¿ÇÏ¿© DataÀÇ »ç¿ëÀÌ °¡´ÉÇϵµ·Ï Áö¿øÇÏ°í ÀÖ½À´Ï´Ù.
´Ù¸¥ Database Á¦Ç°±ºÀÇ »ç¿ë¿¡¼¿Í ¸¶Âù°¡Áö·Î DB¸¦ ÀÌ¿ëÇϱâ À§Çؼ´Â ´ÙÀ½°ú °°ÀÌ ODI¸¦ ÀÛ¼ºÇؾßÇÕ´Ï´Ù.
* ÀϹÝÀûÀÎ ¿¬µ¿¹æ¹ý
1. µ¥ÀÌÅͺ£À̽º º¥´õ À̸§ÀÇ ¼±ÅÃ
µ¥ÀÌÅͺ£À̽º ¿¬°á Á¤º¸ Ãß°¡ Dialog¿¡¼ µ¥ÀÌÅͺ£À̽º º¥´õ À̸§À» Ç¥½ÃÇÏ´Â ComboBox¿¡¼ [User-defined]¸¦ ¼±ÅÃÇÕ´Ï´Ù.
MySQL, FireBirdµîÀÇ JDBC¸¦ ÀÌ¿ëÇÏ¿© ¿¬µ¿ÇÏ´Â ±º¼Ò DBÀÇ °æ¿ì ¹Ýµå½Ã µ¥ÀÌÅͺ£À̽º º¥´õ À̸§À» ´ÙÀ½°ú °°ÀÌ [User-defined]·Î ¼±ÅÃÇØ¾ß ÇÕ´Ï´Ù.
2. JDBCÁ¤º¸ ¼³Á¤
Query Designer¿¡¼ MySQL server¿¡ Á¢¼ÓÇϱâ À§ÇØ »ç¿ëÇÒ JDBC Driver ¹× MySQL serverÀÇ URLÀ» ´ÙÀ½°ú °°ÀÌ ¼³Á¤ÇÕ´Ï´Ù.
MySQL ver5.x¸¦ ¿¬µ¿ÇÏ´Â °æ¿ì C:\Program Files\FORCS\OZ XStudio\OZ Query Designer 3.5\UniversalDriver\mysql.jar fileÀ» ver.5.x¿¡ ¸Â´Â driver·Î º¯°æÇÏ´Â °ÍÀ» ±ÇÀåÇÕ´Ï´Ù.
3. MyQL DB serverÀÇ Á¢¼Ó ID, PasswordÀÇ ÀÔ·Â
MySQL DB server¿¡ Á¢¼Ó°¡´ÉÇÑ ID ¹× Password¸¦ ´ÙÀ½°ú °°ÀÌ ÀÔ·ÂÇÕ´Ï´Ù.
4. MySQL DB¿¡¼ Query
À§ÀÇ 1 ~ 3 ´Ü°è¿¡ ¼³Á¤ÇÑ Á¤º¸°¡ ¹Ù¸£´Ù¸é Query Designer¿Í MySQL DB´Â Á¤»óÀûÀ¸·Î ¿¬µ¿µË´Ï´Ù.
´ÙÀ½ÀÇ image¿¡¼´Â Query Designer¿Í MySQL DBÀÇ ¿¬µ¿ÈÄ MySQL DBÀÇ account table¿¡¼ data¸¦ ÃëµæÇÑ °á°ú¸¦ Ç¥½ÃÇÕ´Ï´Ù.
* db.propertiesÀÇ Á¤ÀǸ¦ ÀÌ¿ëÇØ Alias·Î Á¢¼ÓÇÏ´Â ¹æ¹ý
MySQL DBµµ ´Ù¸¥ DatabaseÁ¦Ç°±º°ú ¸¶Âù°¡Áö·Î dbpropeties file¿¡ Á¤ÀÇÇÑ Á¤º¸¸¦ ÀÌ¿ëÇØ Á¢¼ÓÇÒ ¼ö ÀÖ½À´Ï´Ù.
1. »çÀü¿¡ db.properties file¿¡ ´ÙÀ½°ú °°ÀÌ MySQL DBÀÇ Á¢¼Ó Á¤º¸¸¦ Á¤ÀÇÇÕ´Ï´Ù.
# MySQL mysql.vendor=USER mysql.driver=com.mysql.jdbc.Driver mysql.url=jdbc:mysql://127.0.0.1:3306/mysql mysql.user=root mysql.password=xxxx |
2. AilasÁ¤º¸ ¼³Á¤
µ¥ÀÌÅͺ£À̽º ¿¬°á Á¤º¸ Ãß°¡ Dialog¿¡¼ [DB ¾Ù¸®¾î½º]¸¦ checkÇÏ°í db.properties file¿¡ Á¤ÀÇÇÑ MySQL DBÀÇ Alias¸¦ ¼³Á¤ÇÕ´Ï´Ù
3. ¾Ù¸®¾î½º Á¤º¸ ÆÄÀÏÀÇ ¼³Á¤
MySQL DBÀÇ Alias·Î ¼³Á¤ÇÑ mysqlÀÇ Á¤º¸¸¦ db.proeprties file·ÎºÎÅÍ ÃëµæÇÒ ¼ö ÀÖµµ·Ï db.proeprties fileÀ» ¼±ÅÃÇÏ°í [È®ÀÎ] ¹öÆ®À» ´·¯ MySQL DB¿¡ Á¢¼ÓÇÕ´Ï´Ù.
* ÷ºÎÀÚ·á ¼³¸í
mysql.jar : MySQL DB ver.5.x¿ë JDBC Driver file
|