Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 196673
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T16:47:15+00:00 2026-05-11T16:47:15+00:00

We are designing a fairly large brownfield application, and run into a bit of

  • 0

We are designing a fairly large brownfield application, and run into a bit of a issue.

We have a fairly large amount of information in a DB2 database from a legacy application that is still loading data. We also have information in an Oracle database that we control.

We have to do a ‘JOIN’ type of operation on the tables. Right now, I was thinking of pulling the information out of the DB2 table into a List<> and then iterating those into a SQL statement on the Oracle database such as:

select * from accounts where accountnum in (...)

Is there any easier way to interact between the databases, or at least, what is the best practice for this sort of action?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T16:47:15+00:00Added an answer on May 11, 2026 at 4:47 pm

    I’ve done this two ways.

    With two Sybase databases on different boxes, I set up store procedures, and called then like functions, to send data back and forth. This additionally allowed the sprocs to audit/log, to convince the customer no data was being lost in the process.

    On an Oracle to Sybase one way, I used a view to marshall the data and each vendors’ C libraries called from a C++ program that gave the C APIs a common interface.

    On a MySQL and DB2 setup, where like your situation, the Db2 was “legacy but live”, I employed a setup similar to what you’re describing: pulling the data out into a (Java) client program.

    If the join is always one-to-one, and each box’s resultset has the same key, you can pull them both with the same ordering and trivially connect them in the client. Even if they’re one-to-many, stitching them together is just a one-way iteration of both of your lists.

    If it gets to be many-to-many, then I might fall back to processing one item at a time (though you could use HashSet lookup).

    Basically, though, your choices are sprocs (for which you’d need to and a client layer), or just doing it in the client.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 134k
  • Answers 134k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You have basically 3 issues here. In reverse order Are… May 12, 2026 at 6:49 am
  • Editorial Team
    Editorial Team added an answer Sure you can! The following code will do just that,… May 12, 2026 at 6:49 am
  • Editorial Team
    Editorial Team added an answer Having just a SQLDataSource is perfectly valid, if it's just… May 12, 2026 at 6:49 am

Related Questions

I'm in the preliminary stages of designing a new web application, and have yet
We are currently designing a business application that has two primary requirements for it's
We're developing a .NET app that must make up to tens of thousands of
So we learned a bit about the Turing Test in my AI class. This

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.