• 创建索引锁的表


    SQL> desc TEST_IDX
     Name					   Null?    Type
     ----------------------------------------- -------- ----------------------------
     OWNER						    VARCHAR2(30)
     OBJECT_NAME					    VARCHAR2(128)
     SUBOBJECT_NAME 				    VARCHAR2(30)
     OBJECT_ID					    NUMBER
     DATA_OBJECT_ID 				    NUMBER
     OBJECT_TYPE					    VARCHAR2(19)
     CREATED					    DATE
     LAST_DDL_TIME					    DATE
     TIMESTAMP					    VARCHAR2(19)
     STATUS 					    VARCHAR2(7)
     TEMPORARY					    VARCHAR2(1)
     GENERATED					    VARCHAR2(1)
     SECONDARY					    VARCHAR2(1)
     NAMESPACE					    NUMBER
     EDITION_NAME					    VARCHAR2(30)
    
    SQL> select * from v$mystat where rownum<2;
    
           SID STATISTIC#	   VALUE
    ---------- ---------- ----------
    	52	    0	       0
    
    SQL> create index test_idx_idx2 on test_idx(owner,created);
    
    SQL> select  t3.program,t2.sid,t2.ID1,t2.ctime  
       from   
            (select sid, type, id1, id2, lmode, request, ctime  
               from v$lock  
              where sid in (select sid  
                              from v$lock  
                             where TYPE = 'TX'  
                               and LMODE = 6)  
                               and type='TM') t2,  
            v$session t3  
      where t2.sid = t3.sid;  2    3    4    5    6    7    8    9   10   11  
    
    PROGRAM 						SID	   ID1
    ------------------------------------------------ ---------- ----------
         CTIME
    ----------
    sqlplus@june (TNS V1-V3)				 52	 74914
    	20
    
    sqlplus@june (TNS V1-V3)				 52	    18
    	21
    
    
    SQL> select object_name from dba_objects where object_id in (74914,18);
    
    OBJECT_NAME
    --------------------------------------------------------------------------------
    OBJ$
    TEST_IDX
    
    可以看到创建索引锁的对象为OBJ$和TEST_IDX
    
    


    
    
    
  • 相关阅读:
    html标题-段落-字符实体-换行
    html概述和html基本结构:
    可以在一个.java文件中写两个类吗?
    栈内存和堆内存的区别
    Java的访问权限
    (转)第三方支付的盈利模式
    (转)第三方支付参与者
    直联和间联的区别——直连和间连的区别
    HashSet和LinkedHashSet特点.
    Map和TreeMap的特点
  • 原文地址:https://www.cnblogs.com/zhaoyangjian724/p/3797994.html
Copyright © 2020-2023  润新知