TO_NUMBER and NLS parameters......don't understand

I am trying to get my head around the use of format elements and NLS parameters with TO_NUMBER and TBH am at my wits end. So I'm going to start with something simple. I've never bothered or had to bother with the third parameter 'nls params' for NLS settings and now that I have I really regret it.
This works even though the '.' and ',' characters are not in their normal positions....
SQL> SELECT TO_NUMBER(  '17.000,23', '999G999D99', 'nls_numeric_characters='',.'' ') FROM DUAL;
TO_NUMBER('17.000,23','999G999D99','NLS_NUMERIC_CHARACTERS='',.''')
                                                           17000.2
So why is this version throwing up an error?   (I should say all I've changed is the order of ',' and '.' in the string)
SQL> SELECT TO_NUMBER(  '17,000.23', '999G999D99', 'nls_numeric_characters='',.'' ') FROM DUAL;
SELECT TO_NUMBER(  '17,000.23', '999G999D99', 'nls_numeric_characters='',.'' ') FROM DUAL
ERROR at line 1:
ORA-01722: invalid number
Also does the order of characters matter here  'nls_numeric_characters='',.'' ')  ?
I apologise but when marking code in my spl*plus CLI and trying to paste here as 'SQL insert' lines ended up missing or wrapping or line spacing changing seconds later. I ended up with one line written over the other and the missing lines only being visible when highlighted!!!

Also does the order of characters matter here  'nls_numeric_characters='',.'' ')  ?
Of course the order is important. How would you tell the meaning of each character if it wasn't?
First character is the decimal separator, and the second is the thousand separator.
Your first query is OK because the decimal separator used in the input string is '.' and the thousand separator is ',', which matches exactly the characters specified in the NLS parameter.
The second query failed for the opposite reason.

