Db2 "get snapshot for locks on <dba_name>"
And you can see that database backup utility is holding locks on the
tablespace that you are working on. Lock mode is X so you can't create
index at this time. Make sure catalog space backup and tablespace backup
is over before you try to puch that command in the database.
Db2 "list applications show detail"; <--- loook for your application
connect info and take agentid
Db2 "get snapshot for locks for application agentid <agentid_name>" ;
<------ take agentid from above command
You will see that process having locks for the resource you need.
---------------------------------------------------
Regards,
Vijay
-----Original Message-----
From: manasa
[mailto:db2udbdba-ezmlmshield-x83038762.[Email address protected]
Sent: Wednesday, February 20, 2008 1:08 AM
To: LazyDBA Discussion
Subject: index creating problem
Hello DBAs,
I am trying to create a index in user table when database online
backup is goin on.
The index creation process showing lock-wait status though only
following two application is runing at this time.
LOYADM db2bp 4357
*LOCAL.loyadm.040959134741 0001 1 0 86042
Lock-wait Not Collected LOYUAT
/home/loyadm/loyadm/NODE0000/SQL00001/
LOYADM db2bp 3813
*LOCAL.loyadm.010BB8233501 0001 1 0
1048648 Performing a Backup Not Collected LOYUAT
/home/loyadm/loyadm/NODE0000/SQL00001/
We can create table and index at the time of online backup. But
I am not getting why this is showing lock-wait from last 6 hours, though
no other users are accessing the database.
Thanks.
Manasa
Disclaimer: This communication is for the exclusive use of the
intended recipient(s) and shall not attach any liability on the
originator or ITC Infotech India Ltd./its Holding company/ its
Subsidiaries/ its Group Companies. If you are the addressee, the
contents of this e-mail are intended for your use only and it shall not
be forwarded to any third party, without first obtaining written
authorization from the originator or ITC Infotech India Ltd./ its
Holding company/its Subsidiaries/ its Group Companies. It may contain
information which is confidential and legally privileged and the same
shall not be used or dealt with by any third party in any manner
whatsoever without the specific consent of ITC Infotech India Ltd./
its Holding company/ its Subsidiaries/ its Group Companies.
---------------------------------------------------------------------
TO REPLY TO EVERBODY , PLEASE CLICK REPLY-ALL, NOT JUST REPLY To post a
dba job: http://jobs.lazydba.com To Subscribe : http://www.LazyDBA.com
To unsubscribe: http://www.lazydba.com/unsubscribe.html
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
This message is intended only for the personal and confidential use of the designated recipient(s) named above. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. Email transmission cannot be guaranteed to be secure or error-free. Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. All information is subject to change without notice.
--------
IRS Circular 230 Disclosure:
Please be advised that any discussion of U.S. tax matters contained within this communication (including any attachments) is not intended or written to be used and cannot be used for the purpose of (i) avoiding U.S. tax related penalties or (ii) promoting, marketing or recommending to another party any transaction or matter addressed herein.
DB2 & UDB email list listserv db2-l LazyDBA home page