Using NUMBER as a key

I need to create an index organized "mean and lean" table with very high cardinality (~ 1B recs). The table will consist of 1 or 2 columns of type NUMBER, plus a foreign key generated by a sequence. I need a "mean and lean" data type to use for the foreign key.
After understanding the true nature of NUMBER, I resist using that data type. Compared to using a true binary integer, it'll be longer, variable in length and might even have to be translated to binary before it can be used correctly in a B-Tree sort. Oracle apparently does not support true binary integers, my preferred choice.
Since only C/SQL programs will load the DB, I'm considering using a CHAR(x) data type (a true, static length field) and stuffing it with real binary integer data. In a sense, I'll be forcing a CHAR(x) type to be a binary int.
Q: Am I wrong in assessing NUMBER as a poor choice for an index?
Q: Can anyone forsee problems in using the CHAR(x) approach?
Q: Will Oracle cough on the unprintable characters I will try to store in CHAR(x)?
Q: Will this be a more efficient data type to use for an index?

And the answer is....
ORACLE really give you no choice. NUMBER is the only way to store integers. You can use words like INTEGER and LONG and SHORT in the "Create Table" command, but those all just translate to NUMBER. Trying to stuff true binary numbers in CHAR(x) doesn't work either, probably because many of them are unprintables and RDBMS won't accept that. Storing true binary values in RAW isn't much better than NUMBER because it's got a 1-2 byte "string length" header attached to it (much like NUMBER).
Bottom line is that ORACLE does not support true binary integer types and it prevents you from using the potentially workaround of CHAR(x) by rejecting unprintables. Other binary types have string length prefixes which defeat the purpose of having minimally sized binary fields for storage.
If you want to get true binary integers into an ORACLE database, buy Oracle RDB.

