Using forms 6i, to import excel data to database not a valid month problem

Hi all,
i am fetching data from excel dynamically to oracle table, all data is of general type
here i am passing value V3 varchar2(100) but actual database column field is DATE.
my insert code is given below
[code]
PACKAGE BODY PK_EXCEL_TO_DB IS
PROCEDURE PR_DO_INSERT(i_vcColumn1 IN VARCHAR2,i_vcColumn2 IN VARCHAR2,i_vcColumn3 IN VARCHAR2,i_vcColumn4 IN VARCHAR2,i_vcColumn5 IN VARCHAR2,i_vcColumn6 IN VARCHAR2,i_vcColumn7 IN VARCHAR2,
  i_vcColumn8 IN VARCHAR2,i_vcColumn9 IN VARCHAR2,i_vcColumn10 IN VARCHAR2,i_vcColumn11 IN VARCHAR2,i_vcColumn12 IN VARCHAR2,i_vcColumn13 IN VARCHAR2,i_vcColumn14 IN VARCHAR2,
  i_vcColumn15 IN VARCHAR2,i_vcColumn16 IN VARCHAR2,i_vcColumn17 IN VARCHAR2,i_vcColumn18 IN VARCHAR2,i_vcColumn19 IN VARCHAR2,i_vcColumn20 IN VARCHAR2,i_vcColumn21 IN VARCHAR2,
  i_vcColumn22 IN VARCHAR2,i_vcColumn23 IN VARCHAR2,i_vcColumn24 IN VARCHAR2,i_vcColumn25 IN VARCHAR2,i_vcColumn26 IN VARCHAR2,i_vcColumn27 IN VARCHAR2,i_vcColumn28 IN VARCHAR2,
  i_vcColumn29 IN VARCHAR2,i_vcColumn30 IN VARCHAR2,i_vcColumn31 IN VARCHAR2,i_vcColumn32 IN VARCHAR2,i_vcColumn33 IN VARCHAR2,i_lData IN tDataList) IS
    vcInsert   VARCHAR2(3500);
    i INTEGER:=0;
    flag boolean:= FALSE;
  BEGIN
    i:=i_lData.COUNT;
    :BLK_MAIN.T4:= vcInsert;
    vcInsert:='INSERT INTO CRM_DELT_IMPORT (';
    if length(i_vcColumn1) > 0 then
    flag:=TRUE;
    vcInsert:=vcInsert||i_vcColumn1;
    end if;
    if length(i_vcColumn2)  > 0 then
      IF flag THEN
      vcInsert:=vcInsert|| ','||i_vcColumn2;
      else
      vcInsert:=vcInsert||i_vcColumn2;
      end if;
    end if;
    if length(i_vcColumn3) > 0 then
    vcInsert:=vcInsert|| ','||i_vcColumn3;
    end if;
    if length(i_vcColumn4) > 0 then
    vcInsert:=vcInsert|| ','||i_vcColumn4;
    end if;
    if length(i_vcColumn5) > 0 then
    vcInsert:=vcInsert|| ','||i_vcColumn5;
    end if;
    if length(i_vcColumn6) > 0 then
    vcInsert:=vcInsert|| ','||i_vcColumn6;
    end if;
    if length(i_vcColumn7) > 0 then
    vcInsert:=vcInsert|| ','||i_vcColumn7;
    end if;
    if length(i_vcColumn8) > 0 then
    vcInsert:=vcInsert|| ','||i_vcColumn8;
    end if;
    if length(i_vcColumn9) > 0 then
    vcInsert:=vcInsert|| ','||i_vcColumn9;
    end if;
    if length(i_vcColumn10) > 0 then
    vcInsert:=vcInsert|| ','||i_vcColumn10;
    end if;
    if length(i_vcColumn11) > 0 then
    vcInsert:=vcInsert|| ','||i_vcColumn11;
    end if;
    if length(i_vcColumn12) > 0 then
    vcInsert:=vcInsert|| ','||i_vcColumn12;
    end if;
    if length(i_vcColumn13) > 0 then
    vcInsert:=vcInsert|| ','||i_vcColumn13;
    end if;
    if length(i_vcColumn14) > 0 then
    vcInsert:=vcInsert|| ','||i_vcColumn14;
    end if;
    if length(i_vcColumn15) > 0 then
    vcInsert:=vcInsert|| ','||i_vcColumn15;
    end if;
    if length(i_vcColumn16) > 0 then
    vcInsert:=vcInsert|| ','||i_vcColumn16;
    end if;
       if length(i_vcColumn17) > 0 then
    vcInsert:=vcInsert|| ','||i_vcColumn17;
       end if;
       if length(i_vcColumn18) > 0 then
    vcInsert:=vcInsert|| ','||i_vcColumn18;
       end if;
       if length(i_vcColumn19) > 0 then
    vcInsert:=vcInsert|| ','||i_vcColumn19;
       end if;
        if length(i_vcColumn20) > 0 then
    vcInsert:=vcInsert|| ','||i_vcColumn20;
        end if;
       if length(i_vcColumn21) > 0 then
    vcInsert:=vcInsert|| ','||i_vcColumn21;
        end if;
       if length(i_vcColumn22) > 0 then
    vcInsert:=vcInsert|| ','||i_vcColumn22;
       end if;
       if length(i_vcColumn23) > 0 then
    vcInsert:=vcInsert|| ','||i_vcColumn23;
        end if;
       if length(i_vcColumn24) > 0 then
    vcInsert:=vcInsert|| ','||i_vcColumn24;
        end if;
       if length(i_vcColumn25) > 0 then
    vcInsert:=vcInsert|| ','||i_vcColumn25;
        end if;
       if length(i_vcColumn26) > 0 then
    vcInsert:=vcInsert|| ','||i_vcColumn26;
        end if;
        if length(i_vcColumn27) > 0 then
    vcInsert:=vcInsert|| ','||i_vcColumn27;
         end if;
        if length(i_vcColumn28) > 0 then
    vcInsert:=vcInsert|| ','||i_vcColumn28;
        end if;
        if length(i_vcColumn29) > 0 then
    vcInsert:=vcInsert|| ','||i_vcColumn29;
        end if;
        if length(i_vcColumn30) > 0 then
    vcInsert:=vcInsert|| ','||i_vcColumn30;
        end if;
        if length(i_vcColumn31) > 0 then
    vcInsert:=vcInsert|| ','||i_vcColumn31;
        end if;
        if length(i_vcColumn32) > 0 then
    vcInsert:=vcInsert|| ','||i_vcColumn32;
        end if;
        if length(i_vcColumn33) > 0 then
    vcInsert:=vcInsert|| ','||i_vcColumn33;
    end if;      
    vcInsert:=vcInsert||') values(';
    if length(i_vcColumn1) > 0 then
    vcInsert:=vcInsert||''''||i_ldata(i).V1||'''';
    end if;
    if length(i_vcColumn2) > 0 then
    IF flag THEN
    vcInsert:=vcInsert|| ','||''''||i_ldata(i).V2||'''';
    else
    vcInsert:=vcInsert|| ''''||i_ldata(i).V2||'''';
    end if;
    end if;
    if length(i_vcColumn3) > 0 then
    vcInsert:=vcInsert|| ','||''''||i_ldata(i).V3||'''';
    --vcInsert:=vcInsert|| ','||''''||to_date(to_date(i_ldata(i).V3,'dd-mon-yy HH12:MI:SS'),'dd-mon-yy HH12:MI:SS')||'''';
    -- vcInsert:=vcInsert|| ','||''''|| to_date('i_ldata(i).V3','dd-mon-yy HH12:MI:SS')||''''; --to_date('18-JUN-2013 12:00:00', 'DD-MON-YYYY HH24:MI:SS')
    end if;
    if length(i_vcColumn4) > 0 then
    vcInsert:=vcInsert|| ','||''''||i_ldata(i).V4||'''';
    end if;
    if length(i_vcColumn5) > 0 then
    vcInsert:=vcInsert|| ','||''''||i_ldata(i).V5||'''';
    end if;
    if length(i_vcColumn6) > 0 then
    vcInsert:=vcInsert|| ','||''''||i_ldata(i).V6||'''';
    end if;
    if length(i_vcColumn7) > 0 then
    vcInsert:=vcInsert|| ','||''''||i_ldata(i).V7||'''';
    end if;
    if length(i_vcColumn8) > 0 then
    vcInsert:=vcInsert|| ','||''''||i_ldata(i).V8||'''';
    end if;
    if length(i_vcColumn9) > 0 then
    vcInsert:=vcInsert|| ','||''''||i_ldata(i).V9||'''';
    end if;
    if length(i_vcColumn10) > 0 then
    vcInsert:=vcInsert|| ','||''''||i_ldata(i).V10||'''';
    end if;
    if length(i_vcColumn11) > 0 then
    vcInsert:=vcInsert|| ','||''''||i_ldata(i).V11||'''';
    end if;
    if length(i_vcColumn12) > 0 then
    vcInsert:=vcInsert|| ','||''''||i_ldata(i).V12||'''';
    end if;
    if length(i_vcColumn13) > 0 then
    vcInsert:=vcInsert|| ','||''''||i_ldata(i).V13||'''';
    end if;
    if length(i_vcColumn14) > 0 then
    vcInsert:=vcInsert|| ','||''''||i_ldata(i).V14||'''';
    end if;
    if length(i_vcColumn15) > 0 then
    vcInsert:=vcInsert|| ','||''''||i_ldata(i).V15||'''';
    end if;
    if length(i_vcColumn16) > 0 then
    vcInsert:=vcInsert|| ','||''''||i_ldata(i).V16||'''';
    end if;
    if length(i_vcColumn17) > 0 then
    vcInsert:=vcInsert|| ','||''''||i_ldata(i).V17||'''';
    end if;
    if length(i_vcColumn18) > 0 then
    vcInsert:=vcInsert|| ','||''''||i_ldata(i).V18||'''';
    end if;
    if length(i_vcColumn19) > 0 then
    vcInsert:=vcInsert|| ','||''''||i_ldata(i).V19||'''';
    end if;
    if length(i_vcColumn20) > 0 then
    vcInsert:=vcInsert|| ','||''''||i_ldata(i).V20||'''';
    end if;
    if length(i_vcColumn21) > 0 then
    vcInsert:=vcInsert|| ','||''''||i_ldata(i).V21||'''';
    end if;
    if length(i_vcColumn22) > 0 then
    vcInsert:=vcInsert|| ','||''''||i_ldata(i).V22||'''';
    end if;
    if length(i_vcColumn23) > 0 then
    vcInsert:=vcInsert|| ','||''''||i_ldata(i).V23||'''';
    end if;
    if length(i_vcColumn24) > 0 then
    vcInsert:=vcInsert|| ','||''''||i_ldata(i).V24||'''';
    end if;
    if length(i_vcColumn25) > 0 then
    vcInsert:=vcInsert|| ','||''''||i_ldata(i).V25||'''';
    end if;
    if length(i_vcColumn26) > 0 then
    vcInsert:=vcInsert|| ','||''''||i_ldata(i).V26||'''';
    end if;
    if length(i_vcColumn27) > 0 then
    vcInsert:=vcInsert|| ','||''''||i_ldata(i).V27||'''';
    end if;
    if length(i_vcColumn28) > 0 then
    vcInsert:=vcInsert|| ','||''''||i_ldata(i).V28||'''';
    end if;  
    if length(i_vcColumn29) > 0 then
    vcInsert:=vcInsert|| ','||''''||i_ldata(i).V29||'''';
    end if;
    if length(i_vcColumn30) > 0 then
    vcInsert:=vcInsert|| ','||''''||i_ldata(i).V30||'''';
    end if;
    if length(i_vcColumn31) > 0 then
    vcInsert:=vcInsert|| ','||''''||i_ldata(i).V31||'''';
    end if;
    if length(i_vcColumn32) > 0 then
    vcInsert:=vcInsert|| ','||''''||i_ldata(i).V32||'''';
    end if;
    if length(i_vcColumn33) > 0 then
    vcInsert:=vcInsert|| ','||''''||i_ldata(i).V33||'''';
    end if;
    vcInsert:=vcInsert||')';
     FORMS_DDL(vcInsert);
     :BLK_MAIN.T4:= vcInsert;
   --END LOOP;
    STANDARD.COMMIT;
  END;
