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

  • SEARCH
  • Home
  • 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 928923
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T20:05:15+00:00 2026-05-15T20:05:15+00:00

I have an application that needs to query two different DB2 databases for the

  • 0

I have an application that needs to query two different DB2 databases for the exact same data. Is there any way to create a view that takes my query, executes it against both databases, combines the results, and send them back to my application?

  • 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-15T20:05:16+00:00Added an answer on May 15, 2026 at 8:05 pm

    Yes, sort of. We had to do something similar a few years back because one of our customers split their data across two DB2 instances but still wanted single queries that would get at them both (the reporting tool we were using could only connect to one instance).

    From memory, it’s a matter of:

    • turning on federation support (needed for instance-to-instance communication).
    • creating a wrapper with create wrapper so one DB2 instance knows how to connect to another.
    • registering the other server with create server.
    • using create user mapping to set up mapping of credentials between the two instances.
    • creating an alias in the local instance for the remote table with create nickname.

    From there, you would just create your view as something like:

    select * from localtable union all select * from nickname;
    

    and you should have rows from both tables.

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

Sidebar

Ask A Question

Stats

  • Questions 511k
  • Answers 512k
  • 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 One thing that immediately comes to mind is whether the… May 16, 2026 at 5:28 pm
  • Editorial Team
    Editorial Team added an answer Try something like this for a start. BackgroundWorker worker =… May 16, 2026 at 5:27 pm
  • Editorial Team
    Editorial Team added an answer Yes, you should be able to do git reflog --no-abbrev… May 16, 2026 at 5:27 pm

Trending Tags

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

Top Members

Related Questions

Here is the issue I am having: I have a large query that needs
Ok I creating an application that needs to query records from my remote database.
I have an application that stores database IDs in session while editing several pages
I am working on an iPhone application that has a UISearchBar which populates a
So here's my conundrum. I am programming a tool that needs to work on
Is there a reliable way to determine where a user is coming from in
I am using SQLite in an application that I am developing. I am trying
I am developing a Java web application that bases it behavior through large XML
I'm building an analytics system for a mobile application and have had some difficulty
I have a database which manages login information for an application, and find myself

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.