Invalid number when you use to_number function

Hello
Both in SQL * more and SQL Deveoper when I type and run

Select to_number ('1234.64 ','9999.9 ') of double;

I get ORA-01722: invalid number error. What can be the reason for this error?

Mikhail says:
SQL > select to_number('1234.64','9999D9') from double;
Select double to_number('1234.64','9999D9')
*
ERROR on line 1:
ORA-01722: invalid number

You pass it a string ("1234.64'") with two digits to the right of the decimal separator, but you tell it that you have only one digit to the right of the decimal separator ('9999 D 9')

Tags: Database

Similar Questions

  • ORA-01722: invalid number when you use the function TO_CHAR.

    Hi all
    I was using this query closely for 1 year and it worked fine.

    Select to_char (' 2012/12/23 ', ' DD/MM/YYYY') twice;

    How ever from Monday onwards it's me back with the following error.

    ORA-01722: invalid number

    The NLS_DATE_FORMAT is DD-MON-RR in my version of oracle 11g.

    Please help me with this.

    They should compare these values as values of date instead of under the form of strings. TO_DATE should be used instead of TO_CHAR.

    Published by: Saran on January 2, 2012 23:00

  • CC 2015 Illustrator crashes when you use the function "save for Web".

    CC 2015 Illustrator crashes when you use the function "save for Web".

    Hello

    We have published a 19.0.1 hotfix that resolves this problem in discussion on this topic. Please apply the patch to your creative cloud application. The creative cloud application checks the update once a day, so you may see the update immediately.  If you want to force the check for an update at the beginning please logout and log back into the creative Cloud application.

    Link to 19.0.1 release notes: https://helpx.adobe.com/illustrator/kb/illustrator-cc-2015-crash-bug-fixes-19-0-1.html

    Kind regards

    Ashutosh

    The name of the Illustrator team engineering

  • AutoComplete will not retain any customer number when you use online banking.

    Original title: semi-automatic seized problem!

    AutoComplete is on, but will not retain my customer number if you use my banking online as it used to, can anyone help please?

    Hi AlanFreeborn,

    1. what web browser do you use?

    2. did you of recent changes on the system?

    If you use Internet Explorer, you can try to reset IE and see if it helps.

    You can read the following article and try resetting IE.

    How to reset Internet Explorer settings

    Note: Resetting the Internet Explorer settings is not reversible. After a reset, all previous settings are lost and cannot be recovered.

    Hope this information is useful.

  • How to add the warning message when you use the function 'print' in Adobe LiveCycle Designer

    I'm trying to make the pdf document for my business that requires the addition of a warning message while everyone to use the function 'print' page...

    Does anyone know how to add the warning message about LiveCycle Designer

    Also my supervisor mentioned something using "nag" If that sounds at all

    Not in the XML code, in the case of script of pre-publication of the "print" key. If you don't have the script editor to the top on your version of designer, you can press ctrl + shift + F5 to bring it.

  • How to change the search engine when you use the functionality of Firefox Home button Search?

    In Firefox itself, I have configured duckduckgo as my default search provider.

    But when I use the host Firefox search button it is always defined on google and I don't see any possibility to change that?

    I love the Firefox Home button Search (or whatever we call it) otherwise, but it's annoying that it does not use the default Firefox.

    I use the Google Launcher now.

    Hi mrt181, it is planned to use the same search engine as in firefox - however, there is a bug at the moment, so it does not apply in all situations.
    usually, it will be enough to change the default engine in firefox back once to work around the problem in the search widget and get the same as set in the browser search provider.

  • Writing bug when you use the function to import .txt (Acrobat Pro DC)

    I'm trying to redact large sections of a document using the function import .txt to select phrases or expressions. It works great, except if there is - or '. In this case, Acrobat bad reads the text file, per the screenshot below. If I copy the sentence from the PDF file and add it in the same manual, it seems in good condition. If I paste the Clipboard even in a txt and then import the text, he result is bad reading and so cannot find the phrase in the document.

    Screen Shot 2016-04-17 at 9.42.45 PM.jpg

    It seems that the TXT file was done in Word and saved in Unicode format. and used quotation marks. Quotes in general are a big problem as three different characters are used for them and corresponding can be difficult; and 4 hyphen/as of the characters.

  • BlackBerry Smartphones Double letter or number when you use Tour

    When I start typing a normal letter or number of my background screen this figure or letter appears twice. It is a big pain since I have to go back and erase the additional number or a letter. Any advice? What is locked to something that I don't know?

    Hi and welcome to the forums!

    The first think that comes to mind is changing the rate.

    1. on the home screen or in a folder, click the Options icon.
    2. click screen/keyboard.
    3. set the key rate field.
    4. press the Menu key.
    5. click on save.

    Page 147 9630 User Guide

    Thank you

    Bifocals

  • Error "Invalid line" when you use the command tableFile - ttImportFromOracle

    Execution of the order and got an error, as shown below:

    c:\oracle>ttImportFromOracle -oraConn myUser/myPassword@myDB -tableFile C:\oracle\table_list.txt
    Error: Invalid Line 'mySchema.myTable2' in file 'C:\oracle\table_list.txt'
    Use '-help' for more information
    
    

    table_list.txt looks to below, except I have 112 tables total in the list, a table by line, as indicated in the help documentation.

    mySchema.myTable

    mySchema.myTable1

    mySchema.myTable2

    I tried to make the file table_list.txt have only the table (without figure) names and the same error occurs.

    Invalid line is always the last table in the file. So if I take off the table she complains, she complains always just whatever the table is the last in the file.

    Can someone tell me what I am doing wrong?

    Thank you

    Matt

    To work around the error, I just used - tables instead.

  • How to make appear the BCC in email, when you use the function of charms, hand

    I have sent a video about skydrive to friends but could not exercise the BCC field to send emails using the e-mail of charms, share.   Please don't tell me that it went unnoticed.  Thank you.

    Hey scottfactor,

    Unfortunately copy carbon (CC) and blind carbon copy (BCC) not currently being supported by the share to the mail scenario, you can use the Windows Mail application. If you have also installed the application SkyDrive, you can do the following:

    1. Start the Mail application
    2. Compose a new message
    3. Open the App bar
    4. Select attachments
    5. In the upper left corner of the file picker, select files
    6. Scroll and select SkyDrive

    Now you can select the video that you've uploaded to SkyDrive and share with your friends!

    -Chris

  • Muse randomly crashes when you use the function file/image of place. And is slow!

    Hi guys,.

    I use a MacBook Pro retina i7 with 8 GB of ram. I installed version track Adobe muse and I really love the product so far, except that it blocks a lot randomly, when I sometimes use the file from the location or place the image feature. (Command-D) Muse is also slow. I have some running applications, lots of free space etc but Muse stagnates, hang out and crashes a lot.

    Is there a reason known for this? This prevents me to consider buying the program.

    Help, please

    Kind regards

    Emmanuelle

    Please see Re: Muse crashing every time the image file is added

  • Slow performance when you use the function

    Hi all

    I have a function that returns the name of the product based on a number of identifiers. I create a new table

    Insert into the product
    (
    Name
    )
    Select
    PRODUCT (PRODUCT_ID)
    OF x_table


    It works very well but there are approximately million rows in the table and preformance is incrediably slow. No idea how I could improce performace or if I have to do this another way?

    Thanks in advance


    CREATE OR REPLACE FUNCTION PRODUCT (P_PRODUCT_ID IN VARCHAR2)
    RETURN VARCHAR2
    AS
    L_Name VARCHAR2 (4000);
    BEGIN
    SELECT NAME
    IN l_name
    PRODUCTS
    WHERE PRODUCTID = P_PRODUCT_ID
    OR PRODUCTID = P_PRODUCT_ID1
    PRODUCTID = P_PRODUCT_ID2
    PRODUCTID = P_PRODUCT_ID3
    PRODUCTID = P_PRODUCT_ID4;

    RETURN l_name;
    END;
    /

    It would probably be best...

    Insert into Product
    (
    Name
    )
    Select PRODUCTS.NAME
    FROM x_table
         JOIN PRODUCTS ON (x_table.product_ID IN (P_PRODUCT_ID, P_PRODUCT_ID1, P_PRODUCT_ID2, P_PRODUCT_ID3, P_PRODUCT_ID4))
    
  • Invalid number when you submit sets of query XML Publisher

    Hi all

    I face this problem when I click on the option of the second query on the entire application. I found that it is a bug of oracle on metalink. I post this question because I wanted to know if there is no work around for this problem without applying the patch.

    Appreciate your help.

    Best Reagards,
    Edwin

    Hi Edwin,.

    According to 6318578 bug, there is no work around, and you must apply the hotfix to resolve the problem. You can also connect a SR and confirm with Oracle support.

    Kind regards
    Hussein

  • ORA-00902 error invalid data type when you use CAST in the PL/SQL Package

    I'm getting ORA - 00902 Datatype not valid error when you use cast in getEmpValues (see code below) method in the package I created.
    I don't know what is the cause of the error. Any help would be appreciated



    CREATE OR REPLACE PACKAGE TEST. TEST_PKG AS

    ARRAY TYPE MyTableType IS NUMBER;
    TYPE REF_CURSOR IS REF CURSOR;

    FUNCTION str2tbl (p_str IN VARCHAR2)
    RETURN myTableType;

    PROCEDURE getContactValues (p_ParameterString IN VARCHAR2, p_Cursor1 to REF_CURSOR);

    END TEST_PKG;



    CREATE OR REPLACE PACKAGE BODY TEST. TEST_PKG AS

    FUNCTION str2tbl (p_str IN VARCHAR2)
    RETURN myTableType
    AS
    l_str LONG default p_str | ',';
    l_n NUMBER;
    myTableType l_data: = myTabletype();

    BEGIN
    LOOP

    l_n: = INSTR (l_str, ",");
    WHEN the OUTPUT (nvl(l_n,0) = 0);
    l_data.extend;
    l_data (l_data.count): = ltrim (rtrim (substr(l_str,1,l_n-1)));
    l_str: = substr (l_str, l_n + 1);
    END LOOP;
    L_data return;
    END;

    /*
    p_ParameterString is a string of the form 3, 6, 8, 9'
    */

    PROCEDURE getEmpValues (p_ParameterString IN VARCHAR2, p_Cursor1 to REF_CURSOR)
    AS


    BEGIN


    OPEN FOR P_Cursor1

    SELECT *.
    FROM EMP

    WHERE EMP_ID IN (SELECT *)
    OF THE (SELECT CAST (TEST.) (TEST_PKG.str2tbl (p_ParameterString) as myTableType) double)

    );
    END getEmpValues;

    END TEST_PKG;

    ARRAY TYPE MyTableType IS NUMBER;

    This type must be created outside of the package as a SQL type if it must be used in a select statement.

  • When you use find on the page (ctrl + F on Windows) it is a message indicating the total number of matches. What does the first number?

    When you use find on the page (ctrl + F on Windows) it is a message indicating the total number of matches. What does the first number?
    I'm more interested in the case when this number is smaller than the total.

    Hello

    I think you mean the text stating "x of there matches", to the right of the box where you entered the search term.

    The first number ("x" in my example above) indicates the current entry highlighted on the page that matches the search phrase. If you use the upper and down arrows to navigate through the instances of this term on the page, you will see this number go up and down.

    I hope this helps, but if not please come back here and we can look at another solution for you.

Maybe you are looking for