Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Question about locks
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