LENGTH function for a large number returns 40 not the number of digits

In SQL*Plus:
SQL> select length(12345678901234567890123456789012345678901234567890)lngth
2 from dual;
LNGTH
40
SQL> select length('12345678901234567890123456789012345678901234567890')lngth
2 from dual;
LNGTH
50
It seems that the implicit conversion from number to char in the first query causes an unexpected result. From the documentation of the LENGTH function at http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/functions181.htm#i79330:
"If you omit fmt, then n is converted to a VARCHAR2 value exactly long enough to hold its significant digits."
Perhaps Oracle considers that only 40 digits are significant (?)

Additional reason.
There is implicit data conversion as like to_char(number).
SQL> set numwidth 50
SQL> select 12345678901234567890123456789012345678901234567890 num from dual;
                                               NUM
12345678901234567890123456789012345678900000000000
SQL> select length(12345678901234567890123456789012345678901234567890) numlen from dual;
                                            NUMLEN
                                                40
SQL> select to_char(12345678901234567890123456789012345678901234567890) numlen from dual;
NUMLEN
1.2345678901234567890123456789012346E+49
SQL> select length(to_char(12345678901234567890123456789012345678901234567890)) numlen from dual;
                                            NUMLEN
                                                40
SQL> select to_char(12345678901234567890123456789012345678901234567890,
  2                '09000000000000000000000000000000000000000000000000')
  3  num from dual;
NUM
12345678901234567890123456789012345678900000000000
SQL> select length(to_char(12345678901234567890123456789012345678901234567890,
  2                '09000000000000000000000000000000000000000000000000'))
  3  num from dual;
                                               NUM
                                                51
SQL> select to_char(12345678901234567890123456789012345678901234567890,
  2                'fm09000000000000000000000000000000000000000000000000')
  3  num from dual;
NUM
12345678901234567890123456789012345678900000000000
SQL> select length(to_char(12345678901234567890123456789012345678901234567890,
  2                'fm09000000000000000000000000000000000000000000000000'))
  3  num from dual;
                                               NUM
                                                50

