How to know the status of database?

RDBMS from IBM and IBM's Hierarchical DBMS and Transaction Manager (IMS DC).
Post Reply
Pragya
Registered Member
Posts: 65
Joined: Wed Jun 19, 2013 9:49 am

How to know the status of database?

Post by Pragya »

Hi,

Could you please help me with the command used to know the status of the database, whether its available in RW mode or not? I remember using Display database command, but not sure if this would work for getting these details.

Thanks in advance.
nicc
Global Moderator
Global Moderator
Posts: 691
Joined: Wed Apr 23, 2014 8:45 pm

Re: How to know the status of database?

Post by nicc »

So you remember a command but not the detail of its parameters and output. Why have you not gone to the manuals to look up the command and refresh your memory?
Regards
Nic
zprogrammer
Global Moderator
Global Moderator
Posts: 588
Joined: Wed Nov 20, 2013 11:53 am
Location: Mars

Re: How to know the status of database?

Post by zprogrammer »

Try the command

Code: Select all

-DIS DB(<DATABASE NAME>) SPACE(<TABLE SPACENAME>) 
This will tell the status..

Also Read through the manual as Nicc suggested
zprogrammer
Pragya
Registered Member
Posts: 65
Joined: Wed Jun 19, 2013 9:49 am

Re: How to know the status of database?

Post by Pragya »

Thanks Pandora. :)

nicc I checked the manuals and searched on "status" keyword but it returned so many results that I could not understand which result to look and which not...
zprogrammer
Global Moderator
Global Moderator
Posts: 588
Joined: Wed Nov 20, 2013 11:53 am
Location: Mars

Re: How to know the status of database?

Post by zprogrammer »

Pragrya,

Did you try the command I gave you?

Also You need to read the COMMAND manual of DB2
zprogrammer
enrico-sorichetti
Global Moderator
Global Moderator
Posts: 826
Joined: Wed Sep 11, 2013 3:57 pm

Re: How to know the status of database?

Post by enrico-sorichetti »

Why have you not gone to the manuals to look up the command and refresh your memory?
laziness I suppose :x

what happened when You googled with - for example - db2 display database status
to arrive at
https://www-01.ibm.com/support/knowledg ... abase.dita

the command explanation seems pretty clear to me
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort 8-)
Pragya
Registered Member
Posts: 65
Joined: Wed Jun 19, 2013 9:49 am

Re: How to know the status of database?

Post by Pragya »

Pandora-Box wrote:Pragrya,

Did you try the command I gave you?

Also You need to read the COMMAND manual of DB2
Pandora-Box I used the command usggested by you and it worked for me. That's why I said thank in my post.

Initially I was not able to know what should I look for and I could not identify the command this is what I'm telling to nicc.
Pragya
Registered Member
Posts: 65
Joined: Wed Jun 19, 2013 9:49 am

Re: How to know the status of database?

Post by Pragya »

enrico-sorichetti wrote:
Why have you not gone to the manuals to look up the command and refresh your memory?
laziness I suppose :x

what happened when You googled with - for example - db2 display database status
to arrive at
https://www-01.ibm.com/support/knowledg ... abase.dita

the command explanation seems pretty clear to me
enrico yes command is clear to me now, but I did not know what is command so was confused.

Thanks all for your help.
zprogrammer
Global Moderator
Global Moderator
Posts: 588
Joined: Wed Nov 20, 2013 11:53 am
Location: Mars

Re: How to know the status of database?

Post by zprogrammer »

Thanks Pragya . This will help others in future who would have similar quere
zprogrammer
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “IBM DB2 and IMS DB/DC”