END;
[/code]
How can i pass '13-06-13 05:54:33' to database table.
if i put condition
vcInsert:=vcInsert||','||''''||TO_CHAR('i_ldata(i).V3','DD-MON-RR HH12:MI:SS')||''''
i get the error
to_char many declaration..
if i remove this i got error
ORA-01843: no a valid month
Since i am dynamically importing the excel data, every time the position of the date fild is going to change. For static its ok that i know that V3 is going to be a date.
But for dynamic date may be  at position V22 or at any place.
please suggest something.
Regards
Sam

hii Marwin
Thanks for the reply. Yes i understand what exactly you are saying.
That's why i have created a test table. All fields in the table are of varchar2 type and no constraints were given to the table and import the data to test table.
Once the data is imported to test table, then i am inserting data to my original table i.e CRM_DELT_IMPORT. I have written the following code for that.
But when i press the button i got the error
FRM-40735:WHEN-BUTTON-PRESSED trigger raised unhandled exception ORA-00001
my CRM_DELT_IMPORT have composit key on ("ROUTE_ID", "DELDATE", "DELSNO", "PROFILE_ID")
I also inserted few records with normal insert on SQL prompt , records gets inserted in to the table.
But when i use the form for insert and click on button of insert i get the error.
I also check that records gets imported in test table but not get inserted into CRM_DELT_IMPORT table (with the help of form. )
(can i use IGNORE_ROW_ON_DUPKEY_INDEX here? and how?)
Please help me in this problem.
Thanks again.
Regards
Sam
My code on when-button-pressed is
DECLARE
  CURSOR IMP IS
  SELECT ROUTE_ID, to_date(DELDATE,'DD-MM-RR HH24:MI:SS')DELDATE, DELSNO, DEL_BOY,
  PROFILE_ID, TRNTYPE, RECNO, EXP_FR, EXP_PA, EXP_SK, EXP_EMPTY, EXP_TIME, ACT_FR,
  ACT_PA, ACT_SK, ACT_EMPTY, ACT_TIME, LATITUDE, LONGITUDE, IS_FREE, RATE_LITER, AMT_DEBIT,
  DEVICE_ID, PROF_NAME, ADDR1, ADDR2, LANDMARK, PLAN_ID, DEL_MODE, NEW_CHANGE, NO_DEL_CODE,
  TO_DATE(DEV_DATE,'DD-MM-RR HH24:MI:SS')DEVICE_DATE, substr(DEV_TIME,12,19)DEVICE_TIME
  FROM TEST;
  IMP_REC IMP%ROWTYPE;
