To create referential constraints or not while designing a data model...

Hi,
If I were to design a data model involving some tables which tend to grow fast and huge, which option w.r.t creating referential constraints (foreign key constraints) between tables is advisable - to create or not to create?
Assuming that there are no specific requirements to implement referential integrity (though it maybe implicity stated). I know that creating referential constraints might maintain data integrity but on the other hand, it might be a bottleneck in some data-intensive queries/operations involving huge tables.
In other words, what factors should we consider while deciding on to create referential constraints or not in a data model?
thanks & regds,
Ashok.

Hi,
>>it might be a bottleneck in some data-intensive queries/operations involving huge tables.
Hummm, are you sure ? I'm not convinced that foreign key constraints can cause a bottlenecks while querying the database. Why ? Otherwise, DML statements can be affected by some constraints and indexes ... in some systems for example perform data loading in a Data Warehouse, DSS Systems, etc....
"The key thing to remember here is that if you cannot guarantee the integrity of your data, it doesn't matter how fast you can retrieve it from the database"
Cheers

Similar Messages

  • Designer to Data Modeler - triggers

    Hello,
    Our client still uses Designer to design it's database model and is considering an upgrade. Since the last version you can import your repository from Designer to Data Modeler. When you start selecting your objects before import, you can't seem to select your triggers.
    After the export the triggers are not in the physical model at the table.
    Was anyone successful with this feature?

    Hello Joni,
    The documentation of Data Modeler indeed says to import triggers (http://www.oracle.com/technetwork/developer-tools/datamodeler/datamodelerfaq-167683.html#designer).
    I use the import functionality from Designer often, but never the triggers are included. I extract the triggers as plsql modules and do not store them in DM.
    Joop

  • Not able to open data model

    Hi
    In portal i want ot design news for that i want to use xml form builder so i clicked on content management xml form builder is opened i have created a new project when i saved  i recived an error but still i clicked yes and it is saved anyways now when i clicked on data schema to open data model iam unable to open it symbol is remaining as it is
    can any body please let me know why ia m not able to open data schema to create data model.
    thanks in advance.

    Hi Krishna,
    Please follow below link it has detail steps to create xml form builder project.
    Also, check your jre version as well.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/ee639033-0801-0010-0883-b2c76b18583a?QuickLink=index&overridelayout=true
    Thanks.
    Sushil

  • Error while loading ACS data model on server

    Hi
    I am installing a ACS4.6.1 framework on Tomcat3.2.3. One of the step in installation is to load the data model of ACs on oracle server.
    They have given a sql script to do the same.
    On running that script we get following errors:
    BEGIN
    ERROR at line 1:
    ORA-20000: ConText error:
    DRG-10703: invalid framework object AUTO_SECTION_GROUP
    ORA-06512: at "CTXSYS.DRUE", line 122
    ORA-06512: at "CTXSYS.CTX_DDL", line 173
    ORA-06512: at line 2
    CREATE INDEX xml_content_index ON search_content(xml_content) INDEXTYPE IS ctxsys.context
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: ConText error:
    DRG-12203: section group autogroup does not exist
    ORA-06512: at "CTXSYS.DRUE", line 122
    ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 34
    ORA-06512: at line 1
    CREATE INDEX raw_content_index ON search_content(raw_content) INDEXTYPE IS ctxsys.context
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: ConText error:
    DRG-50704: Net8 listener is not running or cannot start external procedures
    ORA-28575: unable to open RPC connection to external procedure agent
    ORA-12154: TNS:could not resolve service name
    ORA-06512: at "CTXSYS.DRUE", line 122
    ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 34
    ORA-06512: at line 1
    Are there any settings missing?
    Versions are as under
    Oracle server is 8i
    Oracle client is 8.1.5
    Oracle intermedia is installed on the server
    I request you to provide help on this urgently .
    Thanks in advance
    Shriram

    AUTO_SECTION_GROUP is available in 8.1.6 or greater.
    You also need to have the db listener running.

  • Can Acrobat create a PDF file not viewable after some date and/or number of times being opened?

    Is it possible to restrict the usability of a PDF file in such fashion, regardless of which Adobe product tries to open the file, especially even when the file is opened with Acrobat Reader for example? If yes, does it require accessing Adobe's website or the solution could be totally 'stand alone'?
    Any other ideas about restricting the usage of a PDF file,  using Acrobat or any other tool?
    Thanks, David

    You can use the product 'Adobe LiveCycle Rights Management':
    http://www.adobe.com/products/livecycle/rightsmanagement/

  • Help me in design of data model for flatfiles

    hello Guru's,
                         my client is implementing FI in ECC still they are in realization. then my client gave me FI flat files and told me to extract those into BI. those flat files consists of profit and loss statements with actuals and budget data and balance sheet statements with actuals and budget in addition to these there are forecast files.
    can you tell me what are the questions i have to ask user? and please sugest me some designs
    Thanks,
    SAM

    Hi Sam John,
    Tks for ur appreciation for me.
    In my opinion, you have to understand first regarding the what purposes from the are. Then u learn the relationship among the data; it's purposes is to define dimension / master data.
    (You can ask to ur user regarding the data itself: What the relationsionship is in among those data? What's the purposes of data itself? What's the full cycle of that business ?? )
    Then u have to define whether it uses ODS / Info Cube. You can decide it by knowing whether the data is detail data / summary. If it's detail you can choose ODS, and Cube for summary one.
    I just gave u the highlight point, for the detail u can see on this refrence.
    how to build good modeling.
    http://help.sap.com/bp_biv270/documentation/Multi-dimensional_modeling_EN.doc
    Hopefully it can help you a lot.
    Best regards,
    Niel.

  • Help me in design of data model for flat files

    Hello guru's,
                        my client gave me excel spreadsheets and told to analyze what are the things i have to look into those. and also my manager introduced to one of the finace user . what are the questions i have to ask user regarding those files. the excel spreadsheets contains  actual data, budget data and forecast data.
                        one more thing SAP FICO in ECC is in realization phase. my manger told me that you have to map all G/L accounts and Costcenters with R/3 because there excel spreadsheets have different format.
              send me what are all questions i have to ask user? there are no documnets also so can you please tell me what are all documents i have to prepare like func spec or tech spec?
    Thanks,
    Sneha

    Hi,
    First thing you need to ask the finance person, what are the buisness requirement?
    you first take down what all he says and tell him or her that you would contact him again with after sometime.
    post the exact requirent here, then someone may help you
    Thanks
    Mohammad Riaz
    Edited by: Shadow on Nov 11, 2008 6:02 AM
    Edited by: Shadow on Nov 11, 2008 6:03 AM

  • How to set Delete Rule to SET NULL while designing relational model .

    Dear All,
    Am new to SQL Developer Data Modeler and was doing some relational and logical design using Data modeler and i want to generate DDL script, while doing i was struck up with this issue.
    I have two table and tried to give Primary key and Foreign key relationship, in foreign key table i want to set the Delete rule has SET NULL, but it is not found. I have other three options like CASCADE, RESTRICT,NO ACTION. Whereas in logical design i can find SET NULL, NO ACTION and RESTRICT....
    But the DDL script is getting generated based on Relational design , i want to set foreign key has SET NULL in delete rule how to accomplish that?
    Please help me......
    Thanks in Advance
    Ramkumar.S

    Hi Ramkumar,
    If you unset the Mandatory property on the Foreign Key, you should then be able to set the Delete Rule to SET NULL.
    David

  • NOT NULL Unique Constraint in Data Modeler

    I've created Unique Constraints in the Relational Model and I'm trying to figure out how to make it a NOT NULL constraint.
    Let's say the table name is category with columns cat_id, cat_name, sort.
    In SQL I create "ALTER TABLE category MODIFY (category CONSTRAINT xxx_cat_name_nn NOT NULL);", but inside the modeler there is no data entry points in the [Unique Key Properties - xxx_cat_name_nn] dialog box, that I can find, that lets me tell it that it is a NOT NULL constraint. I'm sure there is a way but I'm just fall over my own feet trying to find it.
    Any help would be greatly appricated.
    Edited by: 991065 on Feb 28, 2013 1:40 PM

    Hi,
    You can make the column NOT NULL by unsetting the "Allow Nulls" property for the Column.
    If you want a named NOT NULL Constraint, you should also set the "Not Null Constraint Name" property (on the Default and Constraint tab of the Column Properties dialog).
    David

  • Creating Oracle constraints

    Hi. I don't have much experience in working with Oracle database and so I’m hoping somebody could help me here. I need some directions in being able to create a constraint on a table to reject data in a column that does not have Capital/Uppercase letters. Thanks in advance for any suggestions.
    AB

    Hi,
      Another consideration if business rule state that particular column/s value MUST BE in
    UPPER CASE, then can use trigger to enforce it rather than rejecting user's input
    so there's no worry if user uses lower or upper case during input.
    HTH
    Zack                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • OBIEE Best Practice Data Model/Repository Design for Objectives/Targets

    Hello World!
    We are faced with a design question that has become somewhat difficult and we need some help. We want to be able to compare side-by-side actual measures with their corresponding objectives/targets. Sounds simple. But, our objectives are static (not able to be aggregated) with multi-dimensionality and multi-levels. We need some best practice tips on how to design our data model and repository properly so that we can see the objective/target for a measure regardless of the dimensions that are used in the criteria and regardless of the level.
    Here is some more details:
    Example of existing objective table.
    Dimension1
    Dimension2
    Dimension3
    Obj1
    Obj2
    Quarter
    NULL
    NULL
    NULL
    .99
    1.8
    1Q13
    DIM1VAL1
    NULL
    NULL
    .99
    2.4
    1Q13
    DIM1VAL1
    DIM2VAL1
    NULL
    .98
    2.41
    1Q13
    DIM1VAL1
    DIM2VAL1
    DIM3VAL1
    .97
    2.3
    1Q13
    DIM1VAL1
    NULL
    DIM3VAL1
    .96
    1.9
    1Q13
    NULL
    DIM2VAL1
    NULL
    .97
    2.2
    1Q13
    NULL
    DIM2VAL1
    DIM3VAL1
    .95
    2.0
    1Q13
    NULL
    NULL
    DIM3VAL1
    .94
    3.1
    1Q13
    - Right now we have quarterly objectives set using 3 different dimensions. So, if an author were to add one or more (or zero) dimensions to their criteria for a given measure they could get back a different objective. They could add Dimension1 and get 99%. They could add Dimension1 and Dimension2 and get 98%. They could add all three dimensions and get 97%. They could add zero dimensions (highest grain) and get 99%. Using our existing structure if we were to add a new dimension to the mix the possible combinations would grow dramatically. (Not flexible)
    - We would like our final solution to be flexible enough so that we could view objectives with altogether different dimensions and possibly get different objectives.
    - We currently have 3 fact tables with 3+ conformed dimension tables and a few unique dimension tables.
    Could anyone share a similar situation where you have implemented a data model structure with the proper repository joins to handle showing side-by-side objectives/targets where the objectives were static and could be displayed at differing levels with flexible dimensions as described?
    Any help would be greatly appreciated.

    hi..yes this suggestion is nice...first configure the sensors(activity or variable) ..then configure the sensor action as a JMS Topic which will in turn insert the data into a DB..Or when u configure the sensor action as a DB..then the data goes to Oracle Reports schema..if there is any chance of altering the DB..i mean if there is any chance by changing config files so that the data doesnt go to that Reports schema and goes to a custom schema created by any User....i dont know if it can b done...my problem is wen i m configuring the jms Topic for sensor actions..i see blank data coming..for sm reason or the other the data is not getting posted ...i have used a esb ..a routing service based on the schema which i am monitoring...can any1 help?

  • SQL Developer Data Modeler not drawing foreign key relationships

    I'm having trouble with SQL Developer Data Modeler when I importa a DDL that has foreign keys. I export DDL files from SQL developer and choose various subsets of files. Sometimes Data Modeler will not recognize a foreign key if I include say a dozen files in the DDL file, but it will if I include just a few. Worse, even if the foreign key is recognized, sometimes it is not drawn in the Data Modeler and I have no way to make it be drawn. To be specific, I import a file containing the DDL for just two tables -- I see the foreign key! I import a file containing the DDL for a dozen tables including the two, I don't! Is there something I am not understanding about when Data Modeler will draw foreign keys or is the tool simply quite buggy?
    Much thanks!
    -ttamon

    Hi Philip,
    I believe I have isolated the problem. Apparently if a field is named "FOREIGN..." it interferes with the tool recognizing foreign keys. Try to import a DDL file containing the following text:
    CREATE TABLE "SAMPLE"."SAMPLE_ONE"
    (     "ID" VARCHAR2(255 CHAR) NOT NULL ENABLE,
         "VALUE" VARCHAR2(255 CHAR),
         PRIMARY KEY ("ID")
    TABLESPACE "SAMPLE_DATA" ;
    CREATE TABLE "SAMPLE"."SAMPLE_TWO"
    (     "ID" VARCHAR2(255 CHAR) NOT NULL ENABLE,
         "FOREIGN_NAME" VARCHAR2(255 CHAR),
         PRIMARY KEY ("ID")
    TABLESPACE "SAMPLE_DATA" ;
    CREATE TABLE "SAMPLE"."SAMPLE_THREE"
    (     "ID" VARCHAR2(255 CHAR) NOT NULL ENABLE,
         "VALUE" VARCHAR2(255 CHAR) NOT NULL ENABLE,
         "ALT_ID" VARCHAR2(255 CHAR),
         PRIMARY KEY ("ID")
    TABLESPACE "SAMPLE_DATA" ENABLE,
         CONSTRAINT "FK6DF8294F2288190D" FOREIGN KEY ("ALT_ID")
         REFERENCES "SAMPLE"."SAMPLE_ONE" ("ID") ENABLE
    TABLESPACE "SAMPLE_DATA" ;
    You will discover the foreign key is not recognized or drawn! Now, if you swap the location of the third table (put it up first) everything works fine. This is how I discovered the problem, various subsets would work, others would not. To confirm the problem is with the field named "FOREIGN_NAME" use the DDL as specified above but change the first letter in the word "FOREIGN" to something else, and it will recognize the foreign key. Looks like a bug to me (took me about 4 hours to isolate this!). I am using Oracle SQL Developer Data Modeler version 2.0.0 Build 584.
    -ttamon

  • SQL Developer Data Modeling - import from Oracle Designer Model

    Hi,
    I do want to try to import model from a Designer repository.
    The first step is to create connection to the repository (9i version).
    I have created the one, however any attempt to test the connection or to go to the next step simply finishes with error "4", without any valueable message.
    Any idea or suggestion ?
    Thanx.

    A clarification of the Data Modeling feedback application and this forum. The developers are part of the SQL Developer development team, but as for all our features, each developer has a focus area, so the Data Modeling developers will tend to answer those questions. There will not be a separate Data Modeling forum, so once we're production all SQL Developer Data Modeling questions will be on this forum. We want to encourage all users to get into the habit of tagging posts. Having the posts tagged means that users can skip them if they're not their focus area and users can search using the tags. The more tags are used in all the forums the better. You may well find find the answers to your questions are outside this forum!
    As SQL Developer Data Modeling in in its first early adopter phase, we have provide a feedback application, where users can provide feedback, log bugs and ask questions. We did the same for SQL Developer before it's initial production release and found this to be very useful for the product.
    I'm happy for "How To" questions to be on this forum, as the answers benefit the broader community.
    Sue Harper

  • BI Publisher throwing error when creating data model from Oracle BI Answers

    I'm having issues creating BI Publisher Datamodel using BI EE as a source. When i select the answer and put the inforamtion needed and hit OK ....it's start doing soehting and then it get there ....
    In the logs:
    It is weird that the Logs is having a message saying that path was not found "/users/mpoler/Data Model without Title.xmd"/_datamodel.xmd
    Any clue on what is going on?
    Thanks!
    Matias

    Can you try using a different account to run this report, if possible use someone from a different Application role.
    The last Time I saw something similar was when the integration between BIP and Analysis was done incorrectly and a few roles were missed.
    Letus know what you find out..

  • Creating PDF from ERD (Data Modeler) in readable format

    I created an entity relationship diagram (ERD) using Toad Data Modeler.  I want to save/print it to PDF, which I can just fine.  However, it cuts off tables and is very hard to read.  I'm looking for a format to use that will not cut off the tables.  I've played around with various settings, but can't get it to look right.  Are there specific settings I should be targeting so it won't cut off the diagram?  Thank you!

    Thank you.  I've been playing around with the page size, but it still wants to cut off some of my tables, almost as if I can't get the diagram to size into the size of the PDF margins.  I can't seem to find the magic combination so I figured I must be missing a parameter setting somewhere.  Thank you for your time.
    Brian

Maybe you are looking for