To_number with period and comma

As a part of a validation function I have to validate strings against a valid number format. The following weird behaviour I have spot during the implementation.
SQL> select TO_NUMBER('1.1.1.1,11','9G999D99') from dual;
TO_NUMBER('1.1.1.1,11','9G999D99')
1111,11
SQL> select TO_NUMBER('1.1.11,11','9G999D99') from dual;
TO_NUMBER('1.1.11,11','9G999D99')
1111,11
SQL> select TO_NUMBER('1.111,11','9G999D99') from dual;
TO_NUMBER('1.111,11','9G999D99')
1111,11
SQL> select TO_NUMBER('1111,11','9G999D99') from dual;
select TO_NUMBER('1111,11','9G999D99') from dual
FEHLER in Zeile 1:
ORA-01722: Ungltige Zahl
'1.111,11' should be valid only. Is it a bug or my misconception?
These statements ran on Release 11.1.0.6.0.

Sorry, I've I forgot to mention that my nls_numeric_characters parameter is set to ',.' already.
SQL> select VALUE from NLS_SESSION_PARAMETERS where PARAMETER='NLS_NUMERIC_CHARACTERS';
VALUE
Anyway, with the nls_numeric_character parameter passed to the function these statements did not produce any error.
SQL> select TO_NUMBER('1.1.1.1,11','9G999D99','nls_numeric_characters=,.') from dual;
TO_NUMBER('1.1.1.1,11','9G999D99','NLS_NUMERIC_CHARACTERS=,.')
1111,11
SQL> select TO_NUMBER('1.1.11,11','9G999D99','nls_numeric_characters=,.') from dual;
TO_NUMBER('1.1.11,11','9G999D99','NLS_NUMERIC_CHARACTERS=,.')
1111,11
I except an error to be thrown. Obviously both numbers '1.1.1.1,11' and '1.1.11,11' did not match the mask '9G999D99'.

