Can we create a Unique constraint on DFF attribute of a Standard Oracle Table

Hi all

Can we create a Unique constraint on DFF attribute of a Standard Oracle Table.

There will be problems of integrity of the data in this case?

Any help will be greatly appreciated.

Best regards

gt1942

You should not. The same field of de FACTO forces might be used beyond business groups/associations causing cross-functional problems. This would be considered a direct customization and may affect Oracle features seeded depending on where you want to add it.

Kind regards

Arif.

Tags: Oracle Applications

Similar Questions

  • How to create a Unique constraint on a column that already has duplicates. Only future duplicates should be avoided

    Hi all

    Can someone let me know how to create a Unique constraint on a column that already has duplicates. Only future duplicates must be avoided.

    Any help will be greatly appreciated.

    Best regards

    gt1942

    ALTER table Add constraint unique (column_name) may be deferred novalidate;

  • When you create a PDF to ppt, pdf can be created in unique pages instead of a complete document

    When you create a PDF to ppt, pdf can be created in unique pages instead of a complete document?

    After Acrobat create a PDF from multiple pages, you can use the Extract command to break into single pages. You can do this either in tools > Pages, or in the Options menu for the Page thumbnails pane.

  • How can I create a list of choices for the search bit in Oracle 11g ADF fields?

    Hi Experts,

    Please inform how to add some selection list or drop downs on the pane search Oracle 11g ADF.

    I have a requirement to create a list of choices for the search store field. # Please notify.

    SS_SearchCriteriaPage1.png

    Thank you

    David Selvaraj

    You can create a view based on a static list object and attach it to your attribute as lov-driven model.

    Dario

  • Customized for a Unique constraint processing scripts

    Hallo,

    How can I create the Unique constraint (not a Unique Index) transformation scripts:

    var key_column = 'KEY';
    // get tables
    tables = model.getTableSet().toArray();
    for (var t = 0; t < tables.length;t++){
         table = tables[t];
         table_name = table.getName();
         abbr = table.getAbbreviation()+"_";
         key_col = table.getElementByName(key_column);
         if (key_col!=null){
              uniq = table.createIndex(); // it is right?
              table.setDirty(true);
              uniq.setName('UNIQUE'); // does not matter
              uniq.add(id3_col);
              uniq.setUK(true); // a method does not exist
              table.setUK(uniq);// a method does not exist
          }
    }
    
    

    regarding

    Oleg

    Hello Oleg,

    lines 14 and 15 are false. The use of the persistence method is:

    uniq.setIndexState ("Unique constraint");

    Other options here - you can spot if you look at the XML file representing the table with PK and UK constraints and regular index - "primary constraint, «Unique Index ordinary', «Clear index»»

    Philippe

  • How can I create a constraint on the combination of four columns...

    Dear Guru,

    I have a question... I created the table with columns like "CCode', 'Size1', 'Size2', 'Sch1', 'Sch2', 'Description', 'CCdate '.

    Here I wanted to create a unique constraint on the combination of four columns "CCode', 'Size1', 'Size2', 'Sch1', 'Sch2.

    My requirement is that I don't want to allow duplicate records in the table for the four columns only.

    for example: "CC123", 10, 25, S110, S250,.

    If the new record comes with the same data. Then, I do not want to insert this record.i want to get a constraint voilated error.

    How can I create a constraint on the combination of four columns...

    Pls help me on this issue...

    Kind regards

    Shitab...

    I suggested already here the syntax,

    ALTER table your_table

    Add constraint cons_name unique (col1, col2, col3, col4, col5);

    And don't call me 'Sir '.

    See you soon!

  • Unique constraint on the values in both directions

    I'm looking to create a unique constraint that works in two ways. Say I got a constraint unique in columns 1 and 2. I want it to be impossible for the two lines below the two exist at the same time. Is there a way to do this? I googled around for a while now and I found nothing that works so far.

    Header 1 Header 2
    DogCAT
    CATDog

    Hello

    You can create an index based on a single function:, like this:

    CREATE UNIQUE INDEX table_x_header_1_header_2

    ON table_x (LESS (header_1, header_2)

    More LARGE (header_1, header_2)

    );

    How will you use these values?  You might be better to simply create a regular old unique constraint, but also have a CHECK constraint to ensure that header_1<= header_2. ="" that="" way,="" when="" you="" want="" to="" search="" for="" the="" combination="" ('cat',="" 'dog')="" you="" won't="" have="" to="" search="" for="" ('dog',="" 'cat')="">

  • Index naming standards does not and unique constraints

    I found yet another question of naming standards

    I have tried to create a unique constraint as a normal index via the unique constraints and indexes in Properties of Table with the assumption that it will use the design properties of models.  This isn't.

    Naming Standard Template.jpg

    As noted in the image of the model above, my Unique constraint model is {table} _ {columns} lancement_remarques

    and my model of Index idx _ {columns} {table}.  Yet, when I try to create the Unique constraint, it creates the naming convention in names like CUSTOMER_ADDRESS__UK (2 lines of underscore?) as shown below.

    Table_Props_Unique_Constraint.jpg

    My assumption is that he needed a column, so I added the column and also applied the rules naming - nothing.

    Table_Props_Unique_Constraint_w_Column.jpg

    Is my wrong assumption on these constraints being appointed through the models?  If this is not the case, what naming rules is in this context?

    The same behavior is evident when you try to create index.

    I get not all comments on my posts.  Are these bugs or just user error?

    Hello

    Thank you to report the problem, I logged a bug. You can get 'Rules of naming' works properly if you press the button 'Apply' before that.

    I get not all comments on my posts.

    I don't think that anyone (or any job) has been ignored on this forum. Depending on the complexity of the problem and our current commitment (other urgent tasks, holidays, time zone), you can get answer almost immediately or after a certain time.

    It is useful for us, if you mark your messages as replied if you get the right answer.

    Philippe

  • Case-insensitive unique constraint

    Hi guys,.

    Is it possible to create a unique constraint that is case-insensitive

    I mean if there is a unique constraint on the name of col

    then
    'James' and 'JAMES' must not


    Kind regards

    PAPI

    Create a unique index to the basic function of...

    create unique index uk_name on emp(upper(ename));
    
  • Can we create additional FDF on the sales order screen

    Hi all

    Can we create additional FDF on sale order screen using the customization of the form? Here's the scenario, we used almost all order of the FDF header, so we created a custom table that stores additional information for DFF. We want to show these fields on the customer order form, my question is can we create look FDF ([]) a field similar to the command screen oracle client?

    Thanks in advance.

    Concerning
    KK

    You can explore the possibility of using the FDF context to refuse the attribute fields.

  • Question of the unique constraint with finance charge

    Hi friends,

    As part of the implementation of 11 g BIAPPS-ODI during the execution of a finance charge is my load of CM plan failed with the error like below

    ODI-1519: series step 'Load start Plan (InternalID:1242500)' failed because step 'Refresh Global Variable (InternalID:1243500)' child is in error.

    ODI-1519: series step 'Refresh Global Variable (InternalID:1243500)' failed because the step child "Warehouse loading Phase (InternalID:2336500)" is a mistake.

    ODI-1519: series step "Warehouse loading Phase (InternalID:2336500)" failed because the child step "SIL 1 charge (InternalID:2337500)" is a mistake.

    ODI-1519: series step '1 SIL Load (InternalID:2337500)' failed, because the child step '2 group of dimensions of SIL (InternalID:2338500)' is a mistake.

    ODI-1519: series step '2 group of dimensions of SIL (InternalID:2338500)' failed because the child step "Parallels - independent DimGroup (InternalID:2346500)" is a mistake.

    ODI-1518: parallel step 'Parallels - independent DimGroup (InternalID:2346500)' failed. level of 1 child by mistake, which is more than the maximum number of allowed errors (0) defined for parallel step.  Has no measures of the child: 3 SIL Dims POSHIER_DIM (InternalID:2369500)

    ODI-1519: series step '3 SIL Dims POSHIER_DIM (InternalID:2369500)' failed because the child "POSHIER_DIM (InternalID:2372500)" is a mistake.

    ODI-1519: series step "POSHIER_DIM (InternalID:2372500)" failed because step "SIL_PositionDimensionHierarchy (InternalID:2377500)" child is in error.

    ODI-1217: SILOS_SIL_POSITIONDIMENSIONHIERARCHY Session (4278500) fails with return code 1.

    ODI-1226: SIL_PositionDimensionHierarchy.W_POSITION_DH step fails after 1 attempt.

    ODI-1240: Flow Run SIL_PositionDimensionHierarchy.W_POSITION_DH fails during an operation of integration. This flow of charge table target W_POSITION_DH.

    ODI-1228: SIL_PositionDimensionHierarchy.W_POSITION_DH (integration) of the task fails when connecting ORACLE target BIAPPS_DW.

    Caused by: java.sql.SQLIntegrityConstraintViolationException: ORA-00001: unique constraint (DEV_DW. W_POSITION_DH_U2) violated

    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:462)

    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)

    at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:931)

    at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:481)

    at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:205)

    at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:548)

    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:217)

    at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:1115)

    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1488)

    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3769)

    at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3954)

    at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1539)

    at oracle.odi.runtime.agent.execution.sql.SQLCommand.execute(SQLCommand.java:163)

    at oracle.odi.runtime.agent.execution.sql.SQLExecutor.execute(SQLExecutor.java:102)

    at oracle.odi.runtime.agent.execution.sql.SQLExecutor.execute(SQLExecutor.java:1)

    at oracle.odi.runtime.agent.execution.TaskExecutionHandler.handleTask(TaskExecutionHandler.java:50)

    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.processTask(SnpSessTaskSql.java:2913)

    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2625)

    at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:577)

    at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:468)

    at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2093)

    at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1895)

    to oracle.odi.runtime.agent.processor.impl.StartScenRequestProcessor$ 2.doAction(StartScenRequestProcessor.java:580)

    at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)

    at oracle.odi.runtime.agent.processor.impl.StartScenRequestProcessor.doProcessStartScenTask(StartScenRequestProcessor.java:512)

    to oracle.odi.runtime.agent.processor.impl.StartScenRequestProcessor$ StartScenTask.doExecute (StartScenRequestProcessor.java:1068)

    at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:137)

    to oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$ 2.run(DefaultAgentTaskExecutor.java:82)

    at java.lang.Thread.run(Thread.java:662)

    How to solve the question above using ODI 11 g. I'm using Oracle ERP R12.1.3 as a source of data for this.

    Thanks in advance.

    Kind regards

    Saro

    What is the result of a query on table W_POSITION_DH or W_POSITION_D duplicate?

    Naeem

  • is there a way that we could create a unique link that someone can click on an email to bring them to a cart to fill their quote?

    is there a way that we could create a unique link that someone can click on an email to bring them to a cart to fill their quote?

    Hello

    Here is how the configuration would work - http://client2.worldsecuresystems.com/get-quote/java-in-a-nutshell - you can add some nice CSS to ensure that the screen does not Flash or anything like that. Here's how it was built:

    1. create a new model, paste this piece of code inside:

    {tag_pagecontent}
    

    2 create a new catalog, all the products of this catalogue will redirect users directly to the GET a quote form. Assign the model created in step 1

    3 change the presentation of the latge product and place the button buy now in a hidden div:

     
    

    4. change the shopping basket page layout and make sure the GET a quote button is present:

    {tag_getquotebutton}
    

    5. place this code at the end. You need to replace 606879 with the ID of the catalog created in step 2

    {% if globals.get.CatalogueID == 606879 %}
    
    {% endif %}
    

    What will happen, it is like this:

    1. whenever someone opens a product using the link to the custom catalog buy it button will now be clicked
    2. the site visitor is then redirected to shopping cart layout where the other script checks the catalog, the visitors came. If this is a "known" catalog redirect another arrives and load the GET a quote layout

    Make sure that you have loaded in your models of jQuery and liquid activated on your site.

    One more thing, you need to monitor is you will need hide this catalog custom catalog your site listing.

    Hope this helps,

    Mihai

  • Why we cannot create more than one primary key on a table. Why we create several unique key on a table. Please explain if anyone have details of this.

    Why we cannot create more than one primary key on a table. Why we create several unique key on a table. Please explain if anyone have details of this.

    «a primary key has semantic meaning, it is to be immutable (never change of value), unique and not null.»

    a unique constraint is simply "at any time, these values are unique - they can change and they can be null.

    You use a unique when constraint

    (a) you do not already have a primary key for a table can have only one
    (b) you allow NULL values in attributes
    "(c) to allow you to update the values in the attributes.

    https://asktom.Oracle.com/pls/Apex/f?p=100:11:0:P11_QUESTION_ID:5541352100346689891

  • Adding a UNIQUE CONSTRAINT to an existing column with duplicate values

    Oracle Forums Hello, I have a table that contains rows 11 901. I tried to define the UNIQUE constraint on the column of xcode, but encountered an error: the column already contain duplicates! I rescued following SQL 'SELECT COUNT (*) FROM States;' the result is 11 901 and 'SELECT COUNT (DISTINCT (xcode)) FROM States;' the result is 11 680. So to enforce this unique key I have to remove the 221 lines. Please how can I do this?

    REMOVE duplicates...

    For example, as

    delete from your_table t
    where rowid <
       (
       select max(rowid)
       from your_table r
       where t.unique_column = r.unique_column);
    

    Thne create the constraint.

  • Question of design on unique constraints while moving to multi-tenant

    Hi all

    Please see the definition of this simple table:
    CREATE TABLE emp 
        ( 
         id INTEGER  NOT NULL , 
         name VARCHAR2 (30 CHAR)  NOT NULL , 
         birthdate DATE  NOT NULL , 
         username VARCHAR2 (10 CHAR) ,
         CONSTRAINT PK_ PRIMARY KEY ( id ) ,
         CONSTRAINT UC_emp_username UNIQUE ( username )
        );
    In this framework, each user can (not essential, authorized NULL) have a user name. A user name can only be used once. An application that uses this type of table is not multi-tenant capable.

    Now if I run the application of several tenants, I add a column tenant_id like this:
    CREATE TABLE emp 
        ( 
         id INTEGER  NOT NULL , 
         name VARCHAR2 (30 CHAR)  NOT NULL , 
         birthdate DATE  NOT NULL , 
         username VARCHAR2 (10 CHAR) ,
         tenant_id INTEGER  NOT NULL ,
         CONSTRAINT PK_ PRIMARY KEY ( id ) ,
         CONSTRAINT UC_emp_tenant_username UNIQUE ( tenant_id, username )
        );
    I have archived almost my goal:
    However, a user can (not essential, authorized NULL) have a user name. A user name cannot be used once BY the TENANT (see changed CPU). Of course, each tenant must be provided with an account named 'administrator', so the CPU must include the tenant_id. But what does not work:

    As soon as I add a 2nd employee for a tenant and this user doesn't have a login name (and therefore no user name), the UC has banned the addition of this user.
    It was no problem in the 1st case, because the CPU included a single column and a row in the base table with a NULL value in this column is simply ignored in the index.
    In the 2nd case, each row in the base table is included in the CPU, because the tenant_id column is NOT NULL. If the combination {tenant_id:1, username: NULL} cannot exist only once. This means that almost all employees must have a user name.

    What is the solution here?
    Drop the CPU is not a solution.
    Is it really necessary to move the user name column to a new table, as in the following? It just doesn't feel good to introduce a table of relationship for a 1:1 relationship.
    CREATE TABLE emp 
        ( 
         id INTEGER  NOT NULL , 
         name VARCHAR2 (30 CHAR)  NOT NULL , 
         birthdate DATE  NOT NULL , 
         tenant_id INTEGER  NOT NULL ,
         CONSTRAINT PK_emp PRIMARY KEY ( id )
        ) ;
    
    CREATE TABLE username 
        ( 
         id INTEGER  NOT NULL , 
         emp_id INTEGER  NOT NULL , 
         username VARCHAR2 (30 CHAR)  NOT NULL , 
         tenant_id INTEGER  NOT NULL ,
         CONSTRAINT PK_username PRIMARY KEY ( id ) ,
         CONSTRAINT UC_username_emp UNIQUE ( emp_id ) ,
         CONSTRAINT UC_username_username_tenant UNIQUE ( username , tenant_id ) ,
         CONSTRAINT FK_username_emp FOREIGN KEY ( emp_id ) REFERENCES emp ( id ) 
        ) 
    ;
    Any ideas or links to books that are greatly appreciated.

    Thank you
    Blama

    Hi, Lawrence.

    Sorry, I'm not sure you understand the problem. It would be useful that you posted some INSERT statements that should be allowed, and some that must fail because they violate the rule of oneness. Or by post at least a scneario of business that you might neeed to model. For example "tenant 1 has 3 employees: 11, 12 and 13." Employee 11A username "FFL". 12 has no username. 13 should be able to choose any username except "Elf", or not having a (just like the 12). 2 a 2 employees... »

    You can create an index based on a single function. For example, if the user name is optional:

    CREATE UNIQUE INDEX emp_name_unique ON
    username ( NVL2 (username, tenant_id, NULL)
             , username
             );
    

    If username is NULL, then the two expressions of the index will be NULL and no index entry will be. So there may be a number any lines with the same tenant_id, but no user name, but only one line for each (tenant_id, username) combination when there is a user name.

    Laurent wrote:
    ... Is it really necessary to move the user name column to a new table, as in the following? It just doesn't feel good to introduce a table of relationship for a 1:1 relationship.

    Good instinct; It's weird (but not necessarily bad) to have a one-to-one relationship between the tables, but do you? When you say things like

    ... A user name cannot be used once a TENANT...

    or

    ... As soon as I add a 2nd employee for a tenant...

    Looks like you have a one-to-many relationship, or maybe a many-to-many relationship, or maybe even two relationships, neither of which is unequivocal.

    Published by: Frank Kulash, October 26, 2012 09:15

