暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

How do I retrieve information about partitioned tables from the data dictionary ?

2011-01-01
1338

The Oracle (tm) Users' Co-Operative FAQ

How do I retrieve information about partitioned tables from the data dictionary ?


Author's name: Jonathan Lewis

Author's Email: Jonathan@jlcomp.demon.co.uk

Date written: 5th Sept 2002

Oracle version(s): 8.1.5 - 9.2

How do I retrieve information about partitioned tables from the data dictionary ?


Information about partitioned tables are typically stored in the data dictionary in a number of views with the word 'PART' in them; so a query like the following will list the relevant views (if you select any table privileges):

	select	object_name
	from	dba_objects
	where	object_name like '%PART%'
	order by 
		object_name
	;

You will get the usual feature of lists of views with the three family prefixes, (DBA_, ALL_, USER_), which should include the following:

	DBA_(SUB_)PART_TABLES		Identifies tables that have been (sub) partitioned
	DBA_TAB_(SUB_)PARTITIONS	Lists (sub)partitions of tables
	DBA_(SUB_)PART_INDEXES		Identifies indexes that have been (sub) partitioned
	DBA_IND_(SUB_)PARTITONS		Lists (sub) partitions of indexes
	DBA_(SUB_)PART_KEY_COLUMNS	List (sub) partitioning columns of objects
	DBA_(SUB_)PART_COL_STATISTICS	Holds (sub)partition level statistics on columns
	DBA_(SUB_)PART_HISTOGRAMS	Holds (sub)partition level histograms on columns
	DBA_LOB_(SUB_)PARTITIONS	Lists (sub)partitions of lOBs
	DBA_(SUB_)PART_LOBS		Identifies LOBs in (sub)partitioned tables

Further reading: N/A



最后修改时间:2020-04-16 15:11:57
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论