Chinaunix首页 | 论坛 | 博客
  • 博客访问: 659539
  • 博文数量: 163
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 1625
  • 用 户 组: 普通用户
  • 注册时间: 2014-11-24 11:40
个人简介

资深Oracle数据库专家 OCM认证大师 10年数据库相关服务及开发经验 各类数据库相关方案的编写,管理及实施 数据中心数据库日常运维、大型项目割接、性能优化等方面有丰富的实战经验 客户包括: 电信,银行,保险,航空,国网,汽车,烟草等 想要一起学习探讨数据安全技术的请加qq群 256041954

文章分类

全部博文(163)

文章存档

2017年(2)

2016年(112)

2015年(38)

2014年(11)

我的朋友

分类: Oracle

2014-11-24 15:53:40

1:使用vmstat和top查看系统cpu,io,内存使用情况
2:查看当前状态下存在的等待事件
select sid,event,p1,p2,seconds_in_wait from v$session_wait where event not like '%SQL%' and event not like 'rdbms%' and event not like '%message%' and event not like '%Streams AQ%' AND EVENT NOT LIKE '%slave%' order by event;
3:检查出现问题的语句
SQL> @sql_sid
Enter value for sid: 
old 1: 
select sql_text from v$sqltext where hash_value in(select decode(sql_hash_value,0,prev_hash_value,sql_hash_value) from v$session where sid='&sid') order by piece;
new 1: select sql_text from v$sqltext where hash_value in(select decode(sql_hash_value,0,prev_hash_value,sql_hash_value) from v$session where sid=’ ′) order by piece;
4: 检查问题语句的执行计划,查看执行计划是否正确
set autotrace traceonly
set autotrace on
5:如果执行计划不对:
(1):

分析表

exec dbms_stats.gather_table_stats(ownname => 'scott',tabname => 'work_list',estimate_percent => 10,method_opt=> 'for all indexed columns') ; 

(2):分析想相关索引

。。。后续接着



阅读(2473) | 评论(0) | 转发(0) |
0

上一篇:没有了

下一篇:Oracle常用管理包讲解

给主人留下些什么吧!~~