sqlcl 4.1.0.15.106.1020 LOADING ignores decimal marker

Please see this unit test:

I can only reproduce it on my Windows7 PC, but not on an environment Redhat 6 (same DB (12.1.0.2) and db-user):

ALTER SESSION SET NLS_NUMERIC_CHARACTERS = '. ' ;

drop table MAMUE ;

CREATE TABLE MAMUE
   (    SCODE VARCHAR2(54),
        "EDATE" DATE,
        "AMOUNT" NUMBER(21,3) NOT NULL ENABLE,
        "LDATE" DATE
   );

Insert into MAMUE
   values ('ccc',
           to_timestamp('24.12.15','DD.MM.RR HH24:MI:SSXFF'),
           19/2,
           null
           );

set sqlformat csv
spool MAMUE.csv
select * from MAMUE;
spool off;
rollback;

the file Mamue.csv should look like this:

"SCODE","EDATE","AMOUNT","LDATE"
"ccc",24.12.15 00:00:00,9.5,

Now I have load data and check the value:

LOAD MAMUE MAMUE.csv

SQL> select amount from mamue;

"AMOUNT"
95

I expect 9.5 but got 95.

As I can only reproduce on a single customer (but not another) I'm ready to dig into it, if someone can advise me?

Martin

This problem is fixed in sqlcl.4.1.0.15.177.0246 now.

Thank you very much!

Martin

Tags: Database

