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

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

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: