SQL Language (MOSC)

MOSC Banner

External Table Turkish character problem

edited Nov 21, 2012 11:12PM in SQL Language (MOSC) 5 commentsAnswered
Hello AllI try to create externar table.table is created but there is a problem about fetch data from table.summary of my process;

1)I have created directory as test_dir

2)Here is external table sql code

create table test(

bilgi                          CHAR(13)      NULL

)

organization external (

  default directory yts2dcs

  access parameters (

    records delimited by newline

    BADFILE 'emre.bad'

    LOGFILE 'emre.log'

    fields (

               bilgi                  position(1046:1059) CHAR(13)

          )

    )

    location ('emre.txt')

)

reject limit unlimited

;

3)Select * from test;
result;
BILGI
------------------------
                       KAH

but should be following

BILGI
------------------------
 KAHRAMANMANARAŞ



Also here is txt file content

101432            0    1422              20221 6628217             6628217             RAMAZAN                                                                                                                                                                                                                                                        SÜRMELİ                                                                                                                                                                                                                                                                                                                                                                                APARTMAN GÖREVLİSİ/E                                                                      90                            49294561538         EMİNE               SÜLEYMAN            TÜYLÜ                                   GÖKSUN              1980081002                  1                   1                   C09136904           (1046)KAHRAMANMARAŞ(1059)       GÖKSUN                        KAVŞUT                                  0035      00041     0095      GÖKSUN                        2004011349294561538                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center