BEGIN
  OPEN IMP;
  FETCH IMP INTO IMP_REC;
  WHILE IMP%FOUND
  LOOP
  INSERT INTO CRM_DELT_IMPORT(ROUTE_ID, DELDATE, DELSNO, DEL_BOY, PROFILE_ID, TRNTYPE, RECNO, EXP_FR, EXP_PA, EXP_SK, EXP_EMPTY,
  EXP_TIME, ACT_FR, ACT_PA, ACT_SK, ACT_EMPTY, ACT_TIME, LATITUDE, LONGITUDE, IS_FREE, RATE_LITER, AMT_DEBIT,
  DEVICE_ID, PROF_NAME, ADDR1, ADDR2, LANDMARK, PLAN_ID, DEL_MODE, NEW_CHANGE, NO_DEL_CODE, DEV_DATE, DEV_TIME)
    VALUES(IMP_REC.ROUTE_ID, IMP_REC.DELDATE, IMP_REC.DELSNO, IMP_REC.DEL_BOY, --to_date(DELDATE,'DD-MM-RR HH24:MI:SS')
  IMP_REC.PROFILE_ID, IMP_REC.TRNTYPE, IMP_REC.RECNO, IMP_REC.EXP_FR,IMP_REC.EXP_PA,IMP_REC.EXP_SK,IMP_REC.EXP_EMPTY,IMP_REC.EXP_TIME,IMP_REC.ACT_FR,
  IMP_REC.ACT_PA,IMP_REC.ACT_SK,IMP_REC.ACT_EMPTY,IMP_REC.ACT_TIME,IMP_REC.LATITUDE,IMP_REC.LONGITUDE,IMP_REC.IS_FREE,IMP_REC.RATE_LITER,IMP_REC.AMT_DEBIT,
  IMP_REC.DEVICE_ID,IMP_REC.PROF_NAME,IMP_REC.ADDR1,IMP_REC.ADDR2,IMP_REC.LANDMARK,IMP_REC.PLAN_ID,IMP_REC.DEL_MODE,IMP_REC.NEW_CHANGE,IMP_REC.NO_DEL_CODE,
    IMP_REC.DEVICE_DATE,IMP_REC.DEVICE_TIME); ---TO_DATE(DEV_DATE,'DD-MM-RR HH24:MI:SS'), substr(DEV_TIME,12,19)
  END LOOP;
  COMMIT;
  CLOSE IMP;
