Skip to Main Content
IBM System Storage Ideas Portal


This portal is to open public enhancement requests against IBM System Storage products. 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 Storage Discover
Created by Guest
Created on Apr 20, 2023

connect to DB2 directly due to more complex SQL queries

We have the requirement to connect to DB2 directly due to more complex SQL queries (readonly, so only select) and have some questions:

- If we run a pod with our Python code in the Spectrum Discover namespace in OpenShift can we add the secret "db2whrest" to our pod in order to connect to DB2? This secret seems to contain the credentials for DB2

- If the answer is yes, can we connect to one of the existing db2u pods? The TCP port seems to be 50001:

Attachment1

- Our code would look like this (from https://www.ibm.com/docs/en/db2/11.5?topic=db-connecting-database-server, so DATABASE, HOSTNAME, PORT, ...will reflect our DB2 pod):

import ibm_db ibm_db.connect("DATABASE=name;HOSTNAME=host;PORT=60000;PROTOCOL=TCPIP;UID=username;                PWD=password;", "", "")

Attachment2
 

Idea priority Urgent
  • Admin
    THOMAS O'BRIEN
    Reply
    |
    Jan 19, 2024

    Closing based on recent Discussion Paul had with Airbus team. This RFE no longer needed

  • Guest
    Reply
    |
    Jun 29, 2023

    Hello Tom,

    Here's another query that may be complex in SQL:

    "Show all tags that have been applied to one or more given files"

    Due to the fact that every tag in the database has its own table it's easy to get a tag and its value when we provide an fkey and a tag. But when we want to know what tags have been applied for a given file we need to check every <T_> table if it contains the given fkey/fkeys. Is there a simpler and more efficient way to do this? Maybe as a stored procedure or as a summary table that contains all tags for every fkey?


    Thanks

    Fred2

  • Guest
    Reply
    |
    Jun 14, 2023

    Hello Thomas,

    We're working on a REST API that will communicate with DB2 in the backend.


    Some possible queries:


    Select only entries in table metaocean that are not in table t_uuid joining on column fkey in both tables:

    SELECT mo.fkey FROM metaocean mo LEFT JOIN t_uuid id ON mo.fkey = id.fkey where id.fkey is NULL


    Select all entries whose column owner contains numeric values only:

    SELECT uid,owner,filename FROM metaocean WHERE datasource IN('de0_svm05_v19:/vol/de0_svm05_v19/A330_Transpose') AND REGEXP_LIKE(owner , '^\d+$')


    Python code: Get number of files per given datasources grouped by datasource:

    my_datasource = "'datasource1','datasource2','datasource3'"

    sql = f"select count,datasource from metaocean where datasource in ({my_datasource}) group by datasource order by count"


    Our database will easily grow up to 30 to 40 billion entries in the next couple of weeks. When using the REST endpoint db2whrest we often get HTTP timeouts due to long running queries.


    Thanks

    Fred2

  • Admin
    THOMAS O'BRIEN
    Reply
    |
    Apr 25, 2023

    Can you please provide a few exmples of complex SQL queries you are trying to run