oracle - SQL Loader : Not enough values -


need debugging. table structure below :

respond_by_date                timestamp(6)   , description                    varchar2(300)  , axbcrule               number(4)      not null, segment                        varchar2(100)  , assign_unique_balcon           varchar2(1)    , balcon_offer_type              varchar2(3)    , apr                            varchar2(10)   , fee_yn                         varchar2(1)    , fee_percent                    varchar2(10)   , fee_amount_max                 varchar2(10)   , balcon_duration_type           varchar2(7)    , balcon_duration                varchar2(3)    , balcon_cap_amount              varchar2(10)   , interim_apr                    varchar2(10)   , interim_duration_type          varchar2(7)    , interim_duration               number(3)      , balcon_id                      number(7)      , channel_id              varchar2(7)   not null , subchannel_id           varchar2(7)   not null , program_name            varchar2(45)   not null, date_initiated          timestamp(6)   not null, error_message                  varchar2(1024) , status                         number(2)      , user_code                      varchar2(10)   , warning_message                varchar2(1024) , balcon_offer_sequence   number(2)      not null, campaign_tag                   varchar2(3)  

it has total of 27fields , used below ctl file load it:

options (load=1) load data          infile *     replace table test_table       (respond_by_date        sysdate, description            constant   'test',           axbcrule               constant   '011',         segment                constant   '12',          assign_unique_balcon   constant   '1',           balcon_offer_type      constant   '1',           apr                    constant   '12',          fee_yn                 constant   'y',           fee_percent            constant   '009',         fee_amount_max         constant   '12',           balcon_duration_type   constant   '1',           balcon_duration        constant   '12',          balcon_cap_amount      constant   '0123',        interim_apr            constant   '1',          interim_duration_type  constant   'n',           interim_duration       constant   '1',           balcon_id              constant   '1',           channel_id       constant '1',           subchannel_id          constant   '1',           program_name           constant   '1',           date_initiated         sysdate,           error_message          constant   '1',           status                 constant   '1' ,          user_code              constant   '1',           warning_message        constant   '1',           balcon_offer_sequence  constant   '1', campaign_tag constant   '1' ) 

when try load test data table, facing below error :

record 1: rejected - error on table "schema"."test_table".  ora-00947: not enough values 

kindly me out. in advance.

change control file entries timestamp columns like:

respond_by_date expression "cast(sysdate timestamp)" 

a date , timestamp not same datatypes. need convert sysdate timestamp.

ora-00947 being raised when process tries put sysdate timestamp. sysdate not have same fractional seconds component timestamp requires.


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -