Ask the Expert

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.

    Requires Free Membership to View

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

Join the conversationComment

Share
Comments

    Results

    Contribute to the conversation

    All fields are required. Comments will appear at the bottom of the article.