top of page

Listing idle Application in your DB Database.

  • Writer: Jha Chandan
    Jha Chandan
  • Dec 8, 2021
  • 1 min read

In this blog we will see and learn how to check idle applications in your databases.


Command to check the idle applications in your database

db2 get snapshot for applications on <db_name> | grep -i idle

For Example:

[db2inst1@ubulnx66~]$ db2 get snapshot for applications on JCTestDB| grep -i idle
Application idle time = 5 minutes 29 seconds
Application idle time = 4 minutes 23 seconds
Application idle time =
Application idle time =
Application idle time =
Application idle time = 02 seconds
Application idle time = 
Application idle time = 2 minutes 21 seconds
Application idle time = 
Application idle time =
Note : If the value of Application idle time is showing nothing, it means that the application is running at moment.

Also if you want to list all applications handle in your system, how much time they are in idle state and their IP address from machine where they are connecting on database, then execute the below command:

db2 get snapshot for applications on <db_name> | grep -E "handle|idle|Inbound"

For Example:

ree

That's all in this post. If you liked this blog and interested in knowing more about IBM Db2. Please Like, Follow, Share & Subscribe to www.ImJhaChandan.com.

Comments


jc_logo.png

Hi, thanks for stopping by!

Welcome to my “Muse & Learn” blog!
Muse a little, learn a lot.✌️

 

Here you’ll find practical SQL queries, troubleshooting tips with fixes, and step-by-step guidance for common database activities. And of course, don’t forget to pause and muse with us along the way. 🙂
 

I share insights on:​​

  • Db2

  • MySQL

  • SQL Server

  • Linux/UNIX/AIX

  • HTML …and more to come!
     

Whether you’re just starting out or looking to sharpen your DBA skills, there’s something here for you.

Let the posts
come to you.

Thanks for submitting!

  • Instagram
  • Facebook
  • X
2020-2025 © TechWithJC

Subscribe to Our Newsletter

Thanks for submitting!

  • Facebook
  • Instagram
  • X

2020-2025 © TechWithJC

bottom of page