Similar Messages

  • HT5622 i need help using the icloud it is not making any since to me can some one call me and help me with it please don't try to help me through email i need to talk and listen i don't understand instruction by reading

    i need help using the icloud it is not making any since to me can some one call me and help me with it please don't try to help me through email i need to talk and listen i don't understand instruction by reading.
    <Phone Number Edited by Host>

    You aren't addressing anyone from Apple here.  This is a user forum.
    You might want to call a neaby Apple store to see if they have a free class you could attend.

  • Archive and Install--I don't understand it!

    I'm a long time Mac user, but I have never done an A&I. I have to do one now according to the Apple support guys.
    My questions:
    Will I have to reinstall all my non-Apple applications?
    Will I lose any files?
    I've been reading old threads, but I still don't understand what happens if you do NOT check the "preserve users and network settings"? Will I lose my files?
    I am backing up right now using iBackup, but frankly I don't have a clue how to restore if needed. Will I need to restore?
    I know this isn't an erase and install, but I've always avoided all of this because the articles get so complicated.
    Proving that I would never, ever make it on a PC...
    Amy

    "Will I have to reinstall all my non-Apple applications?"
    Maybe some
    "Will I lose any files?"
    No
    You can read all about an Archive and Install here:
    http://docs.info.apple.com/article.html?artnum=107120

  • Destype and desname parameters don't work properly

    Hi,
    We have a j2ee webApp that uses oracle reports to run reports. One report in particular could be really long and slow (b/c it contains lots of dynamically generated jpegs) depending on what parameters a user chooses. So for this report, we'd like it to run asynchronously, notify the user when it is finished, and store the pdf on that user's local machine. So our report url looks like this:
    http://appServerHostName:portNumber/WebApp/rwservlet?report=someReport.jsp&server=ourServer&destype=LOCALFILE&desname=$TMP/test.pdf&cmdkey=someKey&desformat=pdf&ENGINERESPONSETIMEOUT=50&NOTIFYSUCCESS=[email protected]&NOTIFYFAILURE=[email protected]&background=yes&ourSpecificParameters...
    I got the first 2 things working by doing background=yes&notifysuccess=someEmailAddress
    However, I can't get the report to be downloaded to the user's machine after it's done running. I've tried:
    1) destype=localfile&desname=$TMP/test.pdf
    2) destype=localfile&desname=C:\temp\test.pdf and other ways.
    I also tried to see if I could store the pdf on our UNIX appServer:
    destype=file&desname=$TMP/test.pdf but that didn't work either.
    No matter what I set destype to (localfile, cache, or file), the pdf ALWAYS gets stored on our appServer at $ORACLE_HOME/reports/cache and the name of the pdf gets derived from the value of desname plus some 8-digit random numeric string. So in the 1st case above, the generated pdf was:
    test25136488.pdf
    And in the second case, the C:\temp\ wasn't interpreted as a directory, but as part of the filename so the result was an ugly filename:
    C:\temp\test14257852.pdf
    This is only a problem for us for this 1 report (and possibly others in the future) b/c our other reports typically run pretty fast so the user can just wait for the pdf output to pop up in their web browser.
    Any help on how to get destype and desname working properly (or if you have a better solution for dealing with really time and memory consuming reports) would be much appreciated.
    Thanks.

    Hello,
    The behaviour of DESTYPE=LOCALFILE is not the same for rwclient and the reports servlet :
    http://www.oracle.com/webapps/online-help/reports/10.1.2/topics/htmlhelp_rwbuild_hs/rwrefex/cmdline/common/bld_destype.htm
    It is not possible to save an ouput returned by an URL automatically with a browser.
    If you want something automatic, you have to use a free utility like curl or lynx
    http://curl.haxx.se/
    http://lynx.isc.org/lynx2.8.5/index.html
    or write a small application in java. There are many examples on the web :
    http://www.devdaily.com/java/edu/pj/pj010011/index.shtml
    Learn how to download the contents of a URL
    using Java's URL class
    http://www.javaworld.com/javaworld/javatips/jw-javatip34.html
    Java Tip 34: POSTing via Java
    Learn how to POST data to Web servers in Java
    http://www.exampledepot.com/egs/java.net/Post.html?l=rel
    e135. Sending a POST Request Using a URL
    http://java.sun.com/docs/books/tutorial/networking/urls/readingURL.html
    Reading Directly from a URL
    Regards

  • My iPhone 4gs won't let me download any apps because the security code is invalid? I enter everything correct and my address, don't understand why this is happening! Help please

    I just need to be able to download apps and my phone keeps saying the security code is invalid which doesnt make sense because I enter everything correct and it's really fustrating I've been to the apple store I've called support and they can't seem to fix it! Can somebody please help me? I thought apple was suposta be easy to use :\

    This can sometimes happen because there is a missmatch between the billing address entered on your iTunes account and the billing address from your bank records.  See http://support.apple.com/kb/TS1646.

  • T450s and docking stations : don't understand differences and limitations

    Hi,
    As you may have seen in my previous posts, I leave my previous company and my good old X220. So I am really wondering if I upgrade or not to the new T450s, or if I search for a X220/X230/T420s/T430s refurbished.
    One of my main concern, is the total display size when docked. I used to use quad FHD screens on my old X220, and I was thinking about increasing again the total display size by replacing 2 FHD screen by 1 4K monitor. However, it seems impossible to run 1 4K and 2 FHD simultaneously.
    So my question is, Where can I find the differences and limitations of the docking stations available for the T450s regarding the display size ability ?
    On the product sheet of the docking stations , Lenovo said "* Some of the video ports have exclusive use and are also dependent on the docked ThinkPad configuration".
    Ok, but where can I have this information ?
    Many thanks for your answers,
    Lenovo X220 4287-CTO / Intel Core i7 2640M @ 2.8 / Corsair Vengeance 16 Go@1866 MHz CL10 / Samsung SSD 840 PRO 512 Go / Bios 1.38 / Linux Xubuntu 14.04LTS / eGPU ATI Radeon 5870 Eyefinity 6 / 2x DELL U2142M / 2x DELL U2212HM

    According to https://software.intel.com/en-us/articles/quick-reference-guide-to-intel-processor-graphics,
    For HD5500 on U processor : 
    Independent Digital Displays : Yes (at most, 3 displays may be supported at one time)
    Maximum Display Resolution : U-Processors: 3840 x 2160 @ 60 Hz
    So 4 displays won't be possible on T450s.
    So, I guess, you can run :
    1 4K display @ 60hz 
    OR
    something like 3 FHD/WUXGA displays
    If someone can confirm...
    Lenovo X220 4287-CTO / Intel Core i7 2640M @ 2.8 / Corsair Vengeance 16 Go@1866 MHz CL10 / Samsung SSD 840 PRO 512 Go / Bios 1.38 / Linux Xubuntu 14.04LTS / eGPU ATI Radeon 5870 Eyefinity 6 / 2x DELL U2142M / 2x DELL U2212HM

  • Please explain, i don't understand

    Hi guys, could someone plese explain to me what the error below means, or is pointing towards. I don't understand it at all... Particularly the 'Another exception has been detected while we were handling last error' part...
    Another exception has been detected while we were handling last error.
    Dumping information about last error:
    ERROR REPORT FILE = (N/A)
    PC = 0x1b67a9e6
    SIGNAL = -1073741819
    FUNCTION NAME = (N/A)
    OFFSET = 0xFFFFFFFF
    LIBRARY NAME = (N/A)
    Please check ERROR REPORT FILE for further information, if there is any.
    Good bye.
    Thanks,
    Andy.

    hang on there - before you go posting the whole program - you can find where that error message is printed out, right? It should be in a catch block or something - just post the code that might have thrown the exception that was caught.
    You might do a bit of debugging on your own (with System.out.println, for instance) as an inability to determine where the problem is in your code can indicate that you don't understand it well enough to even take suggestions we give you - and if you don't understand it, we certainly don't care to.
    Good Luck
    Lee

  • Perform and form params, here's a thing i don't understand

    Hi all experts,
    a simple & dumb doubt I'd like to clarify about parameters in a form, if anybody can help
    Here's the declarative part of my sample code:
    TYPES: BEGIN OF ty_loghier,
                otype TYPE otype,
                objid TYPE hrobjid,
                stext TYPE stext,
               END OF ty_loghier.
        TYPES: tbl_ty_loghier TYPE TABLE OF ty_loghier.
        DATA: loghier TYPE tbl_ty_loghier WITH HEADER LINE.
    The FILTER form that follows should operate on the previously declared internal table, as follows:
    PERFORM filter CHANGING loghier[].
    I declared the form as follows:
    FORM filter CHANGING itab TYPE tbl_ty_loghier.
    but the syntax checker tells me that "TABLE- expected, not tbl_".
    I don't understand why, and also, I'd like to declare the form such that the itab used in the form is meant to be an internal table with header line. Seems quite a simple question but... I'm wasting a lot of time :P

    Hi ,
    Try this code...
    TYPES: BEGIN OF ty_loghier,
                otype TYPE otype,
                objid TYPE hrobjid,
                stext TYPE stext,
               END OF ty_loghier.
    DATA: loghier TYPE STANDARD TABLE OF ty_loghier .
    DATA : wa_loghier TYPE ty_org_data.
    PERFORM filter CHANGING wa_loghier.
    FORM filter CHANGING itab TYPE ty_loghier.
    Regards,
    Sachin M M
    Edited by: Sachin Mathapati on Jun 17, 2009 4:19 PM

  • I can't don't understand code in netbean and it's about Jframe.

    i use netbean to design 2 jframe with some buttons on both frame.
    frame1 is login form, frame2 is mainform. i want to show loginform then click the button1 to show 2nd jframe.
    then i click exit on 2nd jframe and it come back to loginform(frame1).
    i do alot of search on the google and here. i know the basic to show a jframe using
    setVisible or .show() .hide(), etc..
    the problem is what is my jframe variable name in netbean?
    i know i can create an jframe object
    such as: JFrame frame1 = new JFrame(); etc.. (it's ok if the syntax is wrong for now).
    When i use netbean, i drag the Gui components to the Jframe. The jframe is generated by netbean automatically.
    When the main program runs, it calls main() method, follow by :
    public void run() {
    new LoginForm().setVisible(true);
    new LoginForm().setVisible <--- setVisible(true) means show the form.
    and is new LoginForm() create an object from LoginForm class.
    public LoginForm() {
    initComponents();
    When it create a new object, it runs default constructor and calls iniComponoents and finally show the jframe.
    my question is when you create object, you usually declare variable and use variable to hold reference to the object.
    that's why i don't understand how it works here.
    it only create news object, bu no variable to holding it. how do i control this Jframe to show and hide without a reference variable????????????
    Edited by: roadorange on Feb 29, 2008 10:08 PM

    roadorange wrote:
    Encephalopathic . thank your reply so much. your reply is fast. i love it and love this forum.. LOLyou're welcome
    i tried hand-written code, and it looks just fine when design few buttons, labels and textfields.
    The adjustment of buttons(labels) are not that good on the frame.
    However, when you use IDE, you can drag the button on any spot you like in the jframe.... and in the process not learn how Swing works, and lose flexibility and power. Sorry to sound conceited, but I'll match any of your netbeans-created GUI's with one of my own, and mine will likely be better -- and I'm not all that good at this just yet.
    Much luck.

  • Which Mac Pro? More cores=slower speeds? And most of us know the speed matters or FPU for music and I don't understand the faster is for the least amount of procs. And while I get the whole rendering thing and why it makes sense.

    Which Mac Pro? More cores=slower speeds? And most of us know the speed matters or FPU for music and I don't understand the faster is for the least amount of procs. And while I get the whole rendering thing and why it makes sense.
    The above is what the bar says. It's been a while and wondered, maybe Apple changed the format for forums. Then got this nice big blank canvas to air my concerns. Went to school for Computer Science, BSEE, even worked at Analog Devices in Newton Massachusetts, where they make something for apple. 
    The bottom line is fast CPU = more FPU = more headroom and still can't figure out why the more cores= the slower it gets unless it's to get us in to a 6 core then come out with faster cores down the road or a newer Mac that uses the GPU. Also. Few. I'm the guy who said a few years ago Mac has an FCP that looks like iMovie on Steroids. Having said that I called the campus one day to ask them something and while I used to work for Apple, I think she thought I still did as she asked me, "HOW ARE THE 32 CORES/1DYE COMING ALONG? Not wanting to embarrass her I said fine, fine and then hung up.  Makes the most sense as I never quite got the 2,6,12 cores when for years everything from memory to CPU's have been, in sets of 2 to the 2nd power.  2,4,8,16,32,64,120,256,512, 1024, 2048,4196,8192, 72,768.  Wow. W-O-W and will be using whatever I get with Apollo Quad. 
    Peace to all and hope someone can point us in THE RIGHT DIRECTION.  THANK YOU

    Thanks for your reply via email/msg. He wrote:
    If you are interested in the actual design data for the Xeon processor, go to the Intel site and the actual CPU part numbers are:
    Xeon 4 core - E5.1620v2
    Xeon 6 core - E5.1650v2
    Xeon 8 core - E5.1680v2
    Xeon 12 core - E5.2697v2
    I read that the CPU is easy to swap out but am sure something goes wrong at a certain point - even if solderedon they make material to absorb the solder, making your work area VERY clean.
    My Question now is this, get an 8 core, then replace with 2 3.7 QUAD CHIPS, what would happen?
    I also noticed that the 8 core Mac Pro is 3.0 when in fact they do have a 3.4 8 core chip, so 2 =16? Or if correct, wouldn't you be able to replace a QUAD CHIP WITH THAT?  I;M SURE THEY ARE UO TO SOMETHING AS 1) WE HAVE SEEN NO AUDIO FPU OR PERHAPS I SHOULD CHECK OUT PC MAKERS WINDOWS machines for Sisoft Sandra "B-E-N-C-H-M-A-R-K-S" -
    SOMETHINGS UP AND AM SURE WE'LL ALL BE PLEASED, AS the mac pro      was announced Last year, barely made the December mark, then pushed to January, then February and now April.
    Would rather wait and have it done correct than released to early only to have it benchmarked in audio and found to be slower in a few areas- - - the logical part of my brain is wondering what else I would have to swap out as I am sure it would run, and fine for a while, then, poof....
    PEACE===AM SURE APPLE WILL BLOW US AWAY - they have to figure out how to increase the power for 150 watts or make the GPU work which in regard to FPU, I thought was NVIDIA?

  • I am new to Final Cut Express and don't understand why I am unable to drag transitions into Canvas? Something wrong in my setup? It's not the overlays they are "on" so can anyone advise me please?

    I am new to Final Cut Express and don't understand why I am unable to drag transitions into Canvas? Something wrong in my setup? It's not the overlays they are "on" so can anyone advise me please, by the way the "L" doesn't appear in the bottom left hand corner either? and by the way how can I get rid of that irritating Blue badge saying "AutoFill your contact details" all mine are in "address book" already!

    You can't drag a transition into the canvas. If you're dragginmg a transition from the effects tab you drag it between the edit point of two clips in the timeline.
    Make sure show edit overlays is turned on in the Canvas view popup.

  • I don't understand the thing you call live bookmarks never used it, and most forums I have used notify VIA E-mail not giving out my E-mail address information when a reply has been made to the thread in question.

    So how do I get notified of updates in this forum? As I said: I don't understand the thing you call LIVE BOOKMARKS I have never used them, and most forums I have used notify VIA E-mail not giving out my E-mail address, or other private information when a reply has been made to the thread in question, so how do I get notified of updates in this forum? I have seen no normal options for setting my viewing preferences used for this forum. Thank You.

    Thanks for your reply via email/msg. He wrote:
    If you are interested in the actual design data for the Xeon processor, go to the Intel site and the actual CPU part numbers are:
    Xeon 4 core - E5.1620v2
    Xeon 6 core - E5.1650v2
    Xeon 8 core - E5.1680v2
    Xeon 12 core - E5.2697v2
    I read that the CPU is easy to swap out but am sure something goes wrong at a certain point - even if solderedon they make material to absorb the solder, making your work area VERY clean.
    My Question now is this, get an 8 core, then replace with 2 3.7 QUAD CHIPS, what would happen?
    I also noticed that the 8 core Mac Pro is 3.0 when in fact they do have a 3.4 8 core chip, so 2 =16? Or if correct, wouldn't you be able to replace a QUAD CHIP WITH THAT?  I;M SURE THEY ARE UO TO SOMETHING AS 1) WE HAVE SEEN NO AUDIO FPU OR PERHAPS I SHOULD CHECK OUT PC MAKERS WINDOWS machines for Sisoft Sandra "B-E-N-C-H-M-A-R-K-S" -
    SOMETHINGS UP AND AM SURE WE'LL ALL BE PLEASED, AS the mac pro      was announced Last year, barely made the December mark, then pushed to January, then February and now April.
    Would rather wait and have it done correct than released to early only to have it benchmarked in audio and found to be slower in a few areas- - - the logical part of my brain is wondering what else I would have to swap out as I am sure it would run, and fine for a while, then, poof....
    PEACE===AM SURE APPLE WILL BLOW US AWAY - they have to figure out how to increase the power for 150 watts or make the GPU work which in regard to FPU, I thought was NVIDIA?

  • HT1296 When i attempt to sync my iphone it continues to say this computer is no longer authorized for apps and they will be deleted?? I don't understand?? I put my password and authorize but same message comes up.  What to do??

    When i attempt to sync my iphone it continues to say this computer is no longer authorized for apps and they will be deleted?? I don't understand?? I put my password and authorize but same message comes up.  What to do??

    I found the solution in another post.  By deleting all my apps, I was able to sync the phone.  I hope I don't have to delete all my apps every time I want to sync my phone, but at least now I am able to sync my phone.

  • My iMessage is still not working with my iPod touch 5th generation, and I don't understand the whole troubleshooting thing

    I read the thing for the troubleshooting messages and I don't understand it. I just want to send and receive messages on my iPod touch 5th generation 

    iOS: Troubleshooting Messages

  • I try to create my Account ID....and i don't understand why i have to put payment? before my friend create Account ID don't have to put payment they still can create account ID... and now i buy iphone but i don't have credit card that mind i can't not do

    Dear
    I try to create my Account ID....and i don't understand why i have to put payment? before my friend create Account ID don't have to put payment they still can create account ID... and now i buy iphone but i don't have credit card that mind i can't not do it

    Hi,
    This Link explains how to Set Up an Account ID...  without a credit card...
    http://support.apple.com/kb/HT2534
    Hope it helps,
    Cheers,

Maybe you are looking for