END;

Similar Messages

  • Unable to compare date "ORA-01843: not a valid month"

    Hello All,
    I am trying to fire below query but it is failing with error. Please suggest.
    SELECT column_name FROM table_name WHERE start_time < '01/01/2011 00:00:00 AM';
    ORA-01843: not a valid month
    In table the start_time is stored in 2/16/2013 8:31:01 PM format.
    Regards,
    Ankit
    Edited by: 982193 on Mar 11, 2013 6:32 AM

    Hi, Ankit,
    982193 wrote:
    Hello All,
    I am trying to fire below query but it is failing with error. Please suggest.Whenever you have a problem, please post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) from all tables involved, so that the people who want to help you can re-create the problem and test their ideas.
    Also post the results you want from that data, and an explanation of how you get those results from that data, with specific examples.
    Always say which version of Oracle you're using (for example, 11.2.0.2.0).
    See the forum FAQ {message:id=9360002}
    SELECT column_name FROM table_name WHERE start_time < '01/01/2011 00:00:00 AM';Use \ tags, as explained in the forum FAQ, so that this site won't garble your messages so much.
    ORA-01843: not a valid month
    In table the start_time is stored in 2/16/2013 8:31:01 PM format. If start_time is a DATE (or a TIMESTAMP) then it is not stored in that format, or any other format you would recognize.  Regardless of what the format is, don't try to compare a DATE with a VARCHAR2, such as '01/01/2011 00:00:00 AM'.  Use TO_DATE to convert the VARCHAR2 to a DATE.  For exampleWHERE start_time < TO_DATE ( '01/01/2011 12:00:00 AM'
                   , 'MM/DD/YYYY HH:MI:SS AM'
    If you're using AM in a time, then 0 is not a possible hour.  The hours are 12, 1, 2, ..., 11 when using AM or PM.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • ORA-01843: not a valid month, external table select fails on date column

    Hi,
    I created an external table as follows:
    CREATE OR REPLACE DIRECTORY sales_feeds AS '/backup/oracle/feeds';
    Directory created.
    CREATE TABLE salesfeed_external_table
              PROD_ID               NUMBER
            , CUST_ID               NUMBER
            , TIME_ID               DATE
            , CHANNEL_ID            NUMBER
            , PROMO_ID              NUMBER
            , QUANTITY_SOLD         NUMBER(10,2)
            , AMOUNT_SOLD           NUMBER(10,2)
    ORGANIZATION EXTERNAL
            TYPE ORACLE_LOADER
            DEFAULT DIRECTORY sales_feeds
            ACCESS PARAMETERS
                    RECORDS DELIMITED BY newline
                    FIELDS TERMINATED BY ','
            LOCATION ('salesfeed.dat')
    REJECT LIMIT 0
    Table created.I then create that external flat file salesfeed.dat as folows
    set echo off
    set feedback off
    set linesize 100
    set pagesize 0
    set head off
    set sqlprompt ''
    set trimspool on
    spool on
    spool /backup/oracle/feeds/salesfeed.dat
    select PROD_ID||','||CUST_ID||','||TIME_ID||','||CHANNEL_ID||','||PROMO_ID||','||QUANTITY_SOLD||','||AMOUNT_SOLD
    FROM salesfeed where rownum = 1;
    spool off
    exit
    cat salesfeed.dat
    18,3131,21/03/1998 00:00:00,3,999,1,2600.76Note only one row at the moment (diagonising)
    Try to read it
    select * from salesfeed_external_table
    ERROR at line 1:
    ORA-29913: error in executing ODCIEXTTABLEFETCH callout
    ORA-30653: reject limit reachedThe log shows:
    cat SALESFEED_EXTERNAL_TABLE_1302.log
    LOG file opened at 11/24/11 12:16:02
    Field Definitions for table SALESFEED_EXTERNAL_TABLE
      Record format DELIMITED BY NEWLINE
      Data in file has same endianness as the platform
      Rows with all null fields are accepted
      Fields in Data Source:
        PROD_ID                         CHAR (255)
          Terminated by ","
          Trim whitespace same as SQL Loader
        CUST_ID                         CHAR (255)
          Terminated by ","
          Trim whitespace same as SQL Loader
        TIME_ID                         CHAR (255)
          Terminated by ","
          Trim whitespace same as SQL Loader
        CHANNEL_ID                      CHAR (255)
          Terminated by ","
          Trim whitespace same as SQL Loader
        PROMO_ID                        CHAR (255)
          Terminated by ","
          Trim whitespace same as SQL Loader
        QUANTITY_SOLD                   CHAR (255)
          Terminated by ","
          Trim whitespace same as SQL Loader
        AMOUNT_SOLD                     CHAR (255)
          Terminated by ","
          Trim whitespace same as SQL Loader
    error processing column TIME_ID in row 1 for datafile /backup/oracle/feeds/salesfeed.dat
    ORA-01843: not a valid monthI checked my nls date format etc:
    select * from nls_session_parameters;
    PARAMETER                      VALUE
    NLS_LANGUAGE                   ENGLISH
    NLS_TERRITORY                  UNITED KINGDOM
    NLS_CURRENCY                   £
    NLS_ISO_CURRENCY               UNITED KINGDOM
    NLS_NUMERIC_CHARACTERS         .,
    NLS_CALENDAR                   GREGORIAN
    NLS_DATE_FORMAT                DD/MM/YYYY HH24:MI:SS
    NLS_DATE_LANGUAGE              ENGLISH
    NLS_SORT                       BINARY
    NLS_TIME_FORMAT                HH24.MI.SSXFF
    NLS_TIMESTAMP_FORMAT           DD-MON-RR HH24.MI.SSXFF
    NLS_TIME_TZ_FORMAT             HH24.MI.SSXFF TZR
    NLS_TIMESTAMP_TZ_FORMAT        DD-MON-RR HH24.MI.SSXFF TZR
    NLS_DUAL_CURRENCY              ¤
    NLS_COMP                       BINARY
    NLS_LENGTH_SEMANTICS           BYTE
    NLS_NCHAR_CONV_EXCP            FALSEAny ideas?
    Thanks,
    Mich
    Edited by: Mich Talebzadeh on 24-Nov-2011 04:19

    Thanks
    The following now works
    CREATE TABLE salesfeed_external_table
              PROD_ID               NUMBER
            , CUST_ID               NUMBER
            , TIME_ID               DATE
            , CHANNEL_ID            NUMBER
            , PROMO_ID              NUMBER
            , QUANTITY_SOLD         NUMBER(10,2)
            , AMOUNT_SOLD           NUMBER(10,2)
    ORGANIZATION EXTERNAL
            TYPE ORACLE_LOADER
            DEFAULT DIRECTORY sales_feeds
            ACCESS PARAMETERS
                    RECORDS DELIMITED BY newline
                    FIELDS TERMINATED BY ','
                    MISSING FIELD VALUES ARE NULL
                    (         PROD_ID
                            , CUST_ID
                            , TIME_ID DATE  'dd/mm/yyyy HH24:MI:SS'
                            , CHANNEL_ID
                            , PROMO_ID
                            , QUANTITY_SOLD
                            , AMOUNT_SOLD
            LOCATION ('salesfeed.dat')
    REJECT LIMIT 0
    select * from salesfeed_external_table;
       PROD_ID    CUST_ID TIME_ID             CHANNEL_ID   PROMO_ID QUANTITY_SOLD AMOUNT_SOLD
            18       3131 21/03/1998 00:00:00          3        999             1     2600.76Regards,
    Mich

  • Import excel data from OWB10.2

    I wanted to import excel data into OWB 10gr2. So i have followed the steps in the attached link. But i cannot perform the operations from step 6 in OWB 10rR2.
    In OWB10.2 how could i create a new database link. Inorder to create a new module below ODBC i have to give the location. I cannot create the location.
    Step 6: Create an ODBC Source Module and a Database Link
    Use the following steps to create an ODBC source module and database link:
    1. From the Warehouse Builder console, create an ODBC source module. On the
    navigation tree, ODBC modules are listed under the Others node of the Databases
    node.
    2. On the Connection Information page, click New Database Link to create a new
    database link that reads data using the data source created. Figure 3–3 shows the
    entries used on the New Database Link dialog.
    Note: Ensure that the initialization parameter GLOBAL_NAMES is set
    to FALSE in the database's initialization parameter file. FALSE is the
    default setting for this parameter.
    Step 6: Create an ODBC Source Module and a Database Link
    3-4 Oracle Warehouse Builder Case Book
    Figure 3–3 New Database Link Dialog
    Notice that the Oracle Service Name field uses the Oracle system identifier
    specified for the agent.
    3. Ensure that the Use for Heterogeneous Services option is selected.
    Because you are not accessing an Oracle database, you can enter any value for
    username and password.
    4. Create and test this database link. Close the New Database Link dialog.
    5. Leave the Schema name <unspecified>. Click the Change Schema button and
    select <unspecified>. The Connection Information page now looks as shown in
    Figure 3–4.
    Step 8: Create a Mapping to Load Data Into the Target Table
    How Do I Load Data Stored in a Microsoft Excel File? 3-5
    Figure 3–4 Connection Information Page
    6. Create a new deployment location for the module or specify an existing location.
    http://www.oracle.com/technology/products/warehouse/pdf/Cases/case3.pdf
    But i cannot create in OWB10.2.
    Can any body suggest me the process.

    Gillies,
    I am not able to create a new location for ODBC in connection explorer.
    Which option should i consider. Should i consider database link or host:port:service or sql*net connection. suppose If i take database link option what is the description i have to enter in database link box. Should i create a database link manually from sql*plus.

  • Importing excel data into oracle tables

    Hello gurus,
    Importing excel data into oracle tables..
    I know this is the most common question on the thread ...First, i searched the forum, i found bunch of threads with loading data using sqlloader, converting excel into .Txt, tab delimited file, .csv file etc....
    Finally i was totally confused in terms how to get this done....
    Here is wat i have
       - Excel file on local computer.
       - i have laod data into dev environment tables(So no risk involved, but want to try something simple)
       - Oracle version 11.1.0.7
       - Sqlplus and toad (editors)
    Here is wat i like to do ....i dont know if its possible
        - Without going to unix server can i do everthing on local system by making use of oracle db and sqlplus or toad
       SQLLOADER might be one option...but i dont want to go the unix server for placing files and logs and stuff.
    Wat will be best and simplest option to do?? and wat format will best to convert from excel into csv, or txt or tab delimited etc.....
    If you suggest sqlloader, any code example will be greatly appriciated.
    Thank you so much!!!

    Hi,
    user642297 wrote:
    Imran,
    This is increadible option in toad!!! It works absolutely sweet!! I have toad 9.7 version. IT works great. Thank you so much!!You are welcome :)
    Well i have further discussion on this ....this option is great if you doing in staging or development area. What if your doing in prod?? If you automating the sqlloader then how do u do it?? I think we still need to stick with traditional approach of laoding data by making use of SQLLoader right ?? If m wrong please correct me.well, in our case, we do have access to a custom schema in prod where we create the staging table and load the data from datafiles.
    try this:
    load data
    infile 'C:\dest.csv'
    into table dest_table
    fields terminated by "~" optionally enclosed by '"'
    TRAILING NULLCOLS
    (name,
    owner_nm,
    description_column,
    UPDT_DT DATE 'MM/DD/YYYY')
    {code}
    you can get more info about sql loader and your error here:
    http://download.oracle.com/docs/cd/B10501_01/server.920/a96652/ch05.htm
    http://www.allinterview.com/showanswers/53766.html
    And one more quick question ...i found an example of control file , in that i see .dat format file. Is it a data file ?? can i try that option ?? But in excel i didnt see to convert the .dat format file.
    Any thoughts ???
    It is same as a delimiter text file.
    steps to create a .dat file (from a excel file):
    1. Insert a column between two columns and populate it with the delimiter (in our case, it is ~)
    2. Save the file as unicode text.
    3. Open the file in text editor and remove all the tabs (find an replace with blank)
    4. Save the file as "DEST.dat". Select encoding as UTF-8 while saving.
    5. Your .dat file is ready.
    Regards
    Imran
    Edited by: Imran Soudagar on Apr 22, 2010 10:22 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Import excel data for labview control

    I'm having some trouble importing excel data into labview. Goals: Input valve flow rates into excel, use those values to control DAQ, have user balance odor with excel defined flow rate, export balance data to excel. Here is what I have so far. Any help is greatly appreciated.
    Attachments:
    Intensity.vi ‏162 KB

    Where in the code are you reading from the Excel Spreadsheet? What VIs are you using? What are the problems are you experiencing (errors, unexpected values, etc.)?
    There is a Read From Spreadsheet File.vi in LabVIEW. LabVIEW uses ActiveX controls for .xlsx files, so saving the spreadsheet as a CSV file may be better for this VI. Try it out! See what happens.
    Here some more info on reading from spreadsheets:
    LabVIEW Manual: Read From Spreadsheet File VI
    KnowledgeBase article: How Can I Import Spreadsheet Files into LabVIEW using the .csv Format?
    Taylor B.
    National Instruments

  • Inability to import Excel data with xlsx or xlsm extensions

    Inability to import Excel data with xlsx or xlsm using Microsoft Project Standard V14 Import Wizard.   
    Get error message"Project cannot recognize this file format. Do you want to open this file in text only?"   when using xlsm.
    Nothing  no wizard or data when when trying xlsx.
    Windows XP/Office 2007. SP1 for MSP2010 installed.
    Thank you in advance.   Pete

    Pete H --
    No, it is not possible to import Excel files with either the xlsx or the the xlsm file extension.  This is simply a limitation of the Import/Export Wizard.  Sorry.  Hope this helps.
    Dale A. Howard [MVP]
    VP of Educational Services
    msProjectExperts
    http://www.msprojectexperts.com
    http://www.projectserverexperts.com
    "We write the books on Project Server"

  • The filter expression is on external data and could not be validated.

    The filter expression is on external data and could not be validated. It may not be supported in Web browser forms.
    I am reciveing this error in my infopath 2010 browser form when I am trying to filter a drop down list from sharepoint.
    I thought filters were available on infopath 2010 browser forms or are they only available from values inside the form?
    I did have a look around the forums but only could find this error occuring during beta stage.
    Thanks

    Ok, so you shouldn't be filtering in the form, because that means it downloads the entire list first and then filters out the items.  That's client-side filtering.  What you want to do is server-side filtering by doing a parameterized query.
    Set the data connection NOT to automatically download
    Add Form Load rules that do the following:
    First, "Set a Field's Value" and set the position query node of the data connection to the value of "manager" (whatever the exact syntax is)
    Then query the data connection
    Doind this should make it ONLY download items where position=manager instead of downloading all items and filtering.  This is a much better practice and was not even available in 2007, so you should make full use of it in 2010.  Even so, what you
    were doing should have worked anyway, so I'm not sure what's going on there.
    When you do the filtered dropdown, your Source field should be the repeating group of the data connection, not the property itself.  The property should only be selected in Value and DisplayName.  The group should be in the Source field, and THAT'S
    where you apply the filter.
    SharePoint Architect || Microsoft MVP ||
    My Blog
    Planet Technologies ||
    SharePoint Task Force

  • Date error ORA-01843: not a valid month

    Hi,
    I am in a 4.01 Apex environment with NLS_DATE_FORMAT     mm/dd/yyyy. I created a view with a CASE statements using 'when eventstartdate between '08/15/2010' and '06/1/2011' then...' clauses and the view is created fine. I also can query the view with no problem with SQL workshop and the CASE statements work as expected. When I create an interactive report on that view I keep getting ORA-01843: not a valid month. I even tried matching the format in the Interactive Report column format mask to the NLS format for the date and still get error.
    What seems especially strange to me is that even if I have the view column defined with a 'to_char' I still get the same error when I use the CASE statement to build the view. Doesn't the Interactive Report just 'see' the View column definitions-- why should it 'care' how the view was built?
    The only way I can get the View to work with an Interactive report in any manner is to remove all the CASE statements and define the 'eventstartdate' as text using to_char but that then eliminates my ability to do any filters that require date comparisons with between or '>', '<'.
    Help would be appreciated!
    Thanks,
    Pat

    Quick late night response - always convert your dates for comparison. Apples to apples
    Instead of between '01/31/2012', use either
    TO_DATE('01/31/2012', 'MM/DD/YYYY')or
    DATE '2012-01-31'More related info
    http://www.grassroots-oracle.com/2011/03/date-format-tolerance.html
    Sorry if I'm off target, thought it may help

  • How do i import excel data base into pdf form drop down field

    Hi,
    I have a table of about 2500 rows and three columns that i would like to import into a drop down window on a PDF form to be self populated when item selected rather than entering the data. How can this be done?
    Thanks!
    Richard

    Hi,
    I did not know only two entries for each option item is it. I have manually entered data in the drop down an list boxes. With 2500 lines of data I was hoping there was an easier way other than manually entering the data.
    I have no knowledge of Java Scripting.....
    I was just wondering if there was a way from an Excel spreadsheet to import that data into a PDF form to be selectable to populate PDF fields in a form. It doesn't sound like it.
    Thanks......

  • Importing excel data into ZAM 7.5 using SQL2005

    Hi,
    I am running ZAM 7.5 and have about 6500 workstation records in inventory. I have an excel spreadsheet that has been maintained for several years with some demographic info in it such as Site, Department, Building, etc for about 4000 of those workstations. I would like to get that information into the ZAM SQL2005 database. Can I import the data into the SQL database directly or is there a tool to do it? There are no purchase records tied to this data so using the purchase record import does not seem like an option. Any advice?
    Thanks,
    Jay

    Originally Posted by JoeyGuida
    I have found this document to very usefull.
    How to import an Excel file into SQL Server 2005 using Integration Services
    How to import an Excel file into SQL Server 2005 using Integration Services | Servers and Storage | TechRepublic.com
    Do you know what table to import this data to?

  • Help with Importing Excel Data into Formatted Tables

    This is my first post, here, so please be gentle!
    I am a relatively new user of InDesign CS4, and I am creating a 70-pg manufacturer's price book.  A very large portion of each page is going to be size and price information imported from a large Excel spreadsheet.
    I have created the table format that I'd like to use for each page, but the trouble comes when I import the Excel data into that table.  For some reason, when I import, it all dumps into one cell.  Would it be best to import as an unformatted table, and then format the table each time, or is there a way to simply import the data into my pre-formatted table?  I've seen how the former is done, but the latter seems much easier (...although that could be my inexperience talking).
    Any advice would be greatly appreciated!
    Thanks so much,
    Laura (V1500)

    Thank you both so much for your time!  This is exactly what I needed.
    Cheers
    Laura

  • Cannot import Excel dates

    I am using Oracle SQL Developer v1.2.1 and I'm trying to import an Excel file that contains date values formatted as 21-Sep-2007 11:29:45. During the import process, Data Preview shows that the date columns have values such as 39282.8. I have tried setting the Format on the Data Types tab and nothing is working. When I try import the file the following error messages are being displayed "Error at line 1:insert into EMMA_DB_PUSH_REPORT (MNTC_EVENT_ID,TKT_NBR,SCHED_COND_CD,NOTIFY_INDCR_CD,EVENT_DESC,OPEN_DT,START_DT,STOP_DT,SUBMIT_DT) VALUES(11848740186780000000000,3890.1,'SCHED','Y','APPROVED A SECOND TIME TO RE-GENERATE E-MAIL NOTIFICATION TO TSA SCHEDULED MAINTENANCE',TO_DATE('39282.8','DD-MON-YYYY HH:MI:SS'),TO_DATE('39347.6','DD-MON-YYYY HH:MI:SS'),TO_DATE('39348','DD-MON-YYYY HH:MI:SS'),TO_DATE('39346.4789930556','DD-MON-YYYY HH:MI:SS'))...SQL Error:ORA-01847: day of month must be between 1 and last day of month". Any suggestions would be greatly appreciated.

    Barry - The only way that I could import a date is if it was formatted as MM/DD/YYYY in Excel.

  • Use Best Practice to Import Master Data

    Hi,
    I am SAP beginner, i glad someone can guide me on my issue. How can I using best practice to import 1000++ material master data into SAP system ??? I already prepared the data in Excel spreadsheet. Can any one guide me on step?
    Thanks.

    Hi,
    LSMW is a very good tool for master data upload. The tool is very rich in features is also complex. Being a beginner you should check with a consultant to know how you can use LSMW to upload your 1000 + records. The tool too is quite intuitive. After entering the LSMW transaction you create the project, subproject and the object you are going to work on uploading. When u enter the next screen you see several radio buttons. Typically every upload required all the features behind those radio buttons and in the same sequence. It is not possible to give the details to be performed in each of these radio buttons in this forum. Please take a consultant's help in your vicinity.
    thanx
    Bala

  • Importing Excel data

    I'm trying to import a bunch of names, phone numbers, etc. into an InDesign file from an Excel file. When I import the data, it comes in as a table. How do I get it to come in as tab-deliniated text? i.e., basically, I want the name in the first column, the phone number in the second column... etc. But I don't want that information in actual cells. Just in text columns. Thanks!
    julie
    PS I'm using InDesign CC on an iMac.

    Thanks so much! I tried converting the table to text, but that option was not available to me in Indesign. I see it... but it's grayed out. So I tried saving the Excel file as tab deliminated text. This works, but it imports tons of extra tabs. So I have to go in and delete thousands of tabs. Is there a way to just save the data as text (as opposed to the entire spreadsheet... including the blank cells...which is what I think it's doing)?

