易截截图软件、单文件、免安装、纯绿色、仅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导入导出

ORACLE导入导出
功能:Oracle数据导入导出imp/exp就相当与oracle数据还原与备份。大多情况都可以用Oracle数据导入导出完成数据的备份和还原(不会造成数据的丢失)。Oracle有个好处,虽然你的电脑不是服务器,但是你装了oracle客户端,并建立了连接(通过net8 assistant中本地-->服务命名 添加正确的服务命名 其实你可 ......

oracle优化 缓存对象与数据

author:skate
time:2010/03/16
当系统出现性能瓶颈时,尽量较少不必要的资源消耗,最后就是平衡cpu,内存,io,network等资源,使数据库
可以稳定的运行。
oracle数据库优化的根本是
1.尽量减少资源消耗,例如优化sql,减少sql本身的资源消耗
2.如果无法进一步减少资源的消耗,那就让数据尽量靠近cpu,也就是把数据 ......

oracle锁表相关语句

我写的脚本,有点慢,将就着用吧
--kill session语句
alter system kill session'50,492';
--以下几个为相关表
SELECT * from v$lock;
SELECT * from v$sqlarea;
SELECT * from v$session;
SELECT * from v$process ;      
SELECT * from v$locked_object;   
SELECT * from all_ ......

Oracle将表授权给用户的命令

Oracle将表授权给用户的命令
命令:grant  xxx权限 on TableA to USERA
grant select,insert,update,delete on 表名 to 用户名
例如:将test表的查询权限赋予solidwang这个用户
grant select on test to solidwang ......

如何导入ORACLE 备份文件

--创建用户
create user iagent identified by ia
profile default 
default  tablespace users
temporary tablespace temp
account unlock;
 
--给创建的用户授权
grant create user,drop user,alter user,create any view,drop any view,exp_full_database,imp_full_database,dba,connect,resour ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号