VLD-0201:Table has more than one primary key

hi
i'm working with OWB 9.2,I was imported the table from database,when i validating that it is giving message:
VLD-0201:Table has more than one primary key
vld-0209:Duplicate unique key i.e:cust_acc and SYS_C00435 detected.
Can i use this table and generate the mapping with out any errors?
Any help will be very generate.

Hi Ashok,
I'm quite curious how you managed to get a table with 2 PK's.
I tried it myself:
=======================================================
SQL>create table x(c1 number constraint pk1 primary key,c2 number constraint pk2 primary key, c3 date);
create table x(c1 number constraint pk1 primary key,c2 number constraint pk2 primary key, c3 date)
ERROR at line 1:
ORA-02260: table can have only one primary key
SQL>ed
Wrote file afiedt.buf
1* create table x(c1 number constraint uk1 unique,c2 number constraint uk2 unique, c3 date)
SQL>/
Table created.
=====================================================
As you can see, trying to create a table with more than 1 PK is impossible. With Unique Key, that IS possible (see second example).
I don't expect mappings to function properly with such an error message.
Is it possible for you to drop the table in the database, correct the definition of the table in OWB and then deploy that corrected version to the database?
If on the other hand the table on the database is correct (i.e. has only one PK) then the import into OWB obviously did not go well and I'd suggest you drop the imported definition and try to import it again.
Cheers, Patrick

