Types of Indexes

BTree (Binary Tree) Index

Bitmap Index

Function Based Index

Index Attributes

Indexes can have various different attributes, applicable to all or some index types.

Ascending or Descending

Composites

Compression

Reverse Key Indexes

Index Syntax

CREATE INDEX Command

CREATE [ UNIQUE | BITMAP ] INDEX [ schema.] index ON
{
	[ schema.]table [ alias ] ( column [, column … ] | expression )
	{
		[ [ NO ] COMPRESS [ n ] ] [ NOSORT | REVERSE ]
		[ ONLINE ] [ COMPUTE STATISTICS ] [ TABLESPACE tablespace ]
		[ [ NO ] LOGGING ]
		[ physical properties ] [ partitioning properties ] [ parallel properties ]
	]
}
| CLUSTER [ schema.]cluster { cluster properties } | bitmap join index clause;

ALTER INDEX Command

ALTER [ UNIQUE | BITMAP ] INDEX [ schema.]index
[
	[ ENABLE | DISABLE ] [ UNUSABLE ] [ COALESCE ]
	[ RENAME TO index ] [ [ NO ] LOGGING ] [ [ NO ] MONITORING USAGE ]
	[ REBUILD [ [ NO ] COMPRESS [ n ]  ] [ [ NO ] REVERSE ]
		[ ONLINE ] [ COMPUTE STATISTICS ] [ TABLESPACE tablespace ] 			[ [ NO ] LOGGING ]
	]
	[ physical properties ] [ partitioning properties ] [ parallel properties ]
	[ deallocate unused clause ] [ allocate extent clause ]
]
| CLUSTER [ schema.]cluster { cluster properties };

DROP INDEX [schema.]index;