Query running for long post upgrade to Oracle 11g from 10g

The below query is running for a very long time post upgrade of database from 10g to 11g.
SELECT default_supplier
  FROM (SELECT pv.vendor_name || '-'
               || pvsa.vendor_site_code default_supplier
          FROM mrp_item_sourcing_levels_v mislv,
               mfg_lookups ml1,
               mfg_lookups ml2,
               mfg_lookups ml3,
               mtl_system_items_b msib,
               po_vendors pv,
               po_vendor_sites_all pvsa
         WHERE msib.segment1 = :b1
           AND msib.organization_id = :b2
           AND mislv.inventory_item_id = msib.inventory_item_id
           AND mislv.organization_id = msib.organization_id
           AND ml1.lookup_type = 'MRP_SOURCING_RULE_TYPE'
           AND ml1.lookup_code = mislv.sourcing_rule_type
           AND ml2.lookup_type = 'MRP_ASSIGNMENT_TYPE'
           AND ml2.lookup_code = mislv.assignment_type
           AND pv.vendor_id = mislv.vendor_id
           AND pvsa.vendor_site_id = mislv.vendor_site_id
           AND pvsa.vendor_id = mislv.vendor_id
           AND ml3.lookup_type = 'MRP_SOURCE_TYPE'
           AND ml3.lookup_code = mislv.sourcing_level
           AND mislv.sourcing_level =
                  (SELECT MIN (sourcing_level)
                     FROM mrp_item_sourcing_levels_v
                    WHERE inventory_item_id = msib.inventory_item_id
                      AND organization_id = msib.organization_id)
        UNION
        SELECT ood.organization_code default_supplier
          FROM mrp_item_sourcing_levels_v mislv,
               mfg_lookups ml1,
               mfg_lookups ml2,
               mfg_lookups ml3,
               mtl_system_items_b msib,
               org_organization_definitions ood
         WHERE msib.segment1 = :b1
           AND msib.organization_id = :b2
           AND mislv.inventory_item_id = msib.inventory_item_id
           AND mislv.organization_id = msib.organization_id
           AND ml1.lookup_type = 'MRP_SOURCING_RULE_TYPE'
           AND ml1.lookup_code = mislv.sourcing_rule_type
           AND ml2.lookup_type = 'MRP_ASSIGNMENT_TYPE'
           AND ml2.lookup_code = mislv.assignment_type
           AND ml3.lookup_type = 'MRP_SOURCE_TYPE'
           AND ml3.lookup_code = mislv.sourcing_level
           AND ood.organization_id = mislv.source_organization_id
           AND mislv.sourcing_level =
                  (SELECT MIN (sourcing_level)
                     FROM mrp_item_sourcing_levels_v
                    WHERE inventory_item_id = msib.inventory_item_id
                      AND organization_id = msib.organization_id))
From the trace files, we see that the issue is with the seeded view, mrp_item_sourcing_levels_v.
Need pointers for fixing the performance.    

The ETRM says this about the view:
***** Warning: Oracle Internal Use Only *****
Oracle Corporation does not support access to Oracle
applications data using this object, except from standard Oracle Applications programs.
which is a powerful suggestion that you should not be addressing this view directly. Looking at the source code for the view, it has a bunch of UNIONs that may prevent view merging, and all the queries have loads of hints coded within them. So really, there is little you can do about this.
It looks pretty simple to re-write your query to avoid addressing this view, you are using it only to retrieve a couple of columns. If you look at the source code for the view you'll see that you can get them easily without going through the view.
John Watson
Oracle Certified Master DBA

