PL/SQL 一编辑数据就卡,why???

eva_1st 2015-10-30 08:37:05
在PL/SQL里直接执行insert,update这些非常快。但是只要是先select ,再for update。去点那个锁准备编辑查询结果的时候就要卡几十秒才能编辑。编辑的时候一切正常,提交也正常。

不管什么表都这样。只要查询,编辑,点锁就卡。
什么情况啊?有高人来指导一下吗?

最近才这样的,以前几年都不这样。
...全文
209 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
liuzhe_521 2015-10-30
  • 打赏
  • 举报
回复
用plsql做修改的时候干嘛不用rowid的方式去修改数据呢 ? 你for update的时候锁定了当前的数据,不危险吗?
wu1048745542 2015-10-30
  • 打赏
  • 举报
回复
引用 1 楼 wildwave 的回复:
估计是工具问题,重装 pl/sql developer吧
我感觉不是,我也是这样,感觉和网速有关,我直连数据库就不会卡,vpn就会卡。
小灰狼W 2015-10-30
  • 打赏
  • 举报
回复
估计是工具问题,重装 pl/sql developer吧
Part 1 covers some basics that are required to read the rest of the book. Chapter 1, “Performance Problems,” explains not only why it’s essential to approach performance problems at the right moment and in a methodological way, but also why understanding business needs and problems is essential. It also describes the most common database-related design problems that lead to suboptimal performance. Chapter 2, “Key Concepts,” describes the operations carried out by the database engine when parsing and executing SQL statements and how to instrument application code and database calls. It also introduces some important terms that are frequently used in the book. Part 2 explains how to approach performance problems in an environment that uses Oracle Database. Chapter 3, “Analysis of Reproducible Problems,” describes how to identify performance problems with the help of SQL trace and PL/SQL profilers. Chapter 4, “Real-time Analysis of Irreproducible Problems,” describes how to take advantage of information provided by dynamic performance views. Several tools and techniques that can be used with them are also introduced. Chapter 5, “Postmortem Analysis of Irreproducible Problems,” describes how to analyze performance problems that happened in the past with the help of Automatic Workload Repository and Statspack. Part 3 describes the component that is responsible for turning SQL statements into execution plans: the query optimizer. Chapter 6, “Introducing the Query Optimizer,” provides an overview of what the query optimizer does and how it does it. Chapters 7 and 8, “System Statistics” and “Object Statistics,” describe what system statistics and object statistics are, how to gather them, and why they are important for the query optimizer. Chapter 9, “Configuring the Query Optimizer,” covers a configuration road map that you can use to find a good configuration for the query optimizer. Chapter 10, “Execution Plans,” describes in detail how to obtain, interpret, and judge the efficiency of execution plans.

17,378

社区成员

发帖
与我相关
我的任务
社区描述
Oracle 基础和管理
社区管理员
  • 基础和管理社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