How are execution plan created with tables of stale stats

Hello
I would like to ask the group
1. How oracle handels the execution plan with table joins where some tables have stale stats
2. How would oracle handel execution plan where the table has histogram but the stats are stale.
Database version 11.1.0.7.0
Thanks
Arun

ALTER SESSION SET EVENTS='10053 trace name context forever, level 1';
by doing above before executing the SQL, you can see what & how CBO arrives at the actual execution plan

Similar Messages

  • How many sub-interfaces we are able to create with ISR 4321 ?

    Hi,
    I want to buy an ISR 4321 router. I would like to know how many sub-interfaces we are able to create with this router (802.1Q) ?
    http://www.cisco.com/c/dam/en/us/products/collateral/routers/4000-series-integrated-services-routers-isr/at-a-glance-c45-732425.pdf
    Thanks.
    Regards,
    Nurul Kabir KHAN

    Hello Nurul,
    The maximum number of interfaces (physical, subinterface, or virtual) a router can handle depends on the maximum number of SWIDBs that the router can use. This limit used to be set to 300 for all platforms, but with the emergence of features such as frame-relay subinterfaces, multilink Point-to-Point Protocol (PPP), and virtual private dial-up network (VPDN) that uses virtual interfaces, this value has proven to be insufficient on some platforms
    Maximum Number of interfaces
    Every interface uses an IDB. Therefore, the IDB limit indicates the maximum number of interfaces a router can handle.
    The IDB limit is, therefore, the answer to the common question "How many (sub)interfaces can be configured on this platform?"
    For further details, you can read this document
    Please don't forget to rate and mark as correct the helpful post!
    David castro 
    Regards,

  • How are deliveries automatically created from scheduling agreement?

    How are deliveries automatically created from the schedule line of the scheduling agreement? Can anybody explain this step by step? Can we use the code VL10BATCH for this purpose? If we can, how is this code used?
    Thanks in advance.

    hi
    A customer scheduling agreement is an outline agreement with the customer containing delivery quantities and dates. These are then entered as schedule lines in a delivery schedule. You can either create schedule lines when you create the scheduling agreement or you can create them later.
    You fulfill a scheduling agreement by creating the deliveries in the schedule as they become due. You process deliveries for a scheduling agreement in exactly the same way as you process a normal delivery. After you have carried out the delivery, the system updates the Delivered quantity field in the scheduling agreement item with the delivery quantity.
    The scheduling agreement is used as a basis for delivering a material. The customer sends in scheduling agreement releases, referred to as delivery schedules, at regular intervals to release a quantity of the material.
    Document Types
    To configure document types for scheduling agreements, choose Sales -> Sales Documents -> Sales Document Header -> Define sales document types in Customizing for Sales and Distribution.
    The R/3 System contains the following document types for component suppliers:
    LZ - Scheduling agreement with delivery schedules (no external agents)
    LZM - Scheduling agreement with delivery orders
    LK - Scheduling agreement with delivery schedules (external agents)
    ED - Delivery by external agent (consignment issue)
    EDKO - External agent correction
    RZ - Scheduling agreement returns (no external agents)
    KAZU - Consignment pick-up for external agents
    KRZU - Consignment returns for external agents
    Item Categories
    To configure item categories for scheduling agreements, choose Sales -> Sales Documents -> Sales Document Item -> Define item categories in Customizing for Sales and Distribution.
    The system determines the following item categories for the related document types in
    documents containing materials with item category group NORM:
    Item category LZN for scheduling agreement type LZ
    Item category LZMA for scheduling agreement type LZM
    Item category LKN for scheduling agreement type LK
    Item category KEN for document type ED
    Item category EDK for positive corrections (or the manual alternative EDK1 for
    negative corrections) for document type EDKO
    Item category REN for document type RZ
    Item category KAN for document type KAZU
    Item category KRN for document type KRZU
    Schedule Line Categories
    To configure schedule line categories for scheduling agreements, choose Sales -> Sales Documents -> Schedule lines -> Define or Assign schedule line categories in Customizing for Sales and Distribution.
    The R/3 System contains the following schedule line categories for component suppliers:
    L1, BN, L2, and CN for item category LZN
    E4, E0, E5, and BN for item category LKN
    L2 for item category LZMA (standard for delivery order processing)
    Schedule Line Types
    To configure schedule line types for scheduling agreements, choose Sales -> Sales Documents -> Scheduling Agreements with Delivery Schedules -> Define schedule line types in Customizing for Sales and Distribution.
    Creating Scheduling Agreements
    To create a scheduling agreement with delivery schedules:
    1. In the Sales menu http://Ext. choose Scheduling agreement ->Create.
    2. Enter scheduling agreement type LK (standard) or LZ (external agents) and the
    relevantorganizational data.
    3. Choose ENTER.
    4. Enter the following data:
    Sold-to or ship-to party number
    Purchase order or closing number
    Material or customer material number
    You can use the Description field to identify the scheduling agreement. For
    example,
    you could enter the model year for a particular production series.
    The system allows up to 35 digits for a customer material number.
    Rounding quantity
    Usage
    Choose Goto -> Header -> Sales to enter the usage at header level, or Goto ->
    Item-> Sales A to enter it at item level. The system proposes usage S, for series, as default in both cases.
    Planning indicator
    Choose Goto -> Header ->Sales.
    Target quantity
    Mark an item and choose Goto -> Item -> Sales A
    Partners
    For scheduling agreements with external agents , choose Goto -> Header
    ->Partners to enter the external agent as forwarding agent and special stock partner
    on the partner function screen.
    5. Create a delivery schedule
    Mark an item in the scheduling agreement and choose Goto -> Item -> <Delivery
    schedule>. Enter:
    A delivery schedule number and date
    The cumulative quantity received by the customer
    The last delivery confirmed by the customer
    A schedule line with date, time, and quantity
    To enter additional data in the delivery schedule, choose DlvSch.Hdr (delivery schedule header).
    configuration:
    img->SD->Sales->sales document->scheduling agreements with delivery schedules->
    step1: define schedule line types
    schedule line types are not schedule line categories. Schedule line types are used for information purpose only.
    stds are 1. fixed date 2. backlog 3. immediate requirement
    4. estimate
    step2: maintain planning delivery sched. instruct/splitting rules
    The planning delivery schedule is an internal delivery schedule used to plan requirement s more efficiently.  It is sub divided into 3 parts
    2.1 delivery schedule splitting rules
    2.2 dly schedule instrusctions
    2.3 assign dly schedule splitting rules
    step3: define sales documents type
    step4 : define item categories
    step5: define schedule line categories
    step6: maintain copy control
    PROCESS
    step1:  create scheduling agreement
    VA31
    enter SP,SH valid from, valid to,
    goto ITEM OVERVIEW tab
    enter material, rouding qty
    select ITEM  click on FORECAST DLSCH
    enter different dly dates and qties
    save it.
    step2: create sales order with reference to above
    step3: create delivery
    step4: create billing
    regards
    krishna

  • How are ePrint apps created and maintained?

    Just bougt a new small HP printer for my home office and discovered ePrint and apps support. And amazed, did not expect this technology in entry level small/home office type printers.
    And immediately new questions on what possibilities this opens up for printing applications
    What is required to create new apps?
    Is it possible to use this technology to add local office apps? I.e. to print site/office specific forms, trivial network interactions and maybe a bit more.
    Is subscription type apps supported/allowed, where the app is only available as part of a third party subscription package?
    A lot can be built around the email based ePrint service alone, but having ability to also do some simple interaction with the user at the printer would open for a wide range of new possible uses.

    Hi,
    Double post, please use:
        http://h30434.www3.hp.com/t5/Printer-All-in-One-Install-Setup/How-are-ePrint-apps-created-and-mainta...
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • Adding New Image and Text to an Existing Page Created with Tables

    Working in DW 5.5
    I'm trying to add a new image/link and small amount of text to an existing web page that was created with tables and centered.  I am using AP Divs. One for the image and one for the text.  Everything functions fine, but I can't get the new items to anchor and re-center with the rest of the page.  I am not able to overide the "Absolute Positioning".  I've tried different solutions from various tutorials but I can't seem to make them work with tables.
    The added items are a Facebook button and text.
    Go to:  http://www.sugarhollowfarms.net/index.html  to see the problem.
    Please help. I'm not that experienced.

    Make a back-up of the page first before you implement the changes below!
    Take the below bit of code from <div id="FBlogo">...... to.......... </div> <!-- end FBlogo -->
    and insert it directly after the opening div tag FWTableContainer and before your opening table tag (see position below):
    <div id="FWTableContainer209091602">
    <div id="FBlogo"><a href="#"><img src="images/fb.png" alt="fb" width="62" height="62" onClick="MM_openBrWindow('http://www.facebook.com/SugarHollowFarms','facebook','toolbar=yes,location=yes,status=yes, menubar=yes,scrollbars=yes,resizable=yes,width=1000,height=800')"></a>
    <p class="bodytext"><strong>Join us<br>
    on Facebook</strong></p></div><!-- end FBlogo -->
    <table border="0" cellpadding="0" cellspacing="0" width="800">
    Then add - position: relative; - to the FWTableContainer css (as shown below):
    #FWTableContainer209091602 {
        /* The master div to make sure that our popup menus get aligned correctly.  Be careful when playing with this one. */
        position:relative;
        margin:auto;
        width:800px;
        height:600px;
        text-align:left;
        top: 20px;
        background-image: url(images/homepage_new3.jpg);
        border: medium solid #336600;
        position: relative;
    Amend the css for FBlogo to as below:
    #FBlogo {
        position:absolute;
        left:700px;
        top:380px;
        width:91px;
        z-index:1;
        text-align: center;
    Amend the css for bodytext as below:
    .bodytext {
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 11px;
        line-height: 13px;
        margin: 0;
        padding: 0;

  • How to find report created with Report Painter?

    Hi!
    how to find report created with Report Painter?
    Here is the information that I have:
    Object filename, let's say <b>Y_P01_90000001</b>
    Report painter object <b>INV-102</b>
    The thing is that Library is unknown, thats why I can not find it via GR22...
    Any ideas?
    Will reward,
    Mindaugas

    Check in GRR3 under <b>INV</b> node...

  • How can I work lsmw with table control using mm01 appl?

    Hi
    How can I work lsmw with table control using mm01 appl?
    Is it difefrent the way we handle table control in BDC?
    Thank You

    Hi
    How can I work lsmw with table control using mm01 appl?
    Is it difefrent the way we handle table control in BDC?
    Thank You

  • Long time creating execution plan on wide table

    When executing a select on a wide table, with a column set and sparse columns, it always takes 12 seconds or longer to create the execution plan, even on an empty
    table. We used the database option ‘SET
    PARAMETERIZATION FORCED’ but it does not resolve the issue. We also tried ‘INDEXED
    VIEWS’ and ‘FILTERED INDEXES’
    without success. A covering index resolves the problem but this cannot be implemented as a general solution. We tested this on SQL Server 2008, 2008 R8, 2012 and 2014.
    The following queries (with their actual execution plans included in picture) all experience the problem:
    SELECT
    TOP (1)
      [ISN], [TIMESTAMP], [FIRMEN_NR], [SATZART], [TAB_SPERR_KZ],
    [DATUM_AEND], [UHRZEIT_AEND], [LFDNR],
      [BEARBEITER], [STEUERUNG], [UMSATZSCHLUESSEL], [US_W_S_KZ],
    [US_G_L_KZ], [VL_KZ], [RABATT_KZ],
      [INPUT_KZ], [ZAST_PFLICHTIGER_US], [BEWEG_SCHL1_1], [BEWEG_SCHL1_2],
    [BEWEG_SCHL1_3], [BEWEG_SCHL1_4],
    [BEWEG_SCHL1_5], [BEWEG_SCHL2_1], [BEWEG_SCHL2_2], [BEWEG_SCHL2_3], [BEWEG_SCHL2_4],
    [BEWEG_SCHL2_5],
      [WERT_KZ_1], [WERT_KZ_2], [WERT_KZ_3], [WERT_KZ_4], [WERT_KZ_5],
    [PREIS_KZ_1], [PREIS_KZ_2], [PREIS_KZ_3],
      [PREIS_KZ_4], [PREIS_KZ_5], [US_BEZ_1],
    [US_BEZ_2], [US_BEZ_3], [US_BEZ2_1], [US_BEZ2_2], [US_BEZ2_3],
      [GEGEN_KONTO], [EIN_AUSZAHLUNGS_KZ], [ABR_DRUCK_KZ], [UPFRONT_FEE],
    [LARG]
    FROM [IAM800_A]
    WHERE [IAM880_KEY1_N3]
    = 0x3033383830303532
    ORDER
    BY [ISN] ASC
    SELECT
    -- now without TOP (1)
      [ISN], [TIMESTAMP], [FIRMEN_NR], [SATZART], [TAB_SPERR_KZ],
    [DATUM_AEND], [UHRZEIT_AEND], [LFDNR],
      [BEARBEITER], [STEUERUNG], [UMSATZSCHLUESSEL], [US_W_S_KZ],
    [US_G_L_KZ], [VL_KZ], [RABATT_KZ],
      [INPUT_KZ], [ZAST_PFLICHTIGER_US], [BEWEG_SCHL1_1], [BEWEG_SCHL1_2],
    [BEWEG_SCHL1_3], [BEWEG_SCHL1_4],
    [BEWEG_SCHL1_5], [BEWEG_SCHL2_1], [BEWEG_SCHL2_2], [BEWEG_SCHL2_3], [BEWEG_SCHL2_4],
    [BEWEG_SCHL2_5],
      [WERT_KZ_1], [WERT_KZ_2], [WERT_KZ_3], [WERT_KZ_4], [WERT_KZ_5],
    [PREIS_KZ_1], [PREIS_KZ_2], [PREIS_KZ_3],
      [PREIS_KZ_4], [PREIS_KZ_5], [US_BEZ_1],
    [US_BEZ_2], [US_BEZ_3], [US_BEZ2_1], [US_BEZ2_2], [US_BEZ2_3],
      [GEGEN_KONTO], [EIN_AUSZAHLUNGS_KZ], [ABR_DRUCK_KZ], [UPFRONT_FEE],
    [LARG]
    FROM [IAM800_A]
    WHERE [IAM880_KEY1_N3]
    = 0x3033383830303532
    ORDER
    BY [ISN] ASC
    SELECT [ISN], [FIRMEN_NR]
    FROM [IAM800_A]
    WHERE [IAM880_KEY1_N3]
    = 0x3033383830303532
    ORDER
    BY [ISN] ASC
    Execution plans for above queries:

    Sorry my mistake. As these definitions fit within the size of a reply, I am posting them directly.
    Do note the use of a filegroup.
    PRINT 'Adding indexes to table [dbo].[IAM800_A]...'
    GO
    SET ANSI_NULLS              ON
    SET ANSI_PADDING            ON
    SET ANSI_WARNINGS           ON
    SET ARITHABORT              ON
    SET CONCAT_NULL_YIELDS_NULL ON
    SET NUMERIC_ROUNDABORT      OFF
    SET QUOTED_IDENTIFIER       ON
    GO
    -- Primary Key (ISN)
    ALTER TABLE [dbo].[IAM800_A] ADD CONSTRAINT [IAM800_A:ISN]
      PRIMARY KEY CLUSTERED ( [ISN] )
      ON [FG001_Data]
    GO
    -- Non-Clustered Indexes (Descriptors)
    CREATE UNIQUE NONCLUSTERED INDEX [IAM800_A:SUPER-DESCRIPTOR:IAM505-KEY1]
      ON [dbo].[IAM800_A] ( [IAM505_KEY1], [ISN] )
      ON [FG002_Index]
    GO
    CREATE UNIQUE NONCLUSTERED INDEX [IAM800_A:SUPER-DESCRIPTOR:IAM810-KEY1]
      ON [dbo].[IAM800_A] ( [IAM810_KEY1], [ISN] )
      ON [FG002_Index]
    GO
    CREATE UNIQUE NONCLUSTERED INDEX [IAM800_A:SUPER-DESCRIPTOR:IAM820-KEY1]
      ON [dbo].[IAM800_A] ( [IAM820_KEY1], [ISN] )
      ON [FG002_Index]
    GO
    CREATE UNIQUE NONCLUSTERED INDEX [IAM800_A:SUPER-DESCRIPTOR:IAM830-KEY1]
      ON [dbo].[IAM800_A] ( [IAM830_KEY1], [ISN] )
      ON [FG002_Index]
    GO
    CREATE UNIQUE NONCLUSTERED INDEX [IAM800_A:SUPER-DESCRIPTOR:IAM835-KEY1]
      ON [dbo].[IAM800_A] ( [IAM835_KEY1], [ISN] )
      ON [FG002_Index]
    GO
    CREATE UNIQUE NONCLUSTERED INDEX [IAM800_A:SUPER-DESCRIPTOR:IAM840-KEY1]
      ON [dbo].[IAM800_A] ( [IAM840_KEY1], [ISN] )
      ON [FG002_Index]
    GO
    CREATE UNIQUE NONCLUSTERED INDEX [IAM800_A:SUPER-DESCRIPTOR:IAM841-KEY1-ALT]
      ON [dbo].[IAM800_A] ( [IAM841_KEY1_ALT], [ISN] )
      ON [FG002_Index]
    GO
    CREATE UNIQUE NONCLUSTERED INDEX [IAM800_A:SUPER-DESCRIPTOR:IAM842-KEY1]
      ON [dbo].[IAM800_A] ( [IAM842_KEY1], [ISN] )
      ON [FG002_Index]
    GO
    CREATE UNIQUE NONCLUSTERED INDEX [IAM800_A:SUPER-DESCRIPTOR:IAM843-KEY1]
      ON [dbo].[IAM800_A] ( [IAM843_KEY1], [ISN] )
      ON [FG002_Index]
    GO
    CREATE UNIQUE NONCLUSTERED INDEX [IAM800_A:SUPER-DESCRIPTOR:IAM845-KEY1]
      ON [dbo].[IAM800_A] ( [IAM845_KEY1], [ISN] )
      ON [FG002_Index]
    GO
    CREATE UNIQUE NONCLUSTERED INDEX [IAM800_A:SUPER-DESCRIPTOR:IAM850-KEY1]
      ON [dbo].[IAM800_A] ( [IAM850_KEY1], [ISN] )
      ON [FG002_Index]
    GO
    CREATE UNIQUE NONCLUSTERED INDEX [IAM800_A:SUPER-DESCRIPTOR:IAM860-KEY1]
      ON [dbo].[IAM800_A] ( [IAM860_KEY1], [ISN] )
      ON [FG002_Index]
    GO
    CREATE UNIQUE NONCLUSTERED INDEX [IAM800_A:SUPER-DESCRIPTOR:IAM870-KEY1]
      ON [dbo].[IAM800_A] ( [IAM870_KEY1], [ISN] )
      ON [FG002_Index]
    GO
    CREATE UNIQUE NONCLUSTERED INDEX [IAM800_A:SUPER-DESCRIPTOR:IAM875-KEY1]
      ON [dbo].[IAM800_A] ( [IAM875_KEY1], [ISN] )
      ON [FG002_Index]
    GO
    CREATE UNIQUE NONCLUSTERED INDEX [IAM800_A:SUPER-DESCRIPTOR:IAM880-KEY1-N3]
      ON [dbo].[IAM800_A] ( [IAM880_KEY1_N3], [ISN] )
      ON [FG002_Index]
    GO
    CREATE UNIQUE NONCLUSTERED INDEX [IAM800_A:SUPER-DESCRIPTOR:IAM885-KEY1]
      ON [dbo].[IAM800_A] ( [IAM885_KEY1], [ISN] )
      ON [FG002_Index]
    GO
    CREATE UNIQUE NONCLUSTERED INDEX [IAM800_A:SUPER-DESCRIPTOR:IAM899-KEY1]
      ON [dbo].[IAM800_A] ( [IAM899_KEY1], [ISN] )
      ON [FG002_Index]
    GO
    CREATE UNIQUE NONCLUSTERED INDEX [IAM800_A:SUPER-DESCRIPTOR:IAM899-KEY2]
      ON [dbo].[IAM800_A] ( [IAM899_KEY2], [ISN] )
      ON [FG002_Index]
    GO
    CREATE UNIQUE NONCLUSTERED INDEX [IAM800_A:SUPER-DESCRIPTOR:IAM899-KEY3]
      ON [dbo].[IAM800_A] ( [IAM899_KEY3], [ISN] )
      ON [FG002_Index]
    GO
    CREATE UNIQUE NONCLUSTERED INDEX [IAM800_A:SUPER-DESCRIPTOR:IAM800-KEY1]
      ON [dbo].[IAM800_A] ( [IAM800_KEY1], [ISN] )
      ON [FG002_Index]
    GO
    CREATE UNIQUE NONCLUSTERED INDEX [IAM800_A:SUPER-DESCRIPTOR:IAM841-KEY1]
      ON [dbo].[IAM800_A] ( [IAM841_KEY1], [ISN] )
      ON [FG002_Index]
    GO
    CREATE UNIQUE NONCLUSTERED INDEX [IAM800_A:SUPER-DESCRIPTOR:IAM886-KEY1]
      ON [dbo].[IAM800_A] ( [IAM886_KEY1], [ISN] )
      ON [FG002_Index]
    GO
    CREATE UNIQUE NONCLUSTERED INDEX [IAM800_A:SUPER-DESCRIPTOR:IAM876-KEY1]
      ON [dbo].[IAM800_A] ( [IAM876_KEY1], [ISN] )
      ON [FG002_Index]
    GO

  • DAC: Clearing Failed Execution Plans and BAW Tables

    Hi all,
    Thank you for taking the time to review this post.
    Background
    Oracle BI Applications 7.9.6 Financial Analytics
    OLTP Source: E-Business Suite 11.5.10
    Steps Taken
    1. In DAC I have create a New Source Container based on Oracle 11.5.10
    2. I have updated the parameters in the Source System parameters
    3. Then I created a new Execution Plan as a copy of the Financials_Oracle 11.5.10 record and checked Full Load Always
    4. Added new Financials Subject Areas so that they have the new Source System
    5. Updated the Parameters tab with the new Source System and Generated the Parameters
    6. Build a new Execution Plan - Fails
    Confirmation for Rerun
    I want to confirm that the correct steps to Rerun an Execution Plan are as follows. I want to ensure that the OLTP (BAW) tables are truncated. I am experiencing duplicates in the W_GL_SEGMENTS_D (and DS) table even though there are no duplicates on the EBS.
    In DAC under the EXECUTE window do the following:
    - Navigate to the 'Current Run' tab.
    - Highlight the failed execution plan.
    - Right click and seleted 'Mark as completed.'
    - Enter the numbers/text in the box.
    Then:
    - In the top toolbar select Tools --> ETL Management --> Reset Data Sources
    - Enter the numbers/text in the boox.
    Your assistance is greatly appreciated.
    Kind Regards,
    Gary.

    Hi HTH,
    I can confirm that I do not have duplicates on the EBS side.
    I got the SQL Statement by:
    1. Open Mapping SDE_ORA_GL_SegmentDimension in the SDE_ORA11510_Adaptor.
    2. Review the SQL Statement in the Source Qualifier SQ_FND_FLEX_VALUES
    3. Run this SQL command against my EBS 11.5.10 source OLTP and the duplicates that are appearing in the W_GL_SEGMENT_DS table to not exist.
    SELECT
    FND_FLEX_VALUE_SETS.FLEX_VALUE_SET_ID,
    FND_FLEX_VALUE_SETS.FLEX_VALUE_SET_NAME,
    FND_FLEX_VALUES.FLEX_VALUE,
    MAX(FND_FLEX_VALUES_TL.DESCRIPTION),
    MAX(FND_FLEX_VALUES.LAST_UPDATE_DATE),
    MAX(FND_FLEX_VALUES.LAST_UPDATED_BY),
    MAX(FND_FLEX_VALUES.CREATION_DATE),
    MAX(FND_FLEX_VALUES.CREATED_BY),
    MAX(FND_FLEX_VALUES.START_DATE_ACTIVE),
    MAX(FND_FLEX_VALUES.END_DATE_ACTIVE),
    FND_FLEX_VALUE_SETS.LAST_UPDATE_DATE LAST_UPDATE_DATE1
    FROM
    FND_FLEX_VALUES, FND_FLEX_VALUE_SETS, FND_FLEX_VALUES_TL
    WHERE
    FND_FLEX_VALUES.FLEX_VALUE_SET_ID = FND_FLEX_VALUE_SETS.FLEX_VALUE_SET_ID AND FND_FLEX_VALUES.FLEX_VALUE_ID = FND_FLEX_VALUES_TL.FLEX_VALUE_ID AND
    FND_FLEX_VALUES_TL.LANGUAGE = 'US' AND
    (FND_FLEX_VALUES.LAST_UPDATE_DATE > TO_DATE('$$LAST_EXTRACT_DATE', 'MM/DD/YYYY HH24:MI:SS') OR
    FND_FLEX_VALUE_SETS.LAST_UPDATE_DATE > TO_DATE('$$LAST_EXTRACT_DATE', 'MM/DD/YYYY HH24:MI:SS'))
    GROUP BY
    FND_FLEX_VALUE_SETS.FLEX_VALUE_SET_ID,
    FND_FLEX_VALUE_SETS.FLEX_VALUE_SET_NAME,
    FND_FLEX_VALUES.FLEX_VALUE,
    FND_FLEX_VALUE_SETS.LAST_UPDATE_DATEHowever, one thing that I noticed was that I wanted to validate what the value of parameter $$LAST_EXTRACT_DATE is being populated with.
    My investigation took me along the following route:
    Checked what was set up in the DAC (+Dac Build AN 10.1.3.4.1.20090415.0146, Build date: April 15 2009+):
    1. Design View -> Source System Parameters -> $$LAST_EXTRACT_DATE = Runtime Variable =@DAC_SOURCE_PRUNED_REFRESH_TIMESTAMP (+Haven't been able to track this Variable down!)+
    2. Setup View -> DAC System Properties -> InformaticaParameterFileLocation -> $INFA_HOME/server/infa_shared/SrcFiles
    Reviewing one of the log files for my failing Task:
    $INFA_HOME/server/infa_shared/SrcFiles/ORA_11_5_10.DWRLY_OLAP.SDE_ORA11510_Adaptor.SDE_ORA_GLSegmentDimension_Full.txt
    I noticed that several variables near the bottom (including $$LAST_EXTRACT_DATE) have not been populated. This variable gets populated at Runtime but is there a log file that shows the value that gets populated? I would also have expected that there would have been a Subsitution Variable in the place of a Static Value.
    [SDE_ORA11510_Adaptor.SDE_ORA_GLSegmentDimension_Full]
    $$ANALYSIS_END=01/01/2011 12:59:00
    $$ANALYSIS_END_WID=20110101
    $$ANALYSIS_START=12/31/1979 01:00:00
    $$ANALYSIS_START_WID=19791231
    $$COST_TIME_GRAIN=QUARTER
    $$CURRENT_DATE=03/17/2010
    $$CURRENT_DATE_IN_SQL_FORMAT=TO_DATE('2010-03-17', 'YYYY-MM-DD')
    $$CURRENT_DATE_WID=20100317
    $$DATASOURCE_NUM_ID=4
    $$DEFAULT_LOC_RATE_TYPE=Corporate
    $$DFLT_LANG=US
    $$ETL_PROC_WID=21147868
    $$FILTER_BY_SET_OF_BOOKS_ID='N'
    $$FILTER_BY_SET_OF_BOOKS_TYPE='N'
    $$GBL_CALENDAR_ID=WPG_Calendar~Month
    $$GBL_DATASOURCE_NUM_ID=4
    $$GLOBAL1_CURR_CODE=AUD
    $$GLOBAL1_RATE_TYPE=Corporate
    $$GLOBAL2_CURR_CODE=GBP
    $$GLOBAL2_RATE_TYPE=Corporate
    $$GLOBAL3_CURR_CODE=MYR
    $$GLOBAL3_RATE_TYPE=Corporate
    $$HI_DATE=TO_DATE('3714-01-01 00:00:00', 'YYYY-MM-DD HH24:MI:SS')
    $$HI_DT=01/01/3714 12:00:00
    $$HR_ABSNC_EXTRACT_DATE=TO_DATE('1980-01-01 08:19:00', 'YYYY-MM-DD HH24:MI:SS')
    $$HR_WRKFC_ADJ_SERVICE_DATE='N'
    $$HR_WRKFC_EXTRACT_DATE=01/01/1970
    $$HR_WRKFC_SNAPSHOT_DT=TO_DATE('2004-01-01 00:00:00', 'YYYY-MM-DD HH24:MI:SS')
    $$HR_WRKFC_SNAPSHOT_TO_WID=20100317
    $$Hint1=
    $$Hint_Tera_Post_Cast=
    $$Hint_Tera_Pre_Cast=
    $$INITIAL_EXTRACT_DATE=06/27/2009
    $$INVPROD_CAT_SET_ID=27
    $$INV_PROD_CAT_SET_ID10=
    $$INV_PROD_CAT_SET_ID1=27
    $$INV_PROD_CAT_SET_ID2=
    $$INV_PROD_CAT_SET_ID3=
    $$INV_PROD_CAT_SET_ID4=
    $$INV_PROD_CAT_SET_ID5=
    $$INV_PROD_CAT_SET_ID6=
    $$INV_PROD_CAT_SET_ID7=
    $$INV_PROD_CAT_SET_ID8=
    $$INV_PROD_CAT_SET_ID9=
    $$LANGUAGE=
    $$LANGUAGE_CODE=E
    $$LAST_EXTRACT_DATE=
    $$LAST_EXTRACT_DATE_IN_SQL_FORMAT=
    $$LAST_TARGET_EXTRACT_DATE_IN_SQL_FORMAT=
    $$LOAD_DT=TO_DATE('2010-03-17 19:27:10', 'YYYY-MM-DD HH24:MI:SS')
    $$LOW_DATE=TO_DATE('1899-01-01 00:00:00', 'YYYY-MM-DD HH24:MI:SS')
    $$LOW_DT=01/01/1899 00:00:00
    $$MASTER_CODE_NOT_FOUND=
    $$ORA_HI_DATE=TO_DATE('4712-12-31 00:00:00', 'YYYY-MM-DD HH24:MI:SS')
    $$PROD_CAT_SET_ID10=
    $$PROD_CAT_SET_ID1=2
    $$PROD_CAT_SET_ID2=
    $$PROD_CAT_SET_ID3=
    $$PROD_CAT_SET_ID4=
    $$PROD_CAT_SET_ID5=
    $$PROD_CAT_SET_ID6=
    $$PROD_CAT_SET_ID7=
    $$PROD_CAT_SET_ID8=
    $$PROD_CAT_SET_ID9=
    $$PROD_CAT_SET_ID=2
    $$SET_OF_BOOKS_ID_LIST=1
    $$SET_OF_BOOKS_TYPE_LIST='NONE'
    $$SOURCE_CODE_NOT_SUPPLIED=
    $$TENANT_ID=DEFAULT
    $$WH_DATASOURCE_NUM_ID=999
    $DBConnection_OLAP=DWRLY_OLAP
    $DBConnection_OLTP=ORA_11_5_10
    $PMSessionLogFile=ORA_11_5_10.DWRLY_OLAP.SDE_ORA11510_Adaptor.SDE_ORA_GLSegmentDimension_Full.logThe following snippet was discovered in the DAC logs for the failed Task (Log file: SDE_ORA_GLSegmentDimension_Full_DETAIL.log):
    First error code [7004]
    First error message: [TE_7004 Transformation Parse Warning [FLEX_VALUE_SET_ID || '~' || FLEX_VALUE]; transformation continues...]Finally I can confirm that there was a Task Truncate Table W_GL_LINKAGE_INFORMATION_GS that was successfully executed in Task SDE_ORA_GL_LinkageInformation_Extract.
    Any further guidance greatly appreciated.
    Kind Regards,
    Gary.

  • How to change stored procedure with Table Valued Parameter

    I am not sure how to change the normal stored procedure with Table Value Parameter.Do I have to create a separate Table or do I have to create a datatype. Can you please help me with this
    ALTER PROCEDURE [dbo].[uspInsertorUpdateINF]
    @dp_id char(32),
    @dv_id char(32),
    @em_number char(12),
    @email varchar(50),
    @emergency_relation char(32),
    @option1 char(16),
    @status char(20),
    @em_id char(35),
    @em_title varchar(64),
    @date_hired datetime
    AS
    BEGIN
    SET NOCOUNT ON;
    MERGE [dbo].[em] AS [Targ]
    USING (VALUES (@dp_id, @dv_id , @em_number, @email, @emergency_relation, @option1, @status, @em_id, @em_title, @date_hired))
    AS [Sourc] (dp_id, dv_id, em_number, email, emergency_relation, option1, status, em_id, em_title, date_hired)
    ON [Targ].em_id = [Sourc].em_id
    WHEN MATCHED THEN
    UPDATE
    SET dp_id = [Sourc].dp_id,
    dv_id = [Sourc].dv_id,
    em_number = [Sourc].em_number,
    email = [Sourc].email,
    emergency_relation = [Sourc].emergency_relation,
    option1 = [Sourc].option1,
    status = [Sourc].status,
    em_title = [Sourc].em_title,
    date_hired = [Sourc].date_hired
    WHEN NOT MATCHED BY TARGET THEN
    INSERT (dp_id, dv_id, em_number, email, emergency_relation, option1, status, em_id, em_title,date_hired)
    VALUES ([Sourc].dp_id, [Sourc].dv_id, [Sourc].em_number, [Sourc].email, [Sourc].emergency_relation, [Sourc].option1, [Sourc].status, [Sourc].em_id, [Sourc].em_title, [Sourc].date_hired);
    END;

    It's not clear how you would change the procedure. But assuming that you want to replace the existing scalar parameters with tabular input, this is how you would do it. You first create a table type:
    CREATE TYPE  Insertor_type AS TABLE
        (dp_id                char(32),
         dv_id                char(32),
        em_number            char(12),
        email                varchar(50),
        emergency_relation   char(32),
        option1              char(16),
        status               char(20),
        em_id                char(35),
        em_title             varchar(64),
        date_hired           datetime)
    Then you change the procedure header:
    ALTER PROCEDURE [dbo].[uspInsertorUpdateINF] @tvp Insertor_type READONLY AS
    And finally you change the USING clause:
       USING (SELECT dp_id, dv_id , em_number, email, emergency_relation, option1, status, em_id, em_title, date_hired
              FROM   @tvp) AS [Sourc] ON [Targ].em_id = [Sourc].em_id
    The rest is fine as it is.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Oracle 10g Diff in execution plan query with binding var Vs without

    We recently did 10g upgrade. In 10g, execution plan differs for query with binding var(thru jdbc etc) Vs without it as given below. For query with binding var,
    it chooses poor execution plan(no index is used, full scan is done etc). everything worked fine in 9i. To rectify the problem, we have to hint query with right index,join etc. but i dont like this solution.
    I would rather prefer to correct database to choose right execution path instead of eacy query level. but not sure what causes the issue.
    Does anybody came across this issue? if so, Please share your experiences. Thanks for the help. Do let me know if you need more info.
    1. Query without binding bar:
    select * from test where col1 = :1 and col2 = :2
    1. Query without binding bar:
    select * from test where col1 = 'foo' and col2= 'bar'

    I am not an expert but in my humble opinion it is the developer's responsability to ensure the correct explain plan is used before deploying code to production, if the explain plan returned by the DB is bad, then the use of a hint is perfectly acceptable.
    Check this out: http://lcgapp.cern.ch/project/CondDB/snapshot/performance.html
    Excerpt:
    Bind variable peeking. If an SQL query contains bind variables, the optimal execution plan may depend on the values of those variables. When the Oracle query optimizer chooses the execution plan for such a query, it may indeed look at the values of all bind variables involved: this is known as "bind variable peeking".
    In summary, the execution plan used for a given SQL query cannot be predicted a priori because it depends on the presence and quality of statistics and on the values of bind variables used at the time the query was first executed (hard-parsed). As a consequence of this instability of execution plans, very different performances may be observed for the same SQL query. In COOL, this issue is addressed by adding Oracle hints to the queries, to make sure that the same (good) plan is used in all cases, even with unreliable statistics or unfavourable bind variables.
    Edited by: Rodolfo Ferrari on Jun 3, 2009 9:40 PM

  • HR Qualifications and Proficiencies how are they related ? Which table ?

    Hi all
    People have qualifications, qualifications have proficiencies, proficiencies have proficiency scales.
    Table HRP1001 contains personel numbers and the qualifiation objects that are related to them.
    Table HRP1000 contains loads of objects including the qualifications IDs with object type 'Q'.
    Table T77TS holds the Proficiency IDs and text.
    Table T77TP holds the Proficiency Scale IDs and Texts
    But where (which table) is the relationship between the qualification and its accociated proficiency stored.
    In short I am trying to report on people with a particular proficiency level for a particulat qualification but can not make the link between qualification and proficiency. It must be stored somwhere !
    cheers hugh

    Hi
    Just to qualify, I'm looking at qualifications associated with an employee, not those associated with a post so I don't think they are in IT0024.
    from Volkers post...
    "OTYPE P (person) related to OTYPE Q via RSIGN = A and RELAT = 032
    and OType Q is related to Person via B 032"
    But what links OType Q or A 032 to a proficiency and proficiency scale ?
    cheers Hugh

  • How to delete planned orders with partial quantities -reg.

    Dear Friends,
    the issue is
    we are not able to delete the old planned orders in MD16 for which partial quantities are existing.
    we require to delete these planned orders which are partially serviced to avoid creation of schedule lines  for excess quantities.
    Is there any way to delete the planned orders for which partial quantities are existing ?
    is there need to change any strategy to make MRP not to consider these planned orders with partial quantities for MRP run ?
    thanks
    Madhu Kiran.

    Hi Madhu,
    Are you getting any error message from MD16? if yes then please send us the messsage number with class. if you do not want that MRP to consider the planned orders then change the startegy 11 for these parts with mixed MRP indicator 1.
    try this deletion from MD12 also..planned order change mode. Let us know the fresh update.
    Regards
    TAJUDDIN

  • Can I (and how) convert a VI created with LV 7 in LV 5?

    I received two VI files created with Labview 7.0, one is VI 7.0, the other LV 6.1. My problem is that I only have LabView 5.0 installed (and no possibility of having the 7.0 release), and it doesn't open them (I get the "Error code: 8", message). Is there any possibility to convert these files to render them compatible with the LV 5.0 version? The VI is pretty complex and I'd like to avoid the struggle of recreating it from scratch.

    Your best bet is to zip the vi and post them here, if you can. Otherwise you will have to find someone with the various versions of LabVIEW as each version will only save to the previous. Additionally, there have been a few (a lot!) of features added that won't translate backwards, so if any of the vi's contains them they will be broken.
    Putnam Monroe
    Certified LabVIEW Developer
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion

  • Newbie: What UIcomponents are required to create my table and how?

    Hi,
    ** Not the CODE, I just want roughly what components need and how is the mechanism in JSF.**
    Sorry, I really have no idea.
    Meal Option: Beef, Chicken, Fish
    | Name | Morning | Lunch | Dinner |
    | Peter | | | |
    | Mary | | | |
    I want to write a table, if Peter login, he can select which one of meal option he want to eat in every meal. But he cannot select the options for Mary, and others rows/selections are fade. And other people can add themselves in the table.
    Using UISelectOne seems ugly. Do I have other option?
    How to fade the selection?
    Where can I get some calendar component? So that people can select specific date.

    I am not sure about the functional requirement, but I can at least tell that you can use either h:dataTable or h:panelGrid for a tabular display.
    About the calendar component, at least Tomahawk and RichFaces have one.

Maybe you are looking for