Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Question about locks

Question about locks

From: <amerar_at_ci.chi.il.us>
Date: Thu, 28 Oct 1999 14:57:08 GMT
Message-ID: <7v9o81$u4l$1@nnrp1.deja.com>

Hello,

I have 2 questions......

When I issue this SQL command:

select sid, osuser, command, status, sql_address from v$session where status = 'ACTIVE' and sql_address > '00';

It shows me some output like this:

                      Lock report for the DR_CASHT database

           -----O/S------
       SID Username   Pid    COMMAND STATUS   SQL_ADDR
---------- -------------- ---------- -------- --------
         6 oracle                  0 ACTIVE   81F56568
         7 oracle                  0 ACTIVE   81F5A24C
         8                         0 ACTIVE   81FA64EC
        24 dr00340                 0 ACTIVE   82988470
        40 dr00223                 0 ACTIVE   81E123DC
        88 oracle                  0 ACTIVE   809CCE8C

I do not understand why the command is 0 and they still have an SQL Address. Then when I query V$SQL using the SQL_ADDR, I get nothing returned. Why is that?

Second, the view dba_locks, dba_ddl_locks and so on do not exist, what script will create these views?

Thanks,

Arthur
amerar_at_ci.chi.il.us

Please cc a copy to e-mail.....

Sent via Deja.com http://www.deja.com/
Before you buy. Received on Thu Oct 28 1999 - 09:57:08 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US