Notes on Sql Developer - Importing - XLS

This isn't really a question, but I thought I should get the record of my tribulations posted so someone else won't have to work as hard as I did.
Please note when using import in sql dev - first, the file MUST be a xls formated BINARY file. I received a file with the extension xls, but it was actually a tab delimited csv, and the only message import gave me was : 'an error has occurred' , and then a stack trace with :
java.io.IOException: Invalid header signature; read 664572811392150337, expected -2226271756974174256
     at org.apache.poi.poifs.storage.HeaderBlockReader
A ascii csv would cause this since it doesn't have the binary header. Incidentally, poi is a java (apache) library for reading microsoft file formats.

You can try changing the column in the excel to general datatype before you attempt to load using sql developer.
alternate way...
You can save the excel file as .csv file. Once saved you should be able to use the sql*loader to load the data.
the sqlldr command for online
sqlldr userid control=test.ctl log=test.log bad=test.bad data=test.csv discard=test.txt
the test.ctl should be as follows
load data
infile 'test.csv'
into table constraint_chk
fields terminated by ','
(column1 char(10),
column2 date,
column3 number) ;
please let me know, if you need more info...

Similar Messages

  • Oracle sql developer import .xls data for table

    When I import data from .xls how come it doesn't show me an message when the import is done? How do i know when it is done? How come I don't see all the rows. When I do a select count(*) from table I come up with different numbers every time I do it.
    Once I do create the table with the data how do I generate the scripts for it. I was able to get the scripts to create the table ->table->Right click -> Export ddl .
    But how do I get the script for the "Insert statements"
    Edited by: user8117487 on Oct 7, 2009 11:17 PM
    Edited by: user8117487 on Oct 7, 2009 11:26 PM

    Hesh,
    The numeric value of 39057 in an Excel cell does display as 06-Dec-2006 when applying a date format DD-Mon-YYYY, so you are getting the right value - just not the right formatting.
    Which column type are you trying to import the XLS date into? If you are not loading the value into a date field, SQL Developer is probably just loading the base excel value of 39057.
    theFurryOne

  • SQL Developer import from Excel or CSV not creating new table

    I am sure I have done this with previous version of SQL Developer. I am now running 1.5.4 with patches update from 5/27/2009. I am running on Windows XP. When I start the import wizard I get to the point were the varify button appears. I click Verify. Everything is successful. The next button is grayed out. The send to worksheet is not checked. I press the finish button and the new table is not created.
    I don't get any error message. I refresh my table list and the new table is not created. I can create new tables using SQL Developer so I don't think it can be a privelege problem. I know I did this a few weeks ago. I am not sure what version of SQL Developer I was running. But I have updated to the latest and greatest since then.

    I wanted to import and use my table data from MS Excel 2010 in SQL developer Version 3.1.05.
    I was told that SQL does not import .xls data. For that reason, I was searching for a script which Import data from excel to SQL developer. I tried many different forums DBS blogs. Then eventually I found the solution inside the SQL developer itself.
    In your Editor window, There would be options like,
    1. Columns | Data | Constraints |Grants | Sta...... "so on"
    2. In second row, you can find a drop box with certain table options. Select the last option "Import Data"
    THERE YOU GO.
    do accordingly to your need and you will get the data as well its scripts.
    I hope this would help you all. Thanks. :-)

  • SQL Developer Import Excel problem

    I just recently installed SQL Developer (1.1.3).
    I created a table with 4-columns all char datatype.
    I tried to import an excel file into this table. Checked Header Row )1st excel record is header) and move all Available columns into Selectedcolumns. All my excel records are shown on the data preview. But when I click on [Insert], it gave me a message: No columns selected for insert.
    When I viewed the DML: insert into TBLCLOSETIMETABLE (Choose Data Type,Choose Data Type,Choose Data Type,Choose Data Type) VALUES('January','Thursday, February 01, 2007','Payroll','1st Wk');
    Any help will be greatly appreciated.

    I was able to "successfully" import excel files. I did not know I had to edit/map on the Data Types tab.
    Now I have a different problem where I have my date in excel as 01-Feb-07 and the
    Data Preview pane shows 39,114.
    I was not able to successfully import this column.
    Again, any help will be greatly appreciated.

  • Sql developer import function

    Hi I need to import multiple records (5000) in a table . I am using sql developer 1.5.1 but import function is not working properly. please suggest the steps .
    thanks
    Ruchi

    I would say that the import function in Sql Developer is still evolving...
    So far I have tried it in 1.5.1 (where it mostly does NOT work, especially with Excel files), with 1.5.3 (where I think works the best) and with 1.5.4 where new import requirements make it unnecessarily hard to work with.
    What I mean by that, is that although in 1.5.3 you can match your CSV text columns to existing Table columns, in 1.5.4 you immediately get an error and the import aborts if the CSV text columns do not match in number and name the existing table column. I would like to have the option to match the columns myself, since I do not always have the luxury of importing all the columns with the names provided in the CSV file.

  • Can connect via ODBC but not via SQL Developer?

    Hi, all.
    My setup:
    Windows XP Pro
    JDK 1.6
    SQL Developer 2.1.1.64.45
    I'm attempting to connect to an Oracle DB using OS authentication and trying hand-entry of the host and SID; and also trying my TNS file. When I attempt to connect via SQL Developer, I get the following error:
    "Status : Failure -Test failed: ORA-01017: invalid username/password; logon denied."
    When I attempt this same connection, however, using ODBC and Access, I can get right in and see the tables.
    What can I try in order to get SQL Developer working correctly?
    Thanks,
    IVR Avenger

    I'm not really familiar with connections Using OS authentication, but if OCI+TNS based connections work you could try to activate OCI connections by selecting
    Preferences -> Database -> Advanced -> Use OCI/Thick Driverand then use the TNS connection type when creating your connection.
    It should work well even with the thin driver but i cannot help you in this case because i've never had to use this kind of authentication.

  • Username password works in SQL Plus not in SQL Developer

    I have SQL Dev 1.2.1. It works fine with some databases, but with two databases with logons managed by Oracle Enterprise User it does not work. I receive an Ora 01017 error invalid username password. The user name and password work fine from SQL Plus and from a third party tool. I have a local developer client environment installed, so am using TNS. SQL Developer was installed before the client environment. I was not trying to access this database before the client environment install. I was using the basic connection before the client install. Neither basic or TNS connection works for this particular database.
    Any ideas?

    We have changed the password and it still does not work. There are no special characters in the password.
    I am tempted to think the problem is the jdbc driver versions. The logon for Enterprise user controlled databases stopped working after I installed the thick client Oracle developer. I have tried to find the threads with information on disabling the thick client jdbc but have not found them. I also have tried to enter a URL for the thin client without success. One of our DBAs is saying that the 11g clients are broken and he is in communication with Oracle about it. He says 10g works but 11g does not.
    Any further help would be appreciated.
    Gerry

  • ORA-01427 in C# but not in SQL Developer

    Hello everyone!
    I have a query that works perfectly when executed from SQL Developer. However, executing the same query from C# gives error ORA-01427.
    I am using Oracle.DataAccess.dll version 2.111.6.20, which cannot be changed, because the software is distributed and all users would have to install the new driver.
    -- part 1
    with
    mat_stats
    as
    (select
    t1.nr,
    t1.ver,
    t4.stat,
    count( distinct t4.kom_id) as cnt
    from
    table1 t1,
    table2 t2,
    table3 t3,
    table4 t4
    where
    t3.spec_spec_id = t2.spec_id
    and t1.man_id = t2.man_man_id
    and t4.kom_id = t3.kom_kom_id
    group by t1.nr, t1.ver, t4.stat
    order by t1.nr, t1.ver, t4.stat )
    -- part 2
    select distinct
    nr,
    ver,
    -- part 2a
    (select cnt from mat_stats xres
    where xres.nr=nr
    and xres.ver=ver
    and stat='OK') as ok_cnt,
    -- part 2b
    (select cnt from mat_stats xres
    where xres.nr=nr
    and xres.ver=ver
    and stat='TOL') as tol_cnt
    from mat_stats
    The output from part 1 is
    "nr" "ver" "stat" "cnt"
    1 5 "NOK" 4
    1 5 "TOL" 1
    And the output of part2 is (SQL Developer)
    "nr" "ver" "ok_cnt" "tol_cnt
    1 5 "" 1
    What am I doing wrong ? Or is this a known bug ?
    Cheers,
    Chris

    now if the sum is changing the value then I have to ask: are these hitting the same data sources?
    let's change the query around a bit and see if you get the same result
    try this query
    with
    mat_stats
    as
    SELECT 1 NR  ,
           5 VER ,
           'NOK' STAT ,
           4 CNT
    FROM DUAL
    UNION
    SELECT 1 NR  ,
           5 VER ,
           'TOL' STAT ,
           1 CNT
    FROM DUAL
    -- part 2
    select distinct
    nr,
    VER,
    SUM(CASE STAT WHEN 'OK' THEN CNT ELSE 0 END) OVER() OK_CNT,
    SUM(CASE STAT WHEN 'TOL' THEN CNT ELSE 0 END) OVER() tol_cnt
    FROM MAT_STATS ;
    NR                     VER                    OK_CNT                 TOL_CNT               
    1                      5                      0                      1                      note I just "faked" your data based on your initial results, so you ought to be able to be able to change the with clause back to yours.
    Run a full select in C# and look over the result set (fill a datatable and do a row.count then compare to a full select in Developer and see if the row counts are the same.

  • SQL Developer: import from Excel bug

    SQL Developer 1.1.2.25 Build MAIN 25.79
    This is a test for import from Excel.
    Test table:
    create table bla
    (x number null,
    y varchar2(1) null);
    Excel data:
    x y
    1 a
    2 b
    3
    SQL Deveoper generates:
    Error at line 3:insert into BLA (X,Y) VALUES(3,'NULL')
    IMPORT into table BLAcomplete
    Inserted 2rows.
    Failed to insert 1rows.
    SQL Error:ORA-12899: value too large for column "BCRCEK"."BLA"."Y" (actual: 4, maximum: 1)
    I think there is a bug, because there must be generated NULL without apostrophe.
    insert into BLA (X,Y) VALUES(3,NULL);

    Hi Barry,
       That's[b] GREAT NEWS !!!.
       So, i just update current release 1.1.2.25 to 1.1.2.25.79 ?
    Thanks for the great work.
    Zack
      Oops !!! Am already using 1.1.2.25.79, same as bcrcek above. So need to wait for Patch Release ?
    Regards
    Zack
    Message was edited by:
            Zack.L                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Seeing decimal values in TOAD, but not in SQL Developer

    I'm writing on behalf of a co-worker. He's using SQL Developer to look at some records in a database, but in one column he sees zeroes instead of the correct decimal values (the values are between 0 and 1).
    However, the developer he's working with is using TOAD and sees the correct decimal values in the column.
    Any idea as to how to get the decimal values to appear correctly within SQL Developer?

    The database version is 10g, the version supported by TOAD is 9.
    Hi ,
    1/I have not seen this reported please give a create
    table statement and some test data to insert to
    reproduce the problem.. Please give versions of
    SQLDeveloper and the Oracle database - out current
    production release of SQLDeveloper is 1.5.1(.54.40)
    2.If you can convert the number to a string at the
    database side say with TO_CHAR you should see the
    string representation of the number in SQLDeveloper.
    This would work if you are using a select via the
    worksheet or a view on the table with the number if
    you want to see it in a views data tab.
    -Turloch

  • SCANIP not connect sql developer

    I install rac 11gr2 on Oracle Enterprise Linux 5.7
    but i not use SCANIP connect
    I use sql developer of client (example notebook) connect by use SCANIP not connect but I use ip address direct can connect
    Why?
    Thank you very much
    Edited by: 891982 on Dec 4, 2011 5:28 AM

    I install client but I connect go to ip of scan but find error
    ora-12545 connect failed because target
    resolve ?
    in client
    I not want resolve in file hosts
    Thank you
    Edited by: 891982 on Dec 6, 2011 1:51 AM
    Edited by: 891982 on Dec 6, 2011 1:58 AM

  • I can not start sql developer 2.1

    I have a problem that start sql developer.
    when I doubleclick the icon(sqldeveloper.exe) at install path,then pop a dialog window that remind me "Unable to create an instance of the Java Virtual Machine Locate at path : D:\env_java\jdk1.0.0_17\jre\bin\client\jvm.dll ".
    now I want to know how to resolve that question.thanks you.

    Welcome to the forums !
    You will most likely get a better/faster response in the SQL Developer forum SQL Developer
    HTH
    Srini

  • Sql developer: import settings from prev version

    hiya!
    where are settings from previous version?
    went from sql dev 1.0.x to 1.1.x, and on first open of application was prompted, "would you like to import your settings from previous install?" i tried a couple, but couldn't quite get the right file.
    of course, its probably v easy...
    thanks in advance.
    be well,
    =todd

    SQL Developer forum is here - SQL Developer

  • Solution to sql developer import problem - nullpointerexception

    This isn't really a question, but I thought I should get the record of my tribulations posted so someone else won't have to work as hard as I did.
    Importing from a spreadsheet that has a blank column will give 'an error has occurred' and a stacktrace like :
    java.lang.NullPointerException
         at oracle.dbtools.raptor.dialogs.importdata.ExcelImportDialog.getStringValue(ExcelImportDialog.java:291)
         at oracle.dbtools.raptor.dialogs.importdata.ExcelImportDialog.populateModel(ExcelImportDialog.java:347)
         at oracle.dbtools.raptor.dialogs.importdata.ExcelImportDialog.displayExcelDialog(ExcelImportDialog.java:148)
         at
    Getting rid of that column, should get you past this point and to the import wizard.

    The import from xls feature has been rewritten from the scratch and a new "Import Data" wizard has been made available in SQLDEV 1.5 EA3, that is yet to be announced. This should take care of the blanks in xls. The new wizard will also support import from cvs files. Watch for EA3 announcement to try out the new Import Data wiz.

  • Import data using Excel and Oracle SQL Developer - I need some help

    Dear friends,
    I'm using Oracle SQL Developer 1.5.1 and I need to import an Excel file into a database table. If I try to import this file in XLS format, fields and headers are correctly being shown and separated, but if I press "Next" button, it simply doesn't do anything - it stays stopped.
    I did some search here in this forum and it seems to me that, when you try to import a file via XLS format, SQL Developer has bugs. Is this correct?
    If I save the same file in CSV format and try to import the same file, it goes ahead, but SQL Developer is not separating fields and headers correctly. It combines all CSV fields into one - let's say Column0 and fields 1;TEST;01/01/2000 below the same Column0.
    Saving the file in CSV format is not a problem, taking a very little time. But I don't know how to make SQL Developer import it correctly. Could somebody please help me? Thanks in advance.
    Best regards,
    Franklin

    Hello K,
    yes, you're right. I found the following topic after posting this question here.
    Re: After update to 1.5.1, import from Excel fails
    I downloaded version 1.5.0 and I'll use it whenever I import data from Excel.
    Thanks,
    Franklin

Maybe you are looking for

  • In original Budget crossing the limit for a particular order no error procd

    Hi In budget where the amount exceeds the original budget without showing any error message for budget exceeding. for example order no:xxxx amt 100000 and posting amt 200000 without error system proceeding. But generally system don't allow if we cros

  • Two Adobe accounts problem

    Hi, I hope you can help my with this frustrating problem. I have a Sony Reader prs-350, and have the Sony Reader software installed on my Mac. Recently Until recently I had been buying ebooks and downloading them on to an old computer using the Reade

  • How to adjust Variant ?

    Hi, I had a report with more than 20 variants & was working fine. Now I have modified its selection-screen as per the requirement. But after this, all the varaints starts giving error like Variant 'XYZ' of program 'ABC'  is not the current version. T

  • Master Page readOnly or protected fields still open on page 2 of PDF

    I have a flowable form that I have added some textfields to the Master Page in order to have them on every page. I have set the fields to global binding so the form filler can access them from any page.  This works fine, the fields populate and the c

  • Profit center substitution rule not overriding OKB9

    There is an automatic assignment of a cost center to an expense GL account in OKB9. This is cost center is not assigned to any profit center because it is a generic cost center. When we try to post to the same account manually using FB50 and when we