Similar Messages

  • ITunes match for a large number of devices, 4 people, and as a backup solution.

    I am interested in using iTunes match for two central reasons:
    1.  Backing up my music library.  Is iTunes Match an solution for this?  Or not really?  I get the fact that my purchases are protected, but what about the music I uploaded from purchased CD's. 
    Question:  Can I consider iTunes Match at $24.99/year the cost of backing up 60GB of music to the cloud?
    2.  Sharing my music library across a number of devices.  We are a family of 4 with farily extensive MAC, iPhone, iPad usage, including ...
    1 iMac (Music server), 3 Power books (Indivudal work machines), 2 iPads, Apple TV,  and 4 iPhones.  We have 4 Mobile me accounts, moving to ICloud.
    The problem I have is that I can never effectively coordinate the music library across the devices.  80GB of iTunes library is too much to load across all the devices and I never seem to have the song I'm looking for at the time I desire it on a particular device, other then the family iMAC server which has the whole library on it.
    Question:  Seems like iTunes Match is an ideal solution, but can it handle the diverse spectrum and number of devices I have?  Ideally I want to thnk of iTunes Matchas, 1 central library avaialble on all devices, all the time.
    Thank you in advance for any opinions.
    MikeK

    mek wrote:
    Question:  Seems like iTunes Match is an ideal solution, but can it handle the diverse spectrum and number of devices I have?  Ideally I want to thnk of iTunes Matchas, 1 central library avaialble on all devices, all the time.
    Think of iTunes Match as a central library from which "satellite" libraries can pull any time they have an Internet connection.
    Functionally, if all those devices are in your house, iTunes Match doesn't give you much that Home Sharing doesn't already offer.  With Home Sharing all your Macs can easily "fill in the gaps" from the "master" library.  Of course, that requires that the machine with the "master" library is always online and iTunes is always running on it, which might not be the case.  AppleTVs and iPads sync to that "master" library and so what is on them is configured from the master library computer, not the device itself.
    What iTunes Match offers you is:
    1.  Your "canonical" library lives "in the cloud" and so you don't have to have a home server up and running iTunes at all times.
    2.  Your "canonical" library lives "in the cloud" and so you can update from it any time you have an internet connection, not just when you are at home.
    3.  The workflow for updating from the canonical library is much better than the clunky "Home Sharing" interface.
    4.  Any "matched" songs (I found that in my library only about 65% were successfully matched; I'm not sure why) will be available at 256kbps AAC, which might be higher quality than what you have in your library currently (especially if you have imperfections like CD skipping, etc, in the tracks).  Of course, anything iTunes can't match to its own library will remain just as imperfect as ever.
    The downside (versus Home Sharing) is:
    1.  Everything needs to get copied onto a device from the Internet, which is likely to take much longer than just Home Sharing over your home wireless network.
    Seems like a pretty good system.  I've signed up for it and am happy with what I've seen so far.

  • Best practice for handling data for a large number of indicators

    I'm looking for suggestions or recommendations for how to best handle a UI with a "large" number of indicators. By large I mean enough to make the block diagram quite large and ugly after the data processing for each indicator is added. The data must be "unpacked" and then decoded, e.g., booleans, offset binary bit fields, etc. The indicators are updated once/sec. I am leanding towards a method that worked well for me previously, that is, binding network shared variables to each indicator, then using several sub-vis to process the particular piece of data and write to the appropriate variables.
    I was curious what others have done in similar circumstances.
    Bill
    “A child of five could understand this. Send someone to fetch a child of five.”
    ― Groucho Marx
    Solved!
    Go to Solution.

    I can certainly feel your pain.
    Note that's really what is going on in that png  You can see the Action Engine responsible for updating the display to the far right. 
    In my own defence: the FP concept was presented to the client's customer before they had a person familliar with LabVIEW identified.  So I worked it this way from no choice of mine.  I knew it would get ugly before I walked in the door and chose to meet the challenge head on anyway.  Defer Panel Updates was my very good friend.  The sensors these objects represent were constrained to pass info via a single ZigBee network so I had the benefit of fairly low data rates as well but even changing view (Yes there is a display mode that swaps what information is displayed for each sensor) was updated fast enough that the user still got a responsive GUI.
    (the GUI did scale poorly though!  That is a lot of wires!  I was greateful to Jack for the Idea to make align and distribute work on wires)
    Jeff

  • Unable to parse properly for a large number of requests

    Hi all
    in weblogic 9 .2 when a request comes which parses and reads a xml file then there is no problem. But at a time when a large number of request comes to read the xml file then it is behaving differently .One node it is unable to locate.The meaning of error is actually inappropriate
    java.lang.NullPointerException
         at com.sun.org.apache.xerces.internal.dom.ParentNode.nodeListItem(ParentNode.java:814)
         at com.sun.org.apache.xerces.internal.dom.ParentNode.item(ParentNode.java:828)
         at com.test.ObjectPersistanceXMLParser.getData(ObjectPersistanceXMLParser.java:46)
         at com.test.testservlet.doPost(testservlet.java:634)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3214)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1983)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1890)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1344)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
    But there is a node and is found while processing in a java program for the same xml file. But this occurs when a large number of request comes.
    Please suggest.

    Yes I parse xml as much as the request comes. and i do not want to synchronize here. The below code executes for each request. Do we have a solution here .
    DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
    DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
    Document configXML = docBuilder.parse(filePath);
    I have tried with DOMParser and follwowing method is applied
    setFeature( "http://apache.org/xml/features/dom/defer-node-expansion ",false).
    Please suggest.

  • Canvas Resize to Square for a large number of images using script. E.g. image is currently 1020 x 600, I would like to change this to 1020 x 600. PLEASE HELP

    Hi All,
    I have a large number of images that I need to resize the canvas sizes to a square, the images are currently in different sizes. For example, if an image is 1020 x 600 I would like to change the canvas to 1020 x 1020 so that the image becomes a square. I am using CS3 and all the images are jpeg's. I have done research on scripts but the ones I have tried have not worked. Please help.
    Thanks.

    Since you do not want to crop your images to a square 1:1 aspect ratio changing the canvas to be square will not make your images square they will retain their Aspect Ratio and  image size will be changer to fit within your 1020 px square. There will be a border or borders on a side or two borders on opposite sides.   You do not need a script because Photoshop ships with a Plug-in script to be used in Actions.   What is good about Plugins is the support Actions.  When you record the action the plug-in during action recording records the setting you use in its dialog into  the actions step.  When the Action is played the Plug-in use the recorded setting an bypasses displaying its dialog. So the Action can be Batch.  The Action you would record would have two  Steps.   Step 1  menu File>Automate>Fit Image... in the Fit Image dialog enter 1020 in the width and height  fields.  Step 2 Canvas size enter 1020 pixels in width and height  not relative leave the anchor point centered it you want even borders on two sides set color to white in the canvas size dialog. You can batch the action.
    The above script will also work. Its squares the document then re-sizes to 1020x1020  the action re-sizes the image to fit with in an area 1020 x 1020 then add any missing canvas. The script like the action only process one image so it would also need to be batched. Record the script into and action and batch the action. As the author wrote. The script re size canvas did not specify an anchor point so the default center anchor point is uses  like the action canvas will be added to two sides.

  • I have lost all my captioning and keywording for a large number of .dng and raw files on transfer to LR6 CC - any help!

    I have imported my old LR5 catalogue into LR6 CC but appear to have lost a lot of my captioning and keywording to a very large number of files which are either .dng or other raw formats. I am working on a Mac. Can somebody please help as I am very worried about losing vital information.
    Thanks!
    Gerry

    OK, I may have pinned this down to the problem, and it may not be LR6 related. Reimporting my LR5 catalogue shows that the information is there on files that are marked as missing from catalogue (i.e. marked '!'). These are missing because I have renamed them, and it would suggest that the renamed file is not linking with the old .xmp file. Do you know of a way I can link the renamed file with the old .xmp file? Would I have to laboriously go through all my .xmp files and rename them for instance?

  • FDM Lookup function returning value not = the current POV

    Is anyone having problems returning values for periods other than current POV.
    "The FDM Lookup function is used to return the value of any source account that resides in FDM.
    The function can be used within a logic function or a logic expression."
    Presently I can only return value in current POV.
    If anyone can return a source account value from a period other than the current POV let me know.
    Tom Peera
    Syntax
    | , , 02/28/2011 , 1535-000-000 |

    Here is the dirty fix, I'm heading off to sleep.
    If the function CurrentAdId doesn't return a number, then
    this will ensure it returns 0 (prevents your error, may not display
    an ad):
    <CFFUNCTION
    NAME="CurrentAdId"
    ACCESS="Private"
    RETURNTYPE="numeric"
    HINT="For internal use. Returns the Id of the current ad in
    rotation.">
    <!--- Return the adId from the current row of the
    GetAdIds query --->
    <cfset var returnVal = ListGetAt(THIS.AdList,
    THIS.CurrentListPos)>
    <cfif NOT IsNumeric(returnVal)>
    <cfset returnVal = 0>
    </cfif>
    <CFRETURN returnVal>
    </CFFUNCTION>

  • Lync Edge functional for external client but federation is not working

    Hi,
    I am working on Lync Edge Server from couple of weeks but unfortunately, I can't federate with Skype and other partners. First of all I want to mention following things:
    1. Lync 2013 Front-End Server is fully functional for Internal Users
    2. Lync 2013 Reverse Proxy is fully functional for Mobile Users
    3. Lync 2013 Edge Server is fully functional for External Users except Federation.
    Let me share Edge Server current configuration with you.
    1. Lync Edge Pool have two NICs, Internal (Private IP) and External (3 Public IPs with default gateway and External DNS)
    2. Host File have entries for Lync front-end server
    3. Local CA certificate for Internal Interface and Starfield CA Certificate for External interface with required SAN e.g., acs.domain.com etc
    4. Skype is searching my domain URIs but added contact is showing offline in skype
    5. Lync 2013 Basic client is showing Presence Unknown for Skype contacts (Skype contacts already merged with Live ID)
    6. Test-CSFederatedPartner cmdlet is also giving 504 error while testing from Front-end server.
    This is production environment actually so please let me know if I am missing something.

    Verify that you configure SRV Record on External DNS {SRV Record _sipfederationtls._tcp.<domain> on port 5061 and SRV Record _sip._tls.<domain> on port 443}
    Also Verify that you enable lync federation on Lync topology and publish it
    On a Front End server, open Topology Builder. Expand Edge pools, then right click your Edge server or Edge server pool. Select Edit properties.
    In Edit Properties under General, select Enable federation for this Edge pool (Port 5061). Click OK.
    Click Action, select Topology, select Publish. When prompted on Publish the topology, click Next. When the Publish is finished, click Finish.
    On the Edge server, open the Lync Server Deployment wizard. Click Install or Update Lync Server System, then click Setup or Remove Lync Server Components. Click Run Again.
    At Setup Lync Server components, click Next. The summary screen will show actions as they are executed. Once the deployment is done, click View Log to view available log files. Click Finish to complete the deployment.
    For configuration of lync federation, you can check blow link
    http://technet.microsoft.com/en-us/library/jj204800.aspx
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question, please click "Mark As Answer"

  • Two email accounts, one password for both. will check one but not the other. Have had no problems before

    I have 2 email accounts for 2 people. TB will download mail for one but not the other. It can't authenticate the password. Passwords are both the same. Worked fine until today.

    The amount of information makes it somewhat hard to give a specific answer. I could only recommend:
    * Can you log into the account using the webmail service from your provider?
    * Have you verified the settings for the account to be correct (protocol, port number, password encoding)?
    The following page gives you a good start with resolving this issue:
    https://support.mozilla.org/en-US/products/thunderbird/fix-slowness-crashing-error-messages-and-other-problems/fix-problems-email-providers-gmail-yahoo-etc
    Hope this helps!

  • Best design pattern for a large number of options?

    Hi,
    I'm faced with the following straightforward problem, but I'm having trouble coming up with a design solution. Any suggestions?
    Two items in the database can be related in three possible ways (temp replacement, permanent replacement, substitute). Each item has three possible stock levels. The user can select one of two items.
    This comes out to 54 different prompts that need to be provided to the user (example: "The entered item has a preferrable temp replacement available that is in stock, sell instead of the entered item?", "The entered item is out of stock, but has a substitute item available, use instead?", etc. etc.)
    Does anybody have a suggestion of a good design pattern to use? In the legacy system it was implemented with a simple case statement, but I'd like to use something more maintainable.
    If anybody has any suggestions, I'd appreciate it.
    thanks,

    In the legacy system it was
    implemented with a simple case statement, but I'd like
    to use something more maintainable.Is it ever likely to change? If no, then a case statement is pretty maintainable.
    How is the data retrieved? I'm guessing it's a decision tree: if the desired object is in stock, return it, otherwise look for a permanent substitute, &c. In this case, perhaps you have a retrieval object that implements a state machine internally: each call to the retrieval operation causes a transition to the next-best state if unable to fulfill the request.
    If you do retrieve all possible data in a single query (and I hope not, as that would almost certainly be very inefficient), then think of some sort of "preference function" that could be used to order the results, and store them in a TreeMap or TreeSet ordered by that function.

  • Firmware update for a large number of units.

    We will need to update firmware in some dozens of E 90.
    Nokia agent here is not dealing with firmware update and we want to give final users updated firmware.
    Does anyone has un idea how we can do it with out connecting unit by unit to network and download the same firmware to each unit?
    Any way to save the download in computer and just to install in each of the unit?
    Tnx in advance.

    03-Oct-200712:30 PM
    e90n95 wrote:
    We will need to update firmware in some dozens of E 90.
    Nokia agent here is not dealing with firmware update and we want to give final users updated firmware.
    Do you already have this famous new FW update ?
    Domdom

  • Does anyone know how to use the bcc functionality for apple mail while accessing it on the cloud from my PC?

    I am currently away from my MAC and want to send an email through apple mail with the bcc functionality.  I am using the cloud to get to my mail, however, I can't figure out how to use the BCC functionality, please help.  Thanks!

    Open your mail,
    lower left corner click on settings,
    go to composing and check BCC, save and your done

  • On Yahoo Groups, Internet Explorer show a clipboard function for posting photos. When using Firefox the clipboard doesn't show up, so you can't post photos.

    On Yahoo Groups, using Internet Explorer, one can use a clipboard function to post photos to messages. When using Firefox, the clipboard doesn't appear and you cannot post photos on group messages.

    Make sure that you allow pages to choose their colors and that you haven't enabled High Contrast in the Windows Accessibility settings.
    *http://kb.mozillazine.org/Website_colors_are_wrong
    *http://kb.mozillazine.org/Websites_look_wrong

  • Is there a lensprofile for Sumilux M 50 1.4 (not the ASPH)

    I am a Lightroom user and have. Leica Sumilux M 50 mm 1.4 (not ASPH version)
    Does anyone know of a lensprofile for this lens?

    thank you for your answer, it didn't really help but I would like to ask though is there a way to just look for apps that run on a 2nd generation iPod touch directly without having to trawl through each app in turn.
    also if anyone is reading this please feel free to add anyone app that works on the iPod iOS in question and maybe a list will soon build up

  • Available working time for setup and produce activity is not the same.

    Hi,
    For some resources, there are certain setups which require high skilled operators that work less time that the machine. In the setup matrix these setups are recognized because they take much longer than the normal setups.
    How can I control that no setups with special operators are planned outside operators working time?
    Let s say the machines work along the 3 day shifts and the setup operators only one shift per day.
    I thought to use a secondary resource in the setup phase activity or adding a phase with the opertors modeled as a resource to the operation. It adds complexity to a solution the fact that setup times depend upon the setup matrix assigned to the resource so they are variable!
    First option was not good because secondary resource cannot present relationship start-start and end-end with the primary resource, moreover, which lead time do we enter in the secondary resource?
    Second option was not good either because setup times are variable for all the "special" resources and all of them use the same operators.
    CTF

    Try mapping the scenario with sub operations and assign the highly skilled labor to the sub operation and machine  to the main operations.
    Rgs - Vikas

Maybe you are looking for