澳门游艺场9159-9159金沙游戏场

修改时间

作者: 澳门游艺场  发布:2020-02-16

1、查看是否有锁表的sql 复制代码 代码如下: select 'blocker('||lb.sid||':'||sb.username||')-sql:'|| qb.sql_text blockers, 'waiter ('||lw.sid||':'||sw.username||')-sql:'|| qw.sql_text waiters from v$lock lb, v$lock lw, v$session sb, v$session sw, v$sql qb, v$sql qw where lb.sid=sb.sid and lw.sid=sw.sid and sb.prev_sql_addr=qb.address and sw.sql_address=qw.address and lb.id1=lw.id1 and sw.lockwait is not null and sb.lockwait is null and lb.block=1 ; 2、查看被锁的表 复制代码 代码如下: select p.spid,a.serial#,c.object_name,b.session_id,b.oracle_username,b.os_user_name from v$process p,v$session a, v$locked_object b,all_objects c where p.addr=a.paddr and a.process=b.process and c.object_id=b.object_id ; 3、查看那个用户那个进程造成死锁,锁的级别 复制代码 代码如下: select b.owner,b.object_name,l.session_id,l.locked_mode fromv$locked_object l, dba_objects 4、查看连接的进程 复制代码 代码如下: SELECT sid, serial#, username, osuser FROMv$session; 5、查看是哪个session引起的 复制代码 代码如下: select b.username,b.sid,b.serial#,logon_time from v$locked_object a,v$session b where a.session_id = b.sid order by b.logon_time; 6、杀掉进程 复制代码 代码如下: alter system kill session 'sid,serial#'; sid是第5步查询出的sid和serid

场景:

  一用户YDL在下PO单的时候突然断电(或死机),PO单录到一半。重新打开此PO单后,无法修改订单数据。

  提示:Could not reserve record [2 tries]. Keep trying?

在metalink上搜索,找到如下信息:

POXPOEPO -- Cannot Modify Purchase Order - FRM-40501: ORACLE Error: Unable to Reserve Record for Update or Delete [ID 224088.1]

 


 

修改时间 12-FEB-2007     类型 PROBLEM     状态 PUBLISHED

 

  • fact: Oracle Purchasing
  • fact: POXPOEPO - Enter Purchase Orders
  • symptom: Cannot modify purchase order
  • symptom: Receive errors when opening Purchase Order form
  • symptom: Could not reserve record [2 tries]. Keep trying?
  • symptom: FRM-40501: ORACLE error: unable to reserve record for update or delete.
  • cause: The record in PO_HEADERS_ALL corresponding to the purchase order was locked.

fix: Remove lock on the record in PO_HEADERS_ALL. To remove the lock bounce the database or kill the session that has the table locked. the locks can be reviewed in the table v$lock

本文由澳门游艺场9159发布于澳门游艺场,转载请注明出处:修改时间

关键词: