Skip to Main Content
IBM Power Ideas Portal


This portal is to open public enhancement requests against IBM Power Systems products, including IBM i. To view all of your ideas submitted to IBM, create and manage groups of Ideas, or create an idea explicitly set to be either visible by all (public) or visible only to you and IBM (private), use the IBM Unified Ideas Portal (https://ideas.ibm.com).


Shape the future of IBM!

We invite you to shape the future of IBM, including product roadmaps, by submitting ideas that matter to you the most. Here's how it works:

Search existing ideas

Start by searching and reviewing ideas and requests to enhance a product or service. Take a look at ideas others have posted, and add a comment, vote, or subscribe to updates on them if they matter to you. If you can't find what you are looking for,

Post your ideas
  1. Post an idea.

  2. Get feedback from the IBM team and other customers to refine your idea.

  3. Follow the idea through the IBM Ideas process.


Specific links you will want to bookmark for future use

Welcome to the IBM Ideas Portal (https://www.ibm.com/ideas) - Use this site to find out additional information and details about the IBM Ideas process and statuses.

IBM Unified Ideas Portal (https://ideas.ibm.com) - Use this site to view all of your ideas, create new ideas for any IBM product, or search for ideas across all of IBM.

ideasibm@us.ibm.com - Use this email to suggest enhancements to the Ideas process or request help from IBM for submitting your Ideas.

Status Not under consideration
Workspace IBM i
Categories Db2 for i
Created by Guest
Created on Sep 12, 2016

Allow cross system exception joins

Please allow cross system exception joins.


Use Case:

-- Not a valid statement. Apparently you cannot do a cross system exception join.
-- SQL State: 56023 Vendor Code: -512 Message: [SQL0512] Statement references objects in multiple databases. Cause . . . . . :   The statement refers to objects that reside on multiple databases.  The objects could be either explicitly qualified object names or alias names that are defined to reference a different database. This SQL statement can only refer to a single database. A CREATE TABLE AS that selects from a remote database cannot reference a table that has a FIELDPROC defined.  It cannot define a materialized query table. If the remote database is not on an IBM i server, the INCLUDING clauses are not allowed. Recovery  . . . :   Ensure all objects used in the statement reside at the same database.  Try the request again.
select home.PTF_PRODUCT_ID, home.PTF_IDENTIFIER,
away.PTF_PRODUCT_ID, away.PTF_IDENTIFIER
from qsys2.PTF_INFO home exception join RemoteLpar.QSYS2.PTF_INFO away
on (home.PTF_PRODUCT_ID=away.PTF_PRODUCT_ID) and (home.PTF_IDENTIFIER=away.PTF_IDENTIFIER)
ORDER BY home.PTF_PRODUCT_ID, away.PTF_PRODUCT_ID, home.PTF_IDENTIFIER, away.PTF_IDENTIFIER;

-- Repeat the following sequence for each remote system.
drop table MySchema.ptf_info;
-- Replace the system name below
Create table MySchema.PTF_INFO as (
select * from RemoteLpar.QSYS2.PTF_INFO)
with data;

Select a.PTF_IDENTIFIER, a.PTF_PRODUCT_ID, b.PTF_IDENTIFIER, b.PTF_PRODUCT_ID
From QSYS2.PTF_INFO a exception join MySchema.PTF_INFO b
on a.PTF_IDENTIFIER=b.PTF_IDENTIFIER
Order by a.PTF_PRODUCT_ID, b.PTF_PRODUCT_ID, a.PTF_IDENTIFIER, b.PTF_IDENTIFIER;


Idea priority High
  • Guest
    Reply
    |
    Dec 6, 2016

    We currently do not plan to add this capability to DB2 for i. Instead, we suggest that you consider that following alternatives.:
    1) Use IBM's Federated Server support
    http://www.ibm.com/developerworks/data/library/techarticle/0203haas/0203haas.html
    2) Avoid the SQL0512 limitation through the use of repeated 3-part database access where you pull the data from one RDB at a time.
    3) Purchase and use a 3rd party product. For example:
    https://www-304.ibm.com/partnerworld/gsd/showimage.do?id=33316
    Please note that I have not personally used DB-Gate, but it does look like an option for your situation.

  • Guest
    Reply
    |
    Sep 13, 2016

    Creating a new RFE based on Community RFE #94447 in product IBM i.