Non-numeric primary is good or bad for design

In general, the primary key created using the non-numeric key is good or bad ?  Any specific reason?

Numeric datatype is good for primary key because :
1.No need to implicit conversion
2.NO overhead in using a NUMBER datatype in joins!!
3.Auto primary key index will be used since there is no conversion require for numeric datatype.
All I learn and came to know from Sybrand's reply at below link:
optimum datatype for primary key column O9i - Oracle Database
Regards
Girish Sharma

Similar Messages

  • Using a power bank good or bad for iphone battery lifespan?

    I currently use iphone 5, i see many aid product made now such as power bank,
    but a question comes in my mind , is that good or bad for our battery lifespan?

    Are you referring to cases with battery packs in them?
    If so, most have a switch to turn the battery in the case on or off.
    Having the iPhone or any phone in a battery case is neither good or bad.  It is merely a way to extend the "life" of the device between charges without the need to physically plug the device in as there is always the extra battery onboard.

  • Is it good or bad for the battery to keep the powercord plug in after complete charge.

    Is it good or bad for the battery to keep the powercord plug in after complete charge.

    It does no harm. It won't over charge.

  • Re-install OSX - good or bad for performance?

    Did a re-install on my brand new MacBook because a got some problem during start up (solved it with Safe boot, thanks Ned Snowing) so my question is - was it a bad idea to re-install the system when there was no use for it? Can it slow down performance on a new MacBook?

    The performance should be exactely the same!
    Sometimes your Macbook will perform a little better after a clean install off OSX.
    If you have used your Mac then all the software installations can cause it to begin performing slower. At least here my Mac performs always a little better after a clean install.
    You can re-install OSX just as much you like. This will not damage your system or something like that.
    Hopefully this is helpfull or solved your problem. (see button's above this message)

  • Hard drive spin down - good or bad for the drives

    Having had a few drives fail recently, I've started to wonder about the whole issue of the energy saver preference for having hard drives spin down. I've always had it disabled because it seems to be generally believed that that's the way to work on a fcp (or avid for that matter) editing system. But now that I've started imagining every drive failing, I'm wondering whether it makes sense to perhaps have another user account that I switch to for nonediting moments in which the spin down option is enabled.
    Any opinions out there?

    Drive manufacturors report a MTBF (mean time between failures) often in the 200,000 hours range. This works out to something like 22 years. Drives that fail in less time than that are often subjected to three things:
    - heat
    - voltage irregularities - spikes or brownouts
    - physical shocks
    oh, and did I mention heat?
    As drive RPM increases, so does energy consumption and heat. The best thing you can do for drives is to keep them in a cool, well ventilated location and to put them on a conditioned power supply.
    FWIW, I have scsi drives that are over 10 years old running everyday with no issues.
    Spindown seems to be an energy saver issue but I wonder about the cycle of powering down and back up over and over and over. It seems like that would put much more stress on bearings, motors and the like.
    good luck.
    x

  • Norton AntiVirus Software Good or Bad for Imac?

         Would like to know if Norton AntiVirus software is good for protecting my Imac from malware or are there other brands that work better?
    My ISP provides the Norton AV at no cost, but I've heard that it may cause problems, so want input on best AV to use.

    Norton Antivirus (made by Symantec) has a very long and illustrious reputation for mangling Mac OS X systems, sometimes to the point where a complete reinstall is necessary. Among other things, it installs kernel extensions which are known to cause kernel panics and system freezes; it contains known and documented bugs which can silently corrupt Adobe Photoshop and Adobe InDesign files, destroy a user's ability to authenticate as an administrator, and (on PPC systems) can cause Classic to stop functioning; and Symantec has on at least two occasions now released flawed .dat file updates which erroneously report certain critical Mac OS X files as "viruses." (Deleting these "viruses" causes damage to the system that in some cases renders it unbootable.)
    Norton Removal Tool (Symantec Uninstaller):
    http://www.symantec.com/business/support/index?page=content&id=TECH103489&locale =en_US
    And now this, from 11 January 2012:
    Lawsuit Claims Symantec "Scareware" Warns Of Fake Threats To Sell Upgrades
    http://www.forbes.com/sites/andygreenberg/2012/01/11/lawsuit-claims-symantec-sca reware-warns-of-fake-threats-to-sell-upgrades/
    There are many forms of ‘Malware’ that can affect a computer system, of which ‘a virus’ is but one type, ‘trojans’ another. Using the strict definition of a computer virus, no viruses that can attack OS X have so far been detected 'in the wild', i.e. in anything other than laboratory conditions. The same is not true of other forms of malware, such as Trojans. Whilst it is a fairly safe bet that your Mac has NOT been infected by a virus, it may have another security-related problem, but more likely a technical problem unrelated to any malware threat.
    You may find this User Tip on Viruses, Trojan Detection and Removal, as well as general Internet Security and Privacy, useful:
    https://discussions.apple.com/docs/DOC-2435
    The User Tip (which you are welcome to print out and retain for future reference) seeks to offer guidance on the main security threats and how to avoid them.
    More useful information can also be found here:
    http://www.reedcorner.net/mmg/

  • Query only non numeric values in a column

    How to query only non numeric values in a cloumn.
    For example:
    Table1 has a column1(col1)
    Values:
    Row Value
    1 27376
    2 47D99
    3 83039
    4 DKFI*
    5 3J6
    Query should retrieve only rows(2,4,5).
    Thanks! for help
    Murali

    Version 2(PL/SQL) above is not clear enough, It can be tuned to the following:
    -- Create a function
    Create or replace function IsVARCHAR(pCol VARCHAR2) return VARCHAR2
    AS
    vNumber NUMBER := 0;
    begin
      vNumber := to_number(pCol);
      RETURN NULL;
    Exception
      When Others Then
        RETURN pCol;
    End;
    -- To See VARCHAR values (alpha-numeric) only!
    SELECT col1 FROM tab1
    WHERE IsVARCHAR(col1) IS NOT NULL;
    -- To See NUMBER values only!
    SELECT col1 FROM tab1
    WHERE IsVARCHAR(col1) IS NULL;Versatility here with PL/SQL, but I personally like SQL versions.
    Thx,
    SriDHAR

  • How to use expression script to trip off all trailing non-numeric character

    Hi,
    I used JDev11.1.1.2.
    Now a field value like “7.5.3.10BQF”, “7.8.2.XFP”, and another dynamic LOV depends on this value to filter, so we want to trip off all trailing non-numeric characters (including whitespace and periods), for example to “7.5.3.10BQF”, we will filter LOV using "%7.5.3.10%",for "7.8.2.XFP", we will filter LOV using "%7.8.2%".
    But I don't know how to write groovy expression to implement this function.
    Any advice will be great help.
    thanks,
    zeroxin

    Hi,
    The third syntax you used is correct i.e.
    DW_CRF.PKG_LPS_CRF_LOAD_TRANS.sp_load_target(''LOAD_CRF'', ''LOAD_LOAN_TRAN'', CURRENT_TIMESTAMP, NULL);
    Alternatively you can use
    DW_CRF.PKG_LPS_CRF_LOAD_TRANS.sp_load_target(''LOAD_CRF'', ''LOAD_LOAN_TRAN'', CURRENT_TIMESTAMP, '''');
    all the other calls give syntax errors that are expected. The third call is giving an application error which you will need to look into (maybe starting at "DW_CRF.PKG_LPS_CRF_LOAD_TRANS", line 958). One thing that may help clarify things is if you were to switch to naming your parameters e.g. target_name=>''LOAD_CRF'' since that helps clarify exactly what parameter is called with which value.
    Hope this helps,
    Ravi.

  • Check for non-numeric characters in textbox input

    I have a form with several textboxes, each of which can accept numeric input. I want to write a validation/ plsql block that checks for a non-numeric character in the input, so that my user sees a customized error message rather than a database error. Any tips on how I can achieve that? Is there any function like "isalpha" in C, which can directly do the job?
    Also, some of these numeric fields should allow commas, since people put commas in larger numbers.
    Any help is greatly appreciated.

    Arie,
    i figured it out. turns out, i had some confusion in my mind. i modified Taneal's solution to use it in my already existing validations of type 'function returning error text' and it works fine.
    the problem before was that i was running 2 separate validations on the same field, and probably due to the sequence numbers, i was getting a numeric or value error. now, i've combined all validations into a single validation and it works fine.
    and honestly, i'm pretty bad with reg. ex. :D

  • Placing a PDF file in an InDesign Doc and PDF again for a vendor- Good or Bad?

    Current debate in the graphics department is
    Is it good or bad to place a PDF (general Press Quality) into an InDesign document and then creating a new PDF file with print vendor settings from that document?
    My thought is that you in some cases are double compressing, lower dpi images getting compressed, RGB color mode images okay on layout but now are converted to CMYK and shift in the PDF.
    Are there other issues and if so what are they.
    Also is there an easy way to check ppi, color mode and compression of an acrobat PDF? I mean other than doing a preflight and searching into each image folder twenty levels deep. FlightCheck and Enfocus are not options,
    too many vendors and not enough time.
    Thank you all in advance for your words of wisdom.

    Dov, I just got off the phone with a trusted professional in the Prepress field at a quite reputable print house, and he said "Dov is the guru of PDFs, ask him this...Will the InDesign CS3 preflight see the characteristics of a PDF (color mode, dpi(ppi), compression) if the original placed PDF is created as a pdf .X4 (1.7)? Ask him also if you were to use one form of compression (say lossless) in the original PDF, and then another form(say lossy) in the vendor PDF would it hold both or convert the first PDF compression to the second form?"
    Any other responses are also welcomed.

  • Can I use data guard to create a RAC standby database for a non RAC primary

    Hi,
    we need to RAC our production database but the normal methods will mean a long outage. It is possible to create a standby as a single node RAC database and when ready do a graceful failover to the standby database and open it for business. The next step would be to create another RAC node from this on the original server.
    servers are already cluster aware, using ASM etc
    Oracle 10.2

    Yes, you will be able to setup RAC stnadby for a non-RAC Primary. For primary it just needs a available destination for redo shipping it doesn't matter whether it's RAC enabled or not. And ofcourse you are using 10.2 anyway only one node will be running MRP and that is too in standby mount mode.
    However since you have are using You may follow below sequence.
    1. Setup a new standby as RAC enabled.
    2. Perform a switchover.
    3. Shutdown the Old primary (which is standby now).
    4. Install CRS and RDBMS on the old primary and it's new node.
    5. Modify the cluster_database=TRUE and cluster_database_instances=<required number of instances>.
        With above modification mount the standby database in standby mode and start MRP.
    6. Introduce the database and instances to the OCR using SRVCTL add command.
    7. Once you your database is synchronized with Primary do a switchover.
    9. Now you can repeat step 3 to 6 on the other site too.   <- if you need your secondary site to be RAC enabled too
    10. Finally both the sites should be RAC enabled.
    Hope this is helpful!!!
    Thanks,
    Asif Haliyal

  • HT2105 When you get a apple receipt for itunes songs and you paid with a itunes gift card do they charge you or give you store credit what's store credit is it good or bad or does it charge you if you have a free account with no credit cards at all is it

    When you get a apple receipt for itunes songs and you paid with a itunes gift card do they charge you or give you store credit what's store credit is it good or bad or does it charge you if you have a free account with no credit cards at all is it bad?

    iTunes credits are, for example, if you download a song from the store and it's found to be corrupt - if the track can't be fixed then iTunes support will tend to give you a song credit for a free download.
    When you purchase music from the store then any credits that you have will be used first, then any balance that you have (e.g. from iTunes gift cards or allowances), and any remaining amount will be taken from your credit card.

  • Disable typing of non-numeric characters for numeric item

    Hi,
    For numeric fields, Oracle Forms checks the entry after the user tries to move out of the item.
    But, the requirement is to disable the typing of non-numeric keys when entering data in a numeric item.
    pls tell me how to achieve this..
    regards,
    Asim.

    Hi Asim,
    You can achieve this by using a PJC (or else you could try using some PL/SQL Code in the KEY-PRESSED Trigger or so.. but not sure).
    There is a demo available on OTN on how to achive this using PJC
    http://www.oracle.com/technology/sample_code/products/forms/index.html
    You could see a Key Filter demo under JavaBeans/PJC Samples (all available as part of the Forms demos).
    HTH.
    Regards,
    Arun

  • Need a Badi to look the good issue status for prod order before good receipt in MIGO

    Hi ,
    Need a Badi to look the good issue status for compoents for prod order before good receipt in MIGO.
    Example : There are 10 comps need to be issued to production order to make any assy but 6 comps were issued
    and remaining 4 comps are not yet issued.,in this situation if I try to do goods receipt for prod order through MIGO.,system should populate the warning
    message saying still goods issue are pending for prod order.
    Please advise .
    Thanks
    Prasad

    Hi Prasad,
    Before trying with a BAdI, have you tried to control this behaviour thru the Order confirmation parameters (OPK4)?
    Note that you can have a termination in case of having problems in the goods movements..
    Take a look of this and the SAP help:
    Termination of Confirmation if Incorrect Goods Movements
    Controls if the confirmation is terminated in the event of incorrect goods
    movements.
    Use
    This enables you to terminate the confirmation in the event of incorrect
    items, for example, to prevent postprocessing records.
    Dependencies
    The indicator is only evaluated if either no process control key or one
    process control key has been stored that enbles the goods movements to be posted
    in dialog AND for which the "provide error handling for goods movements"
    indicator is active. If there are incorrect goods movements, the system behaves
    as follows:
    A log is issued that gives information on the incorrect goods movements
    If these incorrect goods movements are determined by inventory management,
    then the option of correcting these errors is offered in the error handling
    If the correction is not successful, the confirmation is terminated
    Kind Regards,
    Mariano

  • ALV subtotal for non numeric

    hi could you pls tell me how to do the subtotal for non-numeric fields in ALV.

    see the following example
    REPORT z_demo_alv_total.
    TYPES :
      BEGIN OF ty_vbak,
        vkorg TYPE vbak-vkorg,             " Sales organization
        kunnr TYPE vbak-kunnr,             " Sold-to party
        vbeln TYPE vbak-vbeln,             " Sales document
        netwr TYPE vbak-netwr,             " Net Value of the Sales Order
        waerk TYPE vbak-waerk,             " Document currency
      END OF ty_vbak.
    DATA:
      vbak    TYPE vbak,
      gt_vbak TYPE TABLE OF ty_vbak.
    SELECT-OPTIONS :
      s_vkorg FOR vbak-vkorg,              " Sales organization
      s_kunnr FOR vbak-kunnr,              " Sold-to party
      s_vbeln FOR vbak-vbeln.              " Sales document
    SELECTION-SCREEN :
      SKIP, BEGIN OF LINE,COMMENT 5(27) v_1 FOR FIELD p_max.
    PARAMETERS p_max(2) TYPE n DEFAULT '20' OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    INITIALIZATION.
      v_1 = 'Maximum of records to read'.
    START-OF-SELECTION.
      PERFORM f_read_data.
      PERFORM f_display_data.
    *      Form  f_read_data
    FORM f_read_data.
      SELECT vkorg kunnr vbeln netwr waerk
          UP TO p_max ROWS
        INTO TABLE gt_vbak
        FROM vbak
       WHERE kunnr IN s_kunnr
         AND vbeln IN s_vbeln
         AND vkorg IN s_vkorg.
    ENDFORM.                               " F_READ_DATA
    *      Form  f_display_data
    FORM f_display_data.
      TYPE-POOLS: slis.                    " ALV Global types
      DEFINE m_fieldcat.
        add 1 to ls_fieldcat-col_pos.
        ls_fieldcat-fieldname   = &1.
        ls_fieldcat-ref_tabname = 'VBAK'.
        ls_fieldcat-do_sum      = &2.
        ls_fieldcat-cfieldname  = &3.
        append ls_fieldcat to lt_fieldcat.
      END-OF-DEFINITION.
      DEFINE m_sort.
        add 1 to ls_sort-spos.
        ls_sort-fieldname = &1.
        ls_sort-up        = 'X'.
        ls_sort-subtot    = &2.
        append ls_sort to lt_sort.
      END-OF-DEFINITION.
      DATA:
        ls_fieldcat TYPE slis_fieldcat_alv,
        lt_fieldcat TYPE slis_t_fieldcat_alv,
        lt_sort     TYPE slis_t_sortinfo_alv,
        ls_sort     TYPE slis_sortinfo_alv,
        ls_layout   TYPE slis_layout_alv.
      m_fieldcat 'VKORG' ''  ''.
      m_fieldcat 'KUNNR' ''  ''.
      m_fieldcat 'VBELN' ''  ''.
      m_fieldcat 'NETWR' 'X' 'WAERK'.
      m_fieldcat 'WAERK' ''  ''.
      m_sort 'VKORG' 'X'.                  " Sort by vkorg and subtotal
      m_sort 'KUNNR' 'X'.                  " Sort by kunnr and subtotal
      m_sort 'VBELN' ''.                   " Sort by vbeln
      ls_layout-cell_merge = 'X'.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
           EXPORTING
                is_layout   = ls_layout
                it_fieldcat = lt_fieldcat
                it_sort     = lt_sort
           TABLES
                t_outtab    = gt_vbak.
    ENDFORM.                               " F_DISPLAY_DATA

Maybe you are looking for