Table keys in fusion

Our organization has plans on using fusion. Can anyone tell me if the tables in fusion utilize surrogate primary keys rather than 'intelligent' keys? Thanks.

I am not an Oracle employee so I suppose I can get away with this: Oracle Apps (the database bedrock of the Fusion architecture) is a legacy application which has evolved over decades. It has thousands of tables. I'm not sure I would want to use it as a template for designing smaller databases.
The argument between natural and synthetic (or surrogate keys) is frequently a religious one. I have changed sides a couple of times over the years. Bear in mind that we are only talking about this when it comes to answering the question, "what key do I reference in a foreign key?" candidate keys must be enforced on the parent table.
Natural keys
- rigourous basis in relational theory
- search child records on key columns without necessarily joining to parent
Synthetic keys
- fewer columns on join table hence less typing in joins
- also less space used
- allows us to change the columns and/or values of the primary key on the parent table
As can be seen the advantages of synthetic keys are pragmatic. According to theory the primary keys are always identified correctly at the off and the values never change over the life cycle of an entity. In practice these changes do occur; maybe not as often as some people claim but it does happen. This is why Oracle veterans tend to end up in the synthetic key camp (although some of us do feel vaguely guilty about it).
Cheers, APC

Similar Messages

  • User Table Key set up in User defined field management

    Dear  Expert,
    what is use of User Table Key set up in User defined field management in SAP B1.
    Thanks.
    Sridharan.R
    Edited by: Sridharan.R on Oct 4, 2011 8:26 AM

    Hi,
    Once a UDF is created and a value is entered in it, the same cannot be retrieved in any of the layouts and reports unless a Key is generated for that UDF. By assigning a Key to that UDF, the same UDF can be used in Crystal Reports or any other Reporting tool to extract its values from SAP. These reporting tools searches the Uniqueness of the UDF Values with this Keys only.
    For eg.: When you develop a report and select a table from which you need the fields to be shown in the layout. In that, the only fields whose keys are generated are only available to use in the report.
    Hope its clear to you.
    Regards,
    Papil

  • Error: ORA-06502: PL/SQL: numeric or value error:NULL index table key value

    Hi,
    I am trying toceate an interface which collects data from database make some transformation and populated seeded tables in the same database.
    My Approach is :
    a) Create a record type variable ( concists of multiple segments)
    b) Create a pl/sql table type of the records type in a)
    c) Created a cursor of same structure as pl/sql table type ( collects data)
    d) BULK CoLLECT data from cursor into pl/sql table
    e) Print the data
    But during Bulk Collect i get the below error :
    Unexpected error in xxc_hr2hr_populate_elements.main at FLOW TRACE-1.120. Error: ORA-06502: PL/SQL: numeric or value error: NULL index table key value
    ORA-20003: Unexpected error in xxc_hr2hr_populate_elements.get_data at FLOW TRACE-1.1.100. Error: ORA-06502: PL/SQL: numeric or value error: Bulk Bind: Truncated Bind

    Ashish_Apps wrote:
    Hi,
    I am trying toceate an interface which collects data from database make some transformation and populated seeded tables in the same database.
    My Approach is :
    a) Create a record type variable ( concists of multiple segments)
    b) Create a pl/sql table type of the records type in a)
    c) Created a cursor of same structure as pl/sql table type ( collects data)
    d) BULK CoLLECT data from cursor into pl/sql table
    e) Print the data
    But during Bulk Collect i get the below error :
    Unexpected error in xxc_hr2hr_populate_elements.main at FLOW TRACE-1.120. Error: ORA-06502: PL/SQL: numeric or value error: NULL index table key value
    ORA-20003: Unexpected error in xxc_hr2hr_populate_elements.get_data at FLOW TRACE-1.1.100. Error: ORA-06502: PL/SQL: numeric or value error: Bulk Bind: Truncated BindVerify the rows you are fetching are having the same data types as your Record like Dates should go to date , decimal should not be fetched in type defined as number etc.

  • ORA-06502: PL/SQL: numeric or value error: NULL index table key value??

    Hi,
    Can anyone let me know what is the issue on below code and how can we avoid that? i am getting the error like below
    ORA-06502: PL/SQL: numeric or value error: NULL index table key value
                        v_while_loop := 1;
                        v_delete_char_id := v_tabtype_result_values.FIRST;
                        WHILE v_while_loop <> v_tabtype_result_values.COUNT
                        LOOP
                            IF check_duplicate_nc_data (v_result_view,
                                                        v_tabtype_result_values(v_delete_char_id).value,
                                                        v_collection_id,
                                                        v_occurrence,
                                                        v_plan_id,
                                                        v_delete_char_id
                            THEN
                                DBMS_OUTPUT.PUT_LINE(v_delete_char_id);
                                v_tabtype_result_values.DELETE(v_delete_char_id);
                            ELSE
                                DBMS_OUTPUT.PUT_LINE(v_delete_char_id||','||v_tabtype_result_values(v_delete_char_id).id||','
                                                        ||v_tabtype_result_values(v_delete_char_id).value||','
                                                        ||v_tabtype_result_values(v_delete_char_id).validation_flag
                            END IF;
                            v_while_loop := v_while_loop + 1;
                            v_delete_char_id := v_tabtype_result_values.NEXT(v_delete_char_id);
                        END LOOP;

    Change:
    WHILE v_while_loop &#60;&#62; v_tabtype_result_values.COUNT to
    WHILE v_while_loop <= v_tabtype_result_values.LASTSY.

  • ORA-06502: PL/SQL: numeric or value error: NULL index table key value Repor

    W've been experiencing the Oracle Error: ORA-06502: PL/SQL: numeric or value error: NULL index table key value Report’ [we are currently on apex v3.0.1]. From the forum there was a reference to a bug fix: apex bug (6416829) fixed in 3.1. When we view '6416829' in Metalink we can see the bug title but cannot see any details as it's protected. Can anyone shed some light on why it's protected or provide further details.
    We have many LIVE customers reporting this error and we want to be certain it's fixed in v3.1.
    (currently we are working around this by flushing the shared pool but this is not ideal).
    Any help would be appreciated.

    Scott,
    This error has been thrown several times in the past 24 hours. Yesterday several of my reports threw the error, these reports have done so in the past. This morning APEX has begun throwing the error of which I have seen only once before. This is occuring at Home>Application>My Application. The error appears when I attempt to View the report in Details mode, is OK when I view the report in Icons mode. The error is occuring in my Prodution environment which has not been updated since 2/25/2009.
    As before, I edited the SQL on my application's reports and the error then disappeared.
    We are running Application Express 3.2.0.00.27 and Oracle Release 10.2.0.1.0. My browser is IE 7.0.
    Plan to test later with FireFox provided I can download it to see if this might browser related.
    Any inforamtion or guidance is appreciated.
    Jeff

  • NULL index table key value

    ORA-06502: PL/SQL: numeric or value error: NULL index table key value in Package OE_Order_PVT Procedure Lines
    Where is the problem?
    thanks
    Edited by: huak on Feb 5, 2009 5:08 PM

    thank you
    My EBS is On 11.5.9 in Production, but Note: 433074.1 is based on 11.5.10.2 in Production.
    AND I use the api with test windows to declare code in PL/SQL developer that is right. But I use api in the a package for a ebs' request that is error.
    :(

  • Remove fields from table key

    I define a customize table (maintenance only by cust., not SAP import).
    5 of the fields are the table keys.
    When I remove 2 fields from the key and adjust the table I get the following errors
    “Primary key change not permitted for value table ZT7IL60”
    “Activation of Table ZT7IL60 not possible (please check)”
    Any clue why and how to remove some fields from the key?

    hi there,
    the reason for  this error can be any....
    may be you are using that field in the foreign key reference of another table. thats y it is not allowing the change option as it will affect other table's values.
    another thing can be the one suggested in the above post.
    do reply if any of the methods mentioned helps.
    Do reward if helpful./

  • What is the difference between READ TABLE ITAB WITH KEY  and  TABLE KEY

    Hi Experts,
    what is the difference between
    READ TABLE <ITAB> WITH KEY <K1> = <C1>
                                                    <Kn> = <Cn> .
    and 
    READ TABLE <ITAB> WITH TABLE KEY <K1> = <C1>
                                                              <Kn> = <Cn> .
    Thanks
    Akash.

    Hi akashdeep,
    Nice question. I also tried to find out, but no much success. My opinion is that for practical purposes there is no difference.
    It may have difference in case of searching, especially sorted tables. (binary search or normal linear search).
    Case1: If our table is sorted table with defined key fields, and we give WITH TABLE KEY, then faster binary search is used.
    Case2 : If our table is sorted table with defined key fields, and we give WITH  KEY, (and no field contained in the keys), then normal linear search is used.
    regards,
    amit m.

  • Sort without BY addition & Table Key

    Experts,
    From SAP Help,
    If no explicit sort key is entered using the BY addition, the internal table itab is sorted according to the table key.
    I have code as below,
    data: lt_vkonto type table of VKONT_KK. "Cont Acc No
    "Fetch Cont Acc no against Contract
    select vkonto from ever into table lt_vkonto where vertrag = wa_data-vertrag.
    if sy-subrc eq 0.
    sort lt_vkonto.
    endif.
    As seen above, I have sort statement without BY addition for internal table lt_vkonto which does not have a UNIQUE or NON UNIQUE key.
    Will adding BY addition --> SORT lt_vkonto by vkonto imrpove the performance of sort statement.
    Please share your valuable inputs.
    BR,
    Aspire

    Hi
    I don't know if you'll imporve the performace in your case, you should do some measurement, the problem should be the table key for a standard internal table (like yours) is the set of all CHAR fields.
    In you situation you've only one fields, but probably if the table has several char fields the performance can be improved
    Anyway I suppose it's always better to explicit an option else the system will have to deduct it by itself, so the system will do an additional step: in your case without BY, the system has to deduct the key to be used for the sorting.
    Max

  • Secondary table key??

    Hi Experts,
    Need help...I created a program for pulling customer activity history usign BAPI GETDETAILMULT to retrieve cust info.
    My problem is that i concatenated the text field together to be inserted into a my custom databse field created.  However i have learned that this field can be pretty much infinite.  Therefore ive decided to create a secondary cstom table that will contain each text log description along with object_id and line_no count.
    This wortked great until i realised (daftly) that the key has to be unique (i.e object_id) and tehrefore im only getting 1 record per object_returned.
    Can anyone provide a solution??
    Many Thanks - Urgent as
    D

    Used second key field.

  • Questions on: 1) Last Update; 2) Max String Length; 3) dynamic table keys

    Hi:
    - I am currently prototyping a plug-in but I have some questions:
    - 1) At the 'All Metrics' table, what is the intent of the 'Last Upload' field,
    and how is this field updated?
    - I have created some metrics but for some metrics the 'Last Upload' field
    has a timestamp but for other metrics there is no data.
    As far as I know, the metrics are similar but I do not know why the behaviour is different.
    - 2) Is there a maximum string length that the Oracle agent can accept?
    - I have a script which just returns all the environment variables into one cell.
    In emagent.trc, the Oracle agent issues the following warning:
    2009-08-27 12:38:47 Thread-76336 WARN upload: Truncating value of "STRING_VALUE" from "AGENT_HOME=
    - Is the truncation an issue?
    - 3) I have created some dynamic tables from performing an snmp walk, but the key that I use
    is the index of the SNMP table. The data is collected correctly, but I am not sure that using
    the table index as the key for OEM is a good idea because the metrics are stored according to the SNMP table index.
    Should the OEM key be the something like 'object name' instead of the index number from performing an SNMP walk ?
    For example, when I click a metric, the metric name is: Sensor Index 1.
    But should it not be something like 'Fan #1' ?
    Thanks John

    Metrics are collected at certain intervals, the Last Upload field indicates the date and time of the last time a metric collection was uploaded. The quicker the interval, the more recent that date should be. If you don't specify a CollectionItem in your default collection file for your metrics, they won't be collected or uploaded.
    If your metric column is a STRING type, it is stored in a VARCHAR2(4000)
    I'm not sure I understand your last problem... You have a table metric with a set of columns. The column you use as the key is just some tracking index which doesn't really mean anything. As long as your key column(s) make the row unique, the agent will be satisfied. If you want something more meaningful as your key, then it's something you will have to inject into your dataset if it isn't already there.

  • Table Key field Question

    Hi All,
              According to the requirement I have to make the CURR type field as the key field in one of the table. But dureing activation it's throwing the below warning :
    Key field <Field name> has num. type CURR: Buffering not possible, Transport restricted
    Message no. DT607
    Diagnosis
    A numeric type was used for a key field. A table of this sort cannot be buffered.
    When buffering, the table records for numeric values cannot be stored in plain text. Therefore, no entries are found when buffered numerical values are compared in the WHERE condition, although the table can contain entries satisfying the compare criterion.
    The contents of the table cannot be transported if you specify the full key. You can only tranport table contents specified with a character field, up to the first occurrence of a numeric key field.
    Procedure
    You can enter "no buffering" as an attribute of the technical settings and then repeat the activation process. The table is not buffered.
    If you want to buffer the table, you must replace the type in the key field by a character type, i.e. that you must modify the table.
    If you want to transport the contents of a table, you can only do so for records specified by a character key, up to the first occurrence of a numeric field.
    Is this will be a problem when we transport the entries of the table from DEV to QA ???
    If yes how we can solve this problem??
    Thanks for your help in advance.
    Thanks,
    Greetson

    you cannot transport entries with a transport request (TABU)
    but it should be no problem to fill table in another system with your own export-/import program per file-download/upload or per RFC.
    hope that helps
    Andreas

  • Table key fields

    Hello to all the Experts,
    In a report programming I am accessing a table which I don't know. I have to print the information about the table as an output, how can I know the key fields of the table?, I am already using RTTS but want to identify the key-fields of the table.

    Hi,
    Goto se11 transaction.Give the table name and choose display mode.
    You can see all the keyfields of the table.
    Reward points if useful.
    Thanks and Regards,
    Litta

  • Office mac keeps asking for license key with fusion drive

    I'm posting this in case anyone else is having this trouble where Office for Mac 2011 keeps asking for the license key. I have a later 2013 iMac with Fusion drive and never have been able to use office on this computer without entering the key. In talking with Microsoft they removed office and all the files and reinstalled with no help. In speaking with Apple, they said there is a known issue with Microsoft Office and the Fusion drive and Microsoft is working on a patch. Evidently the fusion drive moves the files around and to Microsoft that looks like new hardware so it prompts for the key. Realy annoying! Microsoft

    I'm a certified Apple consultant and I recently hit this issue at an installation. On seven iMacs with the Fusion drive, I deleted the "Thunderbolt Bridge" interface from the Network System Preference. We then rebooted the computers, entered the product key one more time, and so far, the problem has disappeared and survives subsequent rebootings.
    Obviously, if you are frequently networking two Macs using Thunderbolt, this isn't a good long-term solution (though it is easily added back). However, it does appear to work. I have no sound theory as to why it works, except that Office might be interpreting the existence of that bridge as evidence that the software was copied onto a machine instead of properly installed. This is just a wild guess, though.
    I have no idea if it will work for others, but hey, the forums are for throwing out these ideas and seeing if one of them sticks for most people. So...there it is.

  • How to Display Hierarchy of depending database tables (Key Comparison)

    Hi there,
    is there a transaction available to display the hierarchy of depending database tables? Like:
    TABLE A -> Key: XYZ
        - TABLE B -> Key: XYZ
    It's kinda ment to display the technical datamodel of an application.
    Thanks. Greetings. Kay.

    it doesn't exist, but you have the graphical display of tables related by foreign keys and check tables (SE11, shiftctrlF11), and there are the logical databases to help you.

