Você está na página 1de 2

08/05/13

Oracle PL/SQL: INDEXES: View table indexes - Examples of viewing the indexes on an Oracle table. Replace the example table names with the actual

Microsoft OLAP Cube Tools


www.PyramidAnalytics.com Analytics & Dashboards in a thin client built for Microsoft BI
Quick Search: GO

CODE
Oracle PL/SQL C ode Library

JOBS
Find Or Post Oracle Jobs
0

F ORUM
Oracle Discussion & C hat Jump to: Select a Location

Oracle PL/SQL: INDEXES: View table indexes Category: >> Oracle PL/SQL >> INDEXES: View table indexes
<< last next >>

Select Text

Snippet Name: INDEXES: View table indexes


Description: Examples of viewing the indexes on an Oracle table. Replace the example table names with the actual table name. Also see: INDEXES: Analyze Index INDEXES: Block Dump INDEXES: Rebuild Reverse INDEXES: INDEXES: ENABLE (function-based index) INDEXES: DISABLE (function-based index) INDEXES: Alter Index Parallel INDEXES: Alter Index Deallocate Unused INDEXES: Alter Index Allocate Extent INDEXES: Virtual / NoSegment INDEXES: Reverse Key Indexes INDEXES: Bitmap Join Indexes INDEXES: Bitmap Indexes INDEXES: Unique indexes INDEXES: Parallel Index INDEXES: Compute Statistics INDEXES: SORT and NOSORT INDEXES: Function-Based Index INDEXES: DROP index INDEXES: Alter index INDEXES: Single Column Non-unique INDEXES: Index Usage Notes Compressed Indexes Create INDEX

S E L E C Ti n d e x _ n a m e ,c o l u m n _ n a m e ,c o l u m n _ p o s i t i o n F R O Mu s e r _ i n d _ c o l u m n s W H E R Et a b l e _ n a m e = ' M Y T A B L E N A M E ' O R D E RB Yi n d e x _ n a m e ,c o l u m n _ p o s i t i o n

-l i s ta l lt h ei n d e x e sf o rat a b l e : S E L E C Ti n d e x _ n a m eF R O Mu s e r _ i n d e x e s W H E R Et a b l e _ n a m e=' T A B L E _ N A M E ' ;

-I ft h et a b l ei sas y s t e mt a b l et h e ni tw i l ln o tb el i s t e d -i nt h eu s e r _ i n d e x e sv i e w ,s oi n s t e a du s ea l l _ i n d e x e s : S E L E C Ti n d e x _ n a m eF R O Ma l l _ i n d e x e s W H E R Et a b l e _ n a m e=' T A B L E _ N A M E ' ;

-a l t e r n a t em e t h o d ,s h o w sc o l u m np o s i t i o n s : S E Tl i n e s i z e1 1 0 S E Tv e r i f yo f f c o li n d e x _ o w n e rf o r m a ta 2 0 c o lc o l u m n _ n a m ef o r m a ta 2 0 c o lt a b l e s p a c e _ n a m ef o r m a ta 2 0 b r e a kO Nt a b l e _ n a m es k i p1 ; S E L E C Tc . i n d e x _ o w n e r ,i . i n d e x _ n a m e , D E C O D E ( i . u n i q u e n e s s ,' U N I Q U E ' ,' Y E S ' ,' N O ' )U N I Q U E N E S S , c . c o l u m n _ n a m e ,c . c o l u m n _ p o s i t i o n ,i . t a b l e s p a c e _ n a m e F R O Md b a _ i n d _ c o l u m n sc ,d b a _ i n d e x e si W H E R Ei . i n d e x _ n a m e=c . i n d e x _ n a m e A N Di . t a b l e _ o w n e r=c . t a b l e _ o w n e r O R D E RB Yc . i n d e x _ o w n e r ,i . i n d e x _ n a m e ,c . c o l u m n _ p o s i t i o n ;

Comment: (none) Language: PL/SQL Highlight Mode: PLSQL Last Modified: March 11th, 2009

Free Oracle Magazine Subscriptions and Oracle White Papers

psoug.org/snippet/INDEXES-View-table-indexes_828.htm

1/2

08/05/13

Oracle PL/SQL: INDEXES: View table indexes - Examples of viewing the indexes on an Oracle table. Replace the example table names with the actual

SQL University.net courses meet the most demanding needs of the business world for advanced education in a cost-effective manner. SQL University.net courses are available immediately for IT professionals and can be taken without disruption of your workplace schedule or processes. Compared to traditional travel-based training, SQL University.net saves time and valuable corporate resources, allowing companies to do more with less. That's our mission, and that's what we deliver. Click here to find out more

Home

Code Library

Sponsors

Privacy

Terms of Use

Contact Us

204 users online

2009 psoug.org

SQL Oracle

Oracle Database

Oracle 10G

Toad Oracle

psoug.org/snippet/INDEXES-View-table-indexes_828.htm

2/2

Você também pode gostar