- 博客(4)
- 收藏
- 关注
转载 【转】Oracle表与索引的分析及索引重建
1.分析表与索引(analyze 不会重建索引) analyze table tablename compute statistics 等同于 analyze table tablename compute statistics for table for all indexes for all columns for table 的统计信息存在于视图:user_tables
2016-11-17 21:43:25 647
转载 【转】Linux下定时删除指定目下n天前的文件
* 6 * * * find /root/home/zhang/* ctime 1 -exec rm -rf {} \; 表示每天早上六点删除/root/home/zhang目录下一天前创建的所有文件,不删除文件夹zhang,如果这个文件夹也要删除的话用 * 6 * * * find /root/home/zhang ctime 1 -exec rm -rf {} \; * 6 * *
2016-11-10 10:47:46 285
转载 【转】Oracle在线重定义DBMS_REDEFINITION 普通表—>分区表
实验环境:RHEL 6.4 + Oracle 11.2.0.3 实验:在线重定义 普通表 为 分区表,包括主键对应的索引都改造为分区索引. 1,构造普通表t_objects conn test1/test1; create table t_objects as select * from dba_objects; SQL> select count(1) from t
2016-11-08 19:11:13 355
转载 【转】随机数
1、从表中随机取记录 select * from (select * from staff order by dbms_random.random) where rownum 表示从STAFF表中随机取3条记录 2、产生随机数 SELECT DBMS_RANDOM.RANDOM FROM DUAL; 产
2016-11-04 14:17:51 195
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人