Similar Messages

  • Can I have more than one primary key ???????

    Hi
    Assuming an application has designed as CMP with findByPrimaryKey( ) method having more than one parameter.
    Example :- findByPrimarykey(String val1, String val2)
    Is it possible to have two parameters fot the finder methods instead using PrimaryKey class ?
    If yes, what are the changes required for following deployment descriptor element. ?
    1. <prim-key-class></prim-key-class>
    2. <primkey-field></primkey-field>
    Regards
    Edward.I

    If a primary key has more than one primary key fields; is a composite primary key, a primary key class is required.
    The parameter of the findByPrimaryKey() method is the primary key class.
    findByPrimaryKey(PrimaryKeyClass pkClass)
    Deepak

  • Can we have more than one primary key constraint to a Oracle Table?

    Hi,
    Can we have more than one primary keys to a single table in oracle? ( Not the composite key)
    Please somebody answer..
    Regards,
    Alaka

    811935 wrote:
    Can we have more than one primary keys to a single table in oracle? ( Not the composite key)
    In principle a table can have multiple keys if you need them. It is a very strong convention that just one of those keys is designated to be "primary" but that's just a convention and it doesn't stop you implementing other keys as well.
    Oracle provides two uniqueness constraints for creating keys: the PRIMARY KEY constraint and the UNIQUE constraint. The PRIMARY KEY constraint can only be used once per table whereas the UNIQUE constraint can be used multiple times. Other than that the PRIMARY KEY and UNIQUE constraints serve the same function (always assuming the column(s) they are applied to are NOT NULL).

  • More than One Primary Key

    Hi,
    How to create more than one primary key in TT
    CREATE TABLE LOOKUP (KEY NUMBER NOT NULL PRIMARY KEY, VALUE CHAR (64))
    In Oracle we can create Composite Primary key
    CREATE TABLE LOOKUP (KEY NUMBER NOT NULL , VALUE CHAR (64) , CONSTRAINT constraint_name PRIMARY KEY (KEY,VALUE) )
    Thanks!

    Hi 933663,
    What is a problem?
    Command> CREATE TABLE recreation.members
    (membername CHAR(20) NOT NULL,
      club CHAR(15) NOT NULL,
      memberphone SMALLINT,
      PRIMARY KEY (membername, club));
    Command> regards,
    Gennady

  • Populating more than one table and more than one field

    I need some suggestions and this forum has always been a great source of good advice.
    I have a web form at the following location: http://www.webdevpractice.com/genoptix/CE/register.php
    Here's what the web form needs to do:
    Send a confirmation email listing seminars the visitor checked on the form.
    Create a similar message on a confirmation page.
    Populate 2 two tables.
    Items 1 and 2 are working fine.
    The advice I need is on how to populate two tables in the database.
    There are three tables:
    ACCOUNTS
    account_id
    first_name
    last_name
    medtech_id
    job_title
    npi
    company
    city
    state
    email
    phone
    contact
    ATTENDANCE
    attendance_id
    account_id
    seminar_id
    SEMINARS
    seminar_id
    seminar
    speaker_first_name
    speaker_last_name
    date
    The web form contains data that need to go into the ACCOUNTS table and the ATTENDANCE table. The challenge is getting the account_id and seminar_id into the ATTENDANCE table. If all the information was inserted properly, I could write a query that revealed who was taking what seminar.
    Inserting data into the ACCOUNTS table is not a problem. I will create another form to insert information into the SEMINARS so that should not be a problem. But inserting the account_id and the seminar_id is what I am wondering about. Also, can more than one record be inserted in a table? If an user checks more that one seminar, each seminar (seminar_id) would need to be inserted in the ATTENDANCE table as separate records along with the account_id. I'm thinking I may have to do this manually. Also, the values for each seminar are their dates and titles. I used these as values to send the confirmations.
    I'm just looking for advice at this point. Is this doable?

    Bregent,
    The table I am wondering about is the ATTENDANCE table. There are two fields in addition to the primary key: account_id and seminar_id. The field I am concern with is the seminar_id which comes from a group of checkboxs on the form. So, one form could create several records. For example, presently there are three seminars that are offered. If the visitor selects all three seminars, that would create three records in the SEMINARS table. So, it might look like this:
    attendance_id     account_id     seminar_id
         1                    1                    1
         2                    1                    2
         3                    1                    3
    My PHP skills are basic. I've done other forms and use PHP in other ways. But I have never had to populate several rows in one table with an array of checkboxes nor have I be able to find an example of this.
    So the advice I am seeking (and perhaps this is premature) is this:
    Can one field from a table populate more than one record?
    Should I set up checkboxs as a group or individually with a different name?
    I am also considering setting up my tables differently so there is a table from each seminar--that may solve my problem.

  • Error while running spatial queries on a table with more than one geometry.

    Hello,
    I'm using GeoServer with Oracle Spatial database, and this is a second time I run into some problems because we use tables with more than one geometry.
    When GeoServer renders objects with more than one geometry on the map, it creates a query where it asks for objects which one of the two geometries interacts with the query window. This type of query always fails with "End of TNS data channel" error.
    We are running Oracle Standard 11.1.0.7.0.
    Here is a small script to demonstrate the error. Could anyone confirm that they also have this type of error? Or suggest a fix?
    What this script does:
    1. Create table object1 with two geometry columns, geom1, geom2.
    2. Create metadata (projected coordinate system).
    3. Insert a row.
    4. Create spacial indices on both columns.
    5. Run a SDO_RELATE query on one column. Everything is fine.
    6. Run a SDO_RELATE query on both columns. ERROR: "End of TNS data channel"
    7. Clean.
    CREATE TABLE object1
    id NUMBER PRIMARY KEY,
    geom1 SDO_GEOMETRY,
    geom2 SDO_GEOMETRY
    INSERT INTO user_sdo_geom_metadata (table_name, column_name, srid, diminfo)
    VALUES
    'OBJECT1',
    'GEOM1',
    2180,
    SDO_DIM_ARRAY
    SDO_DIM_ELEMENT('X', 400000, 700000, 0.05),
    SDO_DIM_ELEMENT('Y', 300000, 600000, 0.05)
    INSERT INTO user_sdo_geom_metadata (table_name, column_name, srid, diminfo)
    VALUES
    'OBJECT1',
    'GEOM2',
    2180,
    SDO_DIM_ARRAY
    SDO_DIM_ELEMENT('X', 400000, 700000, 0.05),
    SDO_DIM_ELEMENT('Y', 300000, 600000, 0.05)
    INSERT INTO object1 VALUES(1, SDO_GEOMETRY(2001, 2180, SDO_POINT_TYPE(500000, 400000, NULL), NULL, NULL), SDO_GEOMETRY(2001, 2180, SDO_POINT_TYPE(550000, 450000, NULL), NULL, NULL));
    CREATE INDEX object1_geom1_sidx ON object1(geom1) INDEXTYPE IS MDSYS.SPATIAL_INDEX;
    CREATE INDEX object1_geom2_sidx ON object1(geom2) INDEXTYPE IS MDSYS.SPATIAL_INDEX;
    SELECT *
    FROM object1
    WHERE
    SDO_RELATE("GEOM1", SDO_GEOMETRY(2001, 2180, SDO_POINT_TYPE(500000, 400000, NULL), NULL, NULL), 'MASK=ANYINTERACT') = 'TRUE';
    SELECT *
    FROM object1
    WHERE
    SDO_RELATE("GEOM1", SDO_GEOMETRY(2001, 2180, SDO_POINT_TYPE(500000, 400000, NULL), NULL, NULL), 'MASK=ANYINTERACT') = 'TRUE' OR
    SDO_RELATE("GEOM2", SDO_GEOMETRY(2001, 2180, SDO_POINT_TYPE(500000, 400000, NULL), NULL, NULL), 'MASK=ANYINTERACT') = 'TRUE';
    DELETE FROM user_sdo_geom_metadata WHERE table_name = 'OBJECT1';
    DROP INDEX object1_geom1_sidx;
    DROP INDEX object1_geom2_sidx;
    DROP TABLE object1;
    Thanks for help.

    This error appears in GeoServer and SQLPLUS.
    I have set up a completly new database installation to test this error and everything works fine. I tried it again on the previous database but I still get the same error. I also tried to restart the database, but with no luck, the error is still there. I geuss something is wrong with the database installation.
    Anyone knows what could cause an error like this "End of TNS data channel"?

  • Tables with more than one cell with a high number of rowspan (ej. 619). This cell can not be print in a page and it must be cut. But I don't know how  indesign can do this action.

    Tables with more than one cell with a high number of rowspan (ej. 619). This cell can not be print in a page and it must be cut. But I don’t know how  indesign can do this action.

    set the wake-on lan on the main computer
    The laptop's too far away from the router to be connected by ethernet. It's all wifi.
    No separate server app on the laptop, it's all samba
    The files are on a windows laptop and a hard drive hooked up to the windows laptop. The windows share server is pants, so I'd need some sort of third party server running. Maybe you weren't suggesting to use Samba to connect to the windows share though?
    I'm glad that you've all understood my ramblings and taken and interest, thanks The way I see it, I can't be the only netbook user these days looking for this kind of convenience, and I certainly won't be once chrome and moblin hit the market.
    Last edited by saft (2010-03-18 20:38:08)

  • How to add the rows formatted as table headings, Tables headings are repeated when a table spans more than one page.

    Hi all,
    i am facing problem while generating Test Result word document after successful execution of TestStand.
    The Problem is :
    i want to add rows Formatted as table headings, table headings are repeated when a table spans more than one page(marked as Red).
    Example:
    Page  No. 1
    |     Test case Number  |  Test Step number      |
    |      100                         |            100                   |
    Page  No. 2
    |     Test case Number  |  Test Step number      |
    |      200                         |            300                   |
    Test Result word document should generate with Table headings(marked as Red) in every pages of the document, but i am not getting as per above example.
    Please through light on this.
    Regards,
    Susa.

    Hi Santiago,
    Thank you very much for your valuable reply.
    i want to generate MS-word report for TestStand after successful testing using MS-word2000.
    Test report contains Actual values, Expected values and Pass/Fail status.
    In my program i have customized all  fields i can able to generate test report which contains Verification engineer name , test mode, test date, start time, end time Actual values, Expected values and Pass/Fail status.etc....
    To put all values of test case number, Test step number, Actual values, Expected values and Pass/Fail status in to table for each time, i will
    insert a row into table every time values arrives, once the table exceedes its page size it moves to the next page, next page should start with table row header  but it start with  values of above said parameters.
    so i'm not able to repeat table row header for each page.
    Please find the attached file for your reference.
    Attched file expected.doc  :   This file contains what i wanted to generate MS-word report. Here table row header "Test Case Number and Test Step Number " is repeated in second page.
    Attached file Actual output from source code.doc   :  This report generated from the source code. Here table row header "Test Case Number and Test Step Number" is not repeated in second page.
    Do you know any property to set "repeat as header row at the top of each page" using MS-word ActiveX in CVI/Labwindows.
    i think this information is sufficient for you,
    Still if you need some information please ask me.
    Thanks
    Susa.
    Attachments:
    Actual output from source code.doc ‏25 KB
    expected.doc ‏26 KB

  • How to print a graph in which internal table has more than 32 entries?

    hiii experts
    i am trying to make a line graph using 'gfw_pres_show' function module.
    but in report internal table has more than 32 entries
    so how can i print a graph having more than 32 entries?

    Hi ricky_lv,
    According to your description, there is main report and subreport in it, when the subreport spans across multiple pages, you want to show column headers on each page. If that is the case, we can set column headers visible while scrolling in main report.
    For detail information, please refer to the following steps:
    In design mode, click the small drop down arrow next to Column Groups and select Advanced Mode.
    Go to your Row Groups pane, click on the first static member.
    In properties grid, set FixData to True.
    Set RepeatOnNextPage to True.
    Here is a relevant thread you can reference:
    https://social.technet.microsoft.com/Forums/en-US/e1f67cec-8fa3-4c5d-86ba-28b57fc4a211/keep-header-rows-visible-while-scrolling?forum=sqlreportingservi
    The following screenshots are for your reference:
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    If you have any feedback on our support, please click
    here.
    Wendy Fu
    TechNet Community Support

  • Spatial index creation for table with more than one geometry columns?

    I have table with more than one geometry columns.
    I'v added in user_sdo_geom_metadata table record for every column in the table.
    When I try to create spatial indexes over geometry columns in the table - i get error message:
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-13203: failed to read USER_SDO_GEOM_METADATA table
    ORA-13203: failed to read USER_SDO_GEOM_METADATA table
    ORA-06512: at "MDSYS.SDO_INDEX_METHOD", line 8
    ORA-06512: at line 1
    What is the the solution?

    I'v got errors in my user_sdo_geom_metadata.
    The problem does not exists!

  • Auto creation of child requests when parent request has more than one group

    Hi,
    I have created a request dataset which has a child form for AD Group. While raising a request, if I add more than one group, how to process the approval flow. Because I will be having different different approvers for different different groups. Is there any way to create child requests automatically when we submit a request with more than one group? I am using OIM 11.1.1.5.0.
    I know in OIM 11g, whenever user raises request for more than one beneficiary/target-resource then OIM breaks that request into Child Requests. But this is not happening when I add more than one group in the same resource. Do I need to write my own code for DataValidator to split parent request into child requests upon validating child form? If so, is it going to impact the existing feature which is creating child request when parent has more than one user/resource.
    Please let me know.

    No not possible OOTB in current version. Check {thread:id=2318652} for more information.
    -Bikash

  • An operation has more than one setup activity-error message

    Hi All,
    I have a queue which is failing and giving error message "An operation has more than one setup activity".
    I have  debugged it but of no use.
    In SAP R3 planned order data is created and is being sent to APO system through a CIF interface in queue.
    In APO system,planned order data is integrated to process order,during this they are getting the subject mentioned error.
    Kindly help me how to rectify this error.
    Please help...Thanks in advance.

    Hi,
    Back again...hopefully below should solve your issue.
    Check if any of the co-product (of the main assembly) has GR processing time. Are there any phantom component in the BOM, if yes, please check the co-products in phantom assembly as well.
    Any co-products /phantom assembly should be assigned to APO related Produce phase.
    Otherwise, you can remove the GR processing time for co-products (make it zero) and sync the master data and then try.
    This should solve the issue.
    Let know if this helps.
    Regards,
    NR

  • Error using JAX-WS to consume a WS that has more than one parameter

    I am trying to create a web service proxy in JDeveloper using JAX-WS for an OAM web service from a WSDL (identity/oblix/WebServices/CompositeWebServices/WSDL/um_view_interface.wsdl). I received the following error when I try to run the proxy:
    Exception in thread "main" com.sun.xml.ws.model.RuntimeModelerException: runtime modeler error: SEI test.profile.OblixIDXMLPortType has method oblixIDXMLUmView annotated as BARE but it has more than one parameter bound to body. This is invalid. Please annotate the method with annotation: @SOAPBinding(parameterStyle=SOAPBinding.ParameterStyle.WRAPPED)
    at com.sun.xml.ws.model.RuntimeModeler.validateDocBare(RuntimeModeler.java:1267)
    at com.sun.xml.ws.model.RuntimeModeler.processDocBareMethod(RuntimeModeler.java:1256)
    at com.sun.xml.ws.model.RuntimeModeler.processMethod(RuntimeModeler.java:628)
    at com.sun.xml.ws.model.RuntimeModeler.processClass(RuntimeModeler.java:416)
    at com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:267)
    at com.sun.xml.ws.client.WSServiceDelegate.buildRuntimeModel(WSServiceDelegate.java:715)
    at weblogic.wsee.jaxws.spi.WLSProvider$ServiceDelegate.buildRuntimeModel(WLSProvider.java:427)
    at com.sun.xml.ws.client.WSServiceDelegate.addSEI(WSServiceDelegate.java:703)
    at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:347)
    at weblogic.wsee.jaxws.spi.WLSProvider$ServiceDelegate.getPort(WLSProvider.java:409)
    at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:330)
    at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:312)
    at javax.xml.ws.Service.getPort(Service.java:92)
    at test.profile.OblixIDXMLService.getOblixIDXMLPort(OblixIDXMLService.java:79)
    at test.profile.OblixIDXMLPortClient.main(OblixIDXMLPortClient.java:23)
    Process exited with exit code 1.
    It seems like the OAM web service (um_view_interface.wsdl) is not WS-I BP 1.1 compliant. It expects two elements under the body. WS-I BP 1.1 specifies that there should be only one child in the body of the element.
    The expected request body would look like this, there are two elements under the body:
    <soapenv:Body>
    <authentication xmlns="http://www.oblix.com/">
    <login>loginname</login>
    <password>pass</password>
    <domain>dc=test,dc=org</domain>
    </authentication>
    <request application="userservcenter" function="view" mode="dataonly" version="NPWSDL1.0" xmlns="http://www.oblix.com/OblixXMLLocalSchema">
    <params xmlns="">
    <ns1:uid xmlns:ns1="http://www.oblix.com/">cn=tester,cn=Users,dc=test,dc=org</ns1:uid>
    </params>
    </request>
    </soapenv:Body>
    Has anyone encountered the similar problem? Is there a solution to this problem?
    Your help is appreciated!

    Can u pls share ur solution if u have found a way 2 create a web service with 2 ports.I have not yet found a solution so far and nobody reacted to all my posts in the different fourms. It seems nobody is implementing web services with two ports using the EJB annotations technology.

  • Lumia 520 SMS- when a contact has more than one nu...

    Hi- when calling a contact who has more than one phone number it is easy to choose which of the numbers for that contact to use, but when sending SMS there is no option to choose. How does the SMS system decide which of the available numbers to use?
    Solved!
    Go to Solution.

    If I do the following steps: Messaging > + >To + > Select contact > I see all numbers listed for the contact.
    If I do instead: People > Contact > SMS, the number entered as "mobile" is selected by default. If you want to change it to "mobile2", you need to go: ... > switch number and select from there.

  • How to read an internal table with more than  one (2 or 3) key field(s).

    how to read an internal table with more than  one (2 or 3) key field(s). in ecc 6.0 version

    hi ,
    check this..
    report.
    tables: marc,mard.
    data: begin of itab occurs 0,
          matnr like marc-matnr,
          werks like marc-werks,
          pstat like marc-pstat,
          end of itab.
    data: begin of itab1 occurs 0,
          matnr like mard-matnr,
          werks like mard-werks,
          lgort like mard-lgort,
          end of itab1.
    parameters:p_matnr like marc-matnr.
    select matnr
           werks
           pstat
           from marc
           into table itab
           where matnr = p_matnr.
    sort itab by matnr werks.
    select matnr
           werks
           lgort
           from mard
           into table itab1
           for all entries in itab
           where matnr = itab-matnr
           and werks = itab-werks.
    sort itab1 by matnr werks.
    loop at itab.
    read table itab1 with key matnr = itab-matnr
                              werks = itab-werks.
    endloop.
    regards,
    venkat.

Maybe you are looking for

  • Itunes suddenly not able to open on windows 7

    Hey, Suddenly, iTunes will not open on windows 7. If I try to open it, it appears in the taskbar, but will disapear from the taskbar a second later. I have been using iTunes on this computer for 3 months, and this is the first trouble I have had with

  • Airport express + ADSL :-(

    Hello, I have problem with setting wireless network. First of all, i am new to mac world, i got new powerbook g4 and airport express. From my PB i can see and config airport and i also tryed to connect 2 internet using just adsl and cable, that works

  • Purchasing Delta Issue

    Hello, We were loading purchasing delta from the extractor 2LIS_02_SCL. 2 Days back there were support pack applied in R/3 and after that we are having failure of a job RMBWV302 and delta extraction to BW have stopped. RMBWV302  is no longer running

  • Got myself stuck with css

    I've gotten myself really stuck with my css layout. I've basically followed a couple of different tutorials to get where I am. if you'll visit http://eliteportraits.com/teetest/ you can see the effort so far. Where i'm stuck is the main content block

  • Timeline trimming using keyboard shortcuts in Premiere Pro CS6

    Just wrote a new blog post about Timeline trimming using keyboard shortcuts in Premiere Pro CS6. It's in the FAQ now, as well. Check it out.