dba_tables,all_tables,user_tables,tab,tabs

1.tabs=user_tables  tabs是user_tables的同義詞。
2.tab就是一個視圖,定義信息爲:
    create or replace view sys.tab
    (tname, tabtype, clusterid)
    as
    select o.name,
          decode(o.type#, 2, 'TABLE', 3, 'CLUSTER',
                 4, 'VIEW', 5, 'SYNONYM'), t.tab#
      from  sys.tab$ t, sys."_CURRENT_EDITION_OBJ" o
      where o.owner# = userenv('SCHEMAID')
      and o.type# >=2
      and o.type# <=5
      and o.linkname is null
      and o.obj# = t.obj# (+);
3.DBA_TABLES >= ALL_TABLES >= USER_TABLES
  DBA_TABLES意爲DBA擁有的或可以訪問的所有的關係表。
  ALL_TABLES意爲某一用戶擁有的或可以訪問的所有的關係表。
    USER_TABLES意爲某一用戶所擁有的所有的關係表。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章