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

Improved performance with database links

A PL/SQL script that inserts records across multiple servers using database links.

If your database is distributed across a few servers, and you need to access the database across these servers, one way to improve performance is through the use of database links.

Here is a PL/SQL program that inserts records into a number of tables on one server from multiple different servers. Without using database links, this took hours to run the job -- now it only takes less than 5 minutes!

insert into table_a 
select * from; 

insert into table_b 
select * from; 

insert into table_a 
select * from; 

insert into table_b 
select * from; 

For More Information

  • What do you think about this tip? E-mail the Edtior at with your feedback.
  • The Best Oracle Web Links: tips, tutorials, scripts, and more.
  • Have an Oracle tip to offer your fellow DBA's? The best tips submitted will receive a cool prize--submit your tip today!
  • Ask your technical Oracle questions--or help out your peers by answering them--in our live discussion forums.
  • Check out our Ask the Experts feature: Our SQL, database design, Oracle, SQL Server, DB2, metadata, and data warehousing gurus are waiting to answer your toughest questions.

Dig Deeper on Oracle database performance problems and tuning

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.