sqlldr question loads data insert char to a null value.

I want to load the 'o' for each input character null column sub-account. Thank you.

Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - Production
PL/SQL Release 11.1.0.7.0 - Production
CORE Production 11.1.0.7.0
AMT for 32-bit Windows: Version 11.1.0.7.0 - Production
NLSRTL Version 11.1.0.7.0 - Production


DOWNLOAD THE DATA
INFILE ' \\WIFI\WEBSITE\INCOMING\ST\AP000. TXT' "STR"\r\n"
ADD
IN THE INCOMING_ORDERS TABLE
TRAILING NULLCOLS

(

account POSITION (1:5) tank,
subaccount POSITION (7:7) tank,
name POSITION(11:38) char,
chg_nbr POSITION (40:42) tank,
whole POSITION (44:48) order_qty external,
UI POSITION(50:54) char,
zip POSITION (56:60) tank,
ORDER_DATE sysdate




)
LOAD DATA
INFILE '\\WIFI\WEBSITE\INCOMING\ST\AP000.TXT' "STR '\r\n'"
APPEND
INTO TABLE INCOMING_ORDERS
TRAILING NULLCOLS

(

account POSITION(1:5) char,
subaccount POSITION(7:7) char "nvl(:subaccount,'O')",
nom POSITION(11:38) char,
chg_nbr POSITION(40:42) char,
order_qty POSITION(44:48) integer external,
ui POSITION(50:54) char,
zip POSITION(56:60) char ,
order_date sysdate

)

Tags: Database

