+ Reply to Thread + Post New Thread
Results 1 to 9 of 9
  1. #1
    RIAZ's Avatar
    RIAZ is offline Forum Advisor
    Join Date
    01 Apr 2009
    Posts
    53
    Say Thanks
    0
    Thanked 0 Times in 0 Posts
    Documents
    0
    Uploads
    0

    Default slow query issue [urgent]

    dear all
    I am working in Oracle 11i Apps, problem is

    I am trying to JOIN two tables using the following criteria

    GL_JE_LINES.GL_SL_LINK_ID = CST_AE_LINES.GL_SL_LINK_ID

    but this take too much time to execute

    please guide me....

  2.    Club-Oracle Complementary E-Books and Magazines
    Get your free Complementary Copy of Oracle Magazine

    You can also browse the Free Magazines and E-Books section to see the complete list of free magazines, e-books and Whitepapers.

  3. #2
    Sadik's Avatar
    Sadik is offline Administrator
    Join Date
    03 Aug 2008
    Location
    Kolkata, India
    Posts
    1,184
    Say Thanks
    7
    Thanked 83 Times in 54 Posts
    Documents
    4
    Uploads
    2

    Default Re: slow query issue [urgent]

    hi

    can we see the full query?
    Learn Oracle with Oracle forum. Check out The Technology Blog

  4. #3
    Sadik's Avatar
    Sadik is offline Administrator
    Join Date
    03 Aug 2008
    Location
    Kolkata, India
    Posts
    1,184
    Say Thanks
    7
    Thanked 83 Times in 54 Posts
    Documents
    4
    Uploads
    2

    Default Re: slow query issue [urgent]

    and did you see another member's response here?

    GL to Inventory Mapping Issue
    Learn Oracle with Oracle forum. Check out The Technology Blog

  5. #4
    RIAZ's Avatar
    RIAZ is offline Forum Advisor
    Join Date
    01 Apr 2009
    Posts
    53
    Say Thanks
    0
    Thanked 0 Times in 0 Posts
    Documents
    0
    Uploads
    0

    Default Re: slow query issue [urgent]

    Code sql:
    SELECT    gcc.segment1
           || '-'
           || gcc.segment2
           || '-'
           || gcc.segment3
           || '-'
           || gcc.segment4
           || '-'
           || gcc.segment5
           || '-'
           || gcc.segment6
           || '-'
           || gcc.segment7 AS gl_account,
           NVL (cal.accounted_dr, 0) AS ac_dr, NVL (cal.accounted_cr, 0) AS ac_cr
      FROM cst_ae_headers cah,
           cst_ae_lines cal,
           gl_code_combinations gcc,
           gl_je_lines gjl,
           gl_je_headers gjh
     WHERE gcc.segment4 BETWEEN :p_acct_from AND :p_acct_to
       AND TRUNC (gjl.effective_date) <= :p_date
       AND gcc.code_combination_id = gjl.code_combination_id
       AND gjh.je_header_id = gjl.je_header_id
       AND gjh.je_source = 'Periodic Inventory'
       AND gjl.STATUS = 'P'
       AND gjl.gl_sl_link_id = NVL (cal.gl_sl_link_id, 0)
       AND cah.ae_header_id = cal.ae_header_id
       AND cah.period_name = gjh.period_name
       AND cah.ae_category = gjh.je_category

  6. #5
    Sadik's Avatar
    Sadik is offline Administrator
    Join Date
    03 Aug 2008
    Location
    Kolkata, India
    Posts
    1,184
    Say Thanks
    7
    Thanked 83 Times in 54 Posts
    Documents
    4
    Uploads
    2

    Default Re: slow query issue [urgent]

    hi

    It maybe an issue with the between clause. Try narrowing down on the accounts range and see.
    Learn Oracle with Oracle forum. Check out The Technology Blog

  7. #6
    RIAZ's Avatar
    RIAZ is offline Forum Advisor
    Join Date
    01 Apr 2009
    Posts
    53
    Say Thanks
    0
    Thanked 0 Times in 0 Posts
    Documents
    0
    Uploads
    0

    Default Re: slow query issue [urgent]

    huuuu... tried this ALSO but same problem (( please help me.

  8. #7
    zargon's Avatar
    zargon is offline Forum Genius
    Join Date
    22 Oct 2008
    Location
    Here, or maybe there, or ...
    Posts
    473
    Say Thanks
    0
    Thanked 38 Times in 37 Posts
    Documents
    0
    Uploads
    0

    Default Re: slow query issue [urgent]

    Quote Originally Posted by RIAZ View Post
    huuuu... tried this ALSO but same problem (( please help me.
    Then provide the query plan for this 'problem'; no one can find the issue if you don't provide the proper information.

  9. #8
    RIAZ's Avatar
    RIAZ is offline Forum Advisor
    Join Date
    01 Apr 2009
    Posts
    53
    Say Thanks
    0
    Thanked 0 Times in 0 Posts
    Documents
    0
    Uploads
    0

    Default Re: slow query issue [urgent]

    "Basically i want to perform mapping from GL to INVENTORY & PAYABLES "

    I want to get transactional details (like po number, item description). I have GL account number and i want to route from GL to get the material transactional details.

  10. #9
    Sadik's Avatar
    Sadik is offline Administrator
    Join Date
    03 Aug 2008
    Location
    Kolkata, India
    Posts
    1,184
    Say Thanks
    7
    Thanked 83 Times in 54 Posts
    Documents
    4
    Uploads
    2

    Default Re: slow query issue [urgent]

    RIAZ did you check the view XLA_INV_AEL_GL_V. It might have everything you need. If not, pay special attention to the create view script for this view (or it's underlying view).
    Learn Oracle with Oracle forum. Check out The Technology Blog

Similar Threads

  1. Urgent Need Help on Oracle Auditing
    By rahulkadam in forum General
    Replies: 7
    Last Post: 01-22-2010, 04:53 AM
  2. Urgent PO Status
    By rehan_syr in forum Oracle Apps Technical
    Replies: 1
    Last Post: 06-03-2009, 09:48 AM
  3. Urgent Help [po_accrual_reconcile_temp]
    By RIAZ in forum Oracle Apps Technical
    Replies: 5
    Last Post: 05-20-2009, 02:30 PM
  4. ORA-24778: cannot open connections:URGENT
    By pjsr in forum Server Administration and Options
    Replies: 6
    Last Post: 03-27-2009, 07:28 PM
  5. urgent need for Oracle DBA's in Woonsocket, RI
    By JobsConnector in forum Jobs, Interviews and Business Oppurtunities
    Replies: 0
    Last Post: 11-22-2008, 02:38 PM

Tags for this Thread