zoukankan      html  css  js  c++  java
  • Oracle DB解锁和 rerun FA depreciation

    --被锁的对象

    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.

  • 相关阅读:
    【ZJOI2017】树状数组
    【ZJOI2014】力
    【WC2017】挑战
    kube event 事件监控
    k8s nginx-ingress 504 timeout
    k8s 工具集
    jvm 性能调优工具之 jmap
    Elasticsearch unassigned 故障排查
    harbor API 与tag 清理
    前后端分离文档
  • 原文地址:https://www.cnblogs.com/quanweiru/p/2616145.html
Copyright © 2011-2022 走看看