Similar Messages

  • Getting error while upgrading rpd to 11g from 10g

    Hello,
    I have a rpd using obiee 10g.I want to open the same in obiee 11g,but getting error like need to run one file.
    obieerpdmigrateutil.exe.
    So i just run with -i,-u and -o option, that now i am getting this error->
    The file 'DBFeatures.INI' is required for RPD migration and could not be located. Please ensure that ORACLE_INSTANCE is pointing to a valid instance directory.
    Thanks

    Hi akshara,
    Firstly you need to upgrade from 10g to 11g,you need to run a .bat file from the path and follow some steps like collecting the artifact files like NQSconfig.ini,instanceconfig.xml,DBfeatures.ini with RPD and catalog to upgrade to 11g.
    Here is the step by step process to upgrade and some artifact files manually given in step 2 of this blog http://prolynxuk.com/blog/?p=424
    http://www.biconsultinggroup.com/images/VideoAlbum/OBIEE11gUpgrade11-4-10.pdf
    (OR) standard documentation Start here http://download.oracle.com/docs/cd/E1457101/bi.htm_
    If still the problem exists you manually update the DBfeature.ini file going to the specific location in 10g and copy them to 11g path.
    hope helps you.
    Cheers,
    KK

  • New features in oracle 11g over 10g

    hi forum,
    can you please let me know the major difference and steps for upgrading to oracle 11g from oracle 10g

    user12236725 wrote:
    hi forum,
    can you please let me know the major difference and steps for upgrading to oracle 11g from oracle 10g
    Looking at the New Edition By Tom Kyte
    http://www.oracle.com/technology/oramag/oracle/09-nov/o69asktom.html
    You really need to dig-n the Oracle® Database New Features Guide 11g Release 2 (11.2):
    http://download.oracle.com/docs/cd/E11882_01/server.112/e10881/chapter1.htm
    Hope that helps.
    Regards
    Z.K.

  • Error while running a query-Input for variable 'Posting Period is invalid

    Hi All,
    NOTE: This error is only cropping up when I input 12 in the posting period variable selection. If I put in any other value from 1-11 I am not getting any errors. Any ideas why this might be happening?
    I am getting the following error when I try and run a query - "Input for variable 'Posting Period (Single entry, mandatory)' is invalid" - On further clicking on this error the message displayed is as follows -
    Diagnosis
    Variable Posting Period (Single Value Entry, Mandatory) is used as a lower limit (X) and an upper limit () in an interval selection. This limit has the value #.
    System Response
    Procedure
    Enter a different value for variable Posting Period (Single Value Entry, Mandatory). If the value of the other limit is determined by another variable, you can change its value also.
    Procedure for System Administration

    OK.
    Well, if the variable is not used in any interval selection, then I would say "something happened to it".
    I would make a copy of the query and run it to check if I get the same problem with period 12.
       -> If not, something is wrong in the original query (you can proceed as below, if changes to original are permitted).
    If so, then try removing the variable completely from the query and hardcode restriction to 12.
       -> If problem still persists, I would have to do some thinking.
    If problem is gone, then add the variable again. Check.
       -> If problem is back, then the variable "is sick". Only quick thing to do, is to build an identical variable and use that one.
    If problem also happens with the new variable, then it's time to share this experience with someone else and consider raising an OSS.
    Good luck!
    Jacob
    P.S: what fisc year variant are you using?
    Edited by: Jacob Jansen on Jan 25, 2010 8:36 PM

  • MSCOBJCL.sql runs for long while applying patch 6678700 for 12.1.1 upgrade

    DB:11.2.0.3.0
    OS: IBM AIX Power system 64 bits 6.1
    Hi All,
    MSCOBJCL.sql runs for long while applying patch 6678700 for 12.1.1 upgrade. We are upgrading from 11.5.10.2.0 to 12.1.1
    Could anyone please share why the script takes so much of time to run?
    Thanks for your time
    Regards,a1_win

    As per Mscobjcl.Sql Is Running Long While Applying Patch.8671960 (Doc ID 1295881.1)
    The patch is already applied in the instance
    BUG_NUMBER CREATION_DATE
    8671960 19-SEP-10
    Thanks,
    a1_win

  • ABAP process job ( BI_PROCESS_ABAP ) in process chain running for long time

    Dear Experts,
    We have an ABAP process job  BI_PROCESS_ABAP  in a process chain. This job is running for a very long time than previous run time.
    Recently we had an ORACLE database upgrade from 9.2 to 10g.
    From the very next day , we are having this problem.
    And also previously this process-chain was under control of BASIS guys . they were using a tool called CRONACLE to schedule it. At the time of upgrade this tool was crashed and they asked us to schedule it in BW system instead.
    Underlying program is using two custom tables.
    one is having both primary & secondary indexes but the other table is having only primary index.
    I am not sure whether we have secondary indexes on other table prior to upgrade or not.
    Where must be the problem?...
    At the time of upgrade BASIS has re-organized the table space along with database upgrade.
    please help me...
    Regards,
    SRIKANTH

    Please ask yr basis consultant to check the system parms.
    Below i have listed down SAP recommneded system parms .
    abap/heap_area_total 4000000000
    abap/heap_area_dia 2000000000
    abap/heap_area_nondia 2000000000
    Also check in SM37 if any other jobs are running for long time, peventing the your job running.
    Check the SM12 for locks or SM58

  • Report running for long time & performance tuning

    Hi All,
    (1). WebI report is running for long time.so what are the steps i need to check for it ?
    (2). Can you tell me about performance tuning in BO ?
    please help me.....
    Thanks
    Kumar

    (1). WebI report is running for long time.so what are the steps i need to check for it ?
    The first step is to see if the problem lies in the query on the data source or in webi itself. Depending on the data source there are different ways to extract the query and try to run it against the database. Which source does your report uses?
    (2). Can you tell me about performance tuning in BO ?
    I would recommend to start by reading the administrator's guide. There is a section about how to improve performance.
    Regards,
    Stratos

  • Query runs for ever - suggestions - ideas - tips

    Hello all,
    I have the following situation:
    1) Database 1: XE 10g Release 10.2.0.1.0 - Production
    2) Database 2: 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    3) Dblink from Database 1 pointing to Database 2
    4) Synonyms created withing Database 1, pointing to Database 2 packages and tables:
    - "mytable1" exists in Database 2 therefore a synonym "mytable1" is created in Database 1
    - "mytable2" exists in Database 2 therefore a synonym "mytable2" is created in Database 1
    - "mypackage" exists in Database 2 therefore a synonym "mypackage" is created in Database 1
    5) Of course select and execute rights are granted
    6) Query:
    SELECT field1
    FROM myshcema.mytable1
    WHERE field2 = myshcema.mypackage.myfunction ('PARAMVALUE'))
    AND EXISTS (SELECT 1 FROM myshcema.mytable2 WHERE field_in_tab2 = field_in_tab1)
    7) Problem.This query runs for ever
    8) Explain plan
    OPERATION - OBJECT_NAME - OPTIONS - COST
    SELECT STATEMENT - - - 17
    -> FILTER - - -
    -> -> FILTER - - - 3
    -> -> -> REMOTE - mytable1 - -
    -> -> REMOTE - mytable2 - - 1
    9) Now I get the value returned by the function and re-execute the previous query:
    - select myshcema.mypackage.myfunction ('PARAMVALUE')) from dual;
    - return value is *89787621*
    - re-executing the query:
    SELECT field1
    FROM myshcema.mytable1
    WHERE field2 = *89787621*
    AND EXISTS (SELECT 1 FROM myshcema.mytable2 WHERE field_in_tab2 = field_in_tab1)
    10) Explain plan
    OPERATION - OBJECT_NAME - OPTIONS - COST
    SELECT STATEMENT - - REMOTE - 3
    -> NESTED LOOPS - - SEMI - 3
    -> -> INDEX - MY_UK_NAME - RANGE SCAN - 3
    -> -> INDEX - MY_2ND_UK - UNIQUE SCAN - 0
    And the results are instantaneous
    Now my question: Can somebody direct me on whether a hint or something else will correct this situation? Due to restrictions that I cannot currently explain here, I am not able to change the code to first get the value and then execute the query.
    Thanks for helping
    G
    Edited by: G on May 17, 2011 9:07 AM
    Edited by: G on May 17, 2011 9:10 AM

    I would think the driving site hint woud be the frist thing I tried. If for some reason Oracle does not seem to be able to use the hint or if hints are heavily frowned on at your site then here is another approach to the problem.
    Code the query into a view and define the view on the remote database then issues a local query against the remote view.
    HTH -- Mark D Powell --

  • Background job is running for long tome in source system (ECC)

    Hi All,
    Background job is running for long tome in source system (ECC) while extracting data to PSA.
    I checked in ECC system SM66,SM50 the job is still running
    in SM37 the job is Active
    There are only maximum 7000 records the extractor is 2LIS_02_ITM but it is taking 11 to 13 hours to load to PSA daily
    I had checked enhancements every thing is correct.
    Please help me on this how can I solve this issue.
    Regards
    Supraja K

    Hi sudhi,
    The difference between Call customer enhancement...  and  Result of customer enhancement:... is very less we can say this as a second.
    The difference is between LUWs confirmed and 1 LUWs -
       and Call customer enhancement -
    Please find the job log details below, and give me the solution to ressolve this
    01:06:43 ***01:06:43 * ztta/roll_extension........... 2000000000                              *                 R8           050
                     R8           048
    01:06:43 1 LUWs confirmed and 1 LUWs to be deleted with function module RSC2_QOUT_CONFIRM_DATA     RSQU          036
    06:56:31 Call customer enhancement BW_BTE_CALL_BW204010_E (BTE) with 5.208 records                  R3           407
    06:56:31 Result of customer enhancement: 5.208 records                                              R3           408
    06:56:31 Call customer enhancement EXIT_SAPLRSAP_001 (CMOD) with 5.208 records                      R3           407
    06:56:31 Result of customer enhancement: 5.208 records                                              R3           408
    06:56:31 PSA=1 USING SMQS SCHEDULER / IF [tRFC=ON] STARTING qRFC ELSE STARTING SAPI                 R3           299
    06:56:31 Synchronous send of data package 1 (0 parallel tasks)                                      R3           410
    06:56:32 tRFC: Data Package = 0, TID = , Duration = 00:00:00, ARFCSTATE =                           R3           038
    06:56:32 tRFC: Start = 00.00.0000 00:00:00, End = 00.00.0000 00:00:00                               R3           039
    06:56:32 Synchronized transmission of info IDoc 3 (0 parallel tasks)                                R3           414
    06:56:32 IDOC: Info IDoc 3, IDoc No. 1549822, Duration 00:00:00                                     R3           088
    06:56:32 IDoc: Start = 04.10.2011 06:56:32, End = 04.10.2011 06:56:32                               R3           089
    06:56:32 Altogether, 0 records were filtered out through selection conditions                      RSQU          037
    06:56:32 Synchronized transmission of info IDoc 4 (0 parallel tasks)                                R3           414
    06:56:32 IDOC: Info IDoc 4, IDoc No. 1549823, Duration 00:00:00                                     R3           088
    06:56:32 IDoc: Start = 04.10.2011 06:56:32, End = 04.10.2011 06:56:32                               R3           089
    06:56:32 Job finished                                                                               00           517
    Regards
    Supraja

  • Why does the fan run for long periods on macbook pro

    why does the fan run for long periods on macbook pro?

    to keep the internal components of you mac at a safe operating temperature.

  • Getting errors for  date related queries  in oracle 11G

    Hi,
    We are having oracle 10.2.0 version and all the date queries are running , but one database has been upgraded to oracle 11g.
    Those queries are giving errors :
    SELECT * FROM USERLOGMST WHERE TO_DATE(LOGINDATE,'YYYYMMDD')>=SYSDATE-60
    Ora-01841: (full) yearmust bee between -4713 and +9999, and not be 0.
    But the same query is giving output in 10.2.0
    Can any one suggest me in rectifying this problem.
    thankyou
    satya

    >
    We are having oracle 10.2.0 version and all the date queries are running , but one database has been upgraded to oracle 11g.
    Those queries are giving errors :
    SELECT * FROM USERLOGMST WHERE TO_DATE(LOGINDATE,'YYYYMMDD')>=SYSDATE-60
    Ora-01841: (full) yearmust bee between -4713 and +9999, and not be 0.
    But the same query is giving output in 10.2.0First step - find a few values that are causing the error:
    e.g.
    select max(logindate), min(logindate) from userlogmst;This may return perfectly reasonable dates, in which case you could use a pl/sql function to scan and report bad dates.
    Regards
    Jonathan Lewis
    http://jonathanlewis.wordpress.com
    http://www.jlcomp.demon.co.uk
    "Science is more than a body of knowledge; it is a way of thinking" Carl Sagan

  • Steps to upgrade my Oracle version from 11.1.0.6 to 11.2.0.1 in windows.

    Can anyone help me with the steps to upgrade my Oracle version from 11.1.0.6 to 11.2.0.1 in windows.
    Thanks in advance.

    If you are going to upgrade, you should upgrade to the latest 11gR2 patchset (currently 11.2.0.4). At a high level -
    1. Install 11.2.0.4 into a new separate ORACLE_HOME - see MOS Doc 1562139.1 and Contents
    2. Apply the latest 11.2.0.4 PSU bundle available for Windows - see MOS Doc 1454618.1
    3. Use DBUA to perform the upgrade - MOS Doc 870814.1 and Contents
    Also see
    MOS Doc 1645862.1

  • Upgrade the Oracle Apps from 11.5.10.2 from windows 32 bit to R12 OEL 64bit

    Hi Frnz,
    We are planning to upgrade the Oracle application from 11.5.10.2 from windows 32 bit to Oracle apps R12 OEL 64 bit.
    As I go through the Metalink documents and came to know the below Path to proceed with the R12 upgrade for our scenario (2 phase process).
    Phase1 - Upgrade in the source windows OS Machine :
    1)Upgrade the Database to latest version of 11G R2 (11.2.0.1/11.2.0.2) [if 9.2.0.8 to 11gR2, refer metalink note 881505.1 & 1265268.1]
    2)Upgrade Application from 11.5.10.2 to R12.1.1 in windows Machine
    3)Upgrade Application from R12.1.1 to R12.1.3 in windows Machine
    Phase2 - Migration Process from windows to Linux:
    1)Migrate R12.1.3 Application from *32bit windows to OEL 64bit*. (I could not found the exact document for this Cross Platform Migration)
    Note:
    As per the metalink note, we identified that, Oracle 11.5.10.2 Application will not support for the 64bit Linux.
    Reference:
    Migrating to Linux with Oracle Applications Release 11i [ID 238276.1]
    Migrating Oracle E-Business Suite R12 from Linux 32-bit to Linux 64-bit [ID 471566.1]
    Kindly suggest the upgradation Path to upgrade the Oracle application from 11.5.10.2 from windows 32 bit to Oracle apps R12 OEL 64 bit.
    Thanks & Regards
    Nagarajan P
    Oracle Apps DBA
    Edited by: user10968783 on Jun 1, 2011 3:39 AM

    Kindly suggest the upgradation Path to upgrade the Oracle application from 11.5.10.2 from windows 32 bit to Oracle apps R12 OEL 64 bit.To migrate the R12/11gR2 instance from Windows to Linux, please refer to:
    Application Tier Platform Migration with Oracle E-Business Suite Release 12 [ID 438086.1]
    Export/import process for R12 using 11gR1 or 11gR2 [ID 741818.1]
    Using Transportable Database to migrate E-Business Suite R12 Using Oracle Database 10gR2 or 11g [ID 734763.1]
    Oracle EBS R12 with Database Tier Only Platform on Oracle Database 11.2.0 [ID 456347.1]
    Thanks,
    Hussein

  • Oracle 11g from oracle 8

    Accssing oracle 8i from oralce 11g is not possible.But can I access oracle 11g from oracle 8?

    It is not supported, and will most likely not be successful in connecting.
    Client / Server / Interoperability Support Between Different Oracle Versions (Doc ID 207303.1)
    HTH
    Srini
    Can I access Oracle 8i objects from Oracle 11g

  • ECC6 upgrade phase XPRAS_UPG running for long time

    Hi,
    I am performing a Downtime minimized upgrade (MODPROF_TRANS) from R34.7ext2 to ECC6.0 / Windows2003/MSSQL2005
    Currently i am in the phase XPRAS_UPG .It is running for really long time.I tried to reset the phase but still went on for more than 10 hrs. I initialized the phase now its running for more than 7 hours. There are no processes when i check in SM50 and no log files updated. There is no log file called XPRAS_UPG.ELG.SM37 no jobs running.
    Though if it takes long time , How do i confirm that my upgrade phase is running ??????????as its not updating anything
    In PARDIST_SHD phase when there was en error , i have manuall deleted the DB trigger acording to the note 956198. And the phase went on.
    Now after reading few messages reg this error , i checked DB02 but no locks on any table . Have cheked note 558197,1292069,1142410,1138351,1062559,597885,551298. But nothings applicable in my case.
    Please suggest ...
    will really appreciate your help.
    Chandra

    Dear Chandra,
    Regarding long runtime for XPRAS phase kindly note the following:
    1. The reason of slow performance of XPRAS phase can vary differently.
    Basically during XPRAS phase, there're a lot of reports to run. These
    reports are inlcuded in the transport requests(both upgrade
    requests and support packages). If there's a performance problem,
    it very likely the database performance problem, such as wrong
    access plan was chosen, or missing index, etc.
    2. To find out the performance problems in the XPRAS, you can always
    logon into the system. During the XPRAS phase, the system has to be up and running.
    In SM50, usually you can find which report is running, and/or which table is being accessed.
    If you find some table accesses take unusually long time, please
    record the table name and find the SQL statement. Sometimes a simple
    index can solve the problem, sometimes you need help from Oracle
    to get the solution.
    3. If you want to shorten the downtime, you can select less support
    packages since all SPs have a lot of reports to run in XPRAS. But
    remember you need to import them soon or later. But if you prefer
    import them later it's fine.
    Currently if you check in SM37 then you can see RDDEXECL job in active status.
    Check for the job log, if there are any errors reported?
    Thereafter check the SM50 and see if its taking unusually long time for some particular table.
    If so then it might be because you might have not updated the statistics for that particular table.
    Also check what was the parameter value of Number of batch processes defined by you
    for upgrade. If you have defined very less number of batch processes for upgrade then also
    it will take more time.
    Check accordingly and let me know for further help.
    Regards,
    Abhishek
    Edited by: Abhishek Srivastava on May 9, 2010 10:57 AM

Maybe you are looking for