zoukankan      html  css  js  c++  java
  • 创建索引锁的表

    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
    
    


    
                                        
    
  • 相关阅读:
    Typescript 学习笔记一:介绍、安装、编译
    css 如何“画”一个抽奖转盘
    isBalanced函数实现
    链表(单向链表,双向链表)
    IDEA 插件的安装和使用
    leetCode算法------>>>>数组
    二维数组
    IDEA (2019.3) 字体编码和基本设置
    线性结构和非线性结构
    Java反射
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13352307.html
Copyright © 2011-2022 走看看