上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 34 下一页
摘要: --case1 --case2 --case3 --case4 --case5 --case6 --case7 --case8 --case9 --case10 --case12 SQL> ALTER SESSION SET statistics_level = all; --case13 --ca 阅读全文
posted @ 2017-06-05 22:28 Oracle-fans 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 201705251537trcsess.awk 工具,使用类似如下:awk -f trcsess.awk xxx.trc > xxx.more 1615tvdztat -i ....trc -o xxx.html201705261604select t1.pname,t1.pval1,t1.pval 阅读全文
posted @ 2017-06-02 21:06 Oracle-fans 阅读(201) 评论(0) 推荐(0) 编辑
摘要: --先排序然后删除第n条数据delete from scott.emp where empno in (select empno from (select * from scott.emp where comm is null and rownum < 2 order by hiredate des 阅读全文
posted @ 2017-06-02 21:03 Oracle-fans 阅读(2304) 评论(0) 推荐(0) 编辑
摘要: create or replace function clustering_factor(p_owner in varchar2,p_table_name in varchar2,p_column_name in varchar2)return number isl_cursor sys_refcu 阅读全文
posted @ 2017-06-01 22:09 Oracle-fans 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 直方图 Histogram是一种特殊的列统计信息,详细描述了目标列的数据分布情况。存储在数据字典基表 histogram$; 专门为了准确评估分布不均匀的目标列的可选择率、结果集的cardianlity。 详细描述了目标列的数据分布情况,并将分布情况记录在数据字典里。 select t1.colum 阅读全文
posted @ 2017-06-01 22:08 Oracle-fans 阅读(1117) 评论(0) 推荐(0) 编辑
摘要: select t1.NUM_ROWS,t1.BLOCKS,t1.EMPTY_BLOCKS,t1.AVG_SPACE,t1.CHAIN_CNT,t1.AVG_ROW_LEN from user_tab_statistics t1where t1.TABLE_NAME='T'; NUM_ROWS BLO 阅读全文
posted @ 2017-06-01 22:07 Oracle-fans 阅读(149) 评论(0) 推荐(0) 编辑
摘要: select t1.INDEX_NAME,t1.blevel,t1.LEAF_BLOCKS,t1.DISTINCT_KEYS,t1.NUM_ROWS,t1.CLUSTERING_FACTOR,t1.AVG_LEAF_BLOCKS_PER_KEY,t1.AVG_DATA_BLOCKS_PER_KEYf 阅读全文
posted @ 2017-06-01 22:05 Oracle-fans 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 端午有人休息,有人忙 操作前数据: --从排序后的结果集中删除 前n条记录delete from emp where empno in (select empno from (select * from emp where comm is not null and rownum < &n order 阅读全文
posted @ 2017-05-30 17:15 Oracle-fans 阅读(1154) 评论(0) 推荐(0) 编辑
摘要: 16:56:49 DZFPMX(24_112)@test> col object_type for a1016:57:00 DZFPMX(24_112)@test> col object_name for a2016:57:07 DZFPMX(24_112)@test> col subobject_ 阅读全文
posted @ 2017-05-24 20:04 Oracle-fans 阅读(203) 评论(0) 推荐(0) 编辑
摘要: select case when subobject_name is null then obj.object_id else null end object_id ,--主对象idcase when obj.object_type = 'TABLE' then obj.object_type el 阅读全文
posted @ 2017-05-24 20:02 Oracle-fans 阅读(266) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 34 下一页