当前位置:Gxlcms > 数据库问题 > oracle6

oracle6

时间:2021-07-01 10:21:17 帮助过:47人阅读

创建索引 create[unique]--创建唯一性索引。默认为非唯一性索引。 [bitmap]--创建位图索引。默认为b-树索引。 index[schema.]index on[schema.]table(index_expr[asc|desc][,…]) [pctfree integer] [pctused integer] [initrans integer] [storage(storage_clause)]--设置索引的存储分配方式。若不指定,则继承表空间的存储参数设置。 [logging|nologging]--指明索引的创建过程是否写入重做日志文件。默认为logging。 [online]--允许创建索引或重建索引时对表进行dml操作,但不允许对表进行ddl操作以及并行操作。 [tablespace tablespace]--指明存储索引的表空间。 [nocompress|[compress integer]]--指明是否压缩索引中的重复数据。默认为nocompress。 [sort|nosort]--在默认情况下,创建索引时会先对表中数据进行排序,如果表中数据已经按索引顺序排序了,则可以使用nosort,以加快索引创建的速度。 [reverse]--创建反序索引 [noparallel|[parallel integer]]--指明是否允许并行创建索引。默认为noparallel。 --修改索引 alter index[schema.]index [deallocate unused[keep size_clause]]--回收索引未使用的存储空间。 [allocate extent([size size_clause][datafile ‘filename‘])]--为索引分配新区。 [shrink space[compact][cascade]]--收缩索引的存储空间。 [rebuild tablespace tablespace]--重建索引。 [coalesce]--合并索引。 [noparallel|[parallel integer]] [pctfree integer][pctused integer][initrans integer] [storage(storage_clause)]] [enable|disable] [rename to new_name] [monitoring|nomonitoring usage]--打开或关闭对索引的监控。 select employee_id,first_name,last_name from employees where job_id = ac_account; select * from v$object_usage where index_name = emp_job_indx;--查看索引emp_job_indx何时被打开监控及是否被使用过。

 

oracle6

标签:pre   ini   esc   parallel   taf   data   div   job   blog   

人气教程排行