Oracle DB解锁和 rerun FA depreciation

本文详细介绍了如何检查并更新Oracle数据库中的企业簿和相关税簿的状态为'S',进而执行分批处理以更新对象状态,最终实现对锁定对象的解锁操作。包括更新fa_book_controls表设置状态为'E',并进行相应的分批处理和回滚操作。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

--被锁的对象

select t2.SID, t2.SERIAL#, t2.MACHINE, t3.*

  from v$locked_object t1, v$session t2, sys.obj$ t3

 where t1.session_id = t2.sid

  and t1.OBJECT_ID = t3.obj#

 order by t2.logon_time;

 

 

 

---Kill session.

 alter system kill session 'sid,SERIAL#';

 

 

 

 

 

To implement the solution, please execute the following steps:

1) Check status of corporate book and related tax books to find which all have status of 'S'.

2) Run following update scripts in tax book(s) for which status in 'S'.

update fa_book_controls

set deprn_status = 'E',

deprn_request_id = NULL,

mass_request_id = NULL

where book_type_code = '&book'

Then run depreciation for that tax book(s) without closing period and then rollback it.

3) Then run same update scripts for Corp book.

For example:

update fa_book_controls

set deprn_status = 'E',

deprn_request_id = NULL,

mass_request_id = NULL

where book_type_code = '&book'

Then you should be able to run depreciation for the Corp book.

 

转载于:https://www.cnblogs.com/quanweiru/archive/2012/07/31/2616145.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值