Maybe you are looking for

  • computer does not detect blank cd and does not burn cd

    I did a full restore on my pc, nearly a year before and before restoring the computer was able to detect blank CD and burn the cd now after restoring I noticed, it won't detect CD or burn CDs. Pretty well, I did a search on google and tried almost al

  • Satellite P7450 - I need to remove my keyboard

    I accidentally spilled juice on my keyboard, then one of the keys becomes sticky and its really uncomfortable for me.Can I remove the button to clean the inside and just put it back?My friend told me about what type of keyboard is in my laptop - all-

  • 2560p: EliteBook 2560p use mSATA SSD in location WWAN

    Hello.I bought a Lite-on S900 mSATA SSD 64 GB for my 2560p and tried to place it in the WWAN slot, but it is recognized as the WAN card, not SSD. I found this topic: http://h30478.www3.hp.com/t5/Ordinateurs-portables-Syst%C3%A8mes-d-exploitation-D%C3

  • Motorcycle G screen becomes black and white, the names of the app

    Hello my motorcycle g screen becomes black and freezes, and also most of the time like every day my phone will be white all app names is there a way to get rid of this problem?

  • Fixing Winsows XP system

    How can I get a disk to load once a person has worked on my computer.  I think he took something that he shouldn't have. I can't burn a CD or a record of information allows you to download any type of program. Is it possible to replace thate never wh