Bind Vs Plan Vs Package in DB2

In DB2, some concepts confuse to many people. I want to explain those:

BIND

https://srinimf.com/2021/07/31/db2-understand-the-real-use-of-package/

BIND is a command you can use to create package using DBRMs.

https://srinimf.com/2014/03/14/db2-optimization-hints/

Bind package

Binding a single DBRM is called bind package. However after bind package we need to bind with a PLAN.

PLAN

PLAN is a command to create a PLAN on Bind package. PLAN is a executable code. Without PLAN you cannot execute DB2 programs in mainframe.

https://srinimf.com/2014/07/21/db2-5-frequently-asked-questions/

Plan package

Binding single or multiple DBRMs into a Plan. Practically in real-time we do Plan bind.  Bind package has some benefits. We can give separate Bind options for each Bind package.

Rebind

This is we do for existing components to update optimum access paths.

Free

We use free command  to Free plan or Package.

We all know that Bind does DB2 syntax check and provide optimum access paths.

  • woman in black shirt sitting in front of a computer

    30 SQL Practice Queries with Solutions — Run Them Live

    October 1, 2026 by

    Practice 30 SQL queries with solutions, from SELECT and JOINs to subqueries and window functions. Run SQL queries live in an interactive SQL Playground.

  • woman in black and red top typing in front of monitor

    Supercharge Your Database Skills: Try Our New Interactive SQL Plugin!

    September 30, 2026 by

    Struggling with database queries? Explore our new interactive SQL plugin to write, test, and master SQL directly in your browser. Try the live demo now!

View all posts

Discover more from Srinimf

Subscribe now to keep reading and get access to the full archive.

Continue reading