Check the lock mode of a table.
Posted in 2008
Topics: General Discussion
Hi, guys! I'm interested is there any tool/SQL stament that can tell me what is the lock mode of a given table or the lock mode of all the tables in a certain database? Thanks in advance.
I generally use systables
select tabname,locklevel from systables
'R' is row and 'P' is page.
But there maybe a tool that shows it as well.
Later
-Michael A. Mason
On Mon, Dec 8, 2008 at 7:29 AM, PLAMEN KINEV <plamenkinev@gmail.com> wrote:
> Hi, guys!
> I'm interested is there any tool/SQL stament that can tell me what is the
> lock
> mode of a given table or the lock mode of all the tables in a certain
> database?
> Thanks in advance.
>
>
>
>
*******************************************************************************
> Forum Note: Use "Reply" to post a response in the discussion forum.
>
>
--
********************************************
Michael A. Mason
www.masonfamilyonline.com
********************************************
locklevel in systables.
select tabname, locklevel from systables where tabname='your_table';
cheers
j.
Sane ego te vocavi. Forsitan capedictum tuum desit.
-----Original Message-----
From: ids-bounces@iiug.org [mailto:ids-bounces@iiug.org]On Behalf Of
PLAMEN KINEV
Sent: Monday, December 08, 2008 7:29 AM
To: ids@iiug.org
Subject: Check the lock mode of a table. [14242]
Hi, guys!
I'm interested is there any tool/SQL stament that can tell me what is the
lock
mode of a given table or the lock mode of all the tables in a certain
database?
Thanks in advance.
****************************************************************************
***
Forum Note: Use "Reply" to post a response in the discussion forum.
Thanks a lot. Really helped me. Cheers!
Besides checking the systables entries yourself you can use dbschema ... -ss
(or my dbschema replacement utility myschema). Adding the -ss option to
dbschema (not needed in myschema) will print out the LOCK MODE clauses for
each table listed.
Art
On Mon, Dec 8, 2008 at 8:30 AM, PLAMEN KINEV <plamenkinev@gmail.com> wrote:
> Thanks a lot. Really helped me.
>
> Cheers!
>
>
>
>
*******************************************************************************
> Forum Note: Use "Reply" to post a response in the discussion forum.
>
>
--
Art S. Kagel
Oninit (www.oninit.com)
IIUG Board of Directors (art@iiug.org)
Disclaimer: Please keep in mind that my own opinions are my own opinions and
do not reflect on my employer, Oninit, the IIUG, nor any other organization
with which I am associated either explicitly or implicitly. Neither do
those opinions reflect those of other individuals affiliated with any entity
with which I am affiliated nor those of the entities themselves.