Similar Messages

  • How to register using PICA Number and verification key ?

    Can somebody explain to me how our customer can registrate himself using the PICA number and verification key I gave him ?
    The Pica guide ( http://www.cisco.com/web/help/reg/faq_reg.html#PR5 ) is using guidelines that doesn't match anymore.
    When you click on "Register" you don't see "Enter the required information and under the Register for Additional Access section, select the "Customer of a Cisco Certified Partner Initiated Customer Access [PICA]" check box. Click the Submit button." anymore !!!
    Please give the right guidelines to let our customers to register themselves.

    iOS and OS X: Link your phone number and Apple ID for use with FaceTime and iMessage - Apple Support

  • Cannot use number 1 key without opening Firefox help

    Laptop that when ever the number 1 key is used -- opens firefox help. Impossible to use number one on keyboard without opening help page . Have to copy /paste the number one --to use it in passwords ects .This problem just began . Windows 7. So how to fix this please ????
    I have read about some causes on this site , but nothing about how to fix it . It should be simple but I cannot find advice .

    '''F1''' is supposed to open the Firefox Help page. <br />
    Are you sure that you don't have a problem with the '''Fn''' key? Does that happen with the number pad embedded in the keyboard?

  • I used to be able to skip a cell to the right by using the toggle arrow keys

    I placing a number or text in a cell i used to be able to skip the cell to the right by using the toggle arrow keys.  I can't now?  Using the RETURN key only goes down a cell.  I want to go right?  Why?

    Hi Mark,
    In Numbers 3, an arrow key moves the cursor one cell up, down, left or right.
    Tab moves one cell right. Shift tab moves one cell left.
    The command key and an arrow key will take the cursor to top, bottom, left or right of a table.
    via the arrow keys (next to the letterM and question mark?).
    I am puzzled by this. Between the letter M and ? I have < above comma (,) and > above full stop (.)
    Shift command < zooms out and shift command > zooms in.
    Regards,
    Ian.

  • I received an order number, a product key, and a password but no serial number.  Now I cannot access Adobe Premiere Elements 13 because it asks me for a serial number.

    I bought and installed Adobe Premiere Elements 13.  The download email provided me with an order number, a product key and a password.  I never received a serial number.  When I attempted to access the software, it required a serial number.  I now cannot use this product because I never received a serial number.

    Burr Leonard please be aware you are posting in a public forum.  I have edited your previous responses to remove your personal information.  If you do wish to continue responding via e-mail then please turn off your e-mail signature prior to responding.
    The suggestion provided by Kglad is information on how to redeem your redemption code.  Did you purchase from Adobe directly?  If not then it is likely you received a redemption code as opposed to a serial number.
    If your order is from Adobe directly then you serial number will be located under your account at http://www.adobe.com/.  You can find additional details at Find your serial number quickly - http://helpx.adobe.com/x-productkb/global/find-serial-number.html.

  • Need help in finding mpeg2 component number to unlock key so I can burn a dvd?

    Need help in finding mpeg2 component number to unlock key so I can burn dvd?? I have premiere elements 3.0
    Thanks,
    sylvia

    Sylvia,
    I cannot comment on PrE 3, as I did not start until PrE 4. With the latter, when one went to use one of the modules, they were automatically "registered." Based on comments in the Help file, I asked pretty much this same question, back then. All was done automatically, in PrE 4.
    Maybe those, familiar with PrE 3, can be of help to you.
    Good luck,
    Hunt

  • Disable Mouse and other Keys except Number and Directional keys in a screen

    Hi all,
    Recently we have developed a sceen program as per the requirements of client who are used to enter meter readings using only Enter key. They used to give Enter key to give meter readings, date of meter reading, meter reading note and consumption in their legacy system.
    Though we developed the screen as per the requirements with all validations checking simultaneously which are required but we failed to handle mouse and other keys as we have not found any specific events occured by the keys.
    Now some of the meter readers are using mouse and other keys and because of this our code is getting failed and no validations are working at all. So we want to disable the mouse and other keys except Number keys and Directional Keys while we are in the screen so that they are bound to work with the Enter and NumKeys as per their requirements.
    Please help me with an idea or code snippet by which we can solve the problem. <removed by moderator>
    - Arghya Das,
    <removed by moderator>
    Edited by: Thomas Zloch on Aug 10, 2011 12:46 PM

    Hi,
    Just go through this link, it would be helpful...
    [http://help-abap.blogspot.com/2008/10/alv-disable-delete-key-on-keyboard-in.html]
    <removed by moderator>
    Thank You,
    Regards
    Pradeep
    Edited by: Thomas Zloch on Aug 10, 2011 12:50 PM

  • Attaching URL using GOS with 2 key fields

    I found a program to attach URL using GOS. I tried the program using his sample Business object (BUS2012) and supplied a valid PO and the program works.
    When I use the program using business object BUS1505 (Real Estate Contract) and put a valid contract number, the program didn't attached the URL. When I check the business object, I found out that the key fields are 2, Company Code and Contract Number. With this, how can attach it to the program.
    Please help me on this. Thanks in advance.
    Report  Z_RMTIWARI_ATTACH_DOC_TO_BO
    Written By : Ram Manohar Tiwari
    Function   : We need to maintain links between Business Object and
                 the attachment.Attachment document is basiclally a
                 business object of type 'MESSAGE'.In order to maintain
                 links, first the attachment will be crated as Business
                 Object of type 'MESSAGE' using Message.Create method.
                 Need to check if we can also use FM
                 'SO_DOC_INSERT_WITH_ORIG_API1' or SO_OBJECT_INSERT rather
                 than using Message.Create method.
    REPORT  Z_RMTIWARI_ATTACH_DOC_TO_BO             .
    Include for BO macros
      INCLUDE : <cntn01>.
    Load class.
      CLASS CL_BINARY_RELATION definition load.
      CLASS CL_OBL_OBJECT      definition load.
    PARAMETERS:
    Object_a
       P_BOTYPE LIKE obl_s_pbor-typeid DEFAULT 'BUS1505', " e.g. 'BUS2012'
       P_BO_ID  LIKE OBL_S_PBOR-INSTID DEFAULT '0000010000273',    " Key e.g. PO No.
    Object_b
       P_DOCTY  LIKE obl_s_pbor-typeid DEFAULT 'MESSAGE' NO-DISPLAY,
       P_MSGTYP LIKE SOFM-DOCTP        DEFAULT 'URL'     NO-DISPLAY,
    Relationship
       P_RELTYP  LIKE mdoblrel-reltype DEFAULT 'URL'.
      types: BEGIN OF TY_MESSAGE_KEY,
              FOLTP   TYPE SO_FOL_TP,
              FOLYR   TYPE SO_FOL_YR,
              FOLNO   TYPE SO_FOL_NO,
              DOCTP   TYPE SO_DOC_TP,
              DOCYR   TYPE SO_DOC_YR,
              DOCNO   TYPE SO_DOC_NO,
              FORTP   TYPE SO_FOR_TP,
              FORYR   TYPE SO_FOR_YR,
              FORNO   TYPE SO_FOR_NO,
             END OF TY_MESSAGE_KEY.
      DATA : LV_MESSAGE_KEY type TY_MESSAGE_KEY.
      DATA : LO_MESSAGE type SWC_OBJECT.
      DATA : LT_DOC_CONTENT type standard table of SOLI-LINE with header
    line.
    First derive the Attachment's ( MESSAGE )document type.
      P_DOCTY = 'MESSAGE'.
      CASE P_RELTYP.
      In case of URls
        WHEN 'URL'.
           P_MSGTYP = 'URL'.
      In case of Notes / Private Notes
        WHEN 'NOTE' OR 'PNOT'.
           P_MSGTYP = 'RAW'.
        WHEN 'ATTA'.
           P_MSGTYP = 'EXT'.
      Not implemented as yet...exit
         EXIT.
        WHEN OTHERS.
       ....exit
         EXIT.
        ENDCASE.
    Create an initial instance of BO 'MESSAGE' - to call the
    instance-independent method 'Create'.
      swc_create_object LO_MESSAGE 'MESSAGE' LV_MESSAGE_KEY.
    define container to pass the parameter values to the method call
    in next step.
      swc_container LT_MESSAGE_CONTAINER.
    Populate container with parameters for method
      swc_set_element LT_MESSAGE_CONTAINER 'DOCUMENTTITLE' 'Title'.
      swc_set_element LT_MESSAGE_CONTAINER 'DOCUMENTLANGU' 'E'.
      swc_set_element LT_MESSAGE_CONTAINER 'NO_DIALOG'     'X'.
      swc_set_element LT_MESSAGE_CONTAINER 'DOCUMENTNAME' P_DOCTY.
      swc_set_element LT_MESSAGE_CONTAINER 'DOCUMENTTYPE'   P_MSGTYP.
    'DocumentContent' is a multi-line element ( itab ).
    In case of URLs..it should be concatenated with &KEY& in the begining.
      CASE P_MSGTYP.
        WHEN 'URL'.
          LT_DOC_CONTENT = '&KEY&http://intranet.corpoff' .
          append LT_DOC_CONTENT.
    In case of Notes or Private Notes, get the data from files on appl
    server or from wherever(? - remember background).
         WHEN 'RAW'.
           LT_DOC_CONTENT = 'Hi How r u?' .
           append LT_DOC_CONTENT.
    In case of File attachments
         WHEN 'EXT'.
          Upload the file contents using open dataset in lt_doc_content .
          Some conversion ( Compress ) might be required.
          Not sure at this point
      ENDCASE.
      swc_set_element LT_MESSAGE_CONTAINER 'DocumentContent' LT_DOC_CONTENT.
      swc_call_method LO_MESSAGE 'CREATE' LT_MESSAGE_CONTAINER.
    Refresh to get the reference of create 'MESSAGE' object for attachment
      swc_refresh_object LO_MESSAGE.
    Get Key of new object
      swc_get_object_key LO_MESSAGE LV_MESSAGE_KEY.
    Now we have attachment as a business object instance. We can now
    attach it to our main business object instance.
    Create main BO object_a
      data: LO_IS_OBJECT_A type SIBFLPORB.
      LO_IS_OBJECT_A-INSTID = P_BO_ID.
      LO_IS_OBJECT_A-TYPEID = P_BOTYPE.
      LO_IS_OBJECT_A-CATID  = 'BO'.
    Create attachment BO object_b
      data: LO_IS_OBJECT_B type SIBFLPORB.
      LO_IS_OBJECT_B-INSTID = LV_MESSAGE_KEY.
      LO_IS_OBJECT_B-TYPEID = P_DOCTY.
      LO_IS_OBJECT_B-CATID  = 'BO'.
    *TRY.
    CALL METHOD CL_BINARY_RELATION=>CREATE_LINK
      EXPORTING
        IS_OBJECT_A            = LO_IS_OBJECT_A
       IP_LOGSYS_A            =
        IS_OBJECT_B            = LO_IS_OBJECT_B
       IP_LOGSYS_B            =
        IP_RELTYPE             = P_RELTYP
       IP_PROPNAM             =
       I_PROPERTY             =
    IMPORTING
       EP_LINK_ID             =
       EO_PROPERTY            =
    *CATCH CX_OBL_PARAMETER_ERROR .
    *CATCH CX_OBL_MODEL_ERROR .
    *CATCH CX_OBL_INTERNAL_ERROR .
    *ENDTRY.
    Check if everything OK...who cares!!
      commit work.

    HI
    You can look at object VBAP as an example.  It'sthe sales order item and has two keys - sales order number and item number. 
    the key was created:
    BEGIN OF KEY,
         SALESDOCUMENTNO LIKE VBAP-VBELN,
         ITEMNO LIKE VBAP-POSNR,
    END OF KEY,
         MATERIAL TYPE SWC_OBJECT,
         SALESDOCUMENT TYPE SWC_OBJECT,
         _VBAP LIKE VBAP.
    ND_DATA OBJECT. " Do not change.. DATA is generated
    Here is a object instantiation - just build the key with the two fields - then when you call the macro - you pass the one field that already has both keys in it.
    GET_PROPERTY SALESDOCUMENT CHANGING CONTAINER.
      SWC_CREATE_OBJECT
        OBJECT-SALESDOCUMENT 'VBAK' OBJECT-KEY-SALESDOCUMENTNO.
      SWC_SET_ELEMENT CONTAINER 'SalesDocument' OBJECT-SALESDOCUMENT.
    END_PROPERTY.

  • How can I use the MS Windows Key in Linux

    Hello!
    I'm using KDE 4.3 and want to use the MS Windows Key to open the KDE start menu.
    I tried to add the Windows Key by pressing as a "KDE Application Launcher" hotkey, but the window key wasn't accepted as a hotkey.
    Is it possible to add this key as a hotkey?
    Thanks for help!
    Best regards,
    Flasher

    I have the following line in my .xinitrc:
    /usr/bin/xmodmap -e "keycode 133 = F30" &
    ...where keycode 133 is my win key. I assign it to F30 (it can be any number besides 1-12, I guess), and then it's just a matter of configuring escape key (in your case, it'll be kde start menu) to F30.

  • Number of License Keys in Premiere Pro CS6 (Student)?

    I am looking at purchasing the Student Edition of Adobe Premiere Pro CS6 and wanted to know the number of License Keys it comes with. I am looking to put it on two of my computers and would rather purchase the non student edition if I can't get multiple licenses.

    This seems to confirm John's statement:
    Licensing and other aspects
    There some minor difference between actual product license and the license of student and teacher edition. The student and teacher edition can only be used in private computer owned by the license holder and not in computers owned by some organization for commercial use. The license can use this software in maximum two self-owned machine. The software is not allowed be transferred to some other parties. Only one copy of the software can be bought by a person. These restrictions are not applicable in case of regular edition.
    from here:
    Difference between Adobe Student and Teacher Editions with the Standard One - Articles - Vectorboom

  • Cannot duplicate using option + command + arrow keys.

    Hi,
    I have a new iMac running on 10.6.3.
    I just switched from Illustrator 10 to Illustrator CS3, and I'm a bit exasperated. One of the things that is drving me nuts is that I can't duplicate objects using option + command + arrow keys anymore.
    Why?
    Thanks!
    Chris.

    krisserz,
    Actually, yes, a lot of things are similar on MACs, but for example, on this page: http://www.bugge.com/Family-and-friends/Illy/illy.html it says to find the folder Adobe Illustrator [X] Settings and there is none on my computer.
    The Move the folder hint says:
    Up to version 10, the name of the folder is Adobe Illustrator [X],
    From version CS on, the name of the folder is Adobe Illustrator [X] Settings.
    [X] is the version number; up to 10, it is just a number, and above that the Creative Suite version number, CS, CS2, CS3, CS4, and so on, is used (the corresponding standalone versions still have simple numbers, CS is called 11, CS2 is called 12, CS3 is called 13, and CS4 is called 14, but the version numbers with CS are used in the folder name).
    So in your case it would be Adobe Illustrator CS3 Settings.
    It may be worth going through all the Other options and try whichever may be relevant (Entorurage is mentioned under 7, along with quite a few others).
    One of the less nice options is to reinstall, in which case the Clean Script should be used. http://www.adobe.com/support/contact/cs3clean.html

  • Trouble using NUMBER type

    Hi All,
    Hope this is the right forum for TimesTen. We have a requirement where in we have to support storage of upto 2^64 - 1 integer value. Since BIGINT is signed, we thought of using the NUMBER SQL type(with 20 decimal precision). What would be performance impact of using NUMBER( perhaps comparing with the BIGINT type key) ? We are connecting to TimesTen using ODBC and the C type for the parameter defined is SQL_C_CHAR... And SQL parameter type has been defined as SQL_NUMERIC. Is this correct? If I wish to make use of CAST in the SQL queries, what should be the target type? NUMBER or NUMBER(20) or NUMERIC? I tried using all 3 in ttisql, but it said types are incompatible. Any help would be highly appreciated.
    Thanks

    Please post in TimesTen In-Memory Database forum.

  • Mx459 will not let me enter number in WEP key, only allows symbols/letters. how do i enter numbers?

    mx459 will not let me enter number in WEP key, in only allows symbols or letters. how do i enter numbers?
    john
    Solved!
    Go to Solution.

    This might help
    Press the SETUP button on your printer's control panel.
    Using the arrows, select DEVICE SETTINGS, press OK.
    Select LAN SETTINGS and press OK.
    Select Wireless LAN Setup and press OK.
    If a message appears to press the WPS button, press STOP to cancel.
    Select STANDARD SETUP from the next screen that appears and press OK.
    Highlight your access point or router and press OK.
    Press OK again to confirm the access point name.
    Enter your passphrase using the keypad to the right.
    At the screen where you enter your passphrase, in the top right corner of the LCD screen you should see a :1 . This indicates that you are in numeric entry mode. If you press the asterisk key (*) it will switch to :A or uppercase letter mode, pressing asterisk again with switch to lowercase letter mode. To enter a letter in either letter mode, you will press the associated number key to cycle through the available letters. For example: To enter a letter "c", you will press the "2" key three times.
    Press OK when done.
    The LCD screen will say "Connected" if the password is correct.
    John Hoffman
    Conway, NH
    1D Mark IV, Rebel T5i, Pixma PRO-100, MX472

  • How can I copy a webpage that will not let me highlight it, i.e. use the control c key strokes?

    How can I take a picture of a webpage that will not let me use the control C copy command? In other words, on this particular website, I try to highlight a passage that I want to save and put in a document, but the highlighting will not work. I asked them about that, and they simply said they did not have that facility, but I think the issue is protecting their copyrighted material. I know there is some way to take a picture of the page, and then I can use my picture editing software to crop it and enlarge it.

    Are you trying to take a "snapshot" in a PDF?
    If the part of the page or PDF you want to capture is fully visible, you can use the Windows print screen function to capture it. Either use the Print Screen key to capture the entire monitor display, or Alt+Print Screen to capture the active window.
    If you need to do this often, or if you want to save the snapshot straight to disk, or if you need more than fits in a single Windows screen shot, an add-on such as [https://addons.mozilla.org/en-us/firefox/addon/fireshot/ Fireshot] can be handy.

  • We have several licences of Adobe Photoshop Elements V9 can we use the same licence key for latest version or what version can we install is this key???

    We have several licences of Adobe Photoshop Elements V9 can we use the same licence key for latest version or what version can we install is this key???
    We are Gouvernment and we use Windows 7 64 bits edition with office 2010.
    Thanks.

    Hi Denis, if you have license of Photosho Elements V9 then you can only install V9, please check the download link: Download Photoshop Elements products | 9, 8, 7. Please also check System requirements | Adobe Photoshop Elements
    Atul_Saini

Maybe you are looking for