首页 新闻 会员 周边

请问oracle 查询变慢怎么处理

0
悬赏园豆:15 [待解决问题]

oracle11g

oracle查询整体变慢 一张不到1百万的单表,筛选单个字段条件需要5秒左右。

根据查询,表空间剩余很小,大多剩余在5%-15%。

 

请问是直接使用

alter database datafile '*.DBF' resize *m;

修改大小可以解决这个问题吗。

直接在线上的库 不停止业务系统操作会不会有什么风险呢?谢谢!    

and技术梦的主页 and技术梦 | 初学一级 | 园豆:7
提问于:2021-12-30 22:33
< >
分享
所有回答(2)
0

You may try to increase the datafile size when business is slow, but I did not think that would significantly speed up the query.
Still, you need to find out why it took 5 seconds to query 1M records table.
You may want try to find out some data about index, and if the issue was from index, rebuild index might work for your case.

Hope this helps,

blogger2020 | 园豆:257 (菜鸟二级) | 2021-12-31 10:33

agree

支持(2) 反对(0) 去哪里吃鱼 | 园豆:462 (菜鸟二级) | 2022-01-05 09:24
0

检查一下你的慢sql,条件字段是否有索引

去哪里吃鱼 | 园豆:462 (菜鸟二级) | 2022-01-05 09:25
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册