Create and drop domain index
Step
To create a domain index for Oracle database, run the following command:
Flag Description
Flag | Data Type | Description |
---|---|---|
-c | string | Column name on which the domain index will be created or dropped. |
-o | string | Option to create or delete domain index. Use c to create and d to drop domain index. |
-a | string | Database alias associated with the database user. |
-x | string | Domain index name. This flag is valid only for creation of domain index. |
-h | Flag to view help for the domainindex command. | |
-t | string | Table name that contains the columns on which the domain index will be created or dropped. |
-n | string | Table space name (e.g SYSAUX). It is valid only for creation of domain index. |
-- verbose | Print verbose logs. |
Example1
To create a domain index on column CITY
of table CUSTOMERS
for the alias demo
, run the following command:
Output
Example2
To drop a domain index on column CITY of table CUSTOMERS for the alias demo, run the following command:
Output