易截截图软件、单文件、免安装、纯绿色、仅160KB

oracle里的常用命令

第四章:索引
1.creating function-based indexes
sql> create index summit.item_quantity on summit.item(quantity-quantity_shipped);
 
2.create a B-tree index
sql> create [unique] index index_name on table_name(column,.. asc/desc) tablespace
sql> tablespace_name [pctfree integer] [initrans integer] [maxtrans integer]
sql> [logging | nologging] [nosort] storage(initial 200k next 200k pctincrease 0
sql> maxextents 50);
 
3.pctfree(index)=(maximum number of rows-initial number of rows)*100/maximum number of rows
 
4.creating reverse key indexes
sql> create unique index xay_id on xay(a) reverse pctfree 30 storage(initial 200k
sql> next 200k pctincrease 0 maxextents 50) tablespace indx;
 
5.create bitmap index
sql> create bitmap index xay_id on xay(a) pctfree 30 storage( initial 200k next 200k
sql> pctincrease 0 maxextents 50) tablespace indx;
 
6.change storage parameter of index
sql> alter index xay_id storage (next 400k maxextents 100);
 
7.allocating index space
sql> alter index xay_id allocate extent(size 200k datafile 'c:/oracle/index.dbf');
 
8.alter index xay_id deallocate unused; 
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/semisweet/archive/2006/07/13/913741.aspx


相关文档:

Oracle All And Any

转:Oracle All And Any
    这是在Oracle中比较容易被忽视的两个条件函数,但这两个函数其实对简化Sql语句是非常重要的作用的。
  例如
scott@eddev> select ename, sal  from emp  where sal > any (1600, 2999);
ENAME         &nb ......

ORACLE 10 (付首昕)学习笔记 第4课 命令。

ORACLE 10 学习笔记-第4课-命令。
1.commit;rollback;
2.select * from dictionary;
describe dba_users;
select * from dba_users;
select name from v$controlfile;
3.
alter database drop logfile group 3
select archiver from v$instance;
alter tablespace userdata read only;
4.
select tablespace_nam ......

Oracle中TO_DATE格式

TO_DATE格式(以时间:2007-11-02   13:45:25为例)
  
        Year:     
        yy two digits 两位年               ......

在AIX环境下实施Oracle 集群RAC的结构 文平

  《oracle大型数据库系统在AIX/unix上的实战详解》集中讨论34:在AIX环境下实施Oracle 集群RAC的结构   文平 看来能用的起IBM p服务器的用户,都能用的起RAC.大家纷纷来信探讨在AIX上实施RAC的一些问题,大多数问题集中的构架上. 这里我开一个专题集中讨论之! 从Oracle 9i开始,Oracle推出真正应用集群Rea ......

oracle命令 收藏

  oracle命令 收藏
1. ORACLE数据库启动与关闭
1.1 打开和关闭数据库 (手工)
1.1.1 sqlplus连接
  #su - oracle
#sqlplus  /nolog
1.1.2 打开数据库
sql> connect sys/oracle as sysdba;
  sql> startup [nomount|mount]
等待十几秒左右,当看到
oracle instances started,
databa ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号