RE: Alternate option for v$lock is DBA_LOCKS

Martin Gainty <[email protected]>
Newsgroups gmane.comp.db.oracle.toad.free
Message-ID <[email protected]>
off by default...for the simple reason you can harm other peoples locks
ask your DBA to grant SELECT on V$LOCK to username

what you want to do is to concentrate on your own session locks in other words acquire the SID FROM V$SESSION
then use your SID to reference lock objects which belong to that session

once you've identified the locks for the SID then we'll need to concentrate on locks which are blocked BLOCK!=0

http://docs.oracle.com/cd/B14117_01/server.101/b10755/dynviews_1123.htm
Martin Gainty 
______________________________________________ 
Jogi és Bizalmassági kinyilatkoztatás/Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 Ez az
üzenet bizalmas.  Ha nem ön az akinek szánva volt, akkor kérjük, hogy
jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának
készítése nem megengedett.  Ez az üzenet csak ismeret cserét szolgál és
semmiféle jogi alkalmazhatósága sincs.  Mivel az electronikus üzenetek
könnyen megváltoztathatóak, ezért minket semmi felelöség nem terhelhet
ezen üzenet tartalma miatt.

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.


To: [email protected]
From: [email protected]
Date: Thu, 12 Jul 2012 08:07:57 -0400
Subject: RE: [toad] Alternate option for v$lock is DBA_LOCKS
















 



  


    
      
      
      


Nicht 
				
 DBA-Zugriff für Menschen aus Indien
Martin 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.

 
To: [email protected]
From: [email protected]
Date: Thu, 12 Jul 2012 17:16:21 +0530
Subject: [toad] Alternate option for v$lock is DBA_LOCKS
















 



  


    
      
      
      Hi,



My DBA says we must not use v$lock and
find an alternative option for it.



I found that dba_locks
is an alternate option for v$lock in Oracle.



But when i use "select
 *  from dba_locks". It throws an error message
"ORA00942 Table or View does not exists."



Could you please tell me what i am missing.



Also can u tell me what privilege i
need to give such that dba_locks can be selected for the records using
my login to the oracle DB.



Regards,



Nirubama Ananthasairam

Tata Consultancy Services

Mailto: [email protected]

Website: http://www.tcs.com

____________________________________________

Experience certainty.        IT Services

                
       Business Solutions

                
       Outsourcing

____________________________________________=====-----=====-----=====

Notice: The information contained in this e-mail

message and/or attachments to it may contain 

confidential or privileged information. If you are 

not the intended recipient, any dissemination, use, 

review, distribution, printing or copying of the 

information contained in this e-mail message 

and/or attachments to it are strictly prohibited. If 

you have received this communication in error, 

please notify us by reply e-mail or telephone and 

immediately and permanently delete the message 

and any attachments. Thank you
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.