Maybe you are looking for

  • When creating a new project, the step "new sequence settings" doe not appear automatically, what to do?

    Hi there, I have a question I am doing product videos for a comany they would like me to do this in a format that is 16:9 and in HD. Since they don't know on which channels they want to publish it but it is certain they will publish it on youtube I w

  • Field != then Insert Into Other Table

    Hi, I cannot figure out how to create a trigger that will insert data based on if a old.field != new.field. If the field was changed in one table tbl_test then insert that record into the other table tbl_test_history. This is a little different since

  • Language display problem in Dictionary

    On my Nokia E63, before updating phone firmware to 501, Hindi language was displayed and speech correctly in dictionary. But after updation hindi is not displayed at all. I have reinstalled language pack many times but not working. What is solution?

  • Mapping Several Objects on a 3D Image

    Hi there.  Just starting to play around with mapping images on a 3D object (I'm a novice!).  I'm trying to create an easter egg and would like to map a few different symbols in different positions on my egg.  Is this possible in Illustrator CS3? Many

  • Add/Update Employee and put the ApplicationUserID (User Code) empty

    Hello, I'm trying to create or update an Employee master data but some times I need to put the user code as empty, when I'm trying to set it as 0 it's give me an error Enter valid code  [OHEM.userId] When I put it as -1 it's updated successfully but