If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
Using the sequence of db2 from db1 for inserting a record
From db1 ...I am trying to insert into db2...All the columns inserting correctly ...except the field with sequence value...
I have a sequence created in db2 named 'seq_request'.
I am not able to use the sequence of db2('seq_request')...Pls see the below insert statement
Is there any specfic way to use the sequence...do i have to give the db link name also..
"INSERT INTO TESTUSER.AUDIT123@MAINLINK(AUDITFIELD2,AUDITFIELD1 ,SEQ_REQUEST) VALUES ("test1","test2",SEQ_REQUEST.NEXTVAL)";
inserting value in db2 table using oracle sequence by creating dblink
Hi sethu,
Can you plz explain which databases you are using? is db1 also DB2 database?
i have created db link between oracle and DB2. i am able to fetch/insert data into DB2 from oracle. however i want to use oracle sequence to insert data in db2 table in one of the column. but it is giving error "ORA-02070: database TEMPDB does not support sequence references in this context".