Similar Questions

  • sqlcl 4.1.0.15.106.1020 tnsping throws NULLPointerException

    While playing with sqlcl 4.1.0.15.106.1020, I can reproduce this behavior:

    berx$ ./sql /nolog
    
    
    SQLcl: Release 4.1.0 Release Candidate on Thu Apr 16 22:05:22 2015
    
    
    Copyright (c) 1982, 2015, Oracle.  All rights reserved.
    
    
    
    
    SQL> tnsping
    Apr 16, 2015 10:05:27 PM oracle.dbtools.raptor.newscriptrunner.ScriptExecutor run
    SEVERE: oracle.dbtools.raptor.newscriptrunner.commands.PingCmd.ping(PingCmd.java:69)
    java.lang.NullPointerException
      at oracle.dbtools.raptor.newscriptrunner.commands.PingCmd.ping(PingCmd.java:69)
      at oracle.dbtools.raptor.newscriptrunner.commands.PingCmd.handleEvent(PingCmd.java:53)
      at oracle.dbtools.raptor.newscriptrunner.CommandRegistry.fireListeners(CommandRegistry.java:380)
      at oracle.dbtools.raptor.newscriptrunner.ScriptRunner.run(ScriptRunner.java:197)
      at oracle.dbtools.raptor.newscriptrunner.ScriptExecutor.run(ScriptExecutor.java:269)
      at oracle.dbtools.raptor.newscriptrunner.ScriptExecutor.run(ScriptExecutor.java:180)
      at oracle.dbtools.raptor.scriptrunner.cmdline.SqlCli.process(SqlCli.java:250)
      at oracle.dbtools.raptor.scriptrunner.cmdline.SqlCli.processLine(SqlCli.java:257)
      at oracle.dbtools.raptor.scriptrunner.cmdline.SqlCli.startSQLPlus(SqlCli.java:682)
      at oracle.dbtools.raptor.scriptrunner.cmdline.SqlCli.main(SqlCli.java:297)
    
    
    SQL>
    

    probably should say "you want to do a ping?"

    My approx. is a MacBook with OSX 10.10.3

    java -version
    java version "1.8.0_40"
    Java(TM) SE Runtime Environment (build 1.8.0_40-b25)
    Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)
    

    Yes, it's a bug

  • sqlcl 4.1.0.15.106.1020 sqlformat insert SCHEMA not attempt schema. TABLE

    without schema name, I get a correct insert statement:

    set sqlformat insert
    select * from DUAL;
    

    REM INSERTING into DUAL

    SET DEFINE OFF;

    Insert into DUAL (DUMMY) values ('X');

    but

    set sqlformat insert
    select * from SYS.DUAL;
    

    REM INSERTING into SYS

    SET DEFINE OFF;

    Insert into SYS (DUMMY) values ('X');

    which doesn't really make sense?

    Martin

    Thanks for reporting this... reproduced and placed on listening.  This applies to both sqlcl and spreadsheet user interface.

  • sqlcl 4.1.0.15.106.1020 trimspool kills sqlformat csv

    with these simple commands

    set trimspool on
    
    set sqlformat csv
    
    spool dual.csv
    
    select * from dual;
    
    spool off;
    
    

    I get this stack trace:

    Apr 23, 2015 12:54:46 PM oracle.dbtools.raptor.newscriptrunner.ScriptExecutor run
    SEVERE: java.lang.System.arraycopy(Native Method)
    java.lang.ArrayIndexOutOfBoundsException
            at java.lang.System.arraycopy(Native Method)
            at oracle.dbtools.raptor.newscriptrunner.WrapListenBufferOutputStream.write(WrapListenBufferOutputStream.java:183)
            at oracle.dbtools.raptor.newscriptrunner.WrapListenBufferOutputStream.reallywrite(WrapListenBufferOutputStream.java:227)
            at oracle.dbtools.raptor.newscriptrunner.WrapListenBufferOutputStream.write(WrapListenBufferOutputStream.java:217)
            at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221)
            at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:291)
            at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:295)
            at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:141)
            at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:229)
            at oracle.dbtools.raptor.format.ResultsFormatter.print(ResultsFormatter.java:566)
            at oracle.dbtools.db.ResultSetFormatter.formatResults(ResultSetFormatter.java:105)
            at oracle.dbtools.db.ResultSetFormatter.formatResults(ResultSetFormatter.java:61)
            at oracle.dbtools.raptor.newscriptrunner.SQL.processResultSet(SQL.java:494)
            at oracle.dbtools.raptor.newscriptrunner.SQL.executeQuery(SQL.java:418)
            at oracle.dbtools.raptor.newscriptrunner.SQL.run(SQL.java:56)
            at oracle.dbtools.raptor.newscriptrunner.ScriptRunner.runSQL(ScriptRunner.java:294)
            at oracle.dbtools.raptor.newscriptrunner.ScriptRunner.run(ScriptRunner.java:202)
            at oracle.dbtools.raptor.newscriptrunner.ScriptExecutor.run(ScriptExecutor.java:269)
            at oracle.dbtools.raptor.newscriptrunner.ScriptExecutor.run(ScriptExecutor.java:180)
            at oracle.dbtools.raptor.scriptrunner.cmdline.SqlCli.process(SqlCli.java:250)
            at oracle.dbtools.raptor.scriptrunner.cmdline.SqlCli.processLine(SqlCli.java:257)
            at oracle.dbtools.raptor.scriptrunner.cmdline.SqlCli.startSQLPlus(SqlCli.java:682)
            at oracle.dbtools.raptor.scriptrunner.cmdline.SqlCli.main(SqlCli.java:297)
    
    

    can someone please reproduce?

    Thanks for reporting this... reproduced and placed on listening.

  • SQL Loader - ignore the lines with "rejected - all null columns."

    Hello

    Please see the attached log file. Also joined the table creation script, data file and the bad and throw the files after execution.

    Sqlldr customer in the version of Windows-

    SQL * Loader: release 11.2.0.1.0 - Production

    The CTL file has two clauses INTO TABLE due to the nature of the data. The data presented are a subset of data in the real world file. We are only interested in the lines with the word "Index" in the first column.

    The problem we need to do face is, according to paragraph INTO TABLE appears first in the corresponding CTL lines file to the WHEN CLAUSE it would insert and the rest get discarded.

    1. statement of Create table : create table dummy_load (varchar2 (30) name, number, date of effdate);

    2. data file to simulate this issue contains the lines below 10. Save this as name.dat. The intention is to load all of the rows in a CTL file. The actual file would have additional lines before and after these lines that can be discarded.

    H15T1Y Index | 2. 19/01/2016 |

    H15T2Y Index | 2. 19/01/2016 |

    H15T3Y Index | 2. 19/01/2016 |

    H15T5Y Index | 2. 19/01/2016 |

    H15T7Y Index | 2. 19/01/2016 |

    H15T10Y Index | 2. 19/01/2016 |

    CPDR9AAC Index | 2. 15/01/2016 |

    MOODCAVG Index | 2. 15/01/2016 |

    H15TXXX Index | 2. 15/01/2016 |

    H15TXXX Index | 2. 15/01/2016 |

    3. the CTL file - name.ctl

    DOWNLOAD THE DATA

    ADD

    IN THE TABLE dummy_load

    WHEN (09:13) = "Index".

    TRAILING NULLCOLS

    (

    COMPLETED name BY ' | ',.

    rate TERMINATED BY ' | '.

    COMPLETED effdate BY ' | '. ' TO_DATE (: effdate, "MM/DD/YYYY").

    )

    IN THE TABLE dummy_load

    WHEN (08:12) = "Index".

    TRAILING NULLCOLS

    (

    COMPLETED name BY ' | ',.

    rate TERMINATED BY ' | '.

    COMPLETED effdate BY ' | '. ' TO_DATE (: effdate, "MM/DD/YYYY").

    )

    invoke SQL loader in a file-> beats

    C:\Oracle\product\11.2.0\client\bin\sqlldr USERID = myid/[email protected] CONTROL=C:\temp\t\name.ctl BAD=C:\temp\t\name_bad.dat LOG=C:\temp\t\name_log.dat DISCARD=C:\temp\t\name_disc.dat DATA=C:\temp\t\name.dat

    Once this is run, the following text appears in the log file (excerpt):

    Table DUMMY_LOAD, charged when 09:13 = 0X496e646578 ('Index' character)

    Insert the option in effect for this table: APPEND

    TRAILING NULLCOLS option in effect

    Column Position Len term Encl. Datatype name

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

    NAME                                FIRST     *   |       CHARACTER

    RATE                                 NEXT     *   |       CHARACTER

    EFFDATE NEXT * |       CHARACTER

    SQL string for the column: ' TO_DATE (: effdate, "MM/DD/YYYY").

    Table DUMMY_LOAD, charged when 08:12 = 0X496e646578 ('Index' character)

    Insert the option in effect for this table: APPEND

    TRAILING NULLCOLS option in effect

    Column Position Len term Encl. Datatype name

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

    NAME                                 NEXT     *   |       CHARACTER

    RATE                                 NEXT     *   |       CHARACTER

    EFFDATE NEXT * |       CHARACTER

    SQL string for the column: ' TO_DATE (: effdate, "MM/DD/YYYY").

    Record 1: Ignored - all null columns.

    Sheet 2: Cast - all null columns.

    Record 3: Ignored - all null columns.

    Record 4: Ignored - all null columns.

    Sheet 5: Cast - all null columns.

    Sheet 7: Discarded - failed all WHEN clauses.

    Sheet 8: Discarded - failed all WHEN clauses.

    File 9: Discarded - failed all WHEN clauses.

    Case 10: Discarded - failed all WHEN clauses.

    Table DUMMY_LOAD:

    1 row loaded successfully.

    0 rows not loaded due to data errors.

    9 lines not loading because all WHEN clauses were failed.

    0 rows not populated because all fields are null.

    Table DUMMY_LOAD:

    0 rows successfully loaded.

    0 rows not loaded due to data errors.

    5 rows not loading because all WHEN clauses were failed.

    5 rows not populated because all fields are null.


    The bad file is empty. The discard file has the following

    H15T1Y Index | 2. 19/01/2016 |

    H15T2Y Index | 2. 19/01/2016 |

    H15T3Y Index | 2. 19/01/2016 |

    H15T5Y Index | 2. 19/01/2016 |

    H15T7Y Index | 2. 19/01/2016 |

    CPDR9AAC Index | 2. 15/01/2016 |

    MOODCAVG Index | 2. 15/01/2016 |

    H15TXXX Index | 2. 15/01/2016 |

    H15TXXX Index | 2. 15/01/2016 |


    Based on the understanding of the instructions in the CTL file, ideally the first 6 rows will have been inserted into the table. Instead the table comes from the line 6' th.

    NAMERATEEFFDATE
    H15T10Y Index2January 19, 2016



    If the INTO TABLE clauses were put in the CTL file, then the first 5 rows are inserted and the rest are in the discard file. The line 6' th would have a ""rejected - all columns null. "in the log file. "


    Could someone please take a look and advise? My apologies that the files cannot be attached.

    Unless you tell it otherwise, SQL * Loader assumes that each later in the table and what clause after the first back in the position where the previous left off.  If you want to start at the beginning of the line every time, then you need to reset the position using position (1) with the first column, as shown below.  Position on the first using is optional.

    DOWNLOAD THE DATA

    ADD

    IN THE TABLE dummy_load

    WHEN (09:13) = "Index".

    TRAILING NULLCOLS

    (

    name POSITION (1) TERMINATED BY ' | '.

    rate TERMINATED BY ' | '.

    COMPLETED effdate BY ' | '. ' TO_DATE (: effdate, "MM/DD/YYYY").

    )

    IN THE TABLE dummy_load

    WHEN (08:12) = "Index".

    TRAILING NULLCOLS

    (

    name POSITION (1) TERMINATED BY ' | '.

    rate TERMINATED BY ' | '.

    COMPLETED effdate BY ' | '. ' TO_DATE (: effdate, "MM/DD/YYYY").

    )

  • SQL Loader with decimal comma

    Dear all,

    I am loading data for a German client and the files shipped contain numeric data with decimal comma. For example 123.5 instead of 123.5

    I've been Googling like crazy on this one and there is a lot of chatter on the definition of NLS_LANG and/or NLS_NUMERIC_CHARACTERS, but none of this seems to work in the environment SQL Loader.

    I guess I'll end up tinkering together something complicated with TO_NUMBER or another function, but I really can't believe SQL Loader isn't a simple switch to return semicolon.

    Or I forgot something?

    Advice would be a great help.

    Kind regards
    Alan Searle

    You can use something like:

    Load data
    INFILE...
    BadFile...
    ....
    fields completed by...
    (
    ...
    col1 "translate (: col1, ','.')", ".
    ...
    )

    Published by: SKU on January 28, 2009 04:41

  • Web sites only loaded with question marks.

    Some websites is charged only with the question marks, after that I updated to Firefox 4.0.1. I have attached a screenshot in the link below.

    http://img64.imageshack.us/img64/2462/wmarks.PNG

    Try to create a new profile. See profiles of boards - where Firefox stores your bookmarks, passwords and other data from the user and use the Profile Manager to create and delete profiles Firefox

  • VRML loading screen

    Hello

    Do a small project where I take a folder full of files, VRML and loading in an image control. The problem is that it can take a little time to do it according to the number of files is. I was wondering if it is possible to build a loading screen for this.

    Attached is the most simple VRML loader (ignore some of the matter in the case structure they will be used later) also attached is one of the VRML files

    Thank you for your help

    Hi again,

    I have good news. I managed to find out why VRML files are so slow (it is a little off topic but could help some people). The VRML file created in Solid Edge is very poorly structured and is very difficult for any program (including LabVIEW) to deal with. Thus, even a reduction of quality will not help much (it will help, but not as much as re structuring VRML)

    http://www2.HRP.no/VR/tools/chisel/install.htm

    The link above is a FANTASTIC program that will sort you files for you I found that be a bit careful what options you turn on, as some will really lower the quality, and some will be unreadable VRML.

    From personal experience, I found that the best option was to reorganize section and is called "Join the shapes of color", this reduces the number file size and polygon by approximately 50%

    play with the other options, but save a return to the top!

    Oh and the above program is free!

    Here's the finished application if someone wants to do a quick look

    Thank you all for your help

    See you soon

  • Overview of VMware View 5.2 Load Balancing

    Hi guys,.

    I use VMware view Horizon 5.2 and my infrastructure is as follows:

    2 view x servers security

    2 view connection x servers

    Can anyone please guide me how to configure load balancing and what are the best practice Horizon of VMware View load balancer configuration.

    See you soon

    http://pubs.VMware.com/view-52/topic/com.VMware.ICbase/PDF/horizon-view-52-architecture-planning.PDF

    Simply place your load balancer in front of the two security servers. This is indicated on page 70 - figure 5-2.

    If you also want to allow access by internal users, and then add two replicas more connection to the server. This is indicated on page 71 - figure 5-3.

    Your reviews will connect to the alias balanced appropriate load.

    Mark

  • Formula of member using loading rules

    Hello.
    We would charge a member and its related formula of a file .txt, using a rule. The formula refers to a member in the sketch that contains a slash (/) in his name.
    I have attached the name of the Member in quotation marks (""); However, the name of the Member and its formula loaded without quotation marks and an error returns during the audit of the schema.
    Here is an example; We would charge Member Yes and its formula ("AccountB' - ' Account/C'): the loading of file is:

    * Member name *; * Member formula *.
    Yes; "AccountB' - ' account/C;

    The Member is responsible, but members in the formula are loaded without quotes; Thus, the formula of Member is not validated.
    I was wondering if it is possible to load member formulas, keeping the quotation marks in the formula.
    Thanks in advance

    You must use a backslash escape character before each quote and the symbol of the division to make them stay

  • Sleep and charge utility does not work on Satellite C850-B763.

    Hello

    I have Toshiba Satellite C850-B763 unique language of windows 8.

    When I try to run the sleep and cool service I get the message "unable to get hardware information.

    After clicking ok, I got the sleep and Charge Control Panel, but boxes are disabled and the battery bar works very well.

    Can you please help?

    Hello

    First you should check if s for computer laptop USB port support the Sleep & Charge feature.
    USB ports support load & sleep are marked with a small sign of flash.

    Here a nice Youtube clip on "Sleep and Charge" feuture
    http://www.YouTube.com/watch?v=tJhLOfJybmQ

    In the case of the laptop supports this feature, you should take the next step and must check if sleep & support is enabled in the BIOS.
    To access the BIOS, press F2 during the turn on/off the unit.
    Note: the device should be turned off (hybrid closed must be disabled)

  • Downloaded Firefox 8 and history, tools, etc. in the upper bar disappeared... where t0?

    With the old Firefox, there was another bar located above the tabs for history, tools, etc. Home button for google, etc... where is this bar go... very confusing!

    "Firefox" button > Options (2nd column) > [x] Menu bar
    Also uncheck the tabs on top

    You can return to the new mode via view > toolbars >...

    Needless to say that I think that a large part of the new formula which wastes space and give you very little control. The top 10 items get back you to what you had, if you follow it down with some styles you get all your old stuff in the same space as the new style (assuming that you have need of tabs and bookmarks toolbar)

    You can make Firefox 8.0 look to Firefox 3.6. *, see numbered items 1-10 of the next topic difficulty Firefox 4.0 UI toolbar, problems (make Firefox 4.0 to 8.0, resemble 3.6). If you make changes, you must be aware of what has changed and what it takes to use changed or missing features.

    It is much more beyond these first 10 steps in the list, if you want to make Firefox more functional.

    Before and after the customizations, the following also includes hair changes outside to rearrange toolbars and toolbar items.

    Please mark "resolved" a response that will better help others with a similar problem - hope it was her.

  • File PLPropertyLoader.ini does not options registration

    Hello

    With the help of TestSTand 4.2.0.

    When the tool to Import/Export properties is changed, and then the user presses 'DONE', two fields of the Export/Import Properties dialog box are not saved:

    (1) decimal point of

    (2) sequence

    Can they be saved in the PLPropertyLoader.ini file also?

    This problem spans 159809 of known cause (IE this issue only problem with sequence)

    Hi Chris,

    Thanks for the Bug 159809 updated.  I'm going to
    create a new bug for this issue report, our developers are aware
    of it, but you can really solve for your version of
    TestStand until a new version is available with the fix.  The source
    Code of the Loader property (and other components) is provided with
    TestStand, so we can modify the code and recompile (if you have
    access to a development CVI system).  Running the property Loader tool
    simply calls the existing GenericImportExport.seq file in the
    Directory of \Components\Tools.  In this sequence file.
    We see it just call a function from the TSDBComponents.dll which
    There are in the \Components\StepTypes\Database
    Directory.  Which calls the function DB_PLImportExportProperties
    PropertyLoader.c in the same directory as the DLL. The line of code
    Here we look at is 9703 line in my version (TestStand
    4.2.1), down from the PLLoadDefaultCtrlSettings function:

    If (!.) Ini_ItemExists (iniText, 'VARIOUS', 'DÉCIMAL')) / / added in v1.1, if playback option saved from 1.0, use a default value
       
    SetCtrlVal (propertyLoaderDialog-> sqlStatementPanelHandle,
    STATEMENT_DECIMAL, TS_DecimalPoint_UsePeriod);       fail silently
    in case of error
    on the other

    {
    errChk (Ini_GetInt (iniText, 'VARIOUS', 'DÉCIMAL', & value));
    SetCtrlVal (propertyLoaderDialog-> sqlStatementPanelHandle, STATEMENT_DECIMAL, value);       silently fail on error
    }

    This
    Code reads the file PLPropertyLoader.ini and load the DECIMAL
    entry into memory.  If we change the SetCtrlVal in another case to
    Assign the value (+ 1), the property loader works as expected.  I have
    This changed and recompiled the DLL and the property loader now
    preserves the decimal option correctly.

  • Images of the user interface does not?

    I have this problem that just started to happen. I don't have to open my project within a certain time and now all of a sudden every time that I run through flash builder my entire user interface (all images) load with question marks and I get access denied error when you create a folder in a shared directory. I need to desperately remedy as soon as possible because I need to get an update for my application tomorrow. If this can help I worked in flashbuilder on a different project for some time, but I got my cert backup files. Has anyone seen this happen before?

    Thanks for the replies. I had all the necessary permits and all files were in place. It turns out that there may have been a corrupted project file. Everything has started a new project and copied on all my code and active, linked up all my library references and voila.

  • Conversion DECIMAL CHARACTER

    Hi all

    I get data from a flat file for a column, I have

    65900
    650
    754399

    for example: 65900
    I would like to insert into table as 659,00

    to: 754399
    I would like to insert into table as 7543.99

    The last two digits must be separated I can't change the data type... It is now character .i want to load given decimal
    If I get 65 only hav i charge 65.00

    THANKS IN ADVANCE...

    As I said, you need to change the case statement to reflect the desired logic. Looks like you should take on the Middle:

    with t as (
    select 65900 num1 from dual UNION ALL
    select 650 num1 from dual UNION ALL
    select 754399 num1 from dual
    )
    select case
             when num1 < 1000 then to_number(num1)
             else to_number(num1/100)
           end actual_num
    from t;
    

Maybe you are looking for

  • Virus/Malware removal

    I use Chrome and getting persistent pop - ups of type 'update of flash".  I think I have met in Safari as well, but have not been able to confirm that for the purpose of this post.  I frequently meet URLS include: CDN.freefarcy onlineupgrade.alwaysne

  • Example: 15-af156sa: screenshot of Hp 15-af156sa

    Try everything to my knowledge but can't yet the screen turned on 15-af156sa with the help of win 10 would be great tnx

  • Windows Media Player 12 and Windows Virtual PC

    Dear Sir. Windows Vista, standard support, why all the new products like Windows Media Player 12, Windows Virtual PC is not released for Windows Vista. It seems that Windows Vista is no longer supported, I ask you to get some new free packages for Wi

  • Excel attachments to email on Microsoft surface using yahoo mail

    in yahoo mail trying to attach an excel document, after click on join the only documents that you see in my folder are docx type.  I know that there are word and Excel files in the folder.

  • Screen lock without password!

    Why windows require us to always unlock the screen with a password? Microsoft asked its customers before forcing it? I bet that there are reasons of security, but only techniques and users have not been invited. Correct me if I'm wrong.So, how to rem