Login  Register

Re: Open period Request Takes too long

Posted by Saad Qaiser Khan on Mar 06, 2017; 5:23am
URL: http://erman-arslan-s-oracle-forum.124.s1.nabble.com/Open-period-Request-Takes-too-long-tp2249p2264.html

Hello Erman,

I have checked through Toad session, and I can see the concurrent program GLOOAPC but there is no lock wait I can see in it.

        2355 oracle APPS APPS ACTIVE 14 453 GLOOAPC Concurrent Request


but under top sessions

I can see the same SID and current sql as

INSERT                                                          /*+ append  */
      INTO                 gl_balances a (code_combination_id,
                                          period_name,
                                          ledger_id,
                                          currency_code,
                                          period_year,
                                          period_num,
                                          period_type,
                                          actual_flag,
                                          last_updated_by,
                                          last_update_date,
                                          translated_flag,
                                          period_net_dr,
                                          period_net_cr,
                                          period_net_dr_beq,
                                          period_net_cr_beq,
                                          quarter_to_date_dr,
                                          quarter_to_date_cr,
                                          project_to_date_dr,
                                          project_to_date_cr,
                                          begin_balance_dr,
                                          begin_balance_cr,
                                          begin_balance_dr_beq,
                                          begin_balance_cr_beq,
                                          quarter_to_date_dr_beq,
                                          quarter_to_date_cr_beq,
                                          project_to_date_dr_beq,
                                          project_to_date_cr_beq,
                                          template_id)
   SELECT code_combination_id,
          period_name,
          ledger_id,
          currency_code,
          period_year,
          period_num,
          period_type,
          actual_flag,
          0,
          SYSDATE,
          DECODE (currency_code,  'PKR', NULL,  'STAT', NULL,  'R'),
          0,
          0,
          0,
          0,
          quarter_to_date_dr,
          quarter_to_date_cr,
          project_to_date_dr,
          project_to_date_cr,
          begin_balance_dr,
          begin_balance_cr,
          DECODE (currency_code, 'STAT', 0, begin_balance_dr_beq),
          DECODE (currency_code, 'STAT', 0, begin_balance_cr_beq),
          DECODE (currency_code, 'STAT', 0, quarter_to_date_dr_beq),
          DECODE (currency_code, 'STAT', 0, quarter_to_date_cr_beq),
          DECODE (currency_code, 'STAT', 0, project_to_date_dr_beq),
          DECODE (currency_code, 'STAT', 0, project_to_date_cr_beq),
          template_id
     FROM gl_posting_interim b


but still there is no lock. What does that mean can you please elaborate?



Regards,
Saad Qaiser Khan