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 8497005
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T00:00:21+00:00 2026-06-11T00:00:21+00:00

I have generated an access plan for a query using db2exfmt utility but I’m

  • 0

I have generated an access plan for a query using db2exfmt utility but I’m unable to understand the same.

Please can anyone explain me the access plan (like what the numbers in brackets means, /—–+——\ etc)

    Access Plan:
    -----------
    Total Cost:    15.1619
    Query Degree:  1

          Rows 
         RETURN
         (   1)
          Cost 
           I/O 
            |
            3 
         HSJOIN
         (   2)
         15.1619 
            2 
     /-----+------\
    4                3 
 TBSCAN           TBSCAN
 (   3)           (   4)
 7.58097          7.58036 
    1                1 
    |                |
    4                3 
 TABLE: DB2INST1  TABLE: DB2INST1
  TABA             TABB
   Q2               Q1
  • 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-06-11T00:00:23+00:00Added an answer on June 11, 2026 at 12:00 am

    Read it from the bottom up. Each node is an operation that is done to satisfy the query. TBSCAN means that the entire table is scanned (which will often happen when your tables are small). HSJOIN is a ‘Hash Join’ — joining rows from two tables in memory with a hashmap.

    Let’s look at one node

              4
           TBSCAN
           (   3)
           7.58097
              1
              |
              4
       TABLE: DB2INST1.TABA
    

    The top ‘4’ is the number of rows returned
    The next row ‘TBSCAN’ is the algorithm used (TBSCAN means table scan. HSJOIN means join by hashmap). In DB2, this is called the ‘Operator’
    The ‘(3)’ is the sequence number. You can find this query is decomposed into 4 steps
    The 7.58097 is the cumulative cost to perform this query up to this step, in something called ‘timerons’. It’s adjusted based on how your database is configured, and the optimizer will choose an access plan that minimizes this cost
    The bottom 4 is the cost of the operation in terms of I/O.

    There is a lot more information from db2exfmt that you have omitted. But the graph tells you how DB2 will execute the query.

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

Sidebar

Related Questions

I have generated an excel file from xml. But i can not open it
I have been to the Authentication page and successfully generated an access token, but
I have generated a DAL layer with Subsonic2.2 for a .NET4.0 application, using c#
I have generated a pdf file with password protection by using the following code:
I have generated a C# SharePoint Sequential Workflow project using the very handy STSDEV
I have generated using openssl mycert.pem which contents the certificate. And I converted the
I have build an app around the sudzc.com generated code to access my soap
I have generated my POCO entities using POCO Generator, I have more than 150+
We are generating our jpa access layers with MyEclipse. Afterwards we have the generated
I'm trying to consume some .NET web services using JAX-WS. I have generated the

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.