Similar Questions

  • number and date of type storage and null values

    Hi, I read that the date type consumes 7 bytes on the disc when it is preserved.

    It is also true for the value null in date type or the space for a null value in the column of type date is then reduced and equal to 1 byte?

    What about nulls (x) number?

    How can I check to make sure?

    Thank you

    Columns of NULL values using either no space (if they are physically at the end of the line), or 1 byte if not.

  • Sqlldr can load data where datafilename contains single quotes?

    Hello

    The data file I want to load with SQLLDR contains single quotes as a character in the name.
    Ex: The name of file is like:

    "* / home/user/datastore/a demo'file_with_space.csv* '.

    There is a single quotes and also a space in the name of the file.

    -----

    If I use it as a character escape as follows:

    data = / home/user/datastore/a\ demo\'file_with_space.csv

    I get the following error:
    LRM-00111: no closing quote for value "file_with_space.csv".

    SQL * Loader: Release 10.2.0.1.0 - Production on Tue Dec 29 11:41:08 2009

    Copyright (c) 1982, 2005, Oracle. All rights reserved.

    SQL * Loader-100: syntax on the command line error

    -----

    If I use the double quotes from the inside (with and without the escape characters also) it crashes as
    data = "" / home/user/datastore/a demo'file_with_space.csv ' "



    Is it possible to load this file.

    Thank you
    Deeptarka

    Hello

    Why cannot you rename the file that is the best way to solve the problem instead of wasting time.

    -Pavan Kumar N
    Oracle 9i / 10g - OCP
    http://oracleinternals.blogspot.com/

  • Use Insert all but want only to insert records for non-null values

    Hi, New here and could use some help with my sql statement.  I have a portfolio with denormalized data table that has been inserted via .csv file.  It is a contract with a base, options and extensions.  I need to create a contract record, then a separate record in the table for each base/option/extension contract Details.  I use INSERT ALL so I maintain the CONTRACT_ID for the secondary table.  My problem is that my statement puts a line in the table of details for the null records, that I don't want.  (i.e. 123 contract has a Base, Option 1, Option 2 and Option 3, but I'm getting a line for these lines with dates more null for Option 4, Ext 1, Ext 2, Ext 3 and Ext 4).  I want to insert only when the % CTRT_STRT_DT is NOT NULL.  It will be different for each contract.  Where should I put the IS NOT NULL statement?  Here is my complete insert statement:

    -Contract data

    INSERT ALL

    IN LRTC)

    CTRT_ID,

    PRGRM_OFC_TYP_CD,

    CTRT_NME,

    CREN_DT)

    VALUES)

    CTRT_ID_SEQ. NEXTVAL,

    PRGRM_OFC_TYP_CD,

    SPLS_SRVS_DESC,

    SYSDATE)

    -Contract detail for another period of performance data

    IN CTRT_DTLS)

    CTRT_ID,

    CTRT_STAT_CD,

    CTRT_PER_NME,

    CTRT_STRT_DT,

    CTRT_END_DT,

    CTRT_CURR_AMT,

    CTRT_NO,

    CTRT_VNDR_NME,

    CREN_DT)

    VALUES)

    CTRT_ID_SEQ. NEXTVAL,

    1,

    "Other."

    OTHER_CTRT_STRT_DT,

    OTHER_CTRT_END_DT,

    OTHER_CTRT_CURR_AMT,

    CTRT_NO,

    CTRTR_NME,

    SYSDATE)

    -Contract detail data for the reference period of performance

    IN CTRT_DTLS)

    CTRT_ID,

    CTRT_STAT_CD,

    CTRT_PER_NME,

    CTRT_STRT_DT,

    CTRT_END_DT,

    CTRT_CURR_AMT,

    CTRT_NO,

    CTRT_VNDR_NME,

    CREN_DT)

    VALUES)

    CTRT_ID_SEQ. NEXTVAL,

    1,

    'Base ',.

    BASE_CTRT_STRT_DT,

    BASE_CTRT_END_DT,

    BASE_CTRT_CURR_AMT,

    CTRT_NO,

    CTRTR_NME,

    SYSDATE)

    -Data contract detail for Option 1 execution time-out

    IN CTRT_DTLS)

    CTRT_ID,

    CTRT_STAT_CD,

    CTRT_PER_NME,

    CTRT_STRT_DT,

    CTRT_END_DT,

    CTRT_CURR_AMT,

    CTRT_NO,

    CTRT_VNDR_NME,

    CREN_DT)

    VALUES)

    CTRT_ID_SEQ. NEXTVAL,

    1,

    "Option 1",

    OPT1_CTRT_STRT_DT,

    OPT1_CTRT_END_DT,

    OPT1_CTRT_CURR_AMT,

    CTRT_NO,

    CTRTR_NME,

    SYSDATE)

    -Data contract detail for Option 2 execution time-out

    IN CTRT_DTLS)

    CTRT_ID,

    CTRT_STAT_CD,

    CTRT_PER_NME,

    CTRT_STRT_DT,

    CTRT_END_DT,

    CTRT_CURR_AMT,

    CTRT_NO,

    CTRT_VNDR_NME,

    CREN_DT)

    VALUES)

    CTRT_ID_SEQ. NEXTVAL,

    1,

    'Option 2',

    OPT2_CTRT_STRT_DT,

    OPT2_CTRT_END_DT,

    OPT2_CTRT_CURR_AMT,

    CTRT_NO,

    CTRTR_NME,

    SYSDATE)

    -Data contract detail for Option 3 lead time

    IN CTRT_DTLS)

    CTRT_ID,

    CTRT_STAT_CD,

    CTRT_PER_NME,

    CTRT_STRT_DT,

    CTRT_END_DT,

    CTRT_CURR_AMT,

    CTRT_NO,

    CTRT_VNDR_NME,

    CREN_DT)

    VALUES)

    CTRT_ID_SEQ. NEXTVAL,

    1,

    'Option 3',

    OPT3_CTRT_STRT_DT,

    OPT3_CTRT_END_DT,

    OPT3_CTRT_CURR_AMT,

    CTRT_NO,

    CTRTR_NME,

    SYSDATE)

    -Data contract detail for Option 4 execution time-out

    IN CTRT_DTLS)

    CTRT_ID,

    CTRT_STAT_CD,

    CTRT_PER_NME,

    CTRT_STRT_DT,

    CTRT_END_DT,

    CTRT_CURR_AMT,

    CTRT_NO,

    CTRT_VNDR_NME,

    CREN_DT)

    VALUES)

    CTRT_ID_SEQ. NEXTVAL,

    1,

    'Option 4',

    OPT4_CTRT_STRT_DT,

    OPT4_CTRT_END_DT,

    OPT4_CTRT_CURR_AMT,

    CTRT_NO,

    CTRTR_NME,

    SYSDATE)

    -Data contract detail for Extension 1 execution time-out

    IN CTRT_DTLS)

    CTRT_ID,

    CTRT_STAT_CD,

    CTRT_PER_NME,

    CTRT_STRT_DT,

    CTRT_END_DT,

    CTRT_CURR_AMT,

    CTRT_NO,

    CTRT_VNDR_NME,

    CREN_DT)

    VALUES)

    CTRT_ID_SEQ. NEXTVAL,

    1,

    'Extension 1',

    EXT1_CTRT_STRT_DT,

    EXT1_CTRT_END_DT,

    EXT1_CTRT_CURR_AMT,

    CTRT_NO,

    CTRTR_NME,

    SYSDATE)

    -Data contract detail for Extension 2 execution time-out

    IN CTRT_DTLS)

    CTRT_ID,

    CTRT_STAT_CD,

    CTRT_PER_NME,

    CTRT_STRT_DT,

    CTRT_END_DT,

    CTRT_CURR_AMT,

    CTRT_NO,

    CTRT_VNDR_NME,

    CREN_DT)

    VALUES)

    CTRT_ID_SEQ. NEXTVAL,

    1,

    '2 Extension',

    EXT2_CTRT_STRT_DT,

    EXT2_CTRT_END_DT,

    EXT2_CTRT_CURR_AMT,

    CTRT_NO,

    CTRTR_NME,

    SYSDATE)

    -Data contract detail for Extension 3 lead time

    IN CTRT_DTLS)

    CTRT_ID,

    CTRT_STAT_CD,

    CTRT_PER_NME,

    CTRT_STRT_DT,

    CTRT_END_DT,

    CTRT_CURR_AMT,

    CTRT_NO,

    CTRT_VNDR_NME,

    CREN_DT)

    VALUES)

    CTRT_ID_SEQ. NEXTVAL,

    1,

    '3 Extension',

    EXT3_CTRT_STRT_DT,

    EXT3_CTRT_END_DT,

    EXT3_CTRT_CURR_AMT,

    CTRT_NO,

    CTRTR_NME,

    SYSDATE)

    -Data contract detail for Extension 4 execution time-out

    IN CTRT_DTLS)

    CTRT_ID,

    CTRT_STAT_CD,

    CTRT_PER_NME,

    CTRT_STRT_DT,

    CTRT_END_DT,

    CTRT_CURR_AMT,

    CTRT_NO,

    CTRT_VNDR_NME,

    CREN_DT)

    VALUES)

    CTRT_ID_SEQ. NEXTVAL,

    1,

    '4 Extension',

    EXT4_CTRT_STRT_DT,

    EXT4_CTRT_END_DT,

    EXT4_CTRT_CURR_AMT,

    CTRT_NO,

    CTRTR_NME,

    SYSDATE)

    SELECT

    PRGRM_OFC_TYP_CD,

    SPLS_SRVS_DESC,

    CTRT_NO,

    CTRTR_NME,

    To_date(PER_OF_PFRM_OTHER_ST_DT,'MM/DD/YYYY') as OTHER_CTRT_STRT_DT,

    To_date(PER_OF_PFRM_OTHER_END_DT,'MM/DD/YYYY') as OTHER_CTRT_END_DT,

    CUR_VAL_BY_POP_OTHER_AMT as OTHER_CTRT_CURR_AMT,

    To_date(PER_OF_PFRM_BASE_ST_DT,'MM/DD/YYYY') as BASE_CTRT_STRT_DT,

    To_date(PER_OF_PFRM_BASE_END_DT,'MM/DD/YYYY') as BASE_CTRT_END_DT,

    CUR_VAL_BY_POP_BASE_AMT as BASE_CTRT_CURR_AMT,

    To_date(PER_OF_PFRM_OPT1_ST_DT,'MM/DD/YYYY') as OPT1_CTRT_STRT_DT,

    To_date(PER_OF_PFRM_OPT1_END_DT,'MM/DD/YYYY') as OPT1_CTRT_END_DT,

    CUR_VAL_BY_POP_OPT1_AMT as OPT1_CTRT_CURR_AMT,

    To_date(PER_OF_PFRM_OPT2_ST_DT,'MM/DD/YYYY') as OPT2_CTRT_STRT_DT,

    To_date(PER_OF_PFRM_OPT2_END_DT,'MM/DD/YYYY') as OPT2_CTRT_END_DT,

    CUR_VAL_BY_POP_OPT2_AMT as OPT2_CTRT_CURR_AMT,

    To_date(PER_OF_PFRM_OPT3_ST_DT,'MM/DD/YYYY') as OPT3_CTRT_STRT_DT,

    To_date(PER_OF_PFRM_OPT3_END_DT,'MM/DD/YYYY') as OPT3_CTRT_END_DT,

    CUR_VAL_BY_POP_OPT3_AMT as OPT3_CTRT_CURR_AMT,

    To_date(PER_OF_PFRM_OPT4_ST_DT,'MM/DD/YYYY') as OPT4_CTRT_STRT_DT,

    To_date(PER_OF_PFRM_OPT4_END_DT,'MM/DD/YYYY') as OPT4_CTRT_END_DT,

    CUR_VAL_BY_POP_OPT4_AMT as OPT4_CTRT_CURR_AMT,

    To_date(PER_OF_PFRM_EXT1_ST_DT,'MM/DD/YYYY') as EXT1_CTRT_STRT_DT,

    To_date(PER_OF_PFRM_EXT1_END_DT,'MM/DD/YYYY') as EXT1_CTRT_END_DT,

    CUR_VAL_BY_POP_EXT1_AMT as EXT1_CTRT_CURR_AMT,

    To_date(PER_OF_PFRM_EXT2_ST_DT,'MM/DD/YYYY') as EXT2_CTRT_STRT_DT,

    To_date(PER_OF_PFRM_EXT2_END_DT,'MM/DD/YYYY') as EXT2_CTRT_END_DT,

    CUR_VAL_POP_EXT2_AMT as EXT2_CTRT_CURR_AMT,

    To_date(PER_OF_PFRM_EXT3_ST_DT,'MM/DD/YYYY') as EXT3_CTRT_STRT_DT,

    To_date(PER_OF_PFRM_EXT3_END_DT,'MM/DD/YYYY') as EXT3_CTRT_END_DT,

    CUR_VAL_BY_POP_EXT3_AMT as EXT3_CTRT_CURR_AMT,

    To_date(PER_OF_PFRM_EXT4_ST_DT,'MM/DD/YYYY') as EXT4_CTRT_STRT_DT,

    To_date(PER_OF_PFRM_EXT4_END_DT,'MM/DD/YYYY') as EXT4_CTRT_END_DT,

    CUR_VAL_BY_POP_EXT4_AMT as EXT4_CTRT_CURR_AMT

    OF CTRT_HLDG A, PRGRM_OFC_TYP_LKUP B

    WHERE UPPER (A.OFC_NME) = UPPER (B.PRGRM_OFC_TYP_NME);

    Thanks for any help.

    Chris

    You're close.  Basically, you add one when befire each Inserts lines.  Something like:

    INSERT ALL

    When the ctrt_id is not null then

    IN LRTC (PRGRM_OFC_TYP_CD, CTRT_NME, CTRT_ID, CREN_DT)

    VALUES (CTRT_ID_SEQ. NEXTVAL, PRGRM_OFC_TYP_CD,

    SPLS_SRVS_DESC, SYSDATE)

    -Contract detail for another period of performance data

    When the OTHER_CTRT_STRT_DT is not null then

    IN (CTRT_ID, CTRT_STAT_CD, CTRT_PER_NME, CTRT_DTLS

    CTRT_STRT_DT, CTRT_END_DT, CTRT_CURR_AMT,

    CTRT_NO, CTRT_VNDR_NME, CREN_DT)

    VALUES (CTRT_ID_SEQ. NEXTVAL, 1, 'Other', OTHER_CTRT_STRT_DT,

    OTHER_CTRT_END_DT, OTHER_CTRT_CURR_AMT,

    CTRT_NO, CTRTR_NME, SYSDATE)

    -Contract detail data for the reference period of performance

    When the BASE_CTRT_STRT_DT is not null then

    IN (CTRT_ID, CTRT_STAT_CD, CTRT_PER_NME, CTRT_DTLS

    CTRT_STRT_DT, CTRT_END_DT, CTRT_CURR_AMT,

    CTRT_NO, CTRT_VNDR_NME, CREN_DT)

    VALUES (CTRT_ID_SEQ. NEXTVAL, 1, 'Base', BASE_CTRT_STRT_DT,

    BASE_CTRT_END_DT, BASE_CTRT_CURR_AMT, CTRT_NO,

    CTRTR_NME, SYSDATE)

    You may need to adjust my predicates, but it should give you the idea.

    John

  • Question to load data using sql loader in staging table, and then in the main tables!

    Hello

    I'm trying to load data into our main database table using SQL LOADER. data will be provided in separate pipes csv files.

    I have develop a shell script to load the data and it works fine except one thing.

    Here are the details of a data to re-create the problem.

    Staging of the structure of the table in which data will be filled using sql loader

    create table stg_cmts_data (cmts_token varchar2 (30), CMTS_IP varchar2 (20));

    create table stg_link_data (dhcp_token varchar2 (30), cmts_to_add varchar2 (200));

    create table stg_dhcp_data (dhcp_token varchar2 (30), DHCP_IP varchar2 (20));

    DATA in the csv file-

    for stg_cmts_data-

    cmts_map_03092015_1.csv

    WNLB-CMTS-01-1. 10.15.0.1

    WNLB-CMTS-02-2 | 10.15.16.1

    WNLB-CMTS-03-3. 10.15.48.1

    WNLB-CMTS-04-4. 10.15.80.1

    WNLB-CMTS-05-5. 10.15.96.1

    for stg_dhcp_data-

    dhcp_map_03092015_1.csv

    DHCP-1-1-1. 10.25.23.10, 25.26.14.01

    DHCP-1-1-2. 56.25.111.25, 100.25.2.01

    DHCP-1-1-3. 25.255.3.01, 89.20.147.258

    DHCP-1-1-4. 10.25.26.36, 200.32.58.69

    DHCP-1-1-5 | 80.25.47.369, 60.258.14.10

    for stg_link_data

    cmts_dhcp_link_map_0309151623_1.csv

    DHCP-1-1-1. WNLB-CMTS-01-1,WNLB-CMTS-02-2

    DHCP-1-1-2. WNLB-CMTS-03-3,WNLB-CMTS-04-4,WNLB-CMTS-05-5

    DHCP-1-1-3. WNLB-CMTS-01-1

    DHCP-1-1-4. WNLB-CMTS-05-8,WNLB-CMTS-05-6,WNLB-CMTS-05-0,WNLB-CMTS-03-3

    DHCP-1-1-5 | WNLB-CMTS-02-2,WNLB-CMTS-04-4,WNLB-CMTS-05-7

    WNLB-DHCP-1-13 | WNLB-CMTS-02-2

    Now, after loading these data in the staging of table I have to fill the main database table

    create table subntwk (subntwk_nm varchar2 (20), subntwk_ip varchar2 (30));

    create table link (link_nm varchar2 (50));

    SQL scripts that I created to load data is like.

    coil load_cmts.log

    Set serveroutput on

    DECLARE

    CURSOR c_stg_cmts IS SELECT *.

    OF stg_cmts_data;

    TYPE t_stg_cmts IS TABLE OF stg_cmts_data % ROWTYPE INDEX BY pls_integer;

    l_stg_cmts t_stg_cmts;

    l_cmts_cnt NUMBER;

    l_cnt NUMBER;

    NUMBER of l_cnt_1;

    BEGIN

    OPEN c_stg_cmts.

    Get the c_stg_cmts COLLECT in BULK IN l_stg_cmts;

    BECAUSE me IN l_stg_cmts. FIRST... l_stg_cmts. LAST

    LOOP

    SELECT COUNT (1)

    IN l_cmts_cnt

    OF subntwk

    WHERE subntwk_nm = l_stg_cmts (i) .cmts_token;

    IF l_cmts_cnt < 1 THEN

    INSERT

    IN SUBNTWK

    (

    subntwk_nm

    )

    VALUES

    (

    l_stg_cmts (i) .cmts_token

    );

    DBMS_OUTPUT. Put_line ("token has been added: ' |") l_stg_cmts (i) .cmts_token);

    ON THE OTHER

    DBMS_OUTPUT. Put_line ("token is already present'");

    END IF;

    WHEN l_stg_cmts EXIT. COUNT = 0;

    END LOOP;

    commit;

    EXCEPTION

    WHILE OTHERS THEN

    Dbms_output.put_line ('ERROR' |) SQLERRM);

    END;

    /

    output

    for dhcp


    coil load_dhcp.log

    Set serveroutput on

    DECLARE

    CURSOR c_stg_dhcp IS SELECT *.

    OF stg_dhcp_data;

    TYPE t_stg_dhcp IS TABLE OF stg_dhcp_data % ROWTYPE INDEX BY pls_integer;

    l_stg_dhcp t_stg_dhcp;

    l_dhcp_cnt NUMBER;

    l_cnt NUMBER;

    NUMBER of l_cnt_1;

    BEGIN

    OPEN c_stg_dhcp.

    Get the c_stg_dhcp COLLECT in BULK IN l_stg_dhcp;

    BECAUSE me IN l_stg_dhcp. FIRST... l_stg_dhcp. LAST

    LOOP

    SELECT COUNT (1)

    IN l_dhcp_cnt

    OF subntwk

    WHERE subntwk_nm = l_stg_dhcp (i) .dhcp_token;

    IF l_dhcp_cnt < 1 THEN

    INSERT

    IN SUBNTWK

    (

    subntwk_nm

    )

    VALUES

    (

    l_stg_dhcp (i) .dhcp_token

    );

    DBMS_OUTPUT. Put_line ("token has been added: ' |") l_stg_dhcp (i) .dhcp_token);

    ON THE OTHER

    DBMS_OUTPUT. Put_line ("token is already present'");

    END IF;

    WHEN l_stg_dhcp EXIT. COUNT = 0;

    END LOOP;

    commit;

    EXCEPTION

    WHILE OTHERS THEN

    Dbms_output.put_line ('ERROR' |) SQLERRM);

    END;

    /

    output

    for link -.

    coil load_link.log

    Set serveroutput on

    DECLARE

    l_cmts_1 VARCHAR2 (4000 CHAR);

    l_cmts_add VARCHAR2 (200 CHAR);

    l_dhcp_cnt NUMBER;

    l_cmts_cnt NUMBER;

    l_link_cnt NUMBER;

    l_add_link_nm VARCHAR2 (200 CHAR);

    BEGIN

    FOR (IN) r

    SELECT dhcp_token, cmts_to_add | ',' cmts_add

    OF stg_link_data

    )

    LOOP

    l_cmts_1: = r.cmts_add;

    l_cmts_add: = TRIM (SUBSTR (l_cmts_1, 1, INSTR (l_cmts_1, ',') - 1));

    SELECT COUNT (1)

    IN l_dhcp_cnt

    OF subntwk

    WHERE subntwk_nm = r.dhcp_token;

    IF l_dhcp_cnt = 0 THEN

    DBMS_OUTPUT. Put_line ("device not found: ' |") r.dhcp_token);

    ON THE OTHER

    While l_cmts_add IS NOT NULL

    LOOP

    l_add_link_nm: = r.dhcp_token |' _TO_' | l_cmts_add;

    SELECT COUNT (1)

    IN l_cmts_cnt

    OF subntwk

    WHERE subntwk_nm = TRIM (l_cmts_add);

    SELECT COUNT (1)

    IN l_link_cnt

    LINK

    WHERE link_nm = l_add_link_nm;

    IF l_cmts_cnt > 0 AND l_link_cnt = 0 THEN

    INSERT INTO link (link_nm)

    VALUES (l_add_link_nm);

    DBMS_OUTPUT. Put_line (l_add_link_nm |) » '||' Has been added. ") ;

    ELSIF l_link_cnt > 0 THEN

    DBMS_OUTPUT. Put_line (' link is already present: ' | l_add_link_nm);

    ELSIF l_cmts_cnt = 0 then

    DBMS_OUTPUT. Put_line (' no. CMTS FOUND for device to create the link: ' | l_cmts_add);

    END IF;

    l_cmts_1: = TRIM (SUBSTR (l_cmts_1, INSTR (l_cmts_1, ',') + 1));

    l_cmts_add: = TRIM (SUBSTR (l_cmts_1, 1, INSTR (l_cmts_1, ',') - 1));

    END LOOP;

    END IF;

    END LOOP;

    COMMIT;

    EXCEPTION

    WHILE OTHERS THEN

    Dbms_output.put_line ('ERROR' |) SQLERRM);

    END;

    /

    output

    control files -

    DOWNLOAD THE DATA

    INFILE 'cmts_data.csv '.

    ADD

    IN THE STG_CMTS_DATA TABLE

    When (cmts_token! = ") AND (cmts_token! = 'NULL') AND (cmts_token! = 'null')

    and (cmts_ip! = ") AND (cmts_ip! = 'NULL') AND (cmts_ip! = 'null')

    FIELDS TERMINATED BY ' |' SURROUNDED OF POSSIBLY "" "

    TRAILING NULLCOLS

    ('RTRIM (LTRIM (:cmts_token))' cmts_token,

    cmts_ip ' RTRIM (LTRIM(:cmts_ip)) ")". "

    for dhcp.


    DOWNLOAD THE DATA

    INFILE 'dhcp_data.csv '.

    ADD

    IN THE STG_DHCP_DATA TABLE

    When (dhcp_token! = ") AND (dhcp_token! = 'NULL') AND (dhcp_token! = 'null')

    and (dhcp_ip! = ") AND (dhcp_ip! = 'NULL') AND (dhcp_ip! = 'null')

    FIELDS TERMINATED BY ' |' SURROUNDED OF POSSIBLY "" "

    TRAILING NULLCOLS

    ('RTRIM (LTRIM (:dhcp_token))' dhcp_token,

    dhcp_ip ' RTRIM (LTRIM(:dhcp_ip)) ")". "

    for link -.

    DOWNLOAD THE DATA

    INFILE 'link_data.csv '.

    ADD

    IN THE STG_LINK_DATA TABLE

    When (dhcp_token! = ") AND (dhcp_token! = 'NULL') AND (dhcp_token! = 'null')

    and (cmts_to_add! = ") AND (cmts_to_add! = 'NULL') AND (cmts_to_add! = 'null')

    FIELDS TERMINATED BY ' |' SURROUNDED OF POSSIBLY "" "

    TRAILING NULLCOLS

    ('RTRIM (LTRIM (:dhcp_token))' dhcp_token,

    cmts_to_add TANK (4000) RTRIM (LTRIM(:cmts_to_add)) ")" ""

    SHELL SCRIPT-

    If [!-d / log]

    then

    Mkdir log

    FI

    If [!-d / finished]

    then

    mkdir makes

    FI

    If [!-d / bad]

    then

    bad mkdir

    FI

    nohup time sqlldr username/password@SID CONTROL = load_cmts_data.ctl LOG = log/ldr_cmts_data.log = log/ldr_cmts_data.bad DISCARD log/ldr_cmts_data.reject ERRORS = BAD = 100000 LIVE = TRUE PARALLEL = TRUE &

    nohup time username/password@SID @load_cmts.sql

    nohup time sqlldr username/password@SID CONTROL = load_dhcp_data.ctl LOG = log/ldr_dhcp_data.log = log/ldr_dhcp_data.bad DISCARD log/ldr_dhcp_data.reject ERRORS = BAD = 100000 LIVE = TRUE PARALLEL = TRUE &

    time nohup sqlplus username/password@SID @load_dhcp.sql

    nohup time sqlldr username/password@SID CONTROL = load_link_data.ctl LOG = log/ldr_link_data.log = log/ldr_link_data.bad DISCARD log/ldr_link_data.reject ERRORS = BAD = 100000 LIVE = TRUE PARALLEL = TRUE &

    time nohup sqlplus username/password@SID @load_link.sql

    MV *.log. / log

    If the problem I encounter is here for loading data in the link table that I check if DHCP is present in the subntwk table, then continue to another mistake of the newspaper. If CMTS then left create link to another error in the newspaper.

    Now that we can here multiple CMTS are associated with unique DHCP.

    So here in the table links to create the link, but for the last iteration of the loop, where I get separated by commas separate CMTS table stg_link_data it gives me log as not found CMTS.

    for example

    DHCP-1-1-1. WNLB-CMTS-01-1,WNLB-CMTS-02-2

    Here, I guess to link the dhcp-1-1-1 with balancing-CMTS-01-1 and wnlb-CMTS-02-2

    Theses all the data present in the subntwk table, but still it gives me journal wnlb-CMTS-02-2 could not be FOUND, but we have already loaded into the subntwk table.

    same thing is happening with all the CMTS table stg_link_data who are in the last (I think here you got what I'm trying to explain).

    But when I run the SQL scripts in the SQL Developer separately then it inserts all valid links in the table of links.

    Here, she should create 9 lines in the table of links, whereas now he creates only 5 rows.

    I use COMMIT in my script also but it only does not help me.

    Run these scripts in your machine let me know if you also get the same behavior I get.

    and please give me a solution I tried many thing from yesterday, but it's always the same.

    It is the table of link log

    link is already present: dhcp-1-1-1_TO_wnlb-cmts-01-1

    NOT FOUND CMTS for device to create the link: wnlb-CMTS-02-2

    link is already present: dhcp-1-1-2_TO_wnlb-cmts-03-3
    link is already present: dhcp-1-1-2_TO_wnlb-cmts-04-4

    NOT FOUND CMTS for device to create the link: wnlb-CMTS-05-5

    NOT FOUND CMTS for device to create the link: wnlb-CMTS-01-1

    NOT FOUND CMTS for device to create the link: wnlb-CMTS-05-8
    NOT FOUND CMTS for device to create the link: wnlb-CMTS-05-6
    NOT FOUND CMTS for device to create the link: wnlb-CMTS-05-0

    NOT FOUND CMTS for device to create the link: wnlb-CMTS-03-3

    link is already present: dhcp-1-1-5_TO_wnlb-cmts-02-2
    link is already present: dhcp-1-1-5_TO_wnlb-cmts-04-4

    NOT FOUND CMTS for device to create the link: wnlb-CMTS-05-7

    Device not found: wnlb-dhcp-1-13

    IF NEED MORE INFORMATION PLEASE LET ME KNOW

    Thank you

    I felt later in the night that during the loading in the staging table using UNIX machine he created the new line for each line. That is why the last CMTS is not found, for this I use the UNIX 2 BACK conversion and it starts to work perfectly.

    It was the dos2unix error!

    Thank you all for your interest and I may learn new things, as I have almost 10 months of experience in (PLSQL, SQL)

  • Loading data using sqlldr

    Hi all

    Please help me load data below.

    I am using below command, but not all, inserting TEST_TABLE (sqlldr userid = scott/tiger control = c:\output2.sql)

    DOWNLOAD THE DATA
    INFILE *.
    ADD
    IN THE TABLE TEST_TABLE
    FIELDS FINISHED WITH A WHITE SPACE
    TRAILING NULLCOLS
    (tablename, part_num, tabletype)
    BEGINDATA


    PATROL_ORA_8 0 2

    PATROL14 2 _NT__3

    PATROL_UNI_5 13 2





    PATROL10 2 _VSM_204

    PATROL_VSM_142 1 154

    PATROL_UNI_1 0 2



    PATROL_ORA_10 0 2

    PATROL_UNI_2 1 2

    PATROL_ORA_8 1 2


    Thanks in advance

    It's okay, looks like what is the question?

  • sqlldr question: field in the data file exceeds the maximum length

    Hello friends,

    I am struggling with a load of simple data using sqlldr and hoping someone can guide me.

    Ref: I use Oracle 11.2 on Linux 5.7.
    ===========================
    Here is my table:
    SQL> desc ntwkrep.CARD
     Name                                                              Null?    Type
     ----------------------------------------------------------------- -------- ------------------
     CIM_DESCRIPTION                                                            VARCHAR2(255)
     CIM_NAME                                                          NOT NULL VARCHAR2(255)
     COMPOSEDOF                                                                 VARCHAR2(4000)
     DESCRIPTION                                                                VARCHAR2(4000)
     DISPLAYNAME                                                       NOT NULL VARCHAR2(255)
     LOCATION                                                                   VARCHAR2(4000)
     PARTOF                                                                     VARCHAR2(255)
     *REALIZES                                                                   VARCHAR2(4000)*
     SERIALNUMBER                                                               VARCHAR2(255)
     SYSTEMNAME                                                        NOT NULL VARCHAR2(255)
     TYPE                                                                       VARCHAR2(255)
     STATUS                                                                     VARCHAR2(255)
     LASTMODIFIED                                                               DATE
    When I try to load a text file data using sqlldr, I get the following errors on some files that do not charge.

    Example:
    =======
    Sheet 1: Rejected - error on the NTWKREP table. CARD, column REALIZES.
    Field in the data file exceeds the maximum length

    Looking at the actual data and count the characters for the data of the "CONSCIOUS" column, I see that it is basically a little more of 1000 characters.

    So try various ideas to solve the problem, I tried to change to "tank" nls_length_semantics and re-create the table, but this does not always helped and always got the same errors of loading data on the same lines.


    Then, I changed back to byte nls_length_semantics and recreated the table again.
    This time, I have changed the table manually as:
    SQL> ALTER TABLE ntwkrep.CARD MODIFY (REALIZES VARCHAR2(4000 char));
    
    Table altered.
    
    SQL> desc ntwkrep.card
     Name                                                              Null?    Type
     ----------------------------------------------------------------- -------- --------------------------------------------
     CIM_DESCRIPTION                                                            VARCHAR2(255)
     CIM_NAME                                                          NOT NULL VARCHAR2(255)
     COMPOSEDOF                                                                 VARCHAR2(4000)
     DESCRIPTION                                                                VARCHAR2(4000)
     DISPLAYNAME                                                       NOT NULL VARCHAR2(255)
     LOCATION                                                                   VARCHAR2(4000)
     PARTOF                                                                     VARCHAR2(255)
     REALIZES                                                                   VARCHAR2(4000 CHAR)
     SERIALNUMBER                                                               VARCHAR2(255)
     SYSTEMNAME                                                        NOT NULL VARCHAR2(255)
     TYPE                                                                       VARCHAR2(255)
     STATUS                                                                     VARCHAR2(255)
     LASTMODIFIED                                                               DATE
    Yet once, loading data failed with the same error on the same lines.

    So, this time, I thought that I would try to change the data type of column in a clob (navigation), and again, it is still impossible to load on the same lines.
    SQL> desc ntwkrep.CARD
     Name                                                              Null?    Type
     ----------------------------------------------------------------- -------- -----------------------
     CIM_DESCRIPTION                                                            VARCHAR2(255)
     CIM_NAME                                                          NOT NULL VARCHAR2(255)
     COMPOSEDOF                                                                 VARCHAR2(4000)
     DESCRIPTION                                                                VARCHAR2(4000)
     DISPLAYNAME                                                       NOT NULL VARCHAR2(255)
     LOCATION                                                                   VARCHAR2(4000)
     PARTOF                                                                     VARCHAR2(255)
     REALIZES                                                                   CLOB
     SERIALNUMBER                                                               VARCHAR2(255)
     SYSTEMNAME                                                        NOT NULL VARCHAR2(255)
     TYPE                                                                       VARCHAR2(255)
     STATUS                                                                     VARCHAR2(255)
     LASTMODIFIED                                                               DATE
    Any ideas?

    Here's a copy of the first line of data that fails to load each time any how to change the column 'TRUE' in the table.
    other(1)`CARD-mes-fhnb-bldg-137/1`  `other(1)`CARD-mes-fhnb-bldg-137/1 [other(1)]`HwVersion:C0|SwVersion:12.2(40)SE|Serial#:FOC1302U2S6|` Chassis::CHASSIS-mes-fhnb-bldg-137, Switch::mes-fhnb-bldg-137 ` Port::PORT-mes-fhnb-bldg-137/1.23, Port::PORT-mes-fhnb-bldg-137/1.21, Port::PORT-mes-fhnb-bldg-137/1.5, Port::PORT-mes-fhnb-bldg-137/1.7, Port::PORT-mes-fhnb-bldg-137/1.14, Port::PORT-mes-fhnb-bldg-137/1.12, Port::PORT-mes-fhnb-bldg-137/1.6, Port::PORT-mes-fhnb-bldg-137/1.4, Port::PORT-mes-fhnb-bldg-137/1.20, Port::PORT-mes-fhnb-bldg-137/1.22, Port::PORT-mes-fhnb-bldg-137/1.15, Port::PORT-mes-fhnb-bldg-137/1.13, Port::PORT-mes-fhnb-bldg-137/1.18, Port::PORT-mes-fhnb-bldg-137/1.24, Port::PORT-mes-fhnb-bldg-137/1.26, Port::PORT-mes-fhnb-bldg-137/1.17, Port::PORT-mes-fhnb-bldg-137/1.11, Port::PORT-mes-fhnb-bldg-137/1.2, Port::PORT-mes-fhnb-bldg-137/1.8, Port::PORT-mes-fhnb-bldg-137/1.10, Port::PORT-mes-fhnb-bldg-137/1.16, Port::PORT-mes-fhnb-bldg-137/1.9, Port::PORT-mes-fhnb-bldg-137/1.3, Port::PORT-mes-fhnb-bldg-137/1.1, Port::PORT-mes-fhnb-bldg-137/1.19, Port::PORT-mes-fhnb-bldg-137/1.25 `Serial#:FOC1302U2S6`mes-fhnb-bldg-137`other(1)
    Finally, for reference, here's the controlfile I use.
    load data
    infile '/opt/EMC/data/out/Card.txt'
    badfile '/dbadmin/data_loads/logs/Card.bad'
    append
    into table ntwkrep.CARD
    fields terminated by "`"
    TRAILING NULLCOLS
    (
    CIM_DESCRIPTION,
    CIM_NAME,
    COMPOSEDOF,
    DESCRIPTION,
    DISPLAYNAME,
    LOCATION,
    PARTOF,
    REALIZES,
    SERIALNUMBER,
    SYSTEMNAME,
    TYPE,
    STATUS,
    LASTMODIFIED "sysdate"
    )

    The default data in sqlldr type is char (255)

    Modify your control file following which I think should work with VARCHAR2 (4000) REALIZES:

    COMPOSEDOF char(4000),
    DESCRIPTION char(4000),
    LOCATION char(4000),
    REALIZES char(4000),
    
  • Error in loading data with SQLLDR in Oracle 10 G

    Hello

    Can one suggest what the problem is in the slot mentioned control file used for loading data via SQL * LOADER

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

    DOWNLOAD THE DATA
    INFILE 'D:\test\temt.txt '.
    BADFILE "test.bad."
    DISCARDFILE 'test.dsc '.

    IN THE TABLE 'TEST '.
    INSERT
    (INTEGER SRNO (7))
    PROD_ID INTEGER (10),
    PROMO_ID INTEGER (10),
    CHANNEL_ID INTEGER (10),
    UNIT_COST INTEGER (10),
    UNIT_PRICE INTEGER (10)
    )

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

    I'm trying to load data in the schema SCOTT scott user.

    Why make such a mistake, please see the attached log file.

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

    SQL * Loader: Release 10.2.0.1.0 - Production on Fri Mar 20 14:43:35 2009

    Copyright (c) 1982, 2005, Oracle. All rights reserved.

    Control file: D:\test\temt.ctl
    Data file: D:\test\temt.txt
    Bad leadership: test.bad
    Delete the file: test.dsc
    (Allow all releases)

    Number of loading: ALL
    Number of jump: 0
    Authorized errors: 50
    Link table: 64 lines, maximum of 256000 bytes
    Continuation of the debate: none is specified
    Path used: classics

    Table 'TEST', loaded from every logical record.
    Insert the option in effect for this table: INSERT

    Column Position Len term Encl. Datatype name
    ------------------------------ ---------- ----- ---- ---- ---------------------
    SRNO FIRST 7 INTEGER
    PROD_ID INTEGER 10 NEXT
    PROMO_ID INTEGER 10 NEXT
    CHANNEL_ID INTEGER 10 NEXT
    UNIT_COST INTEGER 10 NEXT
    UNIT_PRICE INTEGER 10 NEXT

    Sheet 1: Rejected - error on the table 'TEST '.
    ORA-01460: dead letter or unreasonable conversion requested

    Sheet 2: Rejected - error on the table 'TEST '.
    ORA-01460: dead letter or unreasonable conversion requested

    Sheet 3: Rejected - error on the table 'TEST '.
    ORA-01460: dead letter or unreasonable conversion requested

    Folder 4: Rejected - error on the table 'TEST '.
    ORA-01460: dead letter or unreasonable conversion requested

    Sheet 5: Rejected - error on the table 'TEST '.
    ORA-01460: dead letter or unreasonable conversion requested

    Sheet 6: Rejected - error on the table 'TEST '.
    ORA-01460: dead letter or unreasonable conversion requested

    Sheet 7: Rejected - error on the table 'TEST '.
    ORA-01460: dead letter or unreasonable conversion requested

    Sheet 8: Rejected - error on the table 'TEST '.
    ORA-01460: dead letter or unreasonable conversion requested

    File 9: Rejected - error on the table 'TEST '.
    ORA-01460: dead letter or unreasonable conversion requested

    Case 10: Rejected - error on the table 'TEST '.
    ORA-01460: dead letter or unreasonable conversion requested

    Factsheet 11: Rejected - error on the table 'TEST '.
    ORA-01460: dead letter or unreasonable conversion requested

    Sheet 12: Rejected - error on the table 'TEST '.
    ORA-01460: dead letter or unreasonable conversion requested

    File 13: Rejected - error on the table 'TEST '.
    ORA-01460: dead letter or unreasonable conversion requested

    Fact sheet 14: Rejected - error on the table 'TEST '.
    ORA-01460: dead letter or unreasonable conversion requested

    Fact sheet 15: Rejected - error on the table 'TEST '.
    ORA-01460: dead letter or unreasonable conversion requested

    Sheet 16: Rejected - error on the table 'TEST '.
    ORA-01460: dead letter or unreasonable conversion requested

    File 17: Rejected - error on the table 'TEST '.
    ORA-01460: dead letter or unreasonable conversion requested

    Sheet 18: Rejected - error on the table 'TEST '.
    ORA-01460: dead letter or unreasonable conversion requested

    File 19: Rejected - error on the table 'TEST '.
    ORA-01460: dead letter or unreasonable conversion requested

    Sheet 20: Rejected - error on the table 'TEST '.
    ORA-01460: dead letter or unreasonable conversion requested

    Sheet 21: Rejected - error on the table 'TEST '.
    ORA-01460: dead letter or unreasonable conversion requested

    Account 22: rejected - error on the table 'TEST '.
    ORA-01460: dead letter or unreasonable conversion requested

    Sheet 23: Rejected - error on the table 'TEST '.
    ORA-01460: dead letter or unreasonable conversion requested

    Record number of 24: rejected - error on the table 'TEST '.
    ORA-01460: dead letter or unreasonable conversion requested

    Sheet 25: Rejected - error on the table 'TEST '.
    ORA-01460: dead letter or unreasonable conversion requested

    Fact sheet 26: Rejected - error on the table 'TEST '.
    ORA-01460: dead letter or unreasonable conversion requested

    Fact sheet 27: Rejected - error on the table 'TEST '.
    ORA-01460: dead letter or unreasonable conversion requested

    Record 28: Rejected - error on the table 'TEST '.
    ORA-01460: dead letter or unreasonable conversion requested

    Record 29: rejected - error on the table 'TEST '.
    ORA-01460: dead letter or unreasonable conversion requested

    Record 30: Rejected - error on the table 'TEST '.
    ORA-01460: dead letter or unreasonable conversion requested

    Record of 31: rejected - error on the table 'TEST '.
    ORA-01460: dead letter or unreasonable conversion requested

    • Statement 32: Rejected - error on the table 'TEST '.
    ORA-01460: dead letter or unreasonable conversion requested

    Record 33: Rejected - error on the table 'TEST '.
    ORA-01460: dead letter or unreasonable conversion requested

    Page 34: Rejected - error on the table 'TEST '.
    ORA-01460: dead letter or unreasonable conversion requested

    Record 35: Rejected - error on the table 'TEST '.
    ORA-01460: dead letter or unreasonable conversion requested

    Record 36: Rejected - error on the table 'TEST '.
    ORA-01460: dead letter or unreasonable conversion requested

    Record 37: Rejected - error on the table 'TEST '.
    ORA-01460: dead letter or unreasonable conversion requested

    Record 38: Rejected - error on the table 'TEST '.
    ORA-01460: dead letter or unreasonable conversion requested

    Sheet 39: Rejected - error on the table 'TEST '.
    ORA-01460: dead letter or unreasonable conversion requested

    Record 40: Rejected - error on the table 'TEST '.
    ORA-01460: dead letter or unreasonable conversion requested

    Sheet 41: Rejected - error on the table 'TEST '.
    ORA-01460: dead letter or unreasonable conversion requested

    Page 42: Rejected - error on the table 'TEST '.
    ORA-01460: dead letter or unreasonable conversion requested

    Record 43: Rejected - error on the table 'TEST '.
    ORA-01460: dead letter or unreasonable conversion requested

    Sheet 44: Rejected - error on the table 'TEST '.
    ORA-01460: dead letter or unreasonable conversion requested

    Record 45: Rejected - error on the table 'TEST '.
    ORA-01460: dead letter or unreasonable conversion requested

    • Statement 46: Rejected - error on the table 'TEST '.
    ORA-01460: dead letter or unreasonable conversion requested

    Record 47: Rejected - error on the table 'TEST '.
    ORA-01460: dead letter or unreasonable conversion requested

    Record 48: Rejected - error on the table 'TEST '.
    ORA-01460: dead letter or unreasonable conversion requested

    Record 49: Rejected - error on the table 'TEST '.
    ORA-01460: dead letter or unreasonable conversion requested

    Page 50: Rejected - error on the table 'TEST '.
    ORA-01460: dead letter or unreasonable conversion requested

    Record 51: Rejected - error on the table 'TEST '.
    ORA-01460: dead letter or unreasonable conversion requested


    NUMBER of MAXIMUM ERRORS EXCEEDED - above the statistics reflect partial performance.

    Table 'TEST'
    0 rows successfully loaded.
    51 lines not filled due to data errors.
    0 rows not loading because all WHEN clauses were failed.
    0 rows not populated because all fields are null.


    The space allocated to bind table: 3648 bytes (64 lines)
    Bytes of read buffer: 1048576

    Total logical records ignored: 0
    Total logical records read: 64
    Total rejected logical records: 51
    Total logical records ignored: 0

    Run started on Fri Mar 20 14:43:35 2009
    Run finished Fri Mar 20 14:43:43 2009

    Time was: 00:00:07.98
    Time processor was: 00:00:00.28



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

    Here is the method to use SQLLDR and table details


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

    SQL > desc test
    Name Null? Type
    ----------------------- -------- ----------------
    SRNO NUMBER (7)
    PROD_ID NUMBER (10)
    PROMO_ID NUMBER (10)
    CHANNEL_ID NUMBER (10)
    UNIT_COST NUMBER (10)
    UNIT_PRICE NUMBER (10)




    Use sqlldr process is:

    cmd PROMT,

    d:\ > sqlldr scott/tiger

    Control = D:\test\temt.ctl

    SQL * Loader: Release 10.2.0.1.0 - Production on Fri Mar 20 15:55:50 2009

    Copyright (c) 1982, 2005, Oracle. All rights reserved.

    Commit the point reached - the number of logical records 64

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

    I even tried a few examples,

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

    Which of the below control record make sense,

    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    -1

    DOWNLOAD THE DATA
    INFILE 'D:\test\temt.txt '.
    BADFILE "test.bad."
    DISCARDFILE 'test.dsc '.

    IN THE TABLE 'TEST '.
    INSERT
    COMPLETED FIELD BY (EN)

    (INTEGER SRNO (7))
    PROD_ID INTEGER (10),
    PROMO_ID INTEGER (10),
    CHANNEL_ID INTEGER (10),
    UNIT_COST INTEGER (10),
    UNIT_PRICE INTEGER (10)
    )





    -2

    DOWNLOAD THE DATA
    INFILE 'D:\test\temt.txt '.
    BADFILE "test.bad."
    DISCARDFILE 'test.dsc '.

    IN THE TABLE 'TEST '.
    INSERT
    DOMAIN TERMINATED BY, eventually surrounded "" "

    (INTEGER SRNO (7))
    PROD_ID INTEGER (10),
    PROMO_ID INTEGER (10),
    CHANNEL_ID INTEGER (10),
    UNIT_COST INTEGER (10),
    UNIT_PRICE INTEGER (10)
    )




    For the code - 1 I get below mentioned error... *.

    D:\ > sqlldr scott/tiger

    Control = D:\test\temt.ctl

    SQL * Loader: Release 10.2.0.1.0 - Production on Fri Mar 20 16:36 2009

    Copyright (c) 1982, 2005, Oracle. All rights reserved.

    SQL * Loader-350: error of syntax on line 8.
    Expecting "(", found "FIELD".
    COMPLETED FIELD BY (EN)
    ^




    * And for the code - 2 I get the error below *.

    D:\ > sqlldr scott/tiger

    Control = D:\test\temt.ctl

    SQL * Loader: Release 10.2.0.1.0 - Production on Fri Mar 20 16:39:22 2009

    Copyright (c) 1982, 2005, Oracle. All rights reserved.

    SQL * Loader-350: error of syntax on line 8.
    Expecting "(", found "FIELD".
    DOMAIN TERMINATED BY, eventually surrounded "" "
    ^
    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Hello

    This will help for you

    LOAD DATA
    INFILE 'D:\test\temt.txt'
    BADFILE 'test.bad'
    DISCARDFILE 'test.dsc'
    INSERT
    INTO TABLE "TEST"
    FIELDS TERMINATED BY ','
    (SRNO INTEGER EXTERNAL ,
    PROD_ID INTEGER EXTERNAL,
    PROMO_ID INTEGER EXTERNAL,
    CHANNEL_ID INTEGER EXTERNAL,
    UNIT_COST INTEGER EXTERNAL,
    UNIT_PRICE INTEGER EXTERNAL
    )
    

    Thank you

  • Insert the page elements when loading data

    Hi all

    I use APEX 5.0 and using wizard to load data to download the data.

    My table has 7 fields and I need to insert 3 fields in the table while loading data.

    I have created a process after Parse the data downloaded as below.

    The result is that the 5th field will be First Row column as 'Y' and no 6th and 7th column.  There is value of 5th field only.

    When click on next to data validation page, it shows the 5th field with column field and 6th without the name of the column.

    Please help me to the point where I must change my code.

    BEGIN
    APEX_COLLECTION. ADD_MEMBER)
    p_collection_name = > 'PARSE_COL_HEAD ',.
    p_c001 = > 'HUBCODE ',.
    p_c002 = > 'UPLOAD_FILENAME ',.
    p_c003 = > 'UPLOAD_DATE');

    FOR UPLOAD_ROW IN (SELECT SEQ_ID
    OF APEX_COLLECTIONS
    WHERE COLLECTION_NAME = "SPREADSHEET_CONTENT")
    LOOP
    APEX_COLLECTION. () UPDATE_MEMBER_ATTRIBUTE
    p_collection_name = > 'SPREADSHEET_CONTENT ',.
    p_seq = > UPLOAD_ROW. SEQ_ID,
    p_attr_number = > '5',.
    p_attr_value = >: P2_HUB_CODE);

    APEX_COLLECTION. () UPDATE_MEMBER_ATTRIBUTE
    p_collection_name = > 'SPREADSHEET_CONTENT ',.
    p_seq = > UPLOAD_ROW. SEQ_ID,
    p_attr_number = > '6'.
    p_attr_value = >: P2_FILE_NAME);

    APEX_COLLECTION. () UPDATE_MEMBER_ATTRIBUTE
    p_collection_name = > 'SPREADSHEET_CONTENT ',.
    p_seq = > UPLOAD_ROW. SEQ_ID,
    p_attr_number = > '7'.
    p_attr_value = > SYSDATE);

    END LOOP;
    END;

    Want to close this loop and hope that it will be useful for others.

    In the end, I managed download document using the latest plugin for APEX 5.0 excel2collections.

    As MK pointed out, I can control my data using the plugin.

    Another point more directly is users can download xls or xlsx files, do not need to convert them to csv format before downloading.

    I thank all of you for the help.

  • How to sqlldr, i.e. load data between double quotes?

    How to load/sqlldr double quota data? What should be the control look like file?

    DOWNLOAD THE DATA
    INFILE *.
    Add
    IN THE ROUTE_TIME TABLE
    FIELDS ENDED BY ',' OPTIONALLY ENCLOSED "" "
    TRAILING NULLCOLS
    (BLADE_ID TANK NULLIF (BLADE_ID = WHITE),
    ROUTE_CODE TANK NULLIF (ROUTE_CODE = WHITE),
    STARTTIME TANK NULLIF (STARTTIME = WHITES),
    ENDTIME TANK NULLIF (ENDTIME = WHITES),
    ROUTE_CODE_DAY1 TANK NULLIF (ROUTE_CODE_DAY1 = WHITE),
    ROUTE_CODE_DAY2 TANK NULLIF (ROUTE_CODE_DAY2 = WHITE),
    ROUTE_CODE_DAY3 TANK NULLIF (ROUTE_CODE_DAY3 = WHITE),
    ROUTE_CODE_DAY4 TANK NULLIF (ROUTE_CODE_DAY4 = WHITE),
    ROUTE_CODE_DAY5 TANK NULLIF (ROUTE_CODE_DAY5 = WHITE),
    ROUTE_CODE_DAY6 TANK NULLIF (ROUTE_CODE_DAY6 = WHITE),
    ROUTE_CODE_DAY7 TANK NULLIF (ROUTE_CODE_DAY7 = WHITE),
    ACTIVE_DATE DATE "YYYY-MM-DD HH24:MI:SS" NULLIF (ACTIVE_DATE = WHITE).
    TERMINATE_DATE DATE "YYYY-MM-DD HH24:MI:SS" NULLIF (TERMINATE_DATE = WHITE).
    CREATE_ON DATE "YYYY-MM-DD HH24:MI:SS" NULLIF (CREATE_ON = WHITE).
    CREATE_BY TANK NULLIF (CREATE_BY = BLANKS))
    begindata
    'BLADE_001', 'A_TOP_DEST',' 00:00:00 ',' 00:30:00 ', 'ALEGWD10P0A', 'ALEGWD10P0A', 'ALEGWD10P0A', 'ALEGWD10P0A', 'ALEGWD10P0A', 'ALEGSA10P0A', 'ALEGSU10P0A', ' 01-SEP-2007 00:00:00 "," "," 01-SEP-2007 13:10:35 "," SYSTEM ".

    Of course the above is false, could just a tell me what is the problem.

    I talked about http://download-uk.oracle.com/docs/cd/A97630_01/server.920/a96652/ch05.htm#1005624, but I'm not able to interpret the syntax correctly.

    Thank you

    The format mask 'MM-DD-YYYY HH24:MI:SS' does not match with the data "01-SEP-2007 00:00:00.

  • Load data into a table

    Hi friends,

    I'm trying to load records into the rules of the product table of the table with the following...

    create table product)

    prod_id varchar2 (20).

    prod_grp varchar2 (20).

    from_amt number (10),

    to_amt number (10),

    share_amt number (10)

    );

    Insert into product (prod_id, prod_grp, from_amt, share_amt) Values ('10037', "STK", 1, 18);

    Insert into product (prod_id, prod_grp, from_amt, share_amt) Values ('10037', "NSTK", 1: 16.2);

    Insert into product (prod_id, prod_grp, from_amt, to_amt, share_amt) Values ('10038', "NSTK", 1, 5000, 12);

    Insert into product (prod_id, prod_grp, from_amt, to_amt, share_amt) Values ('10038', "STK", 5001, 10000, 16);

    Insert into product (prod_id, prod_grp, from_amt, share_amt) Values ('10038', "STK", 10001, 20);

    Insert into product (prod_id, prod_grp, from_amt, to_amt, share_amt) Values ('10039', "NSTK", 1, 8000, 10);

    Insert into product (prod_id, prod_grp, from_amt, share_amt) Values ('10039', "STK", 8001, 12);

    create table rules)

    rule_id varchar2 (30),

    rule_grp varchar2 (10),

    rate_1 number (10),

    point_1 number (10),

    rate_2 number (10),

    point_2 number (10),

    rate_3 number (10),

    point_3 number (10)

    );

    Criteria of loading in the rules of the table:

    rule_id - "RL" | Product.prod_id

    rule_grp - product.prod_grp

    rate_1 - product.share_amt where from_amt = 1

    point_1 - product.to_amt

    rate_2 - if product.to_amt in point_1 is not NULL, then find product.share_amt of the next record with the same rule_id/prod_id where from_amt (of the next record) = to_amt (current record -

    point_1) + 1

    point_2 - if product.to_amt in point_1 is not NULL, then find product.to_amt of the next record with the same rule_id/prod_id where from_amt (of the next record) = to_amt (current record - )

    point_1) + 1

    rate_3 - if product.to_amt in point_2 is not NULL, then find product.share_amt of the next record with the same rule_id/prod_id where from_amt (of the next record) = to_amt(current )

    Enregistrement-point_2) + 1

    point_3 - if product.to_amt in point_2 is not NULL, then find product.to_amt of the next record with the same rule_id/prod_id where from_amt (of the next record) = to_amt (current record - )

    point_2) + 1

    I tried to load the first columns (rule_id, rule_grp, rate_1, point_1, rate_2, point_2) via the sql loader.

    SQL > select * from product;

    PROD_ID PROD_GRP FROM_AMT TO_AMT SHARE_AMT

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

    10037                STK                           1                    18

    10037                NSTK                          1                    16

    1 5000 12 NSTK 10038

    10038 5001-10000-16 STK.

    10038 10001 20 STK.

    10039 1 8000 10 NSTK

    10039                STK                        8001                    12

    produit.dat

    PROD_ID | PROD_GRP | FROM_AMT | TO_AMT | SHARE_AMT

    "10037' |'. STK' | 1. 18

    "10037' |'. NSTK' | 1. 16.2

    '10038' |' NSTK' | 1. 5000 | 12

    '10038' |' STK' | 5001 | 10000 | 16

    '10038' |' STK' | 10001 | 20

    "10039' |'. NSTK' | 1. 8000 | 10

    "10039' |'. STK' | 8001 | 12

    Product.CTL

    options (Skip = 1)

    load data

    in the table rules

    fields ended by ' |'

    surrounded of possibly ' '.

    trailing nullcols

    (rule_id POSITION (1) ""RL"|: rule_id")

    rule_grp

    from_amt BOUNDFILLER

    point_1

    share_amt BOUNDFILLER

    , rate_1 ' BOX WHEN: from_amt = 1 THEN: share_amt END.

    , rate_2 expression "(sélectionnez pr.share_amt de produit pr où: point_1 n'est pas null et pr.prod_id=:rule_id et: point_1 =: from_amt + 1)" "

    , expression point_2 "(sélectionnez pr.to_amt de produit pr où: point_1 n'est pas null et pr.prod_id=:rule_id et: point_1 =: from_amt + 1)" "

    )

    He has not any support only values in rate_2, point_2... no error either... Not sure if there is another method to do this...

    Please give your suggestions... Thank you very much for your time

    Hello

    Thanks for posting the CREATE TABLE and INSERT instructions for the sample data; It's very useful!

    Don't forget to post the exact results you want from this data in the sample, i.e. what you want the rule table to contain once the task is completed.

    As ground has said, there is no interest to use SQLLDR to copy data from one table to another in the same database.  Use INSERT, or perhaps MERGE.

    2817195 wrote:

    Thank you for your answers... I thought it would be easier to manipulate the data using sql loader... I tried to use insert but do not know how to insert values in point_2, rate_3, rate_2, point_3, columns... For example, when point_1 is not null, need to do a find for the next with the same rule_id record and if the inserted record = pr.from_amt + 1 point_1 then RATE_2 should be inserted with this pr.share_amt of this record...

    SQL > insert into the rules)

    2 rule_id,

    rule_grp 3,.

    rate_1 4,.

    point_1 5,.

    rate_2 6,.

    point_2 7,.

    rate_3 8,.

    9 point_3)

    10. Select

    11 'RL ' | PR.prod_id RULE_ID,

    12 pr.prod_grp RULE_GRP,

    13 CASES WHEN END of pr.from_amt = 1 THEN pr.share_amt RATE_1,

    14 pr.to_amt POINT_1,

    15 (select pr.share_amt from product pr where point_1 is not null and rules.rule_id = pr.prod_id and point_1 = pr.from_amt + 1) RATE_2,

    16 (select pr.to_amt from product pr where point_1 is not null and rules.rule_id = pr.prod_id and = pr.from_amt + 1 point_1) POINT_2,.

    17 (select pr.share_amt from product pr where point_2 is not null and rules.rule_id = pr.prod_id and = pr.from_amt + 1 point_2) RATE_3,.

    18 (select pr.to_amt from product pr where point_2 is not null and rules.rule_id = pr.prod_id and = pr.from_amt + 1 point_2) POINT_3

    19 product pr;

    (select pr.share_amt from product pr where point_1 is not null and point_1 = pr.from_amt + 1) RATE_2,

    *

    ERROR on line 15:

    ORA-00904: "POINT_1": invalid identifier

    Help, please... Thank you very much

    This is what causes the error:

    The subquery on line 15 references only 1 table in the FROM clause, and this table is produced.  There is no point_1 column in the product.

    A scalar subquery like this can be correlated to a table in the Super request, but the only table in the FROM (line 19) clause is also produced.  Since the only table that you read is produced, only columns that you can read are the columns of the product table.

    You use the same table alias (pr) to mean different things 5. It's very confusing.  Create aliases for single table in any SQL statement.  (What you trying to do, I bet you can do without all these subqueries, in any case.)

  • SQL Loader loading data into two Tables using a single CSV file

    Dear all,

    I have a requirement where in I need to load the data into 2 tables using a simple csv file.

    So I wrote the following control file. But it loads only the first table and also there nothing in the debug log file.

    Please suggest how to achieve this.

    Examples of data

    Source_system_code,Record_type,Source_System_Vendor_number,$vendor_name,Vendor_site_code,Address_line1,Address_line2,Address_line3

    Victor, New, Ven001, Vinay, Vin001, abc, def, xyz

    Control file script

    ================

    OPTIONS (errors = 0, skip = 1)
    load data
    replace
    in the table1 table:
    fields ended by ',' optionally surrounded "" "
    (
    Char Source_system_code (1) POSITION "ltrim (rtrim (:Source_system_code)),"
    Record_type tank "ltrim (rtrim (:Record_type)),"
    Source_System_Vendor_number tank "ltrim (rtrim (:Source_System_Vendor_number)),"
    $vendor_name tank "ltrim (rtrim (:Vendor_name)),"
    )
    in the Table2 table
    1 = 1
    fields ended by ',' optionally surrounded "" "
    (
    $vendor_name tank "ltrim (rtrim (:Vendor_name)),"
    Vendor_site_code tank "ltrim (rtrim (:Vendor_site_code)),"
    Address_line1 tank "ltrim (rtrim (:Address_line1)),"
    Address_line2 tank "ltrim (rtrim (:Address_line2)),"
    Address_line3 tank "ltrim (rtrim (:Address_line3)).
    )

    the problem here is loading into a table, only the first. (Table 1)

    Please guide me.

    Thank you

    Kumar

    When you do not provide a starting position for the first field in table2, it starts with the following after a last referenced in table1 field, then it starts with vendor_site_code, instead of $vendor_name.  So what you need to do instead, is specify position (1) to the first field in table2 and use the fields to fill.  In addition, he dislikes when 1 = 1, and he didn't need anyway.  See the example including the corrected below control file.

    Scott@orcl12c > test.dat TYPE of HOST

    Source_system_code, Record_type, Source_System_Vendor_number, $vendor_name, Vendor_site_code, Address_line1, Address_line2, Address_line3

    Victor, New, Ven001, Vinay, Vin001, abc, def, xyz

    Scott@orcl12c > test.ctl TYPE of HOST

    OPTIONS (errors = 0, skip = 1)

    load data

    replace

    in the table1 table:

    fields ended by ',' optionally surrounded "" "

    (

    Char Source_system_code (1) POSITION "ltrim (rtrim (:Source_system_code)),"

    Record_type tank "ltrim (rtrim (:Record_type)),"

    Source_System_Vendor_number tank "ltrim (rtrim (:Source_System_Vendor_number)),"

    $vendor_name tank "ltrim (rtrim (:Vendor_name)).

    )

    in the Table2 table

    fields ended by ',' optionally surrounded "" "

    (

    source_system_code FILL (1) POSITION.

    record_type FILLING,

    source_system_vendor_number FILLING,

    $vendor_name tank "ltrim (rtrim (:Vendor_name)),"

    Vendor_site_code tank "ltrim (rtrim (:Vendor_site_code)),"

    Address_line1 tank "ltrim (rtrim (:Address_line1)),"

    Address_line2 tank "ltrim (rtrim (:Address_line2)),"

    Address_line3 tank "ltrim (rtrim (:Address_line3)).

    )

    Scott@orcl12c > CREATE TABLE table1:

    2 (Source_system_code VARCHAR2 (13),)

    3 Record_type VARCHAR2 (11),

    4 Source_System_Vendor_number VARCHAR2 (27),

    5 $vendor_name VARCHAR2 (11))

    6.

    Table created.

    Scott@orcl12c > CREATE TABLE table2

    2 ($vendor_name VARCHAR2 (11),)

    3 Vendor_site_code VARCHAR2 (16).

    4 Address_line1 VARCHAR2 (13),

    5 Address_line2 VARCHAR2 (13),

    Address_line3 6 VARCHAR2 (13))

    7.

    Table created.

    Scott@orcl12c > HOST SQLLDR scott/tiger CONTROL = test.ctl DATA = test.dat LOG = test.log

    SQL * Loader: release 12.1.0.1.0 - Production on Thu Mar 26 01:43:30 2015

    Copyright (c) 1982, 2013, Oracle and/or its affiliates.  All rights reserved.

    Path used: classics

    Commit the point reached - the number of logical records 1

    TABLE1 table:

    1 row loaded successfully.

    Table TABLE2:

    1 row loaded successfully.

    Check the log file:

    test.log

    For more information on the charge.

    Scott@orcl12c > SELECT * FROM table1

    2.

    RECORD_TYPE SOURCE_SYSTEM_VENDOR_NUMBER $VENDOR_NAME SOURCE_SYSTEM

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

    Victor Ven001 new Vinay

    1 selected line.

    Scott@orcl12c > SELECT * FROM table2

    2.

    $VENDOR_NAME VENDOR_SITE_CODE ADDRESS_LINE1 ADDRESS_LINE2 ADDRESS_LINE3

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

    Vinay Vin001 abc def xyz

    1 selected line.

    Scott@orcl12c >

  • sqlldr: using RTRIM date format conversion

    Hi all

    I need assistance with date formats using sqlldr to load.
    I did some research on the internet, but not really good to find examples that help in my case clear.

    I am trying to load data from another source into our Oracle database, however, the field 'date' includes additional characters that I am dealing with.
    For reference, I'm under Oracle 11.2 on Linux 5.7.

    First, the entry of the actual date is:
    April 18, 2013 8:50:44 AM EDT
    I tried to get in a few ways but could not load until I physically removed the "AM EDT' the input string.
    My first question is if there is a way to RTRIM and get rid of these extra characters.
    Or maybe I just need a way to convert the "AM EDT" our standard date format.

    My controlfile has the following:
    LASTCHANGEDAT date "Month dd, YYYY HH MI SS",
    This will load the data, but only if I'm hard on the 'AM EDT' of the actual data entry which is not feasible.


    Also, how I would manage that comes as the date: April 18, 2013 21:50:44 CEST

    Also, I tried the following, but it gives me a different error:


    LASTCHANGEDAT "to_date(:LASTCHANGEDAT,'DD-MON-YYYY HH24:MI:SS')",
    
    gives me error:
    
    Record 1: Rejected - Error on table NTWKREP.INTERFACE, column LASTCHANGEDAT.
    ORA-01858: a non-numeric character was found where a numeric was expected
    Published by: 974632 on April 22, 2013 12:41

    You only need a control file and it's okay if you are using AM or PM in the control file. Using AM or PM just said to expect one or the other in this position and will take care of both of them. Please see the demo below that shows that either am or pm in the control file works with am and pm in the data.

    SCOTT@orcl_11gR2> host type test.ctl
    load data
    infile *
    into table test_tab
    fields terminated by '|'
    (lastchangedat1 timestamp with time zone "Mon dd, yyyy hh:mi:ss am tzd",
    lastchangedat2 timestamp with time zone "Mon dd, yyyy hh:mi:ss pm tzd")
    begindata:
    April 18, 2013 8:50:44 AM EDT|April 19, 2013 9:51:45 PM EDT
    April 20, 2013 10:52:46 PM EDT|April 21, 2013 11:53:47 AM EDT
    
    SCOTT@orcl_11gR2> create table test_tab
      2    (lastchangedat1  date,
      3     lastchangedat2  date)
      4  /
    
    Table created.
    
    SCOTT@orcl_11gR2> host sqlldr scott/tiger control=test.ctl log=test.log
    
    SQL*Loader: Release 11.2.0.1.0 - Production on Tue Apr 23 10:09:59 2013
    
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    
    Commit point reached - logical record count 2
    
    SCOTT@orcl_11gR2> select * from test_tab
      2  /
    
    LASTCHANGEDAT1          LASTCHANGEDAT2
    ----------------------- -----------------------
    18-apr-2013 08:50:44 am 19-apr-2013 09:51:45 pm
    20-apr-2013 10:52:46 pm 21-apr-2013 11:53:47 am
    
    2 rows selected.
    
  • Load data into Hyperion Planning problem with police? Thai tank.

    Hello

    Can someone help me I just load the ODI in Hyperion Planning data; However, it has char Thai in my data. When I see data in Hyperion Planning, char Thai converts? instead. So, how can I load data without problem of tank with ODI fonts? Any expert! Please help me for this

    http://img10.imageshack.us/img10/6087/20090316155228.th.png

    < img src = "http://img10.imageshack.us/img10/6087/20090316155228.th.png" border = "0" alt = "Free Image Hosting at the www.ImageShack.us" / >

    < img src = "http://imageshack.us/img/butansn.png" alt = "QuickPost" border = "0" > QuickPost this image to Myspace, Digg, Facebook, and others!

    In Journal of Hyperion, there is no error here

    2009-03-16 15:14:47, 847 [DwgCmdExecutionThread] INFO: Oracle Data Integrator adapter for Hyperion Planning - free 9.3.1.1
    2009-03-16 15:14:47, 847 INFO [DwgCmdExecutionThread]: connection to the planning application [Budget] on [192.168.3.20]: [11333] using [hypadmin] username.
    2009-03-16 15:14:47, 925 [DwgCmdExecutionThread] INFO: successfully connected to the planning application.
    2009-03-16 15:14:47, 941 INFO [DwgCmdExecutionThread]: loading for the charge of planning options
    Name of the dimension: location like Parent child: true
    Order By entry load: true
    Update the database: false
    2009-03-16 15:14:48, 019 INFO [DwgCmdExecutionThread]: beginning of the loading process.
    2009-03-16 15:14:48, 019 DEBUG [DwgCmdExecutionThread]: number of columns in the result set of source does not match the number of columns planning targets.
    2009-03-16 15:14:48, 066 [DwgCmdExecutionThread] INFO: type of load is a [member of the load dimension].
    2009-03-16 15:14:48, 285 INFO [DwgCmdExecutionThread]: circular reference detected Possible, abandonment of sort and continuing with load. 1368 possible circular reference documents found.
    2009-03-16 15:15:14, 660 INFO [DwgCmdExecutionThread]: load the process is complete.
    2009-03-16 15:27:45, 821 [DwgCmdExecutionThread] INFO: Oracle Data Integrator adapter for Hyperion Planning - free 9.3.1.1
    2009-03-16 15:27:45, 821 INFO [DwgCmdExecutionThread]: connection to the planning application [Budget] on [192.168.3.20]: [11333] using [hypadmin] username.
    2009-03-16 15:27:45, 883 [DwgCmdExecutionThread] INFO: successfully connected to the planning application.
    2009-03-16 15:27:45, 899 INFO [DwgCmdExecutionThread]: loading for the charge of planning options
    Name of the dimension: location like Parent child: true
    Order By entry load: true
    Update the database: true
    2009-03-16 15:27:45, 962 INFO [DwgCmdExecutionThread]: beginning of the loading process.
    2009-03-16 15:27:45, 962 DEBUG [DwgCmdExecutionThread]: number of columns in the result set of source does not match the number of columns planning targets.
    2009-03-16 15:27:45, 993 [DwgCmdExecutionThread] INFO: type of load is a [member of the load dimension].
    2009-03-16 15:27:46, 165 [DwgCmdExecutionThread] INFO: circular reference detected Possible, abandonment of sort and continuing with load. 1368 possible circular reference documents found.
    2009-03-16 15:28:14, 540 [DwgCmdExecutionThread] INFO: planing cube refresh initiated.
    2009-03-16 15:28:22, 993 INFO [DwgCmdExecutionThread]: planning of the cube refresh operation completed successfully.
    2009-03-16 15:28:22, 993 INFO [DwgCmdExecutionThread]: load the process is complete.

    Hello

    I'm glad you find the blog useful.

    I understand that you use 9.3 and to prove that it is not a question of ODI, log into planning from the web, add one manually with thai characters, then refresh the application to push information to essbase, then look at the Member in EA.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Loading data from the external XML file

    Hello people!

    I have a XML file on my server, updated by cron every 10 minutes and I want to load data to my webworks her application, but the jquery ajax function do not support the folded areas. So here's my question - how should this information? Can I somehow download this file and then use ajax?

    Welcome!

    in your config.xml file, add an authorization to access your server:

    subdomains of http://www.yourserver.com"="true"/ >

    This will get by cross-origin issues.

Maybe you are looking for