Posted on 2010-07-17 10:52
斷點(diǎn) 閱讀(209)
評論(0) 編輯 收藏 所屬分類:
Oracle DBA
Oracle的數(shù)據(jù)庫對象分為五種:表,視圖,序列,索引和同義詞。
select * from user_tables -- 當(dāng)前用戶下有多少張表
select * from user_views -- 當(dāng)前用戶下有多少張視圖
select * from user_sequences; --查詢序列
select * from user_indexes; -- 查詢索引
select * from user_constraints -- 當(dāng)前用戶下有多少約束
select * from dictionary --數(shù)據(jù)字典表的表