Similar Messages

  • Possible to control space after periods and commas?

    There's a font i'd like to use as a body text font, but sometimes the spaces after periods and commas are inadequate. Is there a way to control this in InDesign? or must this be resolved by manipulating the font in a font editor?
    thanks
    Kurt Hoffman

    but sometimes the spaces after periods and commas are inadequate...
    I'm not sure either solution will really work well with justified text.
    When you say sometimes, it sounds like your text is justified and the space after periods is variable. Peter's GREP solutions would track the space after a period but the amount would still be variable when the text  is justified. So you could also look at the Justification setting for the style:
    The default Justification setting which allows a significant difference between min and max word spacing, and no difference in letter spacing:
    Changing the Word Spacing to 90% | 100% | 120% and the letter spacing to -2% | 0% | 2% creates a more consistent space after the periods.

  • Problem with sqlldr and commit

    Hi,
    i have a problem with sqlldr and commit.
    I have a simple table with one colum [ col_id number(6) not null ]. The column "col_id" is primary key in the table. I have one file with 100.000 records ( number from 0 to 99.999 ).
    I want load the file in the table with sqlldr ( sql*loader ) but i want commit only if all records are loaded. If one record is discarded i want discarded all record of file.
    The proble is that in coventional path the commit is on 64 row but if i want the same records of file isn't possible and in direct path sqlldr disable primary key :(
    There are a solutions?
    Thanks
    I'm for the bad English

    This is my table:
    DROP TABLE TEST_SQLLOADER;
    CREATE TABLE TEST_SQLLOADER
    (     COL_ID NUMBER NOT NULL,
         CONSTRAINT TEST_SQLLOADER_PK PRIMARY KEY (COL_ID)
    This is my ctlfile ( test_sql_loader.ctl )
    OPTIONS
    DIRECT=false
    ,DISCARDMAX=1
    ,ERRORS=0
    ,ROWS=100000
    load data
    infile './test_sql_loader.csv'
    append
    into table TEST_SQLLOADER
    fields terminated by "," optionally enclosed by '"'
    ( col_id )
    test_sql_loader.csv
    0
    1
    2
    3
    99999
    i run sqlloader
    sqlldr xxx/yyy@orcl control=test_sql_loader.ctl log=test_sql_loader.log
    output on the screen
    Commit point reached - logical record count 92256
    Commit point reached - logical record count 93248
    Commit point reached - logical record count 94240
    Commit point reached - logical record count 95232
    Commit point reached - logical record count 96224
    Commit point reached - logical record count 97216
    Commit point reached - logical record count 98208
    Commit point reached - logical record count 99200
    Commit point reached - logical record count 100000
    Logfile
    SQL*Loader: Release 11.2.0.1.0 - Production on Sat Oct 3 14:50:17 2009
    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
    Control File: test_sql_loader.ctl
    Data File: ./test_sql_loader.csv
    Bad File: test_sql_loader.bad
    Discard File: none specified
    (Allow all discards)
    Number to load: ALL
    Number to skip: 0
    Errors allowed: 0
    Bind array: 100000 rows, maximum of 256000 bytes
    Continuation: none specified
    Path used: Conventional
    Table TEST_SQLLOADER, loaded from every logical record.
    Insert option in effect for this table: APPEND
    Column Name Position Len Term Encl Datatype
    COL_ID FIRST * , O(") CHARACTER
    value used for ROWS parameter changed from 100000 to 992
    Table TEST_SQLLOADER:
    100000 Rows successfully loaded.
    0 Rows not loaded due to data errors.
    0 Rows not loaded because all WHEN clauses were failed.
    0 Rows not loaded because all fields were null.
    Space allocated for bind array: 255936 bytes(992 rows)
    Read buffer bytes: 1048576
    Total logical records skipped: 0
    Total logical records read: 100000
    Total logical records rejected: 0
    Total logical records discarded: 0
    Run began on Sat Oct 03 14:50:17 2009
    Run ended on Sat Oct 03 14:50:18 2009
    Elapsed time was: 00:00:01.09
    CPU time was: 00:00:00.06
    The commit is on 992 row
    if i have error on 993 record i have commit on first 992 row :(
    Edited by: inter1908 on 3-ott-2009 15.00

  • Why does the iPhone Keyboard have a reversed period and comma from the normal keyboard?

    Why does the iPhone Keyboard have a reversed period and comma from the normal keyboard?

    MacinNW_Brent wrote:
    I don't mean to drive a Marine crazy, but there is no such thing as a standard keyboard. Especially tiny ones. Looks at a phone key pad, and then look at a calulator keypad. It is flipped top to bottom.
    JajLvr, if it drives you crasy, then get a BT keyboard.
    Brent
    Agreed.  Even the iPhone has multiple built-in keyboards to choose from.

  • How do I control a data log session with period and sample time?

    I need a data logging system where the operator can select 2 logging parameters: Log Period and Sample Time. I also need a START and STOP button to control the logging session. For example, set the log period for 1 hour and the sampling time for 1 second. (I may be using the wrong jargon here.) In this case when the START button is clicked, the system starts logging for 1 second. An hour later, it logs data for another second, and so on until the operator clicks the STOP button. (I will also include a time limit so the logging session will automatically stop after a certain amount of time has elapsed.)
    It’s important that when the STOP button is clicked, that the system promptly stops logging. I cannot have the operator wait for up to an hour.
    Note that a logging session could last for several days. The application here involves a ship towing a barge at sea where they want to monitor and data log tow line tension. While the system is logging, I need the graph X-axis (autoscaled) to show the date and time. (I’m having trouble getting the graph to show the correct date and time.) For this application, I also need the system to promptly start data logging at a continuous high rate during alarm conditions.
    Of course I need to archive the data and retrieve it later for analysis. I think this part I can handle.
    Please make a recommendation for program control and provide sample code if you can. It’s the program control concepts that I think I mostly need help here. I also wish to use the Strip Chart Update Mode so the operator can easily view the entire logging session.
    DAQ Hardware: Not Selected Yet
    LabVIEW Version: 6.1 (Feel free to recommend a v7 solution because I need to soon get it anyway.)
    Operating System: Win 2000
    In summary:
    How do I control a graphing (data log) session for both period and sample time?
    How do I stop the session without having to wait for the period to end?
    How do I automatically interrupt and control a session during alarm conditions?
    Does it make a difference if there is more than one graph (or chart) involved where there are variable sample rates?
    Thanks,
    Dave

    Hello Dave,
    Sounds like you have quite the system to set up here. It doesn�t look like you are doing anything terribly complicated. You should be able to modify different examples for the different parts of your application. Examples are always the best place to start.
    For analog input, the �Cont Acq&Chart (buffered).vi� example is a great place to start. You can set the scan rate (scans/second) and how many different input channels you want to acquire. This example has its own stop button; it should be a simple matter to add a manual start button. To manually set how long the application runs, you could add a 100 ms delay to each iteration of the while loop (recommended anyway to allow processor to multi-task) and add a control that sets the number
    of iterations of the while loop.
    For logging data, a great example is the �Cont Acq to File (binary).vi� example.
    For different sample rate for different input lines, you could use two parallel loops both running the first example mentioned above. The data would not be able to be displayed on the same graph, however.
    If you have more specific questions about any of the different parts of your application, let me know and I�ll b happy to look further into it.
    Have a nice day!
    Robert M
    Applications Engineer
    National Instruments
    Robert Mortensen
    Software Engineer
    National Instruments

  • Great shortcut for periods and commas!

    Apologies if this is has been posted previously, but found it so useful think it warrants repeating!
    Basically, you can type a period with ease if you simply press the ‘.?123’ key, then keep your finger on the screen and just slide it up and over a bit to the period when the numeric keypad appears. Amazingly, this key reacts as soon as your finger touches it (no lifting required), and the numeric keypad will automatically disappear when it does, leaving you right back where you started with the normal keyboard active—and with a period in your document! And instead of multiple taps, it took but one.
    It works for the comma as well, you just change the angle of the "slide".
    Original post is here: http://missingmanuals.com/poguesawesome_iphone_typingshortcut.csp
    MacBook Pro 15"   Mac OS X (10.4.10)  

    This tip is really, really great.
    Apple should document this... With this, there's no need for any changes to the keyboard layout...
    This little slide move works fast and perfectly every time... (And works for any of the NON ABC keys too)

  • Pekwm menu action with spaces and commas

    Hello,
              I have problems with few wine actions in pekwm menu.
    The action path contains spaces, and wine syntax requires commas to correctly read it.
    The problem is that pekwm syntax also requires commas, so the action doesn't work in the menu.
    The same commands launched from terminal work flawlessly.
    Does anyone know the correct syntax I should use?
    Thank you in advance
    Submenu = "Wine" {
        Entry = "FullTiltPoker" { Icon = "/home/nemesis/.local/share/icons/28F5_FullTiltPoker.0.png"; Actions = "Exec wine /home/nemesis/.wine/drive_c/"Programmi (x86)"/"Full Tilt Poker"/FullTiltPoker.exe &" }
        Entry = "PokerStars" { Icon = "/home/nemesis/.local/share/icons/663D_PokerStarsUpdate.0.png"; Actions = "Exec wine /home/nemesis/.wine/drive_c/"Programmi (x86)"/PokerStars/PokerStarsUpdate.exe &" }
        Entry = "PokerstarsIt" { Icon = "/home/nemesis/.local/share/icons/663D_PokerStarsUpdate.0.png"; Actions = "Exec wine /home/nemesis/.wine/drive_c/"Programmi (x86)"/PokerStars.IT/PokerStarsUpdate.exe &" }
    nemesis@myhost ~]$ pekwm --info
    pekwm: version 0.1.12 Built on Mon Apr 26 20:16:24 UTC 2010
    features:  XShape Xinerama Xft image-xpm image-jpeg image-png Xrandr menus harbour
    Last edited by Nemesis1963 (2010-10-27 11:30:46)

    split takes a RegularExpression as parameter:String[] result = "Testing, one two, three four five".split("[, ]");
    for (int x=0; x<result.length; x++)
         System.out.println(result[x]);

  • Period and Period interval.

    I am confused with period and period interval. "As many periods as required can be open simultaneously. However, only two period intervals can be open at the same time". This is the statement I saw in the book. Can somebody explain it more.

    Dear,
    I am confused with period and period interval.
    Period is nothing but the standalone value which means only one. For e.g. 1
    Period interval is nothing but the range which include period. For e.g. 1   to   8
    Regards,
    Chintan Joshi.

  • TVARV - Dynamic Period and Year

    Hi,
    A standard FI report is executed weekly in batch job. The selection screen for the report has the following fields: Period and Year. We need the following:
    1) A report variant that takes the current period and current year
    2) A report variant that takes the previous period and current year
    I know that it is possible to have dynamic dates (Current / date calculations), but is it possible with period and year as well ina  variant?
    What do the variables in TVARV table "SAP_SCMA_PERIOD" and "SAP_SCMA_FISC_YEAR" do?
    Since this is a standard report, what could be the solution?
    Awaiting response.

    Hi Anuritha,
    Did you able to solve this problem. Basically I am also in the same situation, so it would be great help if you suggest me what needs to be done exactely !
    How did you manage the variants SAP_SCMA_FISC_YEAR & SAP_SCMA_PERIOD in TVARV table to work accordengly.
    Looking forward for your reply.
    --Thanks
    Pankaj

  • Opportunity Product reporting with # of Periods and Frequency

    We are just about to roll out out a business unit and they will be using the frequency, number of periods, and the start/close date fields on the revenue record.
    In staging, I created a test report and it 'explodes' the product to have 12 individual entires, since I picked 12 as the number of periods. I set the qty to 60 and all 11 months have 60 but the first month has 61. Is there a reason for that?

    Product: you do get the dimensions and facts for the Product object... so you'd build a report with Product information
    Opportunity-Product: you do get dimensions and facts for the Products related to an opportunity... so you'd build a report with Opportunity and Product information
    Antonio
    Bexpert, Brazil

  • Issue with Transporting Trans and Comm Structure

    Hi Experts,
    Recently we moved an Infosource ( with Transfer structure and Comm stucture) from D to Q. After movement we checked teh Transport log and we see a warning that says
    " R3TRROUT458SEFRDF2PUBJRIZGZAOPSNB not found, object also deleted in target system"
    From teh object name it appears like a routine. But how do we know the actual name of the routine so that we can see in find out and compare betwn systems.
    Thanks
    DVMC

    Hi,
    If you want to find the objects using only technical name, use the table TADIR.
    In your case execute this table and give the technical name
    '458SEFRDF2PUBJRIZGZAOPSNB' (Removed R3TR and ROUT).
    Then you can get the routine details.
    Regards,
    Vivek V

  • I Have iPad4 and using with Aricel Prepaid 3G SIM, How to check my VAlidity period and balance amount through iPad?. pls help me

    I Have iPad4 and using with Aricel Prepaid 3G SIM, How to check my VAlidity period and balance amount through iPad?. pls help me, M.Kumar, Chennai,
    <Email Edited By Host>

    There are 2 concepts attached to a bank balance. The balance as per your books of accounts and another is the balance maintained with the bank. I believe i need not explain these 2 concepts. These 2 balances can be obtained from Oracle system provided some of prerequsities are met with.
    Balance as per your books - This is nothing but the GL balance available. In order to obtain balances for each bank accounts, it is advised that each bank account should have a separate account code combination. This is achieved generally by having a separate natural account for each bank. The code combination is attached to the cahs account for each bank. By maintaining separate account code combination, the balance in each code combination can be obtained from GL (provided transactions are accounted and posted in GL). These balances represent the balance for each bank according to your books of accounts. You can create an FSG for this purpose and provide the same to the customer, so that they can run the same whenevr they want.
    Balance as per bank - This balance is maintained by oracle in 2 ways - either the bank balance can be manually entered for each bank account for each date (quite cumbersome). Else, while loading the bank statement, the bank balances are also loaded. There are various types of bank balances stored - value dated balance, available balance, float balance etc. Depending on the balances provided by bank along with the bank statement, the bank balance can be recorded in oracle system. After the bank statement is uploaded and balances stored, standard cash management reports are available to query for the bank account balances. In order to view daily movement, the bank statement should be loaded on daily basis.
    Hope this helps.
    Vinit

  • Facing issues with 3g Mobile Data Usage Current Period and Apps Volumes are differ.

    Hi All,
              i am facing some data mismatch with my iphones. the actual mobile data usage volume and data usage for Apps volumes are showing different data.
    for eg : Mobile Data Usage - Current Data Usage - Current Period volumes showing 342 MB but if i check the  Use Mobile Data For Apps Volumes for all Apps including System Service Data's and Uninstalled Data's are showing very less ( around 200 MB only ) compare with Current Period Volumes.
    Mobile Data Usage - Current Data Usage - Current Period  and Use Mobile Data For Apps ( Apps wise data usage ) Data's are not matching..
    Please let me know will it show like that only or its an issue ????  if you want i can share the screen shot as well.

    Hello kasinathadurai,
    Welcome to the Apple Support Communities!
    I understand that you have some questions about cellular data usage and apps that use cellular data. For this question, I would refer you to the attached article that will help explain how data usage, call time, and app cellular data is calculated. 
    Learn about cellular data settings and usage on your iPhone and iPad (Cellular Model) - Apple Support
    Have a great day,
    Joe

  • Data Migration of Contracts with periodic billing and revenue recognition

    Hello Experts,
    I am trying to develop a legacy data migration plan for Contracts with periodic billing plan and revenue recognition.
    Example of the scenario is given below:
    Customer signed a contract for one year starting 01/01/2009.
    Customer is billed quartely, billed in advance.
    SAP going live on 04/01/2009
    Customer is billed for 3 months and also for initial set up fees.
    Revenue recognition is done monthly.
    We have to migrate this contract to SAP.
    Billing document posting may be necessay as it affects revenue recognition which spans across the total contract period.
    Any ideas how to do this?
    Thanks  A Lot
    Anil
    Edited by: Anil  Jose on Sep 17, 2008 9:38 PM

    Hi Anil
    How did you manage this? We also had the same problem in one of our contracts and what we did was that we copied the contracts from the legacy with the full value. That is suppose SAP went live on 1st April, 2009 and the contract was created on 1st January 2009 for a value of suppose 100 USD, with the first billing being done on 1st Jan for 33.33 USD for 4 months. We first created the contract with a validity from 1st Jan 2009 in the new system. We billed it with a billing type that we created that did not actually create new accounting entries as the accounting entries had already been created in the legacy system. In the new system then we recognised the revenue till the go live, so that the actual value remaining of the contract reduced. Then we started the billing plan of the contract from 1st of April 2009 for the remaining amount. So next invoice was created on 1st april for 33.33 USD. Can you share your solution.
    Regards
    Indranill

  • Problem with Fiscal Period and regarding...

    Hi all,
             I have a particular query in which posting period and fiscal year are the characteristic variables(mandatory and single values) . I have to define  Rolling Year To Date variable/ User exit such that when the user enters posing period and fiscal year query has to fetch previous 12 periods data from the cube..
           If posting period is 005 and fiscal year is 2007 then the output for a particular balance Keyfigure has to be from 005-2007 to 006-2006.
         The thing is we don’t have Fiscal period defined in the cube . One possible solution is Using the Offsets… if we are are goin to offset on the previous 12 periods, is the query going to fetch the correct values….
        Other thing we can think of is user exits… can some one share the logic regarding this... if we have to user the user exits…. Promise to award full points….
    regards,
    sasidhar gunturu

    Sasidhar,
    Since you have posting period and fiscal year separately, you need not think of going for an exit. You can simply use offsets on both so that they will fetch right data. Since there are two separate objects offsets should fetch correct data. Go ahead with offsets.....

Maybe you are looking for

  • AiO Remote app on iPad/iPhone does not find M1217nfw

    Hi, I have a M1217nfw setup on my WiFi network.  I can use Airprint from my iPad or iPhone to print on it - works fine.  However I want to use the AiO Remote app on my iPad or iPhone to scan documents from this printer to my iPad/iPhone. The problem

  • Broken DVD Drive cover on Mega 651 how do you reassemble it

    HI, I have a Mega 651 that i use as a media centre under my TV, unfortunatly my baby who is now crawling decided to rip of the drive cover that flips down when the dvd is ejected. I have reassmebled it, but cannot see where the 2 springs fit for the

  • Errors in syslog

    Hello. I have CUCM 8.6.2.24901-1 There's messages in syslog every 10-20 seconds as follow: ccm: 239607: CCM: Aug 06 2014 11:36:05.223 UTC : %UC_CALLMANAGER-3-DbInfoError: %[DeviceName=][ClusterID=CCM-Cluster][NodeID=CCM]: Configuration information ma

  • Could not print "image name" because there is not enough memory (RAM).

    I cannot print anything from Photoshop CS5. I always get the message: Could not print "image name" because there is not enough memory (RAM). I'm using Mac OS 10.6.8, with 8 GB RAM. I have tried setting memory usage to 100% of RAM (7379 MB for me). Th

  • QT export skips paragraph build

    I've just run into this problem: I'm exporting KN (4.02) to a QT movie, with manual advance. (My jealous PC friends want to use my slides.) No audio, just slides. Most things work fine, except a few slides where a simple bullet build gets skipped. Wh