CMP insert failure using secondary table

I've defined a CMP with a column from a secondary table.
The retrieval/updates work fine, but I'm getting a failure
on insert. It's trying to insert a duplicate primary key into the secondary table. I do NOT want to insert into the secondary table when I insert into the primary table. I just want to retrieve data from that table on findByPrimaryKey from the
primary table. Is there any way to do this??

How can you retrieve from the secondary table w/o inserting into it? Can you send me your table definition? What error do you get?

Similar Messages

  • Why there is a berkeleydb auto inserted record using secondary db?

    Hi all,
    I using secondary db to do multi-key query, but I find berkeyleydb insert a dummy record automatically and this dummy record can be queried out using cursor, which is quite annoying.
    Below is my code example:
    Init(const char *pszPath)
         try
              char szFileName[256] = "";
              if (strlen(m_szPath) > 0)
                   sprintf(szFileName, "%s%s", m_szPath, "qmdb_Positions.db");
              else
                   strcpy(szFileName, "qmdb_Positions.db");
              char *pszFileName = NULL;
              if (strcmp("file", "none") == 0)
                   pszFileName = szFileName;
              m_pDBPositions = new Db(NULL, 0);
              m_pDBPositions->open(NULL, pszFileName, szFileName, DB_BTREE, DB_CREATE, 0);
              m_pSeqPositions = new DbSequence(m_pDBPositions, 0);
              Dbt key((void *)m_SeqNamePositions, (u_int32_t)strlen(m_SeqNamePositions));
              m_pSeqPositions->open(NULL, &key, DB_CREATE);
              m_pIdxInstrument = new Db(NULL, 0);
              m_pIdxInstrument->set_flags(DB_DUPSORT);
              if (strlen(m_szPath) > 0)
                   sprintf(szFileName, "%s%s", m_szPath, "qmdbs_Positions_Instrument.db");
              else
                   strcpy(szFileName, "qmdbs_Positions_Instrument.db");
              m_pIdxInstrument->open(NULL, pszFileName, szFileName, DB_BTREE, DB_CREATE, 0);
              m_pDBPositions->associate(NULL, m_pIdxInstrument, &qmPositionsTable::ExtractInstrument, 0);
              m_pIdxDirection = new Db(NULL, 0);
              m_pIdxDirection->set_flags(DB_DUPSORT);
              if (strlen(m_szPath) > 0)
                   sprintf(szFileName, "%s%s", m_szPath, "qmdbs_Positions_Direction.db");
              else
                   strcpy(szFileName, "qmdbs_Positions_Direction.db");
              m_pIdxDirection->open(NULL, pszFileName, szFileName, DB_BTREE, DB_CREATE, 0);
              m_pDBPositions->associate(NULL, m_pIdxDirection, &qmPositionsTable::ExtractDirection, 0);
              Dbc pCursor = NULL;
              m_pDBPositions->cursor(NULL, &pCursor, 0);
              Dbt k, data;
              if (DB_NOTFOUND != pCursor->get(&k, &data, DB_NEXT))
                   qmPositionsRecord record;
                   memcpy(&record, data.get_data(), sizeof(qmPositionsRecord));
                   printf("%s", record.Instrument);
         catch (DbException &e)
              string error = e.what();
         catch (std::exception &e)
         return 0;
    int qmPositionsTable::
    ExtractInstrument(Db dbp, const Dbt pkey, const Dbt pdata, Dbt skey)
         qmPositionsRecord *pRecord;
         pRecord = (qmPositionsRecord *)pdata->get_data();
         skey->set_data((void *)GetAddressOfInstrument(pRecord->Instrument));
         skey->set_size(GetLengthOfInstrument(pRecord->Instrument));
         return 0;
    int qmPositionsTable::
    ExtractDirection(Db dbp, const Dbt pkey, const Dbt pdata, Dbt skey)
         qmPositionsRecord *pRecord;
         pRecord = (qmPositionsRecord *)pdata->get_data();
         skey->set_data((void *)GetAddressOfDirection(pRecord->Direction));
         skey->set_size(GetLengthOfDirection(pRecord->Direction));
         return 0;
    Edited by: Bruce on 2012-5-8 下午11:14

    In your scenario record will be deleted as your DB Poller will commit the transaction once the message has been delivered to Proxy Service A.
    If you want the message not to be deleted then you must have only the DB Poller proxy include the logic of proxy A and must make a call to proxy B.

  • Insert while using multi table

    Hi
    I have created a class and using multi table feature to retrieve fields from couple of tables. These tables are associated via Foreign key. This works fine while select, but fails while insert a new record in primary table using unitOfWork.
    Here is the peice of code i am using
    UnitOfWork uow = CfToplink9Helper.getUnitOfWork();
    uow.registerNewObject(basketEntry);
    uow.commit();
    Any suggestions !!! Appreciate your response !!!

    Here is the exception
    TopLink Severe]: UnitOfWork(734604338)--java.lang.NullPointerException
    at oracle.toplink.internal.descriptors.ObjectBuilder.addPrimaryKeyForNonDefaultTable(ObjectBuilder.java:104)
    at oracle.toplink.internal.descriptors.ObjectBuilder.buildRowForTranslation(ObjectBuilder.java:631)
    at oracle.toplink.queryframework.WriteObjectQuery.prepareForExecution(WriteObjectQuery.java:141)
    at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:500)
    at oracle.toplink.publicinterface.Session.internalExecuteQuery(Session.java:2091)
    at oracle.toplink.publicinterface.UnitOfWork.internalExecuteQuery(UnitOfWork.java:2291)
    at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1101)
    at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1055)
    at oracle.toplink.internal.sessions.CommitManager.commitAllObjectsWithChangeSet(CommitManager.java:177)
    at oracle.toplink.publicinterface.Session.writeAllObjectsWithChangeSet(Session.java:3286)
    at oracle.toplink.publicinterface.UnitOfWork.commitToDatabase(UnitOfWork.java:1068)
    at oracle.toplink.publicinterface.UnitOfWork.commitToDatabaseWithChangeSet(UnitOfWork.java:1115)
    at oracle.toplink.publicinterface.UnitOfWork.commitRootUnitOfWork(UnitOfWork.java:938)
    at oracle.toplink.publicinterface.UnitOfWork.commit(UnitOfWork.java:754)
    at com.cna.app.sentinelBatch.batch.DBWriter.addBasketEntry(DBWriter.java:48)
    at com.cna.app.sentinelBatch.batch.DBWriter.main(DBWriter.java:327)
    [TopLink Info]: ClientSession(542256178)--Connection(598240304)--rollback transaction
    [TopLink Severe]: UnitOfWork(734604338)--java.lang.NullPointerException
    at oracle.toplink.internal.descriptors.ObjectBuilder.addPrimaryKeyForNonDefaultTable(ObjectBuilder.java:104)
    at oracle.toplink.internal.descriptors.ObjectBuilder.buildRowForTranslation(ObjectBuilder.java:631)
    at oracle.toplink.queryframework.WriteObjectQuery.prepareForExecution(WriteObjectQuery.java:141)
    at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:500)
    at oracle.toplink.publicinterface.Session.internalExecuteQuery(Session.java:2091)
    at oracle.toplink.publicinterface.UnitOfWork.internalExecuteQuery(UnitOfWork.java:2291)
    at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1101)
    at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1055)
    at oracle.toplink.internal.sessions.CommitManager.commitAllObjectsWithChangeSet(CommitManager.java:177)
    at oracle.toplink.publicinterface.Session.writeAllObjectsWithChangeSet(Session.java:3286)
    at oracle.toplink.publicinterface.UnitOfWork.commitToDatabase(UnitOfWork.java:1068)
    at oracle.toplink.publicinterface.UnitOfWork.commitToDatabaseWithChangeSet(UnitOfWork.java:1115)
    at oracle.toplink.publicinterface.UnitOfWork.commitRootUnitOfWork(UnitOfWork.java:938)
    at oracle.toplink.publicinterface.UnitOfWork.commit(UnitOfWork.java:754)
    at com.cna.app.sentinelBatch.batch.DBWriter.addBasketEntry(DBWriter.java:48)
    at com.cna.app.sentinelBatch.batch.DBWriter.main(DBWriter.java:327)
    java.lang.NullPointerException
    at oracle.toplink.internal.descriptors.ObjectBuilder.addPrimaryKeyForNonDefaultTable(ObjectBuilder.java:104)
    at oracle.toplink.internal.descriptors.ObjectBuilder.buildRowForTranslation(ObjectBuilder.java:631)
    at oracle.toplink.queryframework.WriteObjectQuery.prepareForExecution(WriteObjectQuery.java:141)
    at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:500)
    at oracle.toplink.publicinterface.Session.internalExecuteQuery(Session.java:2091)
    at oracle.toplink.publicinterface.UnitOfWork.internalExecuteQuery(UnitOfWork.java:2291)
    at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1101)
    at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1055)
    at oracle.toplink.internal.sessions.CommitManager.commitAllObjectsWithChangeSet(CommitManager.java:177)
    at oracle.toplink.publicinterface.Session.writeAllObjectsWithChangeSet(Session.java:3286)
    at oracle.toplink.publicinterface.UnitOfWork.commitToDatabase(UnitOfWork.java:1068)
    at oracle.toplink.publicinterface.UnitOfWork.commitToDatabaseWithChangeSet(UnitOfWork.java:1115)
    at oracle.toplink.publicinterface.UnitOfWork.commitRootUnitOfWork(UnitOfWork.java:938)
    at oracle.toplink.publicinterface.UnitOfWork.commit(UnitOfWork.java:754)
    at com.cna.app.sentinelBatch.batch.DBWriter.addBasketEntry(DBWriter.java:48)
    at com.cna.app.sentinelBatch.batch.DBWriter.main(DBWriter.java:327)

  • Error while insert data using execute immediate in dynamic table in oracle

    Error while insert data using execute immediate in dynamic table created in oracle 11g .
    first the dynamic nested table (op_sample) was created using the executed immediate...
    object is
    CREATE OR REPLACE TYPE ASI.sub_mark AS OBJECT (
    mark1 number,
    mark2 number
    t_sub_mark is a class of type sub_mark
    CREATE OR REPLACE TYPE ASI.t_sub_mark is table of sub_mark;
    create table sam1(id number,name varchar2(30));
    nested table is created below:
    begin
    EXECUTE IMMEDIATE ' create table '||op_sample||'
    (id number,name varchar2(30),subject_obj t_sub_mark) nested table subject_obj store as nest_tab return as value';
    end;
    now data from sam1 table and object (subject_obj) are inserted into the dynamic table
    declare
    subject_obj t_sub_mark;
    begin
    subject_obj:= t_sub_mark();
    EXECUTE IMMEDIATE 'insert into op_sample (select id,name,subject_obj from sam1) ';
    end;
    and got the below error:
    ORA-00904: "SUBJECT_OBJ": invalid identifier
    ORA-06512: at line 7
    then when we tried to insert the data into the dynam_table with the subject_marks object as null,we received the following error..
    execute immediate 'insert into '||dynam_table ||'
    (SELECT

    887684 wrote:
    ORA-00904: "SUBJECT_OBJ": invalid identifier
    ORA-06512: at line 7The problem is that your variable subject_obj is not in scope inside the dynamic SQL you are building. The SQL engine does not know your PL/SQL variable, so it tries to find a column named SUBJECT_OBJ in your SAM1 table.
    If you need to use dynamic SQL for this, then you must bind the variable. Something like this:
    EXECUTE IMMEDIATE 'insert into op_sample (select id,name,:bind_subject_obj from sam1) ' USING subject_obj;Alternatively you might figure out to use static SQL rather than dynamic SQL (if possible for your project.) In static SQL the PL/SQL engine binds the variables for you automatically.

  • Inserting data into one table using another table

    Hi i have 2 tables
    CREATE TABLE N_SET
    N_ST_ID NUMBER(38) NOT NULL, ---- PK
    N_ST_NM VARCHAR2(50 BYTE) NOT NULL,
    N_ST_DSC VARCHAR2(200 BYTE),
    DFTID NUMBER ------ FK
    CREATE TABLE RZ
    NST_ID NUMBER(38) NOT NULL, ---- FK
    RID NUMBER(38) NOT NULL, --- PK
    RNM VARCHAR2(30 BYTE) NOT NULL
    I entered the data into the N_SET table using sequence in column N_ST_ID (using procedure)
    Now i need to enter the data into RZ table where NST_ID should contain the value of N_SET.N_ST_ID
    so for this i've written another procedure
    but confused how to write the select statement to retrieve the above condition..
    Could you help me in this please...

    Hi,
    I have a table Target whose structure is
    create table employee
    id VARCHAR2(20),
    name VARCHAR2(20),
    employee_seq NUMBER not null
    -- Create sequence
    create sequence test_seq
    minvalue 1
    maxvalue 999999999999999999999999999
    start with 5
    increment by 1
    nocache
    cycle;
    create table emp
    id VARCHAR2(20)
    name VARCHAR2(20)
    INSERT INTO emp
    ( id, name )
    VaLUES ( '100','test1');
    commit;
    INSERT INTO emp
    ( id, name )
    VaLUES ( '100','test2');
    commit;
    i have to insert into the TARGET table the fsa value from
    SOURCE table along with the sequence number using sequence test_seq.nextval.
    INSERT INTO employee
    ( id, name, employee_seq )
    SELECT id, ename, ( select test_seq.nextval from dual )
    FROM emp ;

  • Inserting data from one table into another table using PL/SQL

    HI,
    I am trying to insert values from one table into another using PL procedure, the values I want to retrieve from the table riverside1 are charac_id and charac_type and insert these values into another table called riverside2 , the stored procedure zorgs_gorfs(x,y) accepts two parameters which are 2 charac_id's of d characters in riverside1 then using insert statements inserts these characters from riverside1 into riverside2.
    CREATE OR REPLACE PROCEDURE zorgs_gorfs(x IN NUMBER, y IN NUMBER) AS
         BEGIN
              INSERT INTO riverside2
                   (charac_id)
              VALUES
                   (x);
    INSERT INTO riverside2
                   (charac_id)
              VALUES
                   (y);
          END zorgs_gorfs;
    /This works but the problem im having is that when I also try to insert the charac_type as well as the charac_id it doesnt work below is the code:
    CREATE OR REPLACE PROCEDURE zorgs_gorfs(x IN NUMBER, y IN NUMBER) AS
         BEGIN
              INSERT INTO riverside2
                   (charac_id,charac_tye)
              VALUES
                   (Select
                        charac_id,
                        charc_type
                   FROM
                        riverside1
                   WHERE
                        charac_id = x);
          END zorgs_gorfs;
    /can someone kindly sort me out

    modify this sql
    INSERT INTO riverside2
                   (charac_id,charac_tye)
              VALUES
                   (Select
                        charac_id,
                        charc_type
                   FROM
                        riverside1
                   WHERE
                        charac_id = x);as
    INSERT INTO riverside2
                   (charac_id,charac_tye)
              VALUES
                   (Select
                        charac_id,
                        charc_type
                   FROM
                        riverside1
                   WHERE
                        charac_id in ( x,y));But my suggestion would be consider revising your approach. It does not look that good.
    Thanks,
    karthick.

  • Using variables to insert data in the table

    I want to insert datas in the table. I use constants,
    all the constants are stored properly in the table. But,
    when I use variables I get the error message
    "Too few parameters. expected 6".
    (I declared all the fields of the table as text only.)
    My program is "newt.jsp"
    <%@ page language="java" import="java.sql.*" %>
    <html>
    <head>
    <title>storing customer information in the database</title>
    </head>
    <body>
    <%
    String cno1 = request.getParameter("cno");
    String n1 = request.getParameter("n");
    String add11 = request.getParameter("add1");
    String add21 = request.getParameter("add2");
    String phone1 = request.getParameter("phone");
    String email1 = request.getParameter("email");
    Connection con = null;
    try {
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    con = DriverManager.getConnection("jdbc:odbc:customer"," "," ");
    Statement statement1 = con.createStatement();
    Statement statement2 = con.createStatement();
    statement2.executeUpdate("create table cust1 (cno varchar(20),n varchar(20),add1 varchar(20),add2 varchar(20),phone varchar(20),email varchar(20))");
    statement1.executeUpdate("insert into cust1 (cno,n,add1,add2,phone,email) values(cno1,n1,add11,add21,phone1,email1)");
    catch(SQLException sqle) {
    System.err.println(sqle.getMessage());
    catch(ClassNotFoundException cnfe) {
    System.err.println(cnfe.getMessage());
    catch(Exception e) {
    System.err.println(e.getMessage());
    finally {
         try {
         if(con!=null) {
              con.close();
    catch(SQLException sqle) {
    System.err.println(sqle.getMessage());
    %>
    <br><br>
    Mr./Ms. <%=n1 %> <br>
    Your datas have been stored.<br>
    </body>
    </html>
    Those who know answer please reply.
    My thanks in advance.

    I would expect your insert statement to be this:
    statement1.executeUpdate("insert into cust1 (cno,n,add1,add2,phone,email) values('"+cno1+"','"+n1+"','"+add11+"','"+add21+"','"+phone1+"','"+email1+"')");
    If you just create a string, it's not going to fill in variables into the string by magic.

  • Inserting rows in 2 tables using a single query

    Can we insert values in two tables using a single INSERT query?

    Yes we can insert data in multiple tables using (Multiple insert statement (oracle 9i New Feature))in a single statement.
    ex:
    INSERT ALL
    INTO sal_history VALUES(empid,hiredate,sal)
    INTO mgr_history VALUES(empid,mgr,sysdate)
    SELECT employee_id EMPID, hire_date HIREDATE, salary SAL, manager_id MGR
    FROM employees;
    sncr
    Naresh

  • Using Crystal 2008 to insert records into a table

    Hi,
    We have a unique need to use Crystal to insert records into a table. We have managed to test a report that can write into a temporary table.  This is done by using sql command object  and uses  the following code :
    INSERT INTO TEMP_TABLE  (ORDERID)
    VALUES ({?orderid})   (-- where orderid a parameter).
    This test report asks for an order id and then inserts the record perfectly fine.
    Now moving on to the real report - This report basically prints orders in batches and we want to insert order id into a temporary table to ensure we don't print orders that were already printed. To do this we created a sub report "insert orders" that has the above insert command. The main report passes the orderid to subreport and the idea is that the subreport would insert each time an order is passed. So if main report printed 50 orders ids, the then it would do 50 inserts individually into the temp table. 
    This however is NOT working. The report runs fine but there is no insert.  Our hunch is that  Crystal is not committing after every order id is passed from the main report.  Not sure if we can set the AUTO COMMIT ON  as a default somewhere?
    Wondering if any one has attempted this or has any insights?
    Regards,
    Mohit.
    Environment is - Crystal 2008 and Oracle 11GR2, we are using Oracle drivers (and not odbc)

    Hmmm... I don't use Oracle but the syntax looks good...
    You've already tested it and I assume that you are using the same driver in the production report as you used in the test, so that shouldn't be an issue...
    how are you pulling the data? Is the final SELECT statement that pulls the report data in the same command as the INSERT script, or is the INSERT script in it's own command?
    The reason I ask... If you are trying to pass a multi-valued parameter to a command, it won't work. If you have the insert command as it's own command while the data is being pulled with linked tables or a separate command, it is possible that the report itself will execute as expected w/o passing a value to the insert script.
    If it's all in 1 command (as it should be), a bad parameter would fail in the final SELECT causing an error.
    Also... are rows null or empty string values being added to table when the report executes? This would be an indication that the command is being executed but isn't getting the parameter value.
    Jason

  • How to select data from 3rd row of Excel to insert into Sql server table using ssis

    Hi,
    Iam having Excel files with headers in first two rows , i want two skip that two rows and select data from 3rd row to insert into Sql Server table using ssis.3rd row is having column names.

                                                         CUSTOMER DETAILS
                         REGION
    COL1        COL2        COL3       COL4           COL5          COL6          COL7
           COL8          COL9          COL10            COL11      
    1            XXX            yyyy         zzzz
    2            XXX            yyyy        zzzzz
    3           XXX            yyyy          zzzzz
    4          XXX             yyyy          zzzzz
    First two rows having cells merged and with headings in excel , i want two skip the first two rows and select the data from 3rd row and insert into sql server using ssis
    Set range within Excel command as per below
    See
    http://www.joellipman.com/articles/microsoft/sql-server/ssis/646-ssis-skip-rows-in-excel-source-file.html
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • How to insert record in table using ADF Table

    Hi,
    I am developing and application in ADF .it consist 5 tables.i need to insert into 1 table that contains IDs that are reffered from other tables and on ADF Table fi i dont want to show those IDs. Can somebody provide me solution how to do that?
    like i have a SkillTable - that contains attributes Resource No(number) ,module Id(number), Track id(number), skill_type(number), skill_rating(number), experience(number).
    Track id is reffered from track table
    Module id is reffered from module table
    Resource table is reffered from resource table
    skill_type and skill_rating from lookup table
    and i need to insert into SkillTable using ADF Table. we dont want to show Track id,module id,codes for skill_type nad skill_rating on ADF Table instead we want to show trackname and module name ,code values for skill_type and Skill_rating .
    when we create ADF table for this skill table it shows me ids but what i want is that in each row it should show resource name,modulename,track name,and for skill_type and skill_rating it should show name of skill_types and Skill_rating rather than codes for each skill_type and Skill_rating.
    we tried to insert by creating view ,but didnot work.
    plz provide any solution.
    Thnakls

    Hi,
    Thanks for quick reply.but let me tell u my problem in more detail.
    To insert into skill_table I have created a VO that contains ResourceNo, track_id, module_id,skill_type,skill_rating,experience. And I drag it on ADF creation form and also have created read only LOV for resource_name from resorce_table, LOV for skill_type,skill_rating from Lookup table,
    And mapped those LOV to resource_no,skill_type,skill_rating on insert page.
    For track_id I have converted inputtextBox to SelectinputText to create databound LOV which will popup a window that contain master detail for track_table and module_table which shows all track_names in master and corresponding module_names in detail table, and on that window I have select button when we click that button selected track_id and selected module_id will get populated to insert skill page in track_id selectinputtextbox and module_Id inpiuttextbox.
    Now what I want is that instead of track_id and module_id populated on insert page coz these are of id's actually and we want to show values of these id's from other tables, I need to show selected track_name and module_name over on insert page.
    Not getting any idea how to do that???
    Plz help.

  • Splitter operator doesnt use multi table inserts in OWB...very very urgent

    Hi,
    I am using OWB 9i to carry out tranformations. I want to copy the same seuence numbers to the two target tables.
    Scenario:
    I have a source table source_table, which is connected to a splitter and the splitter is used to dump the records in two target tables namely target1_table and target2_table. I have a sequence which is also an input to the splitter, so that I can have the same sequence number in the the two output groups of he splitter. I then map the sequence number from the two output groups to the two target tables expecting to have the same sequence number in the target tables. But when I see the generated code it creates two procedures and effectively inserts sequencing numbers in the target tables which are not consistent. Please help me so that I have the same sequencing numbers in the target tables which are consistent.
    Well the above example works in row based operating mode but not in set based mode. Please give me a valid explanation.
    OWB pdf says that splitter uses multi table inserts for multiple targets. After seeing the generated code for set based operations I dont agree to this.
    Its very urgent.
    thanks a lot in advance.
    -Sharat

    Hi Mark,
    You got me wrong, let me explain you the problem again.
    RDBMS oracle 9.2.0.4
    OWB 9.2.0.2.8
    I have three tables T1,T2 and T3.
    T1 is the source table and the remaining two tables T2 and T3 are target tables.
    Following are the contents of table T1 -
    SQl>select * from T1;
    DEPTNAME LOCATIO?N
    COMP PUNE
    MECH BOMBAY
    ELEC A.P
    Now I want to populate the two destination tables T2 and T3 with the records in T1.
    For this I am using splitter operator in OWB which is suppose to generate multi table inserts, but unfortunately its not doing so when I generate the SQL. There si no "insert all" command in the sql it generates.
    What I want is, when I populate T2 and T3 I use a sequence generator and I want the same sequences for T2 and T3 eg.
    SQl>select * from T2;
    NEXT_VAL DEPTNAME LOCATIO?N
    1 COMP PUNE
    2 MECH BOMBAY
    3 ELEC A.P
    SQl>select * from T3;
    NEXT_VAL DEPTNAME LOCATIO?N
    1 COMP PUNE
    2 MECH BOMBAY
    3 ELEC A.P
    I am able to achieve this when I set the operating mode to ROW BASED. I am not geting the same result when I set the operating mode to SET BASED.
    Help me....
    -Sharat

  • Mapping the CMP Fields with the Database Table using Websphere???

    Hi,
    How to Map the CMP Fields with the Database Table using Websphere
    thru ejb.jar.xml???
    Thanks,
    JavaCrazyLover

    Hi,
    How to Map the CMP Fields with the Database Table using Websphere
    thru ejb.jar.xml???
    Thanks,
    JavaCrazyLover

  • ODI11g Integration Step:  Insert flow into I$ Table failure: TNS: error

    The project/interfaces have been working successfully for quite sometime. After a server reboot, they are all failing on the Integration step
    Insert flow into I$ Table failure with:
    ODI-1228: Task xxxxx(Integration) fails on the target ORACLE connection xxxxxx.
    Caused By: java.sql.SQLException: ORA-12154: TNS:could not resolve the connect identifier specified
    I have verified the topology and the dblink/Data Server is what resides in the tnsnames.ora file (which also has not changed).
    Any ideas what else to look at, all topology connection tests are successful.
    Thank you.

    All connections were testing successfull. The problem ended up being with one of the database links, after the server reboot there were multiple tnsnames and the environment was not pointing to the correct one. After removing all tnsnames except for the correct, the problem was fixed.
    Thank you for your response.

  • Which trigger to use for insert data into db table in Forms

    Hi,
    My form is current having a database block with table reference. When enter data into form field and click on save button. Automatically the record is inserted into database table.
    I want to make this as manual insert. I changed the data block to a non-database. Where should i write the insert statement in order to insert data into table.
    Is it Key-commit trigger at form level?
    Please advise.
    Thanks,
    Yuvaraaj.

    Hi Yuvaraaj.
    Insert should happen when we click on the save which is inbuilt in the form. In this case where should i write the insert statement.Forms in built save commit's the form data where block is based on database not non database.
    @2nd reply
    Ypu are right. The reason i chnaged the database block to non-database is Currently i have a database block with form field canvas which insert only 1 record in to >table when we click on standard save button. The requirement was to add a field called CHANNEL which should have multiple values displayed. (i created this channel >field in a seperate datablock (non database) and used the same canvas.) When we insert data in all fields (single record) and channel we should be able to selected >multiple channel (say A,B and C) when we click on save then 3 records should be inserted in to the table which looping values for each channel. This was the actual >requirement and this is the reason why iam changing the block to non-database block.You are talking about two blocks.. 1. Master block and 2. Details block name channel
    You are inserting one record in master block then insert 3 record name A,B,C for that master record.
    Now you want master record should insert to each A,B,C record. Means
    'how are you' --master record
    and you want
    'A'- 'how are you'
    'B'- 'how are you'
    'C'- 'how are you'OR
    ?Ok. If you want master record save in database and then want to save non-database(channel) data into database USE Post-Insert trigger at block level and do the rest.
    Hope this helps...
    Hamid
    Mark correct/helpful to help others to get right answer(s).*
    Edited by: HamidHelal on Jan 26, 2013 1:20 AM

Maybe you are looking for

  • JDK version for installing SOA suite on windows vista

    Hi I am trying to install SOA Suite 10.1.3.1 on my Windows Vista 64 bit system. Currently, when running irca.bat, I am getting error "invalid java version 1.6.0_13. Version 1.4 is required." But isnt the script supposed to run for all 1.4+ jdks. Whic

  • How can i get photos from mac to ipad ? please

    hi all, i am in a mess !, some how a lot of photos have been deleted from my iPad, and i dont know how ?. However i do still have these photos on my MacBookPro but i dont remember how i got them onto my iPad originally, over 2 years ago (this is noth

  • IPhone back up corrupted/Cannot back up IPhone 3gs

    Hello chaps. My fiance has been unable to back up her IPhone 3gs recently in preparation of upgrading to IOS 5. In the first instance she received an error message saying " An error occurred while backing up this IPhone (-5000)" , after which she dec

  • Problem In ToolBar

    Hi All, I have a Problem with The Tabs Showing all The Roles Like UserAdmin,System Admin,and its Corresponding all worksets. Tabs are appearing middle of the Screen..If i Click a Role r Workset its Again Comming Down.Plz Help Me out.. [Note : Good Re

  • SPL screening of HCM Empoyees  with new legal regulation

    Hello GTS Experts, I have SPL Screening in place for Logistics Business partners. Our affiliate wants to do HR Data screening with different SPL list. I have configured new Legal Regulation. We are screening employees successfully. However, when a lo