Q

Unable to insert records when using database link

When using a database link I am unable to insert records. The full query does not work. It does not return any

error either.

INSERT INTO WFM_12@ARCHIVE_LINK.US.ORACLE.COM(WORKNAME, WORKFLOWID, STAGEID) SELECT WORKNAME, WORKFLOWID, STAGEID FROM CLIENT_12 WHERE WORKNAME IN (SELECT WORKNAME FROM WFMWORKLIST WHERE STAGEID = 282 AND LASTUPDATED <= TO_DATE ('10/21/2003 11:00:00 PM','MM/DD/YYYY HH:MI:SS AM'))

Where as a simple insert works.
If you're not getting any error message at all, it could be a timeout problem where your request is timing out on the remote database before it gets a chance to execute. This could be caused by the transaction being unable to get a resource due to locks or something similar. You may want to check the database alert log file to see if you're getting any messages there that would help you to pinpoint any possible errors.

This was first published in November 2003

Dig deeper on Oracle database design and architecture

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide

SearchDataCenter

SearchContentManagement

SearchFinancialApplications

Close