Linux scripts
文章平均质量分 79
cloudsnowe
force on oracle
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
oracle 巡检脚本
#!/bin/sh # Get Hostname HOSTNAME=`hostname` logfile=xunjian_`date +%y%m%d`.log hostinfodir=/home/oracle/xunjian if [[ ! -d $hostinfodir ]] then mkdir -p $hostinfodir fi date >> $hostinfod原创 2015-04-20 15:59:31 · 1570 阅读 · 0 评论 -
Oracle 获取没有使用绑定变量的SQL语句
with force_mathces as (select l.force_matching_signature mathces, max(l.sql_id || l.child_number) max_sql_child, COUNT(*) COUNT, dense_rank() over(order by count(*) desc) ranking from v$sql原创 2014-11-18 17:56:14 · 1556 阅读 · 0 评论 -
判断oracle index 何时需要重建
oracle 索引何时需要重建 1.analyze index PUB_USER_FUNC_RESOURCE_INDEX3 validate structure; 2. 查询索引碎片: select name, del_lf_rows, lf_rows, round((del_lf_rows/(lf_rows+0.0000000001))*100) frag_pct from ind原创 2015-01-14 14:58:36 · 2415 阅读 · 0 评论
分享