Maybe you are looking for

  • Screen no longer works, help getting set up with external LCD?

    So my Titanium Macbook Pro's screen went out yesterday and it's no longer covered so I've been trying to figure out how to get it to work with an external LCD monitor. I can get it to boot up, and I can even get it to open itunes via Spotlight and hi

  • ACH IAT file format clarification

    Hi, We have some issue on ACH IAT file. Error 1 - Line Starting with 5200 - 67-69 - The currency is filled with USD, though we are making payments in EUR or other foreign currencies. Not sure from where this USD is picking up. Error 2 - Line Starting

  • I cannot get the Adobe Content Viewer to display anything in InDesign CS6 / on a Windows 7 PC.

    I create a scrollable text that is in a text frame using the Folio Overlay with the settings of Vertical Scroll and Use the Document Setting for its position.  When I click on the Preview icon on the Folio Overlay panel, it comes up with the with a p

  • Which memory would you perfer

    ok i was reading alot of messages about memory for the k7n2 delta l board and i cant stop thinking which memory i should get i understand cheap memory is cheap and good is good all i have is $110 to spend on memory since i m low on cash because of co

  • Nexus 1010 HA

    Hello    I have a problem with Nexus 1010 HA. I have two Nexus 1010. One is configured as Primary and the other as Secondary. I have a VSB (VSM type) created on both, enabled as Primary and Secondary respectively. HA between VSMs works fine. But HA b