Q
Problem solve Get help with specific problems with your technologies, process and projects.

Update registration information on two databases at different physical locations

I would like to update two databases located at two different physical locations to be able to update the Registration...

information.


This question depends too much on the actual database software in use. At a minimum, you should consider the case where one of the updates fails -- this usually requires wrapping the update statements in a transaction block that the database can roll back. This scenario can be implemented in many ways, depending on the software available. Here's some pseudocode --

BEGIN DISTRIBUTED TRANSACTION doubleup
UPDATE Table1SQLServer
   SET Registration = "foobar"
IF ERROR THEN
   ROLLBACK DISTRIBUTED TRANSACTION doubleup
UPDATE Table2Oracle
   SET Registration = "foobar"
IF ERROR THEN
   ROLLBACK DISTRIBUTED TRANSACTION doubleup
COMMIT DISTRIBUTED TRANSACTION doubleup

Check with your Database Administrator for specifics concerning your installation.

For More Information


This was last published in April 2001

Dig Deeper on Oracle database backup and recovery

PRO+

Content

Find more PRO+ content and other member only offers, here.

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.

Start the conversation

Send me notifications when other members comment.

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

Please create a username to comment.

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide.com

SearchDataCenter

SearchContentManagement

SearchFinancialApplications

Close