sql loader¸¦ ÀÌ¿ëÇÑ mssql -> oracle µ¥ÀÌÅÍ ÀÌÀü
ÀÛ¼ºÀÚ °ü¸®ÀÚ ÀÛ¼º½Ã°£ 2005-03-18 11:40:26
 

sql loader¸¦ ÀÌ¿ëÇÏ½Ã¸é µË´Ï´Ù..

mssqlÀÇ ³»¿ëÀ» textÈ­ÀÏ·Î expÇÏ½Ã°í±¸¿©..

>sqlload scott/tiger control=sample.ctl data=sample.dat ÀÌ·¸°Ô ÇØÁÖ½Ã¸é µË´Ï´Ù...


ctlÈ­ÀÏÀº ¸¸µå¼Å¾ßÇϴµ¥...°£´ÜÇÕ´Ï´Ù..

controlÈ­ÀÏÀÇ ³»¿ëÀº ´ÙÀ½°ú °°½À´Ï´Ù..

--------------------------------

load data Á¦¾îÈ­ÀÏÀÇ ¼±µÎ

infile sample.dat ¿ÜºÎÈ­ÀÏÀ» ÁöÁ¤.

replace Å×ÀÌºí¿¡ µ¥ÀÌŸ ³Ö´Â ¹æ¹ý ÁöÁ¤

into table TABLE_NAME µ¥ÀÌŸ¸¦ ·ÎµåÇÏ´Â Å×À̺íÀ» ÁöÁ¤

field terminated by ',' µ¥ÀÌŸ ÇʵåÀÇ Á¾°á¹®ÀÚ ÁöÁ¤

(a integer external, Å×À̺íÀÇ ¿­, ¿ÜºÎµ¥ÀÌŸ È­ÀÏÀÇ µ¥ÀÌŸ ÇüÀ» ÁöÁ¤ b char)

-----------------------
»ùÇ÷ΠÇϳª º¸¿©µå¸®¸é...
-----------------------------

load data

infile 'hotel_user.csv'

badfile 'fix_data.bad'

discardfile 'fix_data.dsc'into table hotel

fields terminated by ","

(

USER_ID,\t

USER_PASS,

USER_PASS_Q,\t

USER_PASS_A\t

)

-----------------------

ÀÌ·¸°Ô ÇÏ¸é µË´Ï´Ù...µ¥ÀÌŸ°¡ ¸¹´Ù¸é..´õ¿í ±ÇÇÏ°í ½ÍÀº ¹æ¹ýÀÔ´Ï´Ù..


¸ñ·Ï | ÀÔ·Â | ¼öÁ¤ | ´äº¯ | »èÁ¦