Baffled with performance

This is a new built system and I'm trying to play LOTR: Return of the King by EA, the games about 1+yrs old.  During play, the game will start to stutter, then on the monitor it shows "No Signal, going to sleep."  I can't get an image back up and have to reboot.  I don't have a clue whats wrong.  I should be playing this game with no issues as I built a good system and I'm playing an older game. I believe that I should be able to play todays games with no issues. Please tell me what you think.
I noticed that first the games sound and video are not matched.  Then the video starts to skip.  Then the screen goes off. Thanks for your help.
My specs are:
AMD Athlon 64 3000 Venice, 939 socket
MSI K8N Neo4-f mobo
Gigabyte ATI Radeon X700 Pro, 128mb vid card
Corsair 1024 membory on 1 dimm
Maxtor 100gb SATA Hd
Ultra 500W power supply
Pioneer DVDRW+/-

  You can find your +12V rail's power easily: Open up your case and have a look at the sticker with a table on it. Find the amount of A (Amps or ampère) under the +12V column in the table. (mine is 28A on +12V)
Since people usually start with replying to your posts with questions about the Amps on your +12V rail, you better set the characteristics of your PSU in your sig (like I did).
WHat type of Corsair memory do you have? Because I had to set my Vdimm (voltage on your memory modules) to 2.75V to get an stable system. (as is recommended by Corsair, but depends on your module type). If you know your module type then you can even set your memorytimings to Corasair's recommended settings. (like mine: 2,5-3-6-3 1T @ 2.75V for my 2x CMX512-3200C2Pt)
Try ATitool to find out your GPU temp (under Overclocking - Hardware Monitoring Graphs, I think). My Asus AX800Pro 256MB can get up to 70°C, and I have no problems.
This might be an open door, but are you using the latest ATi or Omega drivers? (because you should).

Similar Messages

  • Issues with performance and RAM previews

    Just did a major system upgrade from an iMac to a Mac Pro, and now I'm having an issue with performance...specifically with RAM previews.
    When I try to do a RAM preview with audio, it grinds my entire OS to a hault (can't switch apps, or click on much of anything). It eventually clears up enough for me to stop the RAM preview.
    So, I'm wondering if maybe my Memory & Multiprocessing settings might be off.
    Here are my system specs:
    Mac Pro
    2 x 2.4GHz 6-Core Intel Xeon (12 cores)
    64GB RAM
    ATI Radeon HD 5870
    AE CS6 (11.0.2.11)
    AE is installed on an SSD drive and the scratch disk is an internal HDD.
    Here are my AE Memory Settings:
    Here's my GPU Info:
    Let me know if any other info is needed...   

    You are reserving far too little RAM for other software.
    See this: "Performance tip: Don't starve your software of RAM."
    (Also, I recommend going through all of these materials: http://forums.adobe.com/thread/543440 )
    Regarding the SSD: Putting your application files on it means that applications load/boot faster. This is fine, but that benefit is just when you first start the application. If you put your cache files on it, then you get the benefit every time that something is read from or written to the cache---i.e., many times per second, for the entire time that you're working. Put your cache files on your SSD. BTW, there's no reason to not put your application files and caches on the same SSD. The reason that you split things across multiple disks is to prevent simultaneous reads and writes to and from a slow disk; the program loading from disk happens at a different time than reading and writing cache files, so there is no potential for conflict and slowdown.

  • Problem with performance in flash player 11.4.402.287

    Hi,
    We found the problem in 11.4.402.287 flash player. IN Debug version, Flex application works fine but in standard version we experience  problems with performance.
    This happens only in 11.4.402 version for Firefox. In another browsers and Flash player versions everything works fine.
    For example, 11.3 for Firefox does not have this problem.
    Application has a lot of small objects that receives rollover and rollout events and depend on object highlited some of these objects

    Hi,
    Can you try 11.5 beta? http://labs.adobe.com/downloads/flashplayer11-5.html
    thanks,
    Hitomi

  • [SSIS.Pipeline] Warning: Warning: Could not open global shared memory to communicate with performance DLL

    Hi All,
    I am running an SSIS solution that runs 5 packages in sequence.  Only one package fails because of the error:
    [SSIS.Pipeline] Warning: Warning: Could not open global shared memory to communicate with performance DLL; data flow performance counters are not available.  To resolve, run this package as an administrator, or on the system's console.
    I have added myself to the performance counters group. 
    I am running windows 7 with SSIS 2008.
    Any ideas would be appreciated.  I have read that some have disabled the warning, but I cannot figure out how to disable a warning. 
    Thanks.
    Ivan

    Hi Ivan,
    A package would not fail due the warning itself, speaking of which means the account executing it is not privileged to load the Perf counters, and should thus be safely ignored.
    To fix visit: http://support.microsoft.com/kb/2496375/en-us
    So, the package either has an error or it actually runs.
    Arthur My Blog

  • SSIS.Pipeline : Warning: Could not open global shared memory to communicate with performance DLL

    I am getting the following warning for my SSIS08 package:
    Could not open global shared memory to communicate with performance DLL; data flow performance counters are not available.  To resolve, run this package as an administrator, or on the system's console.
    I did check Warning in SSIS 2008 , but didn't find any solution.
    The package processes data and executes fine , but why do I see this warning? When I run this package on my machine, I see no such warning, it's only when I deploy it to our DEV SSIS server, I get this warning.
    Thanks,
    Sonal

    I am getting the following warning for my SSIS08 package:
    Could not open global shared memory to communicate with performance DLL; data flow performance counters are not available.  To resolve, run this package as an administrator, or on the system's console.
    I did check
    Warning in SSIS 2008 , but didn't find any solution.
    The package processes data and executes fine , but why do I see this warning? When I run this package on my machine, I see no such warning, it's only when I deploy it to our DEV SSIS server, I get this warning.
    Thanks,
    Sonal
    You have to include the account you use to execute the package in the performance counters group.
    SSIS Tasks Components Scripts Services | http://www.cozyroc.com/
    Could you tell me where is "performance counters" group, I can not find it.
    Thanks !

  • Need help with performance & memory tuning in a data warehousing environment

    Dear All,
    Good Day.
    We had successfully migrated from a 4 node half-rack V2 Exadata to a 2 node quarter rack X4-2 Exadata. However, we are facing some issues with performance only for few loads while others have in fact shown good improvement.
    1. The total memory on the OS is 250GB for each node (two compute nodes for a quarter rack).
    2. Would be grateful if someone could help me with the best equation to calculate the SGA and PGA ( and also in allocation of shared_pool, large_pool etc) or whether Automatic Memory Management is advisable?
    3. We had run exachk report which suggested us to configure huge pages.
    4. When we tried to increase the SGA to more than 30GB the system doesn't allow us to do so. We had however set the PGA to 85GB.
    5. Also, we had observed that some of the queries involving joins and indexes are taking longer time.
    Any advise would be greatly appreciated.
    Warm Regards,
    Vikram.

    Hi Vikram,
    There is no formula about SGA and PGA, but the best practices for OLTP environments is for a give ammount of memory (which cannot be up to 80% of total RAM from server) you should make 80% to SGA and 20% to PGA. For Data Warehouse envs, the values are like 60% SGA and 40% PGA or it can be up to 50%-50%. Also, some docs disencourage you to keep the database in Automatic Memory Management when you are using a big SGA (> 10G).
    As you are using a RAC environment, you should configure Huge Pages. And if the systems are not allowing you to increase memory, just take a look at the semaphore parameters, probably they are set lower values. And for the poor performance queries, we need to see explain plans, table structure and you would also analyze if smart scan is playing the game.
    Regards.

  • Issue with Performance Point Filters and SSRS when visibility is toggled

    I have a SSRS report that has the visibility toggled with the (+/-) sign. The report is SQL Server 2008 R2 / SharePoint Integrated in a SharePoint 2010 Site. The reports datasource is an Analysis Services database.
    I am displaying the report in a Performance Point Dashboard and am connecting it to Performance Point filters using the member unique name. The report filters correctly when the dashboard filters change. However, when I click to expand a plus sign to toggle
    the visibility, the report goes back to it's default filters of '[Dimension].[All]' and all data is returned, and the visibility is not expanded.
    I have confirmed that the report visibility toggling works in BIDS and via the report that is stored in SharePoint. I have also confirmed that it works when the report is stored in the native mode report server, and integrated with Performance
    Point in the same manner.
    So, I 'think' I have whittled the problem down to be the combination of SharePoint Integrated and Performance Point.
    Anyone have any ideas?
    Jewels

    Hi,
    I am having a similar issue with PerformancePoint SSRS and visibility togle. Were you able to figure this out?
    I have a report which calls a sub report. When I click on the report it passes parameters to sub report which works fine. But as soon as I click the visibility toggle, it goes back to default. Strange thing is that it works in PerformancePoint as a 
    stand alone report (sub report alone in PP). Just when it is a sub report and parameters are passed through url this issue happens.
    Any suggestions are welcome. I have spent hours trying to figure this one out.

  • ECM integration with Performance Management

    I am trying to integrate the Appraisals with ECM. The required configuration is done in SPRO. The problem which I face is that the number assigned to the appraisal template is different in the development box and in the quality box. I tried to configure external number range for appraisal template but the system still automatically asigns the internal number.
    Has any one of you successfully  done the ECM integration with Performance Manageemnt? How did you go about the different number issue?

    Could not get the number range working. Transported the templates instead.

  • Is anyone else having an issue with performance in Mavericks?

    My computer is brand new. Just bought it a week ago. Since I installed Mavericks, I have been having very big issues with performance. It now takes forever to start up, it loads programs extremely slowly, and it randomly freezes for a few minutes at a time. Is anyone else having these issues? I have already re-installed the OS. What else can I do?

    Mavericks has certainly made up for all the problem-free updates I've had in the past! I have significant system drag (endless spinning beachballs....), Safari is incredibly slow, Mail - gmail & icloud - almost unusable. I'm desperately hoping the first OS update fixes things.

  • Problem with performance in a code.

    Hi People! I have problems with the performance of this program. The tables that I use have much data and the program take two hours to finish.
    Please, some one tell me how can I make a better performance.
    Thanks!
    This is the program:
    TABLES:
            faglflext,         "Saldos mensuales por cta. 
                                contable y prf center.
            zavg_bal_table,
            skat.              "Chart of accounts
    ********************INTERNAL TABLE DEFINITION***************************
    DATA: BEGIN OF t_itab1 OCCURS 0.
    DATA: rbukrs      TYPE faglflext-rbukrs. "Company Code
    DATA: racct       TYPE faglflext-racct. "Account ID
    DATA: prctr       TYPE faglflext-prctr. "Profit Center
    DATA: kslvt       TYPE faglflext-kslvt. "Total of the period in group currency
    DATA: ksl01       TYPE faglflext-ksl01. "Total of the period in group currency
    DATA: ksl02       TYPE faglflext-ksl02. "Total of the period in group currency
    DATA: ksl03       TYPE faglflext-ksl03. "Total of the period in group currency
    DATA: ksl04       TYPE faglflext-ksl04. "Total of the period in group currency
    DATA: ksl05       TYPE faglflext-ksl05. "Total of the period in group currency
    DATA: ksl06       TYPE faglflext-ksl06. "Total of the period in group currency
    DATA: ksl07       TYPE faglflext-ksl07. "Total of the period in group currency
    DATA: ksl08       TYPE faglflext-ksl08. "Total of the period in group currency
    DATA: ksl09       TYPE faglflext-ksl09. "Total of the period in group currency
    DATA: ksl10       TYPE faglflext-ksl10. "Total of the period in group currency
    DATA: ksl11       TYPE faglflext-ksl11. "Total of the period in group currency
    DATA: ksl12       TYPE faglflext-ksl12. "Total of the period in group currency
    DATA: ksl13       TYPE faglflext-ksl13. "Total of the period in group currency
    DATA: ksl14       TYPE faglflext-ksl14. "Total of the period in group currency
    DATA: ksl15       TYPE faglflext-ksl15. "Total of the period in group currency
    DATA: ksl16       TYPE faglflext-ksl16. "Total of the period in group currency
    DATA: rldnr       TYPE faglflext-rldnr. "Ledger in GL Accounting
    DATA: rtcur       TYPE faglflext-rtcur. "Currency Key
    DATA: txt20       TYPE skat-txt20.      "Description Text
    DATA: saknr       TYPE skat-saknr.      "G/L account number
    DATA: ktopl       TYPE skat-ktopl.      "Chart of Accounts
    DATA: rpmax       TYPE faglflext-rpmax. "Period
    DATA: total_sum   LIKE faglflext-ksl01. "Amount of the first month
    DATA: ryear       LIKE faglflext-ryear. "Fiscal Year
    DATA: year        LIKE faglflext-ryear. "Past Year
    DATA: day_a       TYPE sy-datum.
    DATA: per_day     TYPE rr_umper.
    DATA: average     TYPE vtcur12.
    DATA: agregate    TYPE vtcur12.
    DATA: accumulate  TYPE vtcur12.
    DATA: average_sap TYPE rr_umper.
    DATA: END OF t_itab1.
    DATA: BEGIN OF t_itab2 OCCURS 0.
    DATA: rbukrs    TYPE faglflext-rbukrs. "Company Code
    DATA: racct     TYPE faglflext-racct. "Account ID
    DATA: prctr     TYPE faglflext-prctr. "Profit Center
    DATA: kslvt     TYPE faglflext-kslvt. "Total of the period in group currency
    DATA: ksl01     TYPE faglflext-ksl01. "Total of the period in group currency
    DATA: ksl02     TYPE faglflext-ksl02. "Total of the period in group currency
    DATA: ksl03     TYPE faglflext-ksl03. "Total of the period in group currency
    DATA: ksl04     TYPE faglflext-ksl04. "Total of the period in group currency
    DATA: ksl05     TYPE faglflext-ksl05. "Total of the period in group currency
    DATA: ksl06     TYPE faglflext-ksl06. "Total of the period in group currency
    DATA: ksl07     TYPE faglflext-ksl07. "Total of the period in group currency
    DATA: ksl08     TYPE faglflext-ksl08. "Total of the period in group currency
    DATA: ksl09     TYPE faglflext-ksl09. "Total of the period in group currency
    DATA: ksl10     TYPE faglflext-ksl10. "Total of the period in group currency
    DATA: ksl11     TYPE faglflext-ksl11. "Total of the period in group currency
    DATA: ksl12     TYPE faglflext-ksl12. "Total of the period in group currency
    DATA: ksl13     TYPE faglflext-ksl13. "Total of the period in group currency
    DATA: ksl14     TYPE faglflext-ksl14. "Total of the period in group currency
    DATA: ksl15     TYPE faglflext-ksl15. "Total of the period in group currency
    DATA: ksl16     TYPE faglflext-ksl16. "Total of the period in group currency
    DATA: rldnr     TYPE faglflext-rldnr. "Ledger in GL Accounting
    DATA: rtcur     TYPE faglflext-rtcur. "Currency Key
    DATA: txt20     TYPE skat-txt20.      "Description Text
    DATA: saknr     TYPE skat-saknr.      "G/L account number
    DATA: ktopl     TYPE skat-ktopl.      "Chart of Accounts
    DATA: rpmax     TYPE faglflext-rpmax. "Period
    DATA: total_sum LIKE faglflext-ksl01. "Amount of the first month
    DATA: ryear     LIKE faglflext-ryear. "Fiscal Year
    DATA: year      LIKE faglflext-ryear. "Past Year
    DATA: END OF t_itab2.
    DATA: BEGIN OF t_zavg OCCURS 0.
    DATA: bukrs       TYPE bukrs.
    DATA: racct       TYPE racct.
    DATA: prctr       TYPE prctr.
    DATA: day_a       TYPE sy-datum.
    DATA: per_day     TYPE rr_umper.
    DATA: average     TYPE vtcur12.
    DATA: agregate    TYPE vtcur12.
    DATA: accumulate  TYPE vtcur12.
    DATA: average_sap TYPE rr_umper.
    DATA: END OF t_zavg.
    DATA: BEGIN OF t_zavg2 OCCURS 0.
    DATA: day_a       TYPE sy-datum.
    DATA: racct       TYPE racct.
    DATA: prctr       TYPE prctr.
    DATA: per_day     TYPE rr_umper.
    DATA: average     TYPE vtcur12.
    DATA: agregate    TYPE vtcur12.
    DATA: accumulate  TYPE vtcur12.
    DATA: average_sap TYPE rr_umper.
    DATA: END OF t_zavg2.
    *                      Variable definition                             *
    DATA: balance_month_01          LIKE faglflext-ksl01.
    DATA: balance_month_02          LIKE faglflext-ksl01.
    DATA: balance_month_03          LIKE faglflext-ksl01.
    DATA: balance_month_04          LIKE faglflext-ksl01.
    DATA: balance_month_05          LIKE faglflext-ksl01.
    DATA: balance_month_06          LIKE faglflext-ksl01.
    DATA: balance_month_07          LIKE faglflext-ksl01.
    DATA: balance_month_08          LIKE faglflext-ksl01.
    DATA: balance_month_09          LIKE faglflext-ksl01.
    DATA: balance_month_10          LIKE faglflext-ksl01.
    DATA: balance_month_11          LIKE faglflext-ksl01.
    DATA: balance_month_12          LIKE faglflext-ksl01.
    DATA: balance_month_13          LIKE faglflext-ksl01.
    DATA: current_average_balance   LIKE zavg_bal_table-average.
    DATA: current_balance           LIKE faglflext-ksl01.
    DATA: current_activity_balance  LIKE faglflext-ksl01.
    DATA: current_aggregate_balance LIKE zavg_bal_table-agregate.
    DATA: average_balance_ytd       LIKE zfintbco0001-period_avg_12.
    DATA: count                     TYPE i.
    DATA: wa_itab                   LIKE LINE OF t_itab1.
    DATA: wa_low                    LIKE LINE OF t_itab1.
    DATA: wa_high                   LIKE LINE OF t_itab1.
    DATA: wa_itab2                  LIKE LINE OF t_itab2.
    DATA: wa_zavg2                  LIKE LINE OF t_zavg2.
    DATA: wa_zavg                   LIKE LINE OF t_zavg.
    DATA: t_acum                    TYPE i.
    DATA: companycode               TYPE faglflext-rbukrs.
    DATA: descripcion               TYPE skat-txt20.
    DATA: oref                      TYPE REF TO cx_root,
          emsg                      TYPE zedesc,
          param1                    TYPE zparm,
          parm1                     TYPE zparm.
    DATA: avg1                      TYPE faglflext-ksl01.  "AVG = AVERAGE
    DATA: avg2                      TYPE faglflext-ksl01.
    DATA: avg3                      TYPE faglflext-ksl01.
    DATA: avg4                      TYPE faglflext-ksl01.
    DATA: avg5                      TYPE faglflext-ksl01.
    DATA: avg6                      TYPE faglflext-ksl01.
    DATA: avg7                      TYPE faglflext-ksl01.
    DATA: avg8                      TYPE faglflext-ksl01.
    DATA: avg9                      TYPE faglflext-ksl01.
    DATA: avg10                     TYPE faglflext-ksl01.
    DATA: avg11                     TYPE faglflext-ksl01.
    DATA: avg12                     TYPE faglflext-ksl01.
    DATA: conteo                    TYPE i.
    DATA: conteo2                   TYPE i.
    DATA: numerocta                 TYPE faglflext-racct.
    DATA: profitcenter              TYPE faglflext-prctr.
    DATA: average_month_01          TYPE zavg_bal_table-average.
    DATA: aggregate_month_01        TYPE zavg_bal_table-agregate.
    DATA: average_month_02          TYPE zavg_bal_table-average.
    DATA: aggregate_month_02        TYPE zavg_bal_table-agregate.
    DATA: average_month_03          TYPE zavg_bal_table-average.
    DATA: aggregate_month_03        TYPE zavg_bal_table-agregate.
    DATA: average_month_04          TYPE zavg_bal_table-average.
    DATA: aggregate_month_04        TYPE zavg_bal_table-agregate.
    DATA: average_month_05          TYPE zavg_bal_table-average.
    DATA: aggregate_month_05        TYPE zavg_bal_table-agregate.
    DATA: average_month_06          TYPE zavg_bal_table-average.
    DATA: aggregate_month_06        TYPE zavg_bal_table-agregate.
    DATA: average_month_07          TYPE zavg_bal_table-average.
    DATA: aggregate_month_07        TYPE zavg_bal_table-agregate.
    DATA: average_month_08          TYPE zavg_bal_table-average.
    DATA: aggregate_month_08        TYPE zavg_bal_table-agregate.
    DATA: average_month_09          TYPE zavg_bal_table-average.
    DATA: aggregate_month_09        TYPE zavg_bal_table-agregate.
    DATA: average_month_10          TYPE zavg_bal_table-average.
    DATA: aggregate_month_10        TYPE zavg_bal_table-agregate.
    DATA: average_month_11          TYPE zavg_bal_table-average.
    DATA: aggregate_month_11        TYPE zavg_bal_table-agregate.
    DATA: average_month_12          TYPE zavg_bal_table-average.
    DATA: aggregate_month_12        TYPE zavg_bal_table-agregate.
    DATA: ano                       TYPE i.
    DATA: ano_pasado                TYPE i.
    DATA: ano_corriente             TYPE i.
    DATA: mesdia                    TYPE adb_pfrom.
    DATA: firstline                 TYPE i.
    DATA: kslvt                     TYPE faglflext-kslvt.
    DATA: ksl01                     TYPE faglflext-ksl01.
    DATA: ksl02                     TYPE faglflext-ksl02.
    DATA: ksl03                     TYPE faglflext-ksl03.
    DATA: ksl04                     TYPE faglflext-ksl04.
    DATA: ksl05                     TYPE faglflext-ksl05.
    DATA: ksl06                     TYPE faglflext-ksl06.
    DATA: ksl07                     TYPE faglflext-ksl07.
    DATA: ksl08                     TYPE faglflext-ksl08.
    DATA: ksl09                     TYPE faglflext-ksl09.
    DATA: ksl10                     TYPE faglflext-ksl10.
    DATA: ksl11                     TYPE faglflext-ksl11.
    DATA: ksl12                     TYPE faglflext-ksl12.
    DATA: ksl13                     TYPE faglflext-ksl13.
    DATA: ksl14                     TYPE faglflext-ksl14.
    DATA: ksl15                     TYPE faglflext-ksl15.
    DATA: ksl16                     TYPE faglflext-ksl16.
    DATA: itab_kslvt                TYPE faglflext-kslvt.
    DATA: itab_ksl01                TYPE faglflext-ksl01.
    DATA: itab_ksl02                TYPE faglflext-ksl02.
    DATA: itab_ksl03                TYPE faglflext-ksl03.
    DATA: itab_ksl04                TYPE faglflext-ksl04.
    DATA: itab_ksl05                TYPE faglflext-ksl05.
    DATA: itab_ksl06                TYPE faglflext-ksl06.
    DATA: itab_ksl07                TYPE faglflext-ksl07.
    DATA: itab_ksl08                TYPE faglflext-ksl08.
    DATA: itab_ksl09                TYPE faglflext-ksl09.
    DATA: itab_ksl10                TYPE faglflext-ksl10.
    DATA: itab_ksl11                TYPE faglflext-ksl11.
    DATA: itab_ksl12                TYPE faglflext-ksl12.
    DATA: itab_ksl13                TYPE faglflext-ksl13.
    DATA: itab_ksl14                TYPE faglflext-ksl14.
    DATA: itab_ksl15                TYPE faglflext-ksl15.
    DATA: itab_ksl16                TYPE faglflext-ksl16.
    DATA: itab_bal00                TYPE faglflext-kslvt.
    DATA: itab_bal01                TYPE faglflext-ksl01.
    DATA: itab_bal02                TYPE faglflext-ksl02.
    DATA: itab_bal03                TYPE faglflext-ksl03.
    DATA: itab_bal04                TYPE faglflext-ksl04.
    DATA: itab_bal05                TYPE faglflext-ksl05.
    DATA: itab_bal06                TYPE faglflext-ksl06.
    DATA: itab_bal07                TYPE faglflext-ksl07.
    DATA: itab_bal08                TYPE faglflext-ksl08.
    DATA: itab_bal09                TYPE faglflext-ksl09.
    DATA: itab_bal10                TYPE faglflext-ksl10.
    DATA: itab_bal11                TYPE faglflext-ksl11.
    DATA: itab_bal12                TYPE faglflext-ksl12.
    DATA: itab_bal13                TYPE faglflext-ksl13.
    DATA: itab_bal14                TYPE faglflext-ksl14.
    DATA: itab_bal15                TYPE faglflext-ksl15.
    DATA: itab_bal16                TYPE faglflext-ksl16.
    DATA: numero_de_cta             TYPE  faglflext-racct.
    DATA: company_code              TYPE  faglflext-rbukrs.
    DATA: profit_center             TYPE  faglflext-prctr.
    DATA: currency_code             TYPE  faglflext-rtcur.
    DATA: average_month             TYPE  zavg_bal_table-average.
    DATA: aggregate_month           TYPE  zavg_bal_table-agregate.
    * VARIABLES FOR INTERFACES LOG
    DATA: v_tipo                    TYPE zzfinbc85typede VALUE 1. "Tipo 1 = OUT
    DATA: v_nom_int(9)              TYPE c VALUE 'ZFINFII00'. "Nombre de la interfaz
    DATA: v_modulo(2)               TYPE c VALUE 'FI'. "Modulo
    DATA: v_comp_code(4)            TYPE c VALUE '0000'. "Compañia 0000
    DATA: v_alegacy(4)              TYPE c VALUE '0001'.
    DATA: v_fecha                   TYPE d.
    DATA: v_error2(3)               TYPE c VALUE 'E'.
    DATA: l_sys_exc                 TYPE REF TO  cx_ai_system_fault.
    DATA: last_day                  TYPE sy-datum.
    DATA: numero_mes                TYPE i.
    DATA: ryear                     TYPE faglflext-ryear.
    DATA: numero_cuenta             TYPE faglflext-racct.
    DATA: numero_profit             TYPE faglflext-prctr.
    DATA: day_a                     TYPE i.
    DATA: text(20)                  TYPE c.
    *Acknowledge
    DATA: lo_async_messaging        TYPE REF TO if_wsprotocol_async_messaging,
    lo_msg_id_protocol              TYPE REF TO if_wsprotocol_message_id,
    l_msg_id                        TYPE sxmsguid,
    l_ack_request                   TYPE prx_ack_request_details.
    DATA: fecha                     TYPE sy-datum.
    DATA: fecha_ejecutandose        TYPE sy-datum.
    DATA: fecha_corriente           TYPE i.
    DATA: jan_fin                   TYPE sy-datum.
    DATA: feb_fin                   TYPE sy-datum.
    DATA: febb_fin                  TYPE sy-datum.
    DATA: mar_fin                   TYPE sy-datum.
    DATA: apr_fin                   TYPE sy-datum.
    DATA: may_fin                   TYPE sy-datum.
    DATA: jun_fin                   TYPE sy-datum.
    DATA: jul_fin                   TYPE sy-datum.
    DATA: aug_fin                   TYPE sy-datum.
    DATA: sep_fin                   TYPE sy-datum.
    DATA: oct_fin                   TYPE sy-datum.
    DATA: nov_fin                   TYPE sy-datum.
    DATA: dec_fin                   TYPE sy-datum.
    DATA: porciento1                TYPE faglflext-ksl01.
    DATA: porciento2                TYPE faglflext-ksl01.
    DATA: porciento3                TYPE faglflext-ksl01.
    DATA: porciento4                TYPE faglflext-ksl01.
    DATA: porciento5                TYPE faglflext-ksl01.
    DATA: porciento6                TYPE faglflext-ksl01.
    DATA: porciento7                TYPE faglflext-ksl01.
    DATA: porciento8                TYPE faglflext-ksl01.
    DATA: porciento9                TYPE faglflext-ksl01.
    DATA: porciento10               TYPE faglflext-ksl01.
    DATA: porciento11               TYPE faglflext-ksl01.
    DATA: porciento12               TYPE faglflext-ksl01.
    data: mes(2)                    type c value '00'.
    data: mes_anterior              type sy-datum.
    data: ceros(2)                  type c.
    *DEFINICION DE RANGOS.
    RANGES profit FOR faglflext-prctr.
    RANGES account FOR faglflext-racct.
    RANGES end_month FOR zavg_bal_table-day_a.
    *Sele asigna el fin de mes a cada variable para que sea utilizada luego en el programa.
    jan_fin = '20060131'.
    feb_fin = '20060228'.
    febb_fin = '20060229'.
    mar_fin = '20060331'.
    apr_fin = '20060430'.
    may_fin = '20060531'.
    jun_fin = '20060630'.
    jul_fin = '20060731'.
    aug_fin = '20060831'.
    sep_fin = '20060930'.
    oct_fin = '20061031'.
    nov_fin = '20061130'.
    dec_fin = '20061231'.
    *Inicializando las variables a valor '0'.
    balance_month_01          = 0.
    balance_month_02          = 0.
    balance_month_03          = 0.
    balance_month_04          = 0.
    balance_month_05          = 0.
    balance_month_06          = 0.
    balance_month_07          = 0.
    balance_month_08          = 0.
    balance_month_09          = 0.
    balance_month_10          = 0.
    balance_month_11          = 0.
    balance_month_12          = 0.
    balance_month_13          = 0.
    current_average_balance   = 0.
    current_balance           = 0.
    current_activity_balance  = 0.
    current_aggregate_balance = 0.
    average_balance_ytd       = 0.
    count                     = 0.
    t_acum                    = 0.
    conteo                    = 1.
    conteo2                   = 1.
    ceros                     = '00'.
    *THIS IS A STRUCTURE NAMED E_SKAT. WITH THE TWO FIELDS NAMED SAKNR     *
    *AND TXT20.                                                            *
    TYPES: BEGIN OF e_skat,
             ktopl LIKE skat-ktopl,
             saknr LIKE skat-saknr,
             txt20 LIKE skat-txt20,
           END OF e_skat.
    *         SORT THE STRUCTURE IN ORDER FOR BEST PERFORMANCE             *
    DATA it_skat TYPE SORTED TABLE OF e_skat
         WITH UNIQUE KEY saknr WITH HEADER LINE.
    DATA: wa_skat                  LIKE LINE OF it_skat.
    *           CONSTANT DEFINITIONS (HAVE THE SAME VALUE EVER)            *
    CONSTANTS:
          etype                     TYPE zetype  VALUE 'INTER',       "Utilizada con la funcion de error
          innum                     TYPE zintnum VALUE 'ZFINFII00',       "Utilizada con la funcion de error
          inname                    TYPE zinname VALUE 'Sendero and Cognos Interfase', "Utilizada con la funcion de error
          c_cuenta(10)              TYPE c VALUE '0000270011',
          c_ol(2)                   TYPE c VALUE '0L',
          c_chart(4)                TYPE c VALUE 'CAPI',              "Chart Of Accounts
          c_ceros(17)               TYPE n VALUE '00000000000000.00', "ceros
          acct_cog(10)              TYPE n VALUE '0000270011',        "Numero de cta. que se busca en COGNOS.
          capi(4)                   TYPE c VALUE 'CAPI'.
    *                PARAMETROS de entrada para el usuario.                *
    SELECTION-SCREEN BEGIN OF BLOCK bl1 WITH FRAME TITLE text-001.
    PARAMETERS:
               p_date   TYPE sy-datum DEFAULT sy-datum.       "Fecha de corrida
    IF p_date IS INITIAL.
      p_date = sy-datum.
    ENDIF.
    *     PARAMETEROS DE ENTRADA POR MEDIO DE RANGOS PARA EL USUARIO       *
    SELECT-OPTIONS:
                p_bukrs FOR faglflext-rbukrs.
    SELECTION-SCREEN END OF BLOCK bl1.
    *IF THE USER SELECT THIS CHECK BOX WITH A CHECK MARK THE PROGRAM       *
    *SUBMIT THIS INTERFACE TO.                                             *
    SELECTION-SCREEN BEGIN OF BLOCK bl2 WITH FRAME TITLE text-002.
    PARAMETERS:
              p_cognos    TYPE c AS CHECKBOX.
    SELECTION-SCREEN END OF BLOCK bl2.
    * This statement calls the subroutine specified, SENDERO or COGNOS     *
    IF p_cognos IS INITIAL.
      PERFORM sendero.
    ELSE.
      PERFORM cognos.
    ENDIF.
    EXIT.
    *                      SENEDERO INTERFACE                              *
    FORM sendero.
    *ESTE SELECT EXTRAE LA DATA DE LA TABLA FAGFLEXT Y SKAT
      DATA: msgdetails     TYPE zgl_sendero_file_dt_tab.
      DATA: wa_msgdetails  LIKE LINE OF msgdetails.
      SELECT a~ryear a~rpmax a~rtcur a~racct a~rbukrs a~prctr
             a~kslvt a~ksl01 a~ksl02 a~ksl03 a~ksl04 a~ksl05
             a~ksl06 a~ksl07 a~ksl08 a~ksl09 a~ksl10 a~ksl11
             a~ksl12 a~ksl13 a~ksl14 a~ksl15 a~ksl16 b~saknr
             b~txt20 b~ktopl
            FROM  faglflext AS a INNER JOIN skat AS b ON a~racct = b~saknr AND a~rclnt = b~mandt
            CLIENT SPECIFIED INTO CORRESPONDING FIELDS OF TABLE t_itab1
        WHERE  a~rclnt = sy-mandt
          AND  a~rbukrs IN p_bukrs
          AND  a~rldnr  = '0L'
          AND  a~ryear  = p_date+0(4)
          AND  b~spras  EQ sy-langu
          AND  b~ktopl  EQ 'CAPI'.
    *SI NO ENCUENTRA DATA EN LA TABLA FAGLFLEXT ENVIA EL MENSAJE DE ERROR
    *A LA TABLA DE ERROR.
      IF sy-subrc <> 0.
        MOVE 'No data found in FLAGLFLEXT or ZAVG_BAL_TABLE for this process.'(e01) TO emsg.
    *    PERFORM call_error_function USING emsg.
    *    PERFORM call_log_function_send.
        MESSAGE: emsg TYPE 'E'.
      ENDIF.
    *EN ESTE SELECT SACO LA DESCRIPCION DE LA CUENTA
      SORT t_itab1 BY racct ASCENDING.
      DELETE t_itab1 WHERE racct = ''.
      SORT t_itab1 BY prctr ASCENDING.
      CLEAR t_itab1.
      READ TABLE t_itab1 INTO wa_low  INDEX 1 .
      DESCRIBE TABLE t_itab1 LINES firstline.
      READ TABLE t_itab1 INTO wa_high INDEX firstline.
      IF wa_high-prctr = 'DUMMY'.                      "SI EL ULTIMO RECORD CONTIENE ALGUN 'DUMMY' ESCOJER EL RECORD DE ARRIBA.
        firstline = firstline - 1.                     "CONTIENE EL NUMERO DEL INDICE.
        READ TABLE t_itab1 INTO wa_high INDEX firstline.
      ENDIF.
      profit-sign    = 'I'.
      profit-option  = 'BT'.
      profit-low     = wa_low-prctr.
      profit-high    = wa_high-prctr.
      APPEND profit.
    *COMPUTOS PARA CALCULAR EL ULTIMO DIA DEL MES.
      fecha       = p_date.
      numero_mes = p_date+4(2).                       "PASO NUMERO DEL MES A VARIABLE.
      p_date+4(2) = p_date+4(2) - numero_mes.         "LE RESTO EL MISMO MES A LA FECHA PARA COMENZAR EL CONTEO DESDE EL MES 1.
      DO numero_mes TIMES.                           "SE VA A EJECUTAR LAS MISMAS VECES DEL NUMERO DEL MES.
        p_date+4(2) = p_date+4(2) + 1.                  "SE INCREMENTA EL NUMERO DEL MES.
        CALL FUNCTION 'SG_PS_GET_LAST_DAY_OF_MONTH'    "Obtiene el ultimo numero del mes.
          EXPORTING
            day_in            = p_date
          IMPORTING
            last_day_of_month = last_day
          EXCEPTIONS
            day_in_not_valid  = 1
            OTHERS            = 2.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
        IF fecha = p_date.
          fecha = fecha - 1.   "le resta a fecha -1 para que busque en la tabla zavg_bal_table el record del dia anterior.
          end_month-sign    = 'I'.
          end_month-option  = 'EQ'.
          end_month-low     = fecha.
          APPEND end_month.
        ELSE.
          end_month-sign    = 'I'.
          end_month-option  = 'EQ'.
          end_month-low     = last_day.
          APPEND end_month.
        ENDIF.
      ENDDO.
      SORT end_month BY low ASCENDING.
      SELECT bukrs racct prctr day_a per_day average agregate accumulate average_sap
        FROM zavg_bal_table CLIENT SPECIFIED APPENDING TABLE t_zavg
        WHERE mandt = sy-mandt
          AND bukrs IN p_bukrs
          AND  day_a <= sy-datum
          AND  prctr IN profit.
      SORT t_itab1 BY rbukrs racct prctr.
      SORT t_zavg  BY  bukrs racct prctr day_a.
    *IMPRESION Y ENVIO DE LOS DATOS REQUERIDOS
    *Estos If verifican el mes que se esta ejecutando por el usuario para cambiarselo a la variable que identifica el fin de mes.
      IF p_date+4(2) = jan_fin+4(2).
        jan_fin+6(2) = p_date+6(2).
      ENDIF.
      IF p_date+4(2) = feb_fin+4(2).
        feb_fin+6(2) = p_date+6(2).
      ENDIF.
      IF p_date+4(2) = mar_fin+4(2).
        mar_fin+6(2) = p_date+6(2).
      ENDIF.
      IF p_date+4(2) = apr_fin+4(2).
        apr_fin+6(2) = p_date+6(2).
      ENDIF.
      IF p_date+4(2) = may_fin+4(2).
        may_fin+6(2) = p_date+6(2).
      ENDIF.
      IF p_date+4(2) = jun_fin+4(2).
        jun_fin+6(2) = p_date+6(2).
      ENDIF.
      IF p_date+4(2) = jul_fin+4(2).
        jul_fin+6(2) = p_date+6(2).
      ENDIF.
      IF p_date+4(2) = aug_fin+4(2).
        aug_fin+6(2) = p_date+6(2).
      ENDIF.
      IF p_date+4(2) = sep_fin+4(2).
        sep_fin+6(2) = p_date+6(2).
      ENDIF.
      IF p_date+4(2) = oct_fin+4(2).
        oct_fin+6(2) = p_date+6(2).
      ENDIF.
      IF p_date+4(2) = nov_fin+4(2).
        nov_fin+6(2) = p_date+6(2).
      ENDIF.
      IF p_date+4(2) = dec_fin+4(2).
        dec_fin+6(2) = p_date+6(2).
      ENDIF.
    *Comienza primer loop en el programa a t_itab1 que es la tabla interna que contiene los datos de faglflext.
      LOOP AT t_itab1 INTO wa_itab WHERE racct  NE ''.
        AT NEW prctr.  "Limpia las variables que se muestran en el clear cada ves que comienza un nuevo profit center.
          CLEAR: itab_kslvt, itab_ksl01, itab_ksl02, itab_ksl03, itab_ksl04, itab_ksl05, itab_ksl06, itab_ksl07, itab_ksl08,
                 itab_ksl09, itab_ksl10, itab_ksl11, itab_ksl12, itab_ksl13, itab_ksl14, itab_ksl15, itab_ksl16,
                 itab_bal00, itab_bal01, itab_bal02, itab_bal03, itab_bal04, itab_bal05, itab_bal06, itab_bal07,
                 itab_bal08, itab_bal09, itab_bal10, itab_bal11, itab_bal12, itab_bal13, itab_bal14, itab_bal15,
                 itab_bal16.
        ENDAT.
    *Se le pasa a la variable itab_ksl## el valor del mes que contenga flext.
        itab_kslvt = itab_kslvt + wa_itab-kslvt. itab_ksl01 = itab_ksl01 + wa_itab-ksl01. itab_ksl02 = itab_ksl02 + wa_itab-ksl02.
        itab_ksl03 = itab_ksl03 + wa_itab-ksl03. itab_ksl04 = itab_ksl04 + wa_itab-ksl04.
        itab_ksl05 = itab_ksl05 + wa_itab-ksl05. itab_ksl06 = itab_ksl06 + wa_itab-ksl06.
        itab_ksl07 = itab_ksl07 + wa_itab-ksl07. itab_ksl08 = itab_ksl08 + wa_itab-ksl08.
        itab_ksl09 = itab_ksl09 + wa_itab-ksl09. itab_ksl10 = itab_ksl10 + wa_itab-ksl10.
        itab_ksl11 = itab_ksl11 + wa_itab-ksl11. itab_ksl12 = itab_ksl12 + wa_itab-ksl12.
        itab_ksl13 = itab_ksl13 + wa_itab-ksl13. itab_ksl14 = itab_ksl14 + wa_itab-ksl14.
        itab_ksl15 = itab_ksl15 + wa_itab-ksl15. itab_ksl16 = itab_ksl16 + wa_itab-ksl16.
    *En estas variables va acumulando el valor por mes. Osea, va sumando todo lo que tenga de ese mes por profit center. Al venir un profit
    *nuevo esta se limpia.
        itab_bal00 = itab_bal00 + wa_itab-kslvt. itab_bal01 = itab_bal01 + wa_itab-ksl01. itab_bal02 = itab_bal02 + wa_itab-ksl02.
        itab_bal03 = itab_bal03 + wa_itab-ksl03. itab_bal04 = itab_bal04 + wa_itab-ksl04.
        itab_bal05 = itab_bal05 + wa_itab-ksl05. itab_bal06 = itab_bal06 + wa_itab-ksl06.
        itab_bal07 = itab_bal07 + wa_itab-ksl07. itab_bal08 = itab_bal08 + wa_itab-ksl08.
        itab_bal09 = itab_bal09 + wa_itab-ksl09. itab_bal10 = itab_bal10 + wa_itab-ksl10.
        itab_bal11 = itab_bal11 + wa_itab-ksl11. itab_bal12 = itab_bal12 + wa_itab-ksl12.
        itab_bal13 = itab_bal13 + wa_itab-ksl13. itab_bal14 = itab_bal14 + wa_itab-ksl14.
        itab_bal15 = itab_bal15 + wa_itab-ksl15. itab_bal16 = itab_bal16 + wa_itab-ksl16.
        ryear = wa_itab-ryear.
        CLEAR t_zavg.
        sy-subrc = 0.
        numero_de_cta   = wa_itab-racct.
        company_code    = wa_itab-rbukrs.
        profit_center   = wa_itab-prctr.
        currency_code   = wa_itab-rtcur.
        descripcion     = wa_itab-txt20.
    *Segundo loop a realizarce. Este utiliza la tabla interna: t_zavg la cual contiene los datos extraidos de zavg_bal_table.
        LOOP AT t_zavg INTO wa_zavg WHERE bukrs = wa_itab-rbukrs AND racct = wa_itab-racct AND prctr = wa_itab-prctr.
          AT NEW prctr.  "Al cambiar el profit center limpia las variables que se encuentran en el clear.
            CLEAR: average_month_01, average_month_02, average_month_03, average_month_04, average_month_05,
             average_month_06, average_month_07, average_month_08, average_month_09, average_month_10, average_month_11,
             average_month_12, average_month.
          ENDAT.
    *Dependiendo del mes que contiene el record de la tabla t_zavg este va acumulando el average_month.
          IF wa_zavg-day_a+4(2) = '01'.
            average_month_01   = average_month_01 + wa_zavg-accumulate.
          ENDIF.
          IF wa_zavg-day_a+4(2) = '02'.
            average_month_02   = average_month_02 + wa_zavg-accumulate.
          ENDIF.
          IF wa_zavg-day_a+4(2) = '03'.
            average_month_03   = average_month_03 + wa_zavg-accumulate.
          ENDIF.
          IF wa_zavg-day_a+4(2) = '04'.
            average_month_04   = average_month_04 + wa_zavg-accumulate.
          ENDIF.
          IF wa_zavg-day_a+4(2) = '05'.
            average_month_05   = average_month_05 + wa_zavg-accumulate.
          ENDIF.
          IF wa_zavg-day_a+4(2) = '06'.
            average_month_06   = average_month_06 + wa_zavg-accumulate.
          ENDIF.
          IF wa_zavg-day_a+4(2) = '07'.
            average_month_07   = average_month_07 + wa_zavg-accumulate.
          ENDIF.
          IF wa_zavg-day_a+4(2) = '08'.
            average_month_08   = average_month_08 + wa_zavg-accumulate.
          ENDIF.
          IF wa_zavg-day_a+4(2) = '09'.
            average_month_09   = average_month_09 + wa_zavg-accumulate.
          ENDIF.
          IF wa_zavg-day_a+4(2) = '10'.
            average_month_10   = average_month_10 + wa_zavg-accumulate.
          ENDIF.
          IF wa_zavg-day_a+4(2) = '11'.
            average_month_11   = average_month_11 + wa_zavg-accumulate.
          ENDIF.
          IF wa_zavg-day_a+4(2) = '12'.
            average_month_12   = average_month_12 + wa_zavg-accumulate.
          ENDIF.
    *Este if verifica que cuando el record que se esta verificando sea con fecha de fin de mes calcule el resto del codigo que se encuentra debajo.
          IF wa_zavg-day_a = jan_fin OR wa_zavg-day_a = feb_fin OR wa_zavg-day_a = mar_fin OR wa_zavg-day_a = apr_fin OR wa_zavg-day_a = may_fin OR wa_zavg-day_a = jun_fin OR
          wa_zavg-day_a = jul_fin OR wa_zavg-day_a = aug_fin OR wa_zavg-day_a = sep_fin OR wa_zavg-day_a = oct_fin OR
          wa_zavg-day_a = nov_fin OR wa_zavg-day_a = dec_fin.
            aggregate_month =  wa_zavg-agregate.
            day_a  = wa_zavg-day_a.
    *Calcula el aggregate_month dependiendo de la fecha del record que se esta procesando.
            IF wa_zavg-day_a+4(2) = '01'.
              aggregate_month_01 =  wa_zavg-agregate.
            ENDIF.
            IF wa_zavg-day_a+4(2) = '02'.
              aggregate_month_02 =  wa_zavg-agregate.
            ENDIF.
            IF wa_zavg-day_a+4(2) = '03'.
              aggregate_month_03 = wa_zavg-agregate.
            ENDIF.
            IF wa_zavg-day_a+4(2) = '04'.
              aggregate_month_04 =  wa_zavg-agregate.
            ENDIF.
            IF wa_zavg-day_a+4(2) = '05'.
              aggregate_month_05 =  wa_zavg-agregate.
            ENDIF.
            IF wa_zavg-day_a+4(2) = '06'.
              aggregate_month_06 =  wa_zavg-agregate.
            ENDIF.
            IF wa_zavg-day_a+4(2) = '07'.
              aggregate_month_07 =  wa_zavg-agregate.
            ENDIF.
            IF wa_zavg-day_a+4(2) = '08'.
              aggregate_month_08 =  wa_zavg-agregate.
            ENDIF.
            IF wa_zavg-day_a+4(2) = '09'.
              aggregate_month_09 =  wa_zavg-agregate.
            ENDIF.
            IF wa_zavg-day_a+4(2) = '10'.
              aggregate_month_10 =  wa_zavg-agregate.
            ENDIF.
            IF wa_zavg-day_a+4(2) = '11'.
              aggregate_month_11 =  wa_zavg-agregate.
            ENDIF.
            IF wa_zavg-day_a+4(2) = '12'.
              aggregate_month_12 =  wa_zavg-agregate.
            ENDIF.
          ENDIF.
    *Este if verifica que cuando el record que se esta verificando sea con fecha de fin de mes calcule el resto del codigo que se encuentra debajo.
          IF wa_zavg-day_a+4(4) = jan_fin+4(4) OR wa_zavg-day_a+4(4) = feb_fin+4(4) OR wa_zavg-day_a+4(4) = febb_fin+4(4) OR wa_zavg-day_a+4(4) = mar_fin+4(4) OR
             wa_zavg-day_a+4(4) = apr_fin+4(4) OR wa_zavg-day_a+4(4) = may_fin+4(4) OR wa_zavg-day_a+4(4) = jun_fin+4(4) OR wa_zavg-day_a+4(4) = jul_fin+4(4) OR
             wa_zavg-day_a+4(4) = aug_fin+4(4) OR wa_zavg-day_a+4(4) = sep_fin+4(4) OR wa_zavg-day_a+4(4) = oct_fin+4(4) OR wa_zavg-day_a+4(4) = nov_fin+4(4) OR
             wa_zavg-day_a+4(4) = dec_fin+4(4).
    *Calcula la division entre la cantidad acumulada por mes y la fecha del fin de mes.
            IF average_month_01 IS NOT INITIAL.
              porciento1 = average_month_01 / jan_fin+6(2).
              average_month   = porciento1.
            ENDIF.
            IF average_month_02 IS NOT INITIAL.
              porciento2 = average_month_02 / feb_fin+6(2).
              average_month   = porciento2.
            ENDIF.
            IF average_month_03 IS NOT INITIAL.
              porciento3 = average_month_03 / mar_fin+6(2).
              average_month   = porciento3.
            ENDIF.
            IF average_month_04 IS NOT INITIAL.
              porciento4 = average_month_04 / apr_fin+6(2).
              average_month   = porciento4.
            ENDIF.
            IF average_month_05 IS NOT INITIAL.
              porciento5 = average_month_05 / may_fin+6(2).
              average_month   = porciento5.
            ENDIF.
            IF average_month_06 IS NOT INITIAL.
              porciento6 = average_month_06 / jun_fin+6(2).
              average_month   = porciento6.
            ENDIF.
            IF average_month_07 IS NOT INITIAL.
              porciento7 = average_month_07 / jul_fin+6(2).
              average_month   = porciento7.
            ENDIF.
            IF average_month_08 IS NOT INITIAL.
              porciento8 = average_month_08 / aug_fin+6(2).
              average_month   = porciento8.
            ENDIF.
            IF average_month_09 IS NOT INITIAL.
              porciento9 = average_month_09 / sep_fin+6(2).
              average_month   = porciento9.
            ENDIF.
            IF average_month_10 IS NOT INITIAL.
              porciento10 = average_month_10 / oct_fin+6(2).
              average_month   = porciento10.
            ENDIF.
            IF average_month_11 IS NOT INITIAL.
              porciento11 = average_month_11 / nov_fin+6(2).
              average_month   = porciento11.
            ENDIF.
            IF average_month_12 IS NOT INITIAL.
              porciento12 = average_month_12 / dec_fin+6(2).
              average_month   = porciento12.
            ENDIF.
    *Cuando la fecha que esta entrando el usuario es la misma a la del record que se esta procesando en ese momento ejecuta el siguiente IF.
            IF p_date+4(4) = wa_zavg-day_a+4(4).
              current_average_balance   =  average_month.
              current_aggregate_balance =  aggregate_month.
              average_balance_ytd       =  average_month.
            ENDIF.
          ENDIF.
        ENDLOOP.
        AT END OF prctr.
          IF sy-subrc = 0.
    *ESTAS VARIABLES SE ESTAN PASANDO A UNA VARIABLE NORMAL YA QUE SI SE DEJAN DENTRO DEL WORK AREA (WA) LE PONE ASTERISCOS.
    *LOS IF QUE SE DEMUESTRAN ABAJO SON PARECIDOS A LOS UTILIZADOS EN LA   *
    *PARTE POSTERIOR LO UNICO QUE LA FECHA UTILIZADA NO ES EXTRAIDA DE LA  *
    *TABLA, ES LA QUE EL USUARIO INSERTA DENTRO DEL PARAMETRO.             *
            IF p_date+4(2) >= '01'.
              COMPUTE: balance_month_01 =   itab_bal00 + itab_bal01.
            ENDIF.
            IF p_date+4(2) >= '02'.
              COMPUTE: balance_month_02 = itab_bal00 + itab_bal01 + itab_bal02.
            ENDIF.
            IF p_date+4(2) >= '03'.
              COMPUTE: balance_month_03 = itab_bal00 + itab_bal01 + itab_bal02 + itab_bal03.
            ENDIF.
            IF p_date+4(2) >= '04'.
              COMPUTE: balance_month_04 = itab_bal00 + itab_bal01 + itab_bal02 + itab_bal03 + itab_bal04.
            ENDIF.
            IF p_date+4(2) >= '05'.
              COMPUTE: balance_month_05 = itab_bal00 + itab_bal01 + itab_bal02 + itab_bal03 + itab_bal04 + itab_bal05.
            ENDIF.
            IF p_date+4(2) >= '06'.
              COMPUTE: balance_month_06 =  itab_bal00 + itab_bal01 + itab_bal02 + itab_bal03 + itab_bal04 + itab_bal05 + itab_bal06.
            ENDIF.
            IF p_date+4(2) >= '07'.
              COMPUTE: balance_month_07 =  itab_bal00 + itab_bal01 + itab_bal02 + itab_bal03 + itab_bal04 + itab_bal05 + itab_bal06 + itab_bal07.
            ENDIF.
            IF p_date+4(2) >= '08'.
              COMPUTE: balance_month_08 =  itab_bal00 + itab_bal01 + itab_bal02 + itab_bal03 + itab_bal04 + itab_bal05 + itab_bal06 + itab_bal07 + itab_bal08.
            ENDIF.
            IF p_date+4(2) >= '09'.
              COMPUTE: balance_month_09 =  itab_bal00 + itab_bal01 + itab_bal02 + itab_bal03 + itab_bal04 + itab_bal05 + itab_bal06 + itab_bal07 + itab_bal08 + itab_bal09.
            ENDIF.
            IF p_date+4(2) >= '10'.
              COMPUTE: balance_month_10 =  itab_bal00 + itab_bal01 + itab_bal02 + itab_bal03 + itab_bal04 + itab_bal05 + itab_bal06 + itab_bal07 + itab_bal08 + itab_bal09 + itab_bal10.
            ENDIF.
            IF p_date+4(2) >= '11'.
              COMPUTE: balance_month_11 = itab_bal00 + itab_bal01 + itab_bal02 + itab_bal03 + itab_bal04 + itab_bal05 + itab_bal06 + itab_bal07 + itab_bal08 + itab_bal09 + itab_bal10 + itab_bal11.
            ENDIF.
            IF p_date+4(2) >= '12'.
              COMPUTE: balance_month_12 =  itab_bal00 + itab_bal01 + itab_bal02 + itab_bal03 + itab_bal04 + itab_bal05 + itab_bal06 + itab_bal07 + itab_bal08 + itab_bal09 + itab_bal10 + itab_bal11 + itab_bal12.
            ENDIF.
            IF p_date+4(2) >= '13'.
              COMPUTE: balance_month_13 = itab_bal00 + itab_bal01 + itab_bal02 + itab_bal03 + itab_bal04 + itab_bal05 + itab_bal06 + itab_bal07 + itab_bal08 + itab_bal09 + itab_bal10 + itab_bal11 + itab_bal12 + itab_bal13.
            ENDIF.
          COMPUTE: current_balance =  + itab_bal00 + itab_bal01 + itab_bal02 + itab_bal03 + itab_bal04 + itab_bal05 + itab_bal06 + itab_bal07 + itab_bal08 + itab_bal09 + itab_bal10 + itab_bal11 + itab_bal12 + itab_bal13 + itab_bal14 + itab_bal15 + itab_bal16.
    *Computo para el activity balance.
            IF p_date+4(2) = '01'.
              current_activity_balance =   itab_ksl01.
            ENDIF.
            IF p_date+4(2) = '02'.
              current_activity_balance =   itab_ksl02.
            ENDIF.
            IF p_date+4(2) = '03'.
              current_activity_balance =   itab_ksl03.
            ENDIF.
            IF p_date+4(2) = '04'.
              current_activity_balance =   itab_ksl04.
            ENDIF.
            IF p_date+4(2) = '05'.
              current_activity_balance =   itab_ksl05.
            ENDIF.
            IF p_date+4(2) = '06'.
              current_activity_balance =   itab_ksl06.
            ENDIF.
            IF p_date+4(2) = '07'.
              current_activity_balance =   itab_ksl07.
            ENDIF.
            IF p_date+4(2) = '08'.
              current_activity_balance =   itab_ksl08.
            ENDIF.
            IF p_date+4(2) = '09'.
              current_activity_balance =   itab_ksl09.
            ENDIF.
            IF p_date+4(2) = '10'.
              current_activity_balance =   itab_ksl10.
            ENDIF.
            IF p_date+4(2) = '11'.
              current_activity_balance =   itab_ksl11.
            ENDIF.
            IF p_date+4(2) = '12'.
              current_activity_balance =   itab_ksl12.
            ENDIF.
    *LE RESTA 1 AL AÑO CORRIENTE PARA VERIFICAR LUEGO SI EXISTE INFORMACION*
    *DE AÑOS ANTERIORES.                                                   *
            ano = ryear - 1.
    *               Get the values of the past year.                    *
            ano =  p_date+0(4) - 1.
            IF ryear = ano.
              wa_msgdetails-activity_previous_year = itab_ksl12.
    *     balance_previous_year = wa_msgdetails-balance_previous_year.  *
              wa_msgdetails-average_previous_year  = average_month_12.
              wa_msgdetails-aggreg_previous_year   = aggregate_month_12.
            ELSE.
    *If the table don't have data the variables get '0000000000000'.    *
              wa_msgdetails-activity_previous_year          = '00000000000000.00'.
              wa_msgdetails-average_previous_year           = '00000000000000.00'.
              wa_msgdetails-aggreg_previous_year            = '00000000000000.00'.
              AT LAST.
                wa_msgdetails-balance_previous_year           = '00000000000000.00'.
                wa_msgdetails-balance_previous_year           = itab_kslvt +
                                                                itab_ksl01 +
                                                                itab_ksl02 +
                                                                itab_ksl03 +
                                                                itab_ksl04 +
                                                                itab_ksl05 +
                                                                itab_ksl06 +
                                                                itab_ksl07 +
                                                                itab_ksl08 +
                                                                itab_ksl09 +
                                                                itab_ksl10 +
                                                                itab_ksl11 +
                                                                itab_ksl12.
              ENDAT.
            ENDIF.
            wa_msgdetails-account             = numero_de_cta.
            wa_msgdetails-company             = company_code.
            wa_msgdetails-cost_center         = profit_center.
            wa_msgdetails-currency_code       = currency_code.
            wa_msgdetails-account_description = descripcion.
            wa_msgdetails-activity_month_01   = itab_ksl01.
            wa_msgdetails-average_month_01    = porciento1.
            wa_msgdetails-aggreg_month_01     = aggregate_month_01.
            wa_msgdetails-activity_month_02   = itab_ksl02.
            wa_msgdetails-average_month_02    = porciento2.
            wa_msgdetails-aggreg_month_02     = aggregate_month_02.
            wa_msgdetails-activity_month_03   = itab_ksl03.
            wa_msgdetails-average_month_03    = porciento3.
            wa_msgdetails-aggreg_month_03     = aggregate_month_03.
            wa_msgdetails-activity_month_04   = itab_ksl04.
            wa_msgdetails-average_month_04    = porciento4.
            wa_msgdetails-aggreg_month_04     = aggregate_month_04.
            wa_msgdetails-activity_month_05   = itab_ksl05.
            wa_msgdetails-average_month_05    = porciento5.
            wa_msgdetails-aggreg_month_05     = aggregate_month_05.
            wa_msgdetails-activity_month_06   = itab_ksl06.
            wa_msgdetails-average_month_06    = porciento6.
            wa_msgdetails-aggreg_month_06     = aggregate_month_06.
            wa_msgdetails-activity_month_07   = itab_ksl07.
            wa_msgdetails-average_month_07    = porciento7.
            wa_msgdetails-aggreg_month_07     = aggregate_month_07.
            wa_msgdetails-activity_month_08   = itab_ksl08.
            wa_msgdetails-average_month_08    = porciento8.
            wa_msgdetails-aggreg_month_08     = aggregate_month_08.
            wa_msgdetails-activity_month_09   = itab_ksl09.
            wa_msgdetails-average_month_09    = porciento9.
            wa_msgdetails-aggreg_month_09     = aggregate_month_09.
            wa_msgdetails-activity_month_10   = itab_ksl10.
            wa_msgdetails-average_month_10    = porciento10.
            wa_msgdetails-aggreg_month_10     = aggregate_month_10.
            wa_msgdetails-activity_month_11   = itab_ksl11.
            wa_msgdetails-average_month_11    = porciento11.
            wa_msgdetails-aggreg_month_11     = aggregate_month_11.
            wa_msgdetails-activity_month_12   = itab_ksl12.
            wa_msgdetails-average_month_12    = porciento12.
            wa_msgdetails-aggreg_month_12     = aggregate_month_12.
            wa_msgdetails-activity_month_13   = itab_ksl13.
            wa_msgdetails-average_month_13    = '00000000000000.00'.
            wa_msgdetails-aggreg_month_13     = '00000000000000.00'.
            wa_msgdetails-balance_month_01          = balance_month_01.
            wa_msgdetails-balance_month_02          = balance_month_02.
            wa_msgdetails-balance_month_03          = balance_month_03.
            wa_msgdetails-balance_month_04          = balance_month_04.
            wa_msgdetails-balance_month_05          = balance_month_05.
            wa_msgdetails-balance_month_06          = balance_month_06.
            wa_msgdetails-balance_month_07          = balance_month_07.
            wa_msgdetails-balance_month_08          = balance_month_08.
            wa_msgdetails-balance_month_09          = balance_month_09.
            wa_msgdetails-balance_month_10          = balance_month_10.
            wa_msgdetails-balance_month_11          = balance_month_11.
            wa_msgdetails-balance_month_12          = balance_month_12.
            wa_msgdetails-balance_month_13          = balance_month_13.
            wa_msgdetails-current_balance           = current_balance.
            wa_msgdetails-current_activity_balance  = current_activity_balance.
            CLEAR: porciento1, porciento2, porciento3, porciento4, porciento5, porciento6, porciento7, porciento8, porciento9, porciento10, porciento11,
                   porciento12, average_month.
    *se multiplican las siguientes variables que contienen cantidades por -1 cuando el primer numero de la cta. es igual a
    * 5, 6, 7, ó 8.
            IF numero_de_cta+4(1) = '5' OR numero_de_cta+4(1) = '6' OR numero_de_cta+4(1) = '7' OR numero_de_cta+4(1) = '8'.
              IF wa_msgdetails-current_balance IS NOT INITIAL.
                wa_msgdetails-current_balance = wa_msgdetails-current_balance * -1.
              ENDIF.
              IF wa_msgdetails-activity_previous_year IS NOT INITIAL.
                wa_msgdetails-activity_previous_year = wa_msgdetails-activity_previous_year * -1.
              ENDIF.
              IF wa_msgdetails-average_previous_year IS NOT INITIAL.
                wa_msgdetails-average_previous_year = wa_msgdetails-average_previous_year * -1.
              ENDIF.
              IF wa_msgdetails-aggreg_previous_year IS NOT INITIAL.
                wa_msgdetails-aggreg_previous_year = wa_msgdetails-aggreg_previous_year * -1.
              ENDIF.
              IF wa_msgdetails-balance_previous_year IS NOT INITIAL.
                wa_msgdetails-balance_previous_year = wa_msgdetails-balance_previous_year * -1.
              ENDIF.
              IF wa_msgdetails-current_activity_balance IS NOT INITIAL.
                wa_msgdetails-current_activity_balance = wa_msgdetails-current_activity_balance * -1.
              ENDIF.
              IF wa_msgdetails-activity_month_01 IS NOT INITIAL.
                wa_msgdetails-activity_month_01 = wa_msgdetails-activity_month_01 * -1.
              ENDIF.
              IF wa_msgdetails-balance_month_01 IS NOT INITIAL.
                wa_msgdetails-balance_month_01 = wa_msgdetails-balance_month_01 * -1.
              ENDIF.
              IF wa_msgdetails-average_month_01 IS NOT INITIAL.
                wa_msgdetails-average_month_01 = wa_msgdetails-average_month_01 * -1.
              ENDIF.
              IF wa_msgdetails-aggreg_month_01 IS NOT INITIAL.
                wa_msgdetails-aggreg_month_01 = wa_msgdetails-aggreg_month_01 * -1.
              ENDIF.
              IF wa_msgdetails-activity_month_02 IS NOT INITIAL.
                wa_msgdetails-activity_month_02 = wa_msgdetails-activity_month_02 * -1.
              ENDIF.
              IF wa_msgdetails-balance_month_02 IS NOT INITIAL.
                wa_msgdetails-balance_month_02 = wa_msgdetails-balance_month_02 * -1.
              ENDIF.
              IF wa_msgdetails-average_month_02 IS NOT INITIAL.
                wa_msgdetails-average_month_02 = wa_msgdetails-average_month_02 * -1.
              ENDIF.
              IF wa_msgdetails-aggreg_month_02 IS NOT INITIAL.
                wa_msgdetails-aggreg_month_02 = wa_msgdetails-aggreg_month_02 * -1.
              ENDIF.
              IF wa_msgdetails-activity_month_03 IS NOT INITIAL.
                wa_msgdetails-activity_month_03 = wa_msgdetails-activity_month_03 * -1.
              ENDIF.
              IF wa_msgdetails-balance_month_03 IS NOT INITIAL.
                wa_msgdetails-balance_month_03 = wa_msgdetails-balance_month_03 * -1.
              ENDIF.
              IF wa_msgdetails-average_month_03 IS NOT INITIAL.
                wa_msgdetails-average_month_03 = wa_msgdetails-average_month_03 * -1.
              ENDIF.
              IF wa_msgdetails-aggreg_month_03 IS NOT INITIAL.
                wa_msgdetails-aggreg_month_03 = wa_msgdetails-aggreg_month_03 * -1.
              ENDIF.
              IF wa_msgdetails-activity_month_04 IS NOT INITIAL.
                wa_msgdetails-activity_month_04 = wa_msgdetails-activity_month_04 * -1.
              ENDIF.
              IF wa_msgdetails-balance_month_04 IS NOT INITIAL.
                wa_msgdetails-balance_month_04 = wa_msgdetails-balance_month_04 * -1.
              ENDIF.
              IF wa_msgdetails-average_month_04 IS NOT INITIAL.
                wa_msgdetails-average_month_04 = wa_msgdetails-average_month_04 * -1.
              ENDIF.
              IF wa_msgdetails-aggreg_month_04 IS NOT INITIAL.
                wa_msgdetails-aggreg_month_04 = wa_msgdetails-aggreg_month_04 * -1.
              ENDIF.
              IF wa_msgdetails-activity_month_05 IS NOT INITIAL.
                wa_msgdetails-activity_month_05 = wa_msgdetails-activity_month_05 * -1.
              ENDIF.
              IF wa_msgdetails-balance_month_05 IS NOT INITIAL.
                wa_msgdetails-balance_month_05 = wa_msgdetails-balance_month_05 * -1.
              ENDIF.
              IF wa_msgdetails-average_month_05 IS NOT INITIAL.
                wa_msgdetails-average_month_05 = wa_msgdetails-average_month_05 * -1.
              ENDIF.
              IF wa_msgdetails-aggreg_month_05 IS NOT INITIAL.
                wa_msgdetails-aggreg_month_05 = wa_msgdetails-aggreg_month_05 * -1.
              ENDIF.
              IF wa_msgdetails-activity_month_06 IS NOT INITIAL.
                wa_msgdetails-activity_month_06 = wa_msgdetails-activity_month_06 * -1.
              ENDIF.
              IF wa_msgdetails-balance_month_06 IS NOT INITIAL.
                wa_msgdetails-balance_month_06 = wa_msgdetails-balance_month_06 * -1.
              ENDIF.
              IF wa_msgdetails-average_month_06 IS NOT INITIAL.
                wa_msgdetails-average_month_06 = wa_msgdetails-average_month_06 * -1.
              ENDIF.
              IF wa_msgdetails-aggreg_month_06 IS NOT INITIAL.
                wa_msgdetails-aggreg_month_06 = wa_msgdetails-aggreg_month_06 * -1.
              ENDIF.
              IF wa_msgdetails-activity_month_07 IS NOT INITIAL.
                wa_msgdetails-activity_month_07 = wa_msgdetails-activity_month_07 * -1.
              ENDIF.
              IF wa_msgdetails-balance_month_07 IS NOT INITIAL.
                wa_msgdetails-balance_month_07 = wa_msgdetails-balance_month_07 * -1.
              ENDIF.
              IF wa_msgdetails-average_month_07 IS NOT INITIAL.
                wa_msgdetails-average_month_07 = wa_msgdetails-average_month_07 * -1.
              ENDIF.
              IF wa_msgdetails-aggreg_month_07 IS NOT INITIAL.
                wa_msgdetails-aggreg_month_07 = wa_msgdetails-aggreg_month_07 * -1.
              ENDIF.
              IF wa_msgdetails-activity_month_08 IS NOT INITIAL.
                wa_msgdetails-activity_month_08 = wa_msgdetails-activity_month_08 * -1.
              ENDIF.
              IF wa_msgdetails-balance_month_08 IS NOT INITIAL.
                wa_msgdetails-balance_month_08 = wa_msgdetails-balance_month_08 * -1.
              ENDIF.
              IF wa_msgdetails-average_month_08 IS NOT INITIAL.
                wa_msgdetails-average_month_08 = wa_msgdetails-average_month_08 * -1.
              ENDIF.
              IF wa_msgdetails-aggreg_month_08 IS NOT INITIAL.
                wa_msgdetails-aggreg_month_08 = wa_msgdetails-aggreg_month_08 * -1.
              ENDIF.
              IF wa_msgdetails-activity_month_09 IS NOT INITIAL.
                wa_msgdetails-activity_month_09 = wa_msgdetails-activity_month_09 * -1.
              ENDIF.
              IF wa_msgdetails-balance_month_09 IS NOT INITIAL.
                wa_msgdetails-balance_month_09 = wa_msgdetails-balance_month_09 * -1.
              ENDIF.
              IF wa_msgdetails-average_month_09 IS NOT INITIAL.
                wa_msgdetails-average_month_09 = wa_msgdetails-average_month_09 * -1.
              ENDIF.
              IF wa_msgdetails-aggreg_month_09 IS NOT INITIAL.
                wa_msgdetails-aggreg_month_09 = wa_msgdetails-aggreg_month_09 * -1.
              ENDIF.
              IF wa_msgdetails-activity_month_10 IS NOT INITIAL.
                wa_msgdetails-activity_month_10 = wa_msgdetails-activity_month_10 * -1.
              ENDIF.
              IF wa_msgdetails-balance_month_10 IS NOT INITIAL.
                wa_msgdetails-balance_month_10 = wa_msgdetails-balance_month_10 * -1.
              ENDIF.
              IF wa_msgdetails-average_month_10 IS NOT INITIAL.
                wa_msgdetails-average_month_10 = wa_msgdetails-average_month_10 * -1.
              ENDIF.
              IF wa_msgdetails-aggreg_month_10 IS NOT INITIAL.
                wa_msgdetails-aggreg_month_10 = wa_msgdetails-aggreg_month_10 * -1.
              ENDIF.
              IF wa_msgdetails-activity_month_11 IS NOT INITIAL.
                wa_msgdetails-activity_month_11 = wa_msgdetails-activity_month_11 * -1.
              ENDIF.
              IF wa_msgdetails-balance_month_11 IS NOT INITIAL.
                wa_msgdetails-balance_month_11 = wa_msgdetails-balance_month_11 * -1.
              ENDIF.
              IF wa_msgdetails-average_month_11 IS NOT INITIAL.
                wa_msgdetails-average_month_11 = wa_msgdetails-average_month_11 *

    Hi,
    Are the month-ends (jan_fin etc) stored in the system? There are many variable declarations and if statements that could probably be eliminated if that is the case.  More efficient use of storing those variables in internal tables so that the data is only used when needed.
    Warren

  • Upgrading from Exchange 2007 SP2 to SP3 stops and fails with Performance Counter

    We are upgrading from Exchange 2007 SP2 to SP3.
    Exchange Server is on Windows 2008 Enterprise 64 bit OS -SP2
    DC is on windows 2008 Enterprise 32 bit OS - SP2
    When we run Exchange SP3 setup.exe GUI, it runs through the pre-requisites completely and then starts to configure the Hub Transport services but @ exactly 55% it throws an error window "Exchange Server Setup encountered an error"
    On repeating this process i noticed it throws the same error at 55% while "Performance COunter Configuring". Please find below the entries of exchangesetup.log
    [2/1/2015 1:09:30 PM] [0] **********************************************
    [2/1/2015 1:09:30 PM] [0] Starting Microsoft Exchange 2007 Setup
    [2/1/2015 1:09:30 PM] [0] **********************************************
    [2/1/2015 1:09:30 PM] [0] Operating System version: Microsoft Windows NT 6.0.6002 Service Pack 2.
    [2/1/2015 1:09:30 PM] [0] Setup version: 8.3.83.6.
    [2/1/2015 1:09:30 PM] [0] Logged on user: chakfig\Administrator.
    [2/1/2015 1:09:30 PM] [0] Command Line Parameter Name='mode', Value='Upgrade'.
    [2/1/2015 1:09:30 PM] [0] Command Line Parameter Name='sourcedir', Value='J:\EXSP01\SP3'.
    [2/1/2015 1:09:30 PM] [0] Command Line Parameter Name='fromsetup', Value=''.
    [2/1/2015 1:09:30 PM] [0] ExSetupUI was started with the following command: '-mode:upgrade -sourcedir:J:\EXSP01\SP3 /FromSetup'.
    [2/1/2015 1:09:30 PM] [0] Setup is choosing the domain controller to use
    [2/1/2015 1:09:31 PM] [0] Setup is choosing a local domain controller...
    [2/1/2015 1:09:35 PM] [0] Setup has chosen the local domain controller PGCDC.chakfig.local for initial queries
    [2/1/2015 1:09:35 PM] [0] PrepareAD has been run, and has replicated to this domain controller; so setup will use PGCDC.chakfig.local
    [2/1/2015 1:09:35 PM] [0] Setup is choosing a global catalog...
    [2/1/2015 1:09:35 PM] [0] Setup has chosen the global catalog server PGCDC.chakfig.local.
    [2/1/2015 1:09:35 PM] [0] Setup will use the domain controller 'PGCDC.chakfig.local'.
    [2/1/2015 1:09:35 PM] [0] Setup will use the global catalog 'PGCDC.chakfig.local'.
    [2/1/2015 1:09:35 PM] [0] Exchange configuration container for the organization is 'CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=chakfig,DC=local'.
    [2/1/2015 1:09:35 PM] [0] Exchange organization container for the organization is 'CN=chakfig,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=chakfig,DC=local'.
    [2/1/2015 1:09:35 PM] [0] Setup will search for an Exchange Server object for the local machine with name 'PGCVMEXG'.
    [2/1/2015 1:09:35 PM] [0] Exchange Server object found : 'CN=PGCVMEXG,CN=Servers,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=chakfig,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=chakfig,DC=local'.
    [2/1/2015 1:09:35 PM] [0] The following roles are unpacked: BridgeheadRole ClientAccessRole MailboxRole AdminToolsRole 
    [2/1/2015 1:09:35 PM] [0] The following roles are installed: BridgeheadRole ClientAccessRole MailboxRole AdminToolsRole 
    [2/1/2015 1:09:35 PM] [0] The local server has some Exchange files installed.
    [2/1/2015 1:09:35 PM] [0] Setup will use the path 'J:\EXSP01\SP3' for installing Exchange.
    [2/1/2015 1:09:35 PM] [0] Setup will discover the installed roles from server object 'CN=PGCVMEXG,CN=Servers,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=chakfig,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=chakfig,DC=local'.
    [2/1/2015 1:09:35 PM] [0] 'BridgeheadRole' is installed on the server object.
    [2/1/2015 1:09:35 PM] [0] 'ClientAccessRole' is installed on the server object.
    [2/1/2015 1:09:35 PM] [0] 'MailboxRole' is installed on the server object.
    [2/1/2015 1:09:35 PM] [0] The server is cluster type: 'None'.
    [2/1/2015 1:09:35 PM] [0] The requested cluster type: 'None'.
    [2/1/2015 1:09:35 PM] [0] The installation mode is set to: 'BuildToBuildUpgrade'.
    [2/1/2015 1:09:35 PM] [0] An Exchange organization with name 'chakfig' was found in this forest.
    [2/1/2015 1:09:35 PM] [0] Active Directory Initialization status : 'True'.
    [2/1/2015 1:09:35 PM] [0] Schema Update Required Status : 'False'.
    [2/1/2015 1:09:35 PM] [0] Organization Configuration Update Required Status : 'False'.
    [2/1/2015 1:09:35 PM] [0] Domain Configuration Update Required Status : 'False'.
    [2/1/2015 1:09:35 PM] [0] The locally installed version is 8.3.83.6.
    [2/1/2015 1:09:35 PM] [0] Exchange Installation Directory : 'C:\Program Files\Microsoft\Exchange Server'.
    [2/1/2015 1:09:35 PM] [0] The backup copy of the install path is 'C:\Program Files\Microsoft\Exchange Server'.
    [2/1/2015 1:09:35 PM] [0] The backup copy of the previously installed version is '8.2.176.2'.
    [2/1/2015 1:09:36 PM] [0] Setup is determining what organization-level operations to perform.
    [2/1/2015 1:09:36 PM] [0] Because the value was specified, setup is setting the argument OrganizationName to the value chakfig.
    [2/1/2015 1:09:36 PM] [0] The installed .msi file is current for this version of setup.
    [2/1/2015 1:09:36 PM] [0] RootDataHandler has 1 DataHandlers
    [2/1/2015 1:12:38 PM] [0] End of Setup
    [2/1/2015 1:12:38 PM] [0] **********************************************
    [2/1/2015 2:17:36 PM] [0] **********************************************
    [2/1/2015 2:17:36 PM] [0] Starting Microsoft Exchange 2007 Setup
    [2/1/2015 2:17:36 PM] [0] **********************************************
    [2/1/2015 2:17:36 PM] [0] Operating System version: Microsoft Windows NT 6.0.6002 Service Pack 2.
    [2/1/2015 2:17:36 PM] [0] Setup version: 8.3.83.6.
    [2/1/2015 2:17:36 PM] [0] Logged on user: chakfig\Administrator.
    [2/1/2015 2:17:37 PM] [0] Command Line Parameter Name='mode', Value='Upgrade'.
    [2/1/2015 2:17:37 PM] [0] Command Line Parameter Name='sourcedir', Value='J:\EXSP01\SP3'.
    [2/1/2015 2:17:37 PM] [0] Command Line Parameter Name='fromsetup', Value=''.
    [2/1/2015 2:17:37 PM] [0] ExSetupUI was started with the following command: '-mode:upgrade -sourcedir:J:\EXSP01\SP3 /FromSetup'.
    [2/1/2015 2:17:41 PM] [0] Setup is choosing the domain controller to use
    [2/1/2015 2:17:41 PM] [0] Setup is choosing a local domain controller...
    [2/1/2015 2:17:43 PM] [0] Setup has chosen the local domain controller PGCDC.chakfig.local for initial queries
    [2/1/2015 2:17:43 PM] [0] PrepareAD has been run, and has replicated to this domain controller; so setup will use PGCDC.chakfig.local
    [2/1/2015 2:17:43 PM] [0] Setup is choosing a global catalog...
    [2/1/2015 2:17:43 PM] [0] Setup has chosen the global catalog server PGCDC.chakfig.local.
    [2/1/2015 2:17:43 PM] [0] Setup will use the domain controller 'PGCDC.chakfig.local'.
    [2/1/2015 2:17:43 PM] [0] Setup will use the global catalog 'PGCDC.chakfig.local'.
    [2/1/2015 2:17:43 PM] [0] Exchange configuration container for the organization is 'CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=chakfig,DC=local'.
    [2/1/2015 2:17:43 PM] [0] Exchange organization container for the organization is 'CN=chakfig,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=chakfig,DC=local'.
    [2/1/2015 2:17:43 PM] [0] Setup will search for an Exchange Server object for the local machine with name 'PGCVMEXG'.
    [2/1/2015 2:17:43 PM] [0] Exchange Server object found : 'CN=PGCVMEXG,CN=Servers,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=chakfig,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=chakfig,DC=local'.
    [2/1/2015 2:17:43 PM] [0] The following roles are unpacked: BridgeheadRole ClientAccessRole MailboxRole AdminToolsRole 
    [2/1/2015 2:17:43 PM] [0] The following roles are installed: BridgeheadRole ClientAccessRole MailboxRole AdminToolsRole 
    [2/1/2015 2:17:43 PM] [0] The local server has some Exchange files installed.
    [2/1/2015 2:17:43 PM] [0] Setup will use the path 'J:\EXSP01\SP3' for installing Exchange.
    [2/1/2015 2:17:43 PM] [0] Setup will discover the installed roles from server object 'CN=PGCVMEXG,CN=Servers,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=chakfig,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=chakfig,DC=local'.
    [2/1/2015 2:17:43 PM] [0] 'BridgeheadRole' is installed on the server object.
    [2/1/2015 2:17:43 PM] [0] 'ClientAccessRole' is installed on the server object.
    [2/1/2015 2:17:43 PM] [0] 'MailboxRole' is installed on the server object.
    [2/1/2015 2:17:43 PM] [0] The server is cluster type: 'None'.
    [2/1/2015 2:17:43 PM] [0] The requested cluster type: 'None'.
    [2/1/2015 2:17:43 PM] [0] The installation mode is set to: 'BuildToBuildUpgrade'.
    [2/1/2015 2:17:43 PM] [0] An Exchange organization with name 'chakfig' was found in this forest.
    [2/1/2015 2:17:43 PM] [0] Active Directory Initialization status : 'True'.
    [2/1/2015 2:17:43 PM] [0] Schema Update Required Status : 'False'.
    [2/1/2015 2:17:43 PM] [0] Organization Configuration Update Required Status : 'False'.
    [2/1/2015 2:17:43 PM] [0] Domain Configuration Update Required Status : 'False'.
    [2/1/2015 2:17:43 PM] [0] The locally installed version is 8.3.83.6.
    [2/1/2015 2:17:43 PM] [0] Exchange Installation Directory : 'C:\Program Files\Microsoft\Exchange Server'.
    [2/1/2015 2:17:43 PM] [0] The backup copy of the install path is 'C:\Program Files\Microsoft\Exchange Server'.
    [2/1/2015 2:17:43 PM] [0] The backup copy of the previously installed version is '8.2.176.2'.
    [2/1/2015 2:17:43 PM] [0] Setup is determining what organization-level operations to perform.
    [2/1/2015 2:17:43 PM] [0] Because the value was specified, setup is setting the argument OrganizationName to the value chakfig.
    [2/1/2015 2:17:43 PM] [0] The installed .msi file is current for this version of setup.
    [2/1/2015 2:17:43 PM] [0] RootDataHandler has 1 DataHandlers
    [2/1/2015 2:17:47 PM] [0] Validating options for the 4 requested roles
    [2/1/2015 2:17:47 PM] [0] UpgradeModeDataHandler has 5 handlers and 5 work units
    [2/1/2015 2:17:52 PM] [0] Validating options for the 4 requested roles
    [2/1/2015 2:17:52 PM] [0] UpgradeModeDataHandler has 5 handlers and 5 work units
    [2/1/2015 2:17:53 PM] [0] **************
    [2/1/2015 2:17:53 PM] [0] Setup will run the task 'test-setuphealth'
    [2/1/2015 2:17:53 PM] [1] Setup launched task 'test-setuphealth -DomainController 'PGCDC.chakfig.local' -DownloadConfigurationUpdates $true -ExchangeVersion '8.3.83.6' -Roles 'Bridgehead' -ScanType 'PrecheckUpgrade' -SetupRoles 'Bridgehead','ClientAccess','Mailbox','AdminTools'
    -TargetDir 'C:\Program Files\Microsoft\Exchange Server''  
    [2/1/2015 2:17:53 PM] [1] Beginning processing.
    [2/1/2015 2:18:19 PM] [1] Beginning processing.
    [2/1/2015 2:18:19 PM] [1] Administrator Active Directory session settings are:  View Entire Forest: 'True', Configuration Domain Controller: 'PGCDC.chakfig.local', Preferred Global Catalog: 'PGCDC.chakfig.local', Preferred Domain Controllers: '{ PGCDC.chakfig.local
    [2/1/2015 2:18:19 PM] [1] Searching objects "PGCVMEXG" of type "Server" under the root "$null".
    [2/1/2015 2:18:19 PM] [1] Previous operation run on domain controller 'PGCDC.chakfig.local'.
    [2/1/2015 2:18:19 PM] [1] Previous operation run on domain controller 'PGCDC.chakfig.local'.
    [2/1/2015 2:18:19 PM] [1] Preparing to output objects. Maximum result set size "unlimited".
    [2/1/2015 2:18:20 PM] [1] Ending processing.
    [2/1/2015 2:18:20 PM] [1] Beginning processing.
    [2/1/2015 2:18:20 PM] [1] Administrator Active Directory session settings are:  View Entire Forest: 'True', Configuration Domain Controller: 'PGCDC.chakfig.local', Preferred Global Catalog: 'PGCDC.chakfig.local', Preferred Domain Controllers: '{ PGCDC.chakfig.local
    [2/1/2015 2:18:20 PM] [1] Searching objects of type "SmtpSendConnectorConfig" with filter "$null", scope "SubTree" under the root "Administrative Groups".
    [2/1/2015 2:18:20 PM] [1] Previous operation run on domain controller 'PGCDC.chakfig.local'.
    [2/1/2015 2:18:20 PM] [1] Preparing to output objects. Maximum result set size "unlimited".
    [2/1/2015 2:18:20 PM] [1] Ending processing.
    [2/1/2015 2:18:20 PM] [1] Ending processing.
    [2/1/2015 2:18:20 PM] [0] **************
    [2/1/2015 2:18:20 PM] [0] Setup will run the task 'test-setuphealth'
    [2/1/2015 2:18:20 PM] [1] Setup launched task 'test-setuphealth -DomainController 'PGCDC.chakfig.local' -DownloadConfigurationUpdates $false -ExchangeVersion '8.3.83.6' -Roles 'ClientAccess' -ScanType 'PrecheckUpgrade' -SetupRoles 'Bridgehead','ClientAccess','Mailbox','AdminTools'
    -TargetDir 'C:\Program Files\Microsoft\Exchange Server' -IISInstalled $true'  
    [2/1/2015 2:18:20 PM] [1] Beginning processing.
    [2/1/2015 2:18:26 PM] [1] Beginning processing.
    [2/1/2015 2:18:26 PM] [1] Administrator Active Directory session settings are:  View Entire Forest: 'True', Configuration Domain Controller: 'PGCDC.chakfig.local', Preferred Global Catalog: 'PGCDC.chakfig.local', Preferred Domain Controllers: '{ PGCDC.chakfig.local
    [2/1/2015 2:18:55 PM] [1] Searching objects of type "SmtpSendConnectorConfig" with filter "$null", scope "SubTree" under the root "Administrative Groups".
    [2/1/2015 2:18:55 PM] [1] Previous operation run on domain controller 'PGCDC.chakfig.local'.
    [2/1/2015 2:18:55 PM] [1] Preparing to output objects. Maximum result set size "unlimited".
    [2/1/2015 2:18:55 PM] [1] Ending processing.
    [2/1/2015 2:18:55 PM] [1] Ending processing.
    [2/1/2015 2:18:55 PM] [0] **************
    [2/1/2015 2:18:55 PM] [0] Setup will run the task 'test-setuphealth'
    [2/1/2015 2:18:55 PM] [1] Setup launched task 'test-setuphealth -DomainController 'PGCDC.chakfig.local' -DownloadConfigurationUpdates $false -ExchangeVersion '8.3.83.6' -Roles 'ClientAccess' -ScanType 'PrecheckUpgrade' -SetupRoles 'Bridgehead','ClientAccess','Mailbox','AdminTools'
    -TargetDir 'C:\Program Files\Microsoft\Exchange Server' -IISInstalled $true'  
    [2/1/2015 2:18:55 PM] [1] Beginning processing.
    [2/1/2015 2:19:01 PM] [1] Beginning processing.
    [2/1/2015 2:19:01 PM] [1] Administrator Active Directory session settings are:  View Entire Forest: 'True', Configuration Domain Controller: 'PGCDC.chakfig.local', Preferred Global Catalog: 'PGCDC.chakfig.local', Preferred Domain Controllers: '{ PGCDC.chakfig.local
    [2/1/2015 2:19:01 PM] [1] Searching objects "PGCVMEXG" of type "Server" under the root "$null".
    [2/1/2015 2:19:01 PM] [1] Previous operation run on domain controller 'PGCDC.chakfig.local'.
    [2/1/2015 2:19:01 PM] [1] Previous operation run on domain controller 'PGCDC.chakfig.local'.
    [2/1/2015 2:19:01 PM] [1] Preparing to output objects. Maximum result set size "unlimited".
    [2/1/2015 2:19:01 PM] [1] Ending processing.
    [2/1/2015 2:19:01 PM] [1] Ending processing.
    [2/1/2015 2:19:01 PM] [0] **************
    [2/1/2015 2:19:01 PM] [0] Setup will run the task 'test-setuphealth'
    [2/1/2015 2:19:01 PM] [1] Setup launched task 'test-setuphealth -DomainController 'PGCDC.chakfig.local' -DownloadConfigurationUpdates $false -ExchangeVersion '8.3.83.6' -Roles 'Mailbox' -ScanType 'PrecheckUpgrade' -SetupRoles 'Bridgehead','ClientAccess','Mailbox','AdminTools'
    -TargetDir 'C:\Program Files\Microsoft\Exchange Server' -IISInstalled $true'  
    [2/1/2015 2:19:01 PM] [1] Beginning processing.
    [2/1/2015 2:19:04 PM] [1] Beginning processing.
    [2/1/2015 2:19:04 PM] [1] Ending processing.
    [2/1/2015 2:19:07 PM] [1] Beginning processing.
    [2/1/2015 2:19:07 PM] [1] Administrator Active Directory session settings are:  View Entire Forest: 'True', Configuration Domain Controller: 'PGCDC.chakfig.local', Preferred Global Catalog: 'PGCDC.chakfig.local', Preferred Domain Controllers: '{ PGCDC.chakfig.local
    [2/1/2015 2:19:07 PM] [1] Searching objects "PGCVMEXG" of type "Server" under the root "$null".
    [2/1/2015 2:19:07 PM] [1] Previous operation run on domain controller 'PGCDC.chakfig.local'.
    [2/1/2015 2:19:07 PM] [1] Previous operation run on domain controller 'PGCDC.chakfig.local'.
    [2/1/2015 2:19:07 PM] [1] Preparing to output objects. Maximum result set size "unlimited".
    [2/1/2015 2:19:07 PM] [1] Ending processing.
    [2/1/2015 2:19:08 PM] [1] Ending processing.
    [2/1/2015 2:19:20 PM] [0] Setup is determining what organization-level operations to perform.
    [2/1/2015 2:19:20 PM] [0] Because the value was specified, setup is setting the argument OrganizationName to the value chakfig.
    [2/1/2015 2:19:20 PM] [0] The installed .msi file is current for this version of setup.
    [2/1/2015 2:19:20 PM] [0] RootDataHandler has 1 DataHandlers
    [2/1/2015 2:19:20 PM] [0] **************
    [2/1/2015 2:19:20 PM] [0] Setup will run the task 'Install-BridgeheadRole'
    [2/1/2015 2:19:20 PM] [1] Setup launched task 'Install-BridgeheadRole -DomainController 'PGCDC.chakfig.local' -UpdatesDir 'J:\EXSP01\SP3\Updates''  
    [2/1/2015 2:19:20 PM] [1] Beginning processing.
    [2/1/2015 2:19:20 PM] [1] Attempting Install for BridgeheadRole.
    [2/1/2015 2:19:20 PM] [1] The following roles are current: 
    [2/1/2015 2:19:26 PM] [1] Reading components for role 'BridgeheadRole' from 'res://BridgeheadRoleDefinition.xml'
    [2/1/2015 2:19:26 PM] [1] Found 22 components
    [2/1/2015 2:19:26 PM] [1] Loaded component 'All Roles Common First - Run Once' with 10 task info blocks from 'res://AllRolesCommonFirst_RunOnce.xml'
    [2/1/2015 2:19:26 PM] [1] Loaded component 'All Roles Common First' with 8 task info blocks from 'res://AllRolesCommonFirst.xml'
    [2/1/2015 2:19:27 PM] [1] Loaded component 'All Roles Precompile Management Binaries' with 30 task info blocks from 'res://AllRolesPrecompileManagementBinaries.xml'
    [2/1/2015 2:19:27 PM] [1] Loaded component 'Bridgehead Permissions Configuration' with 1 task info blocks from 'res://BridgeheadLocalPermissionsComponent.xml'
    [2/1/2015 2:19:27 PM] [1] Loaded component 'Common Perf Counters ' with 2 task info blocks from 'res://CommonPerfCountersComponent.xml'
    [2/1/2015 2:19:27 PM] [1] Loaded component 'Provision Server' with 9 task info blocks from 'res://ProvisionServerComponent.xml'
    [2/1/2015 2:19:28 PM] [1] Loaded component 'All Active-Directory Roles Common' with 14 task info blocks from 'res://AllADRolesCommon.xml'
    [2/1/2015 2:19:28 PM] [1] Loaded component 'Exchange 2003 Pseudo-MTA Configuration' with 1 task info blocks from 'res://LegacyMTAComponent.xml'
    [2/1/2015 2:19:28 PM] [1] Loaded component 'Exchange 2003 SMTP VSI Configuration' with 1 task info blocks from 'res://LegacySMTPComponent.xml'
    [2/1/2015 2:19:29 PM] [1] Loaded component 'Transport Perf Counters' with 21 task info blocks from 'res://TransportPerfCountersComponent.xml'
    [2/1/2015 2:19:29 PM] [1] Loaded component 'Enable RPC-EPMAP firewall exception' with 1 task info blocks from 'res://RpcEpmapFirewallException.xml'
    [2/1/2015 2:19:29 PM] [1] Loaded component 'Bridgehead Role Setter' with 1 task info blocks from 'res://BridgeheadRoleSetterComponent.xml'
    [2/1/2015 2:19:29 PM] [1] Loaded component 'Transport Common Configuration' with 22 task info blocks from 'res://TransportCommonComponent.xml'
    [2/1/2015 2:19:30 PM] [1] Loaded component 'Bridgehead Perf Counters' with 8 task info blocks from 'res://BridgeheadPerfCountersComponent.xml'
    [2/1/2015 2:19:30 PM] [1] Loaded component 'Bridgehead Configuration' with 18 task info blocks from 'res://BridgeheadComponent.xml'
    [2/1/2015 2:19:30 PM] [1] Loaded component 'Transport Log Search Service' with 1 task info blocks from 'res://TransportLogSearchServiceComponent.xml'
    [2/1/2015 2:19:31 PM] [1] Loaded component 'Data Storage Configuration' with 1 task info blocks from 'res://DataStorageComponent.xml'
    [2/1/2015 2:19:31 PM] [1] Loaded component 'Monitoring Service Configuration' with 5 task info blocks from 'res://MonitoringComponent.xml'
    [2/1/2015 2:19:31 PM] [1] Loaded component 'Active Directory Topology Service Configuration' with 2 task info blocks from 'res://AllADRolesCommonServiceControl.xml'
    [2/1/2015 2:19:31 PM] [1] Loaded component 'Bridgehead Service Configuration' with 3 task info blocks from 'res://BridgeheadServiceControl.xml'
    [2/1/2015 2:19:32 PM] [1] Loaded component 'Transport Common Service Control' with 1 task info blocks from 'res://TransportCommonServiceControl.xml'
    [2/1/2015 2:19:32 PM] [1] Loaded component 'All Roles Common Last' with 4 task info blocks from 'res://AllRolesCommonLast.xml'
    [2/1/2015 2:19:32 PM] [1] The following roles are installed: BridgeheadRole ClientAccessRole MailboxRole AdminToolsRole 
    [2/1/2015 2:19:32 PM] [1] Writing informational script to 'C:\ExchangeSetupLogs\Install-BridgeheadRole-20150201-1419320497.ps1'
    [2/1/2015 2:19:32 PM] [1] Executing '$RoleIsClusterNode = $False', handleError = False
    [2/1/2015 2:19:32 PM] [2] Launching sub-task '$error.Clear(); $RoleIsClusterNode = $False'.
    [2/1/2015 2:19:32 PM] [1] Executing '$RoleRoles = "BridgeheadRole,ClientAccessRole,MailboxRole,AdminToolsRole"', handleError = False
    [2/1/2015 2:19:32 PM] [2] Launching sub-task '$error.Clear(); $RoleRoles = "BridgeheadRole,ClientAccessRole,MailboxRole,AdminToolsRole"'.
    [2/1/2015 2:19:32 PM] [1] Executing '$RoleIsAdminToolsRoleInstalled = $True', handleError = False
    [2/1/2015 2:19:32 PM] [2] Launching sub-task '$error.Clear(); $RoleIsAdminToolsRoleInstalled = $True'.
    [2/1/2015 2:19:32 PM] [1] Executing '$RoleNetBIOSName = "pgcvmexg"', handleError = False
    [2/1/2015 2:19:32 PM] [2] Launching sub-task '$error.Clear(); $RoleNetBIOSName = "pgcvmexg"'.
    [2/1/2015 2:19:32 PM] [1] Executing '$RoleInvocationID = "20150201-1419320497"', handleError = False
    [2/1/2015 2:19:32 PM] [2] Launching sub-task '$error.Clear(); $RoleInvocationID = "20150201-1419320497"'.
    [2/1/2015 2:19:32 PM] [1] Executing '$RoleInstallPath = "C:\Program Files\Microsoft\Exchange Server\"', handleError = False
    [2/1/2015 2:19:32 PM] [2] Launching sub-task '$error.Clear(); $RoleInstallPath = "C:\Program Files\Microsoft\Exchange Server\"'.
    [2/1/2015 2:19:32 PM] [1] Executing '$RoleStartTransportService = $True', handleError = False
    [2/1/2015 2:19:32 PM] [2] Launching sub-task '$error.Clear(); $RoleStartTransportService = $True'.
    [2/1/2015 2:19:32 PM] [1] Executing '$RoleLoggedOnUser = "chakfig\Administrator"', handleError = False
    [2/1/2015 2:19:32 PM] [2] Launching sub-task '$error.Clear(); $RoleLoggedOnUser = "chakfig\Administrator"'.
    [2/1/2015 2:19:32 PM] [1] Executing '$RoleInstallationMode = "BuildToBuildUpgrade"', handleError = False
    [2/1/2015 2:19:32 PM] [2] Launching sub-task '$error.Clear(); $RoleInstallationMode = "BuildToBuildUpgrade"'.
    [2/1/2015 2:19:32 PM] [1] Executing '$RolePreviousVersion = "8.2.176.2"', handleError = False
    [2/1/2015 2:19:32 PM] [2] Launching sub-task '$error.Clear(); $RolePreviousVersion = "8.2.176.2"'.
    [2/1/2015 2:19:32 PM] [1] Executing '$RoleIsMailboxRoleInstalled = $True', handleError = False
    [2/1/2015 2:19:32 PM] [2] Launching sub-task '$error.Clear(); $RoleIsMailboxRoleInstalled = $True'.
    [2/1/2015 2:19:32 PM] [1] Executing '$RoleBinPath = "C:\Program Files\Microsoft\Exchange Server\Bin"', handleError = False
    [2/1/2015 2:19:32 PM] [2] Launching sub-task '$error.Clear(); $RoleBinPath = "C:\Program Files\Microsoft\Exchange Server\Bin"'.
    [2/1/2015 2:19:32 PM] [1] Executing '$RoleSetupLoggingPath = "C:\ExchangeSetupLogs"', handleError = False
    [2/1/2015 2:19:32 PM] [2] Launching sub-task '$error.Clear(); $RoleSetupLoggingPath = "C:\ExchangeSetupLogs"'.
    [2/1/2015 2:19:32 PM] [1] Executing '$RoleFqdnOrName = "pgcvmexg"', handleError = False
    [2/1/2015 2:19:32 PM] [2] Launching sub-task '$error.Clear(); $RoleFqdnOrName = "pgcvmexg"'.
    [2/1/2015 2:19:32 PM] [1] Executing '$RoleTargetVersion = "8.3.83.6"', handleError = False
    [2/1/2015 2:19:32 PM] [2] Launching sub-task '$error.Clear(); $RoleTargetVersion = "8.3.83.6"'.
    [2/1/2015 2:19:32 PM] [1] Executing '$RoleUpdatesDir = "J:\EXSP01\SP3\Updates"', handleError = False
    [2/1/2015 2:19:32 PM] [2] Launching sub-task '$error.Clear(); $RoleUpdatesDir = "J:\EXSP01\SP3\Updates"'.
    [2/1/2015 2:19:32 PM] [1] Executing '$RoleIsClientAccessRoleInstalled = $True', handleError = False
    [2/1/2015 2:19:32 PM] [2] Launching sub-task '$error.Clear(); $RoleIsClientAccessRoleInstalled = $True'.
    [2/1/2015 2:19:32 PM] [1] Executing '$RoleRoleName = "BridgeheadRole"', handleError = False
    [2/1/2015 2:19:32 PM] [2] Launching sub-task '$error.Clear(); $RoleRoleName = "BridgeheadRole"'.
    [2/1/2015 2:19:32 PM] [1] Executing '$RoleDomainController = "PGCDC.chakfig.local"', handleError = False
    [2/1/2015 2:19:32 PM] [2] Launching sub-task '$error.Clear(); $RoleDomainController = "PGCDC.chakfig.local"'.
    [2/1/2015 2:19:32 PM] [1] Executing '$RoleProductPlatform = "amd64"', handleError = False
    [2/1/2015 2:19:32 PM] [2] Launching sub-task '$error.Clear(); $RoleProductPlatform = "amd64"'.
    [2/1/2015 2:19:32 PM] [1] Executing '$RoleIsBridgeheadRoleInstalled = $True', handleError = False
    [2/1/2015 2:19:32 PM] [2] Launching sub-task '$error.Clear(); $RoleIsBridgeheadRoleInstalled = $True'.
    [2/1/2015 2:19:32 PM] [1] Executing '$RoleLoggingPath = "C:\Program Files\Microsoft\Exchange Server\Logging"', handleError = False
    [2/1/2015 2:19:32 PM] [2] Launching sub-task '$error.Clear(); $RoleLoggingPath = "C:\Program Files\Microsoft\Exchange Server\Logging"'.
    [2/1/2015 2:19:32 PM] [1] Found 136 tasks to execute
    [2/1/2015 2:19:32 PM] [1] Processing component 'All Roles Common First - Run Once' (Configuring the server.).
    [2/1/2015 2:19:32 PM] [1] Executing 'if ($RoleProductPlatform -eq "amd64") { $watsonMSI = 'dw20sharedamd64.msi'; $watsonMSILogFileName = 'Installdw20sharedamd64.msilog'; } else { $watsonMSI = 'dw20shared.msi'; $watsonMSILogFileName = 'Installdw20shared.msilog';
    } install-MsiPackage -PackagePath ($RoleInstallPath + "bin\$watsonMSI") -LogFile ($RoleSetupLoggingPath + "\$watsonMSILogFileName") -UpdatesDir $RoleUpdatesDir -PropertyValues ("APPGUID=`"{24B2C164-DE66-44fe-B468-A46D9D5E6B31}`"
    LOGVERBOSE=1");', handleError = False
    [2/1/2015 2:19:32 PM] [2] Launching sub-task '$error.Clear(); if ($RoleProductPlatform -eq "amd64") { $watsonMSI = 'dw20sharedamd64.msi'; $watsonMSILogFileName = 'Installdw20sharedamd64.msilog'; } else { $watsonMSI = 'dw20shared.msi'; $watsonMSILogFileName
    = 'Installdw20shared.msilog'; } install-MsiPackage -PackagePath ($RoleInstallPath + "bin\$watsonMSI") -LogFile ($RoleSetupLoggingPath + "\$watsonMSILogFileName") -UpdatesDir $RoleUpdatesDir -PropertyValues ("APPGUID=`"{24B2C164-DE66-44fe-B468-A46D9D5E6B31}`"
    LOGVERBOSE=1");'.
    [2/1/2015 2:19:32 PM] [2] Beginning processing.
    [2/1/2015 2:19:33 PM] [2] ProductCode is '95120000-00b9-0409-1000-0000000ff1ce'.
    [2/1/2015 2:19:33 PM] [2] PackagePath was set to 'C:\Program Files\Microsoft\Exchange Server\bin\dw20sharedamd64.msi'; normalizing to 'C:\Program Files\Microsoft\Exchange Server\bin\dw20sharedamd64.msi'.
    [2/1/2015 2:19:33 PM] [2] ProductCode is '95120000-00b9-0409-1000-0000000ff1ce'.
    [2/1/2015 2:19:33 PM] [2] Installing MSI package 'C:\Program Files\Microsoft\Exchange Server\bin\dw20sharedamd64.msi'.
    [2/1/2015 2:19:34 PM] [2] Ending processing.
    [2/1/2015 2:19:34 PM] [1] Executing 'Set-InstallPathInAppConfig -ConfigFileRelativePath "Scripts\" -ConfigFileName "Exchange2007.xml" -ReplacementString "%ProgramFiles%\Microsoft\Exchange Server\";', handleError = False
    [2/1/2015 2:19:34 PM] [2] Launching sub-task '$error.Clear(); Set-InstallPathInAppConfig -ConfigFileRelativePath "Scripts\" -ConfigFileName "Exchange2007.xml" -ReplacementString "%ProgramFiles%\Microsoft\Exchange Server\";'.
    [2/1/2015 2:19:34 PM] [2] Beginning processing.
    [2/1/2015 2:19:34 PM] [2] Ending processing.
    [2/1/2015 2:19:34 PM] [1] Executing 'Remove-XmlNode -XmlFileRelativePath "Scripts\" -XmlFileName "Exchange2007.xml" -XmlNodeNameToRemove "_locDefinition";', handleError = False
    [2/1/2015 2:19:34 PM] [2] Launching sub-task '$error.Clear(); Remove-XmlNode -XmlFileRelativePath "Scripts\" -XmlFileName "Exchange2007.xml" -XmlNodeNameToRemove "_locDefinition";'.
    [2/1/2015 2:19:34 PM] [2] Beginning processing.
    [2/1/2015 2:19:34 PM] [2] ExchangeInstallPath = C:\Program Files\Microsoft\Exchange Server\, Relative Path = Scripts\, Xml Full File Path = C:\Program Files\Microsoft\Exchange Server\Scripts\Exchange2007.xml, Xml Node Name = _locDefinition
    [2/1/2015 2:19:34 PM] [2] Ending processing.
    [2/1/2015 2:19:34 PM] [1] Executing 'Set-InstallPathInAppConfig -ConfigFileRelativePath "Scripts\" -ConfigFileName "Exchange2007Edge.xml" -ReplacementString "%ProgramFiles%\Microsoft\Exchange Server\";', handleError = False
    [2/1/2015 2:19:34 PM] [2] Launching sub-task '$error.Clear(); Set-InstallPathInAppConfig -ConfigFileRelativePath "Scripts\" -ConfigFileName "Exchange2007Edge.xml" -ReplacementString "%ProgramFiles%\Microsoft\Exchange Server\";'.
    [2/1/2015 2:19:34 PM] [2] Beginning processing.
    [2/1/2015 2:19:34 PM] [2] Ending processing.
    [2/1/2015 2:19:34 PM] [1] Executing 'Remove-XmlNode -XmlFileRelativePath "Scripts\" -XmlFileName "Exchange2007Edge.xml" -XmlNodeNameToRemove "_locDefinition";', handleError = False
    [2/1/2015 2:19:34 PM] [2] Launching sub-task '$error.Clear(); Remove-XmlNode -XmlFileRelativePath "Scripts\" -XmlFileName "Exchange2007Edge.xml" -XmlNodeNameToRemove "_locDefinition";'.
    [2/1/2015 2:19:34 PM] [2] Beginning processing.
    [2/1/2015 2:19:34 PM] [2] ExchangeInstallPath = C:\Program Files\Microsoft\Exchange Server\, Relative Path = Scripts\, Xml Full File Path = C:\Program Files\Microsoft\Exchange Server\Scripts\Exchange2007Edge.xml, Xml Node Name = _locDefinition
    [2/1/2015 2:19:34 PM] [2] Ending processing.
    [2/1/2015 2:19:34 PM] [1] Executing 'Set-InstallPathInAppConfig -ConfigFileRelativePath "Scripts\" -ConfigFileName "Exchange2007_WinSrv2008.xml" -ReplacementString "%ProgramFiles%\Microsoft\Exchange Server\";', handleError = False
    [2/1/2015 2:19:34 PM] [2] Launching sub-task '$error.Clear(); Set-InstallPathInAppConfig -ConfigFileRelativePath "Scripts\" -ConfigFileName "Exchange2007_WinSrv2008.xml" -ReplacementString "%ProgramFiles%\Microsoft\Exchange Server\";'.
    [2/1/2015 2:19:34 PM] [2] Beginning processing.
    [2/1/2015 2:19:34 PM] [2] Ending processing.
    [2/1/2015 2:19:34 PM] [1] Executing 'Remove-XmlNode -XmlFileRelativePath "Scripts\" -XmlFileName "Exchange2007_WinSrv2008.xml" -XmlNodeNameToRemove "_locDefinition";', handleError = False
    [2/1/2015 2:19:34 PM] [2] Launching sub-task '$error.Clear(); Remove-XmlNode -XmlFileRelativePath "Scripts\" -XmlFileName "Exchange2007_WinSrv2008.xml" -XmlNodeNameToRemove "_locDefinition";'.
    [2/1/2015 2:19:34 PM] [2] Beginning processing.
    [2/1/2015 2:19:34 PM] [2] ExchangeInstallPath = C:\Program Files\Microsoft\Exchange Server\, Relative Path = Scripts\, Xml Full File Path = C:\Program Files\Microsoft\Exchange Server\Scripts\Exchange2007_WinSrv2008.xml, Xml Node Name = _locDefinition
    [2/1/2015 2:19:34 PM] [2] Ending processing.
    [2/1/2015 2:19:34 PM] [1] Executing 'Set-InstallPathInAppConfig -ConfigFileRelativePath "Scripts\" -ConfigFileName "Exchange2007Edge_WinSrv2008.xml" -ReplacementString "%ProgramFiles%\Microsoft\Exchange Server\";', handleError
    = False
    [2/1/2015 2:19:34 PM] [2] Launching sub-task '$error.Clear(); Set-InstallPathInAppConfig -ConfigFileRelativePath "Scripts\" -ConfigFileName "Exchange2007Edge_WinSrv2008.xml" -ReplacementString "%ProgramFiles%\Microsoft\Exchange Server\";'.
    [2/1/2015 2:19:34 PM] [2] Beginning processing.
    [2/1/2015 2:19:34 PM] [2] Ending processing.
    [2/1/2015 2:19:34 PM] [1] Executing 'Remove-XmlNode -XmlFileRelativePath "Scripts\" -XmlFileName "Exchange2007Edge_WinSrv2008.xml" -XmlNodeNameToRemove "_locDefinition";', handleError = False
    [2/1/2015 2:19:34 PM] [2] Launching sub-task '$error.Clear(); Remove-XmlNode -XmlFileRelativePath "Scripts\" -XmlFileName "Exchange2007Edge_WinSrv2008.xml" -XmlNodeNameToRemove "_locDefinition";'.
    [2/1/2015 2:19:34 PM] [2] Beginning processing.
    [2/1/2015 2:19:34 PM] [2] ExchangeInstallPath = C:\Program Files\Microsoft\Exchange Server\, Relative Path = Scripts\, Xml Full File Path = C:\Program Files\Microsoft\Exchange Server\Scripts\Exchange2007Edge_WinSrv2008.xml, Xml Node Name = _locDefinition
    [2/1/2015 2:19:34 PM] [2] Ending processing.
    [2/1/2015 2:19:34 PM] [1] Executing 'Set-WERRegistryMarkers;', handleError = False
    [2/1/2015 2:19:34 PM] [2] Launching sub-task '$error.Clear(); Set-WERRegistryMarkers;'.
    [2/1/2015 2:19:34 PM] [2] Beginning processing.
    [2/1/2015 2:19:34 PM] [2] Ending processing.
    [2/1/2015 2:19:35 PM] [1] Processing component 'All Roles Common First' (Creating the Exchange server configuration in the Active Directory).
    [2/1/2015 2:19:35 PM] [1] Executing '$RoleNames = $RoleRoles.Replace('Role','').Split(','); .\ServiceControl.ps1 EnableServices $RoleNames', handleError = False
    [2/1/2015 2:19:35 PM] [2] Launching sub-task '$error.Clear(); $RoleNames = $RoleRoles.Replace('Role','').Split(','); .\ServiceControl.ps1 EnableServices $RoleNames'.
    [2/1/2015 2:19:35 PM] [1] Executing 'Set-LocalPermissions', handleError = False
    [2/1/2015 2:19:35 PM] [2] Launching sub-task '$error.Clear(); Set-LocalPermissions'.
    [2/1/2015 2:19:35 PM] [2] Beginning processing.
    [2/1/2015 2:19:49 PM] [2] Ending processing.
    [2/1/2015 2:19:49 PM] [1] Executing 'get-service | where { $_.Name -ieq "HealthService" } | stop-service -Force:$true', handleError = False
    [2/1/2015 2:19:49 PM] [2] Launching sub-task '$error.Clear(); get-service | where { $_.Name -ieq "HealthService" } | stop-service -Force:$true'.
    [2/1/2015 2:19:49 PM] [1] Executing 'get-service | where { $_.Name -ieq "MOM" } | stop-service -Force:$true', handleError = False
    [2/1/2015 2:19:49 PM] [2] Launching sub-task '$error.Clear(); get-service | where { $_.Name -ieq "MOM" } | stop-service -Force:$true'.
    [2/1/2015 2:19:49 PM] [1] Executing 'get-service | where { $_.Name -ieq "OnePoint" } | stop-service -Force:$true', handleError = False
    [2/1/2015 2:19:49 PM] [2] Launching sub-task '$error.Clear(); get-service | where { $_.Name -ieq "OnePoint" } | stop-service -Force:$true'.
    [2/1/2015 2:19:49 PM] [1] Executing '$mofFilePath = ($RoleInstallPath + "bin\Exchange.MOF"); $mflFilePath = ($RoleInstallPath + "bin\Exchange.MFL"); compile-moffile -MofFilePath:$mofFilePath; compile-moffile -MofFilePath:$mflFilePath;',
    handleError = True
    [2/1/2015 2:19:49 PM] [2] Launching sub-task '$error.Clear(); $mofFilePath = ($RoleInstallPath + "bin\Exchange.MOF"); $mflFilePath = ($RoleInstallPath + "bin\Exchange.MFL"); compile-moffile -MofFilePath:$mofFilePath; compile-moffile
    -MofFilePath:$mflFilePath;'.
    [2/1/2015 2:19:49 PM] [2] Beginning processing.
    [2/1/2015 2:19:49 PM] [2] Exchange tracing provider was installed successfully.
    [2/1/2015 2:19:49 PM] [2] Ending processing.
    [2/1/2015 2:19:49 PM] [2] Beginning processing.
    [2/1/2015 2:19:49 PM] [2] Exchange tracing provider was installed successfully.
    [2/1/2015 2:19:49 PM] [2] Ending processing.
    [2/1/2015 2:19:49 PM] [1] Processing component 'All Roles Precompile Management Binaries' (Pre-compiling management binaries.).
    [2/1/2015 2:19:49 PM] [1] Executing '$fullPath = [System.IO.Path]::Combine($RoleInstallPath, "bin\microsoft.Exchange.Rpc.dll"); precompile-ManagedBinary -BinaryName $fullPath;', handleError = False
    [2/1/2015 2:19:49 PM] [2] Launching sub-task '$error.Clear(); $fullPath = [System.IO.Path]::Combine($RoleInstallPath, "bin\microsoft.Exchange.Rpc.dll"); precompile-ManagedBinary -BinaryName $fullPath;'.
    [2/1/2015 2:19:49 PM] [2] Beginning processing.
    [2/1/2015 2:19:49 PM] [2] Starting: C:\Windows\Microsoft.NET\Framework64\v2.0.50727\ngen.exe arguments: install "C:\Program Files\Microsoft\Exchange Server\bin\microsoft.Exchange.Rpc.dll" /verbose
    [2/1/2015 2:19:50 PM] [2] Process standard output: Microsoft (R) CLR Native Image Generator - Version 2.0.50727.4252
    Copyright (c) Microsoft Corporation.  All rights reserved.
    Installing assembly C:\Program Files\Microsoft\Exchange Server\bin\microsoft.Exchange.Rpc.dll
    All compilation targets are up to date.
    [2/1/2015 2:19:50 PM] [2] Process standard error: 
    [2/1/2015 2:19:50 PM] [2] Ending processing.
    [2/1/2015 2:19:50 PM] [1] Executing '$fullPath = [System.IO.Path]::Combine($RoleInstallPath, "bin\microsoft.Exchange.Common.IL.dll"); precompile-ManagedBinary -BinaryName $fullPath;', handleError = False
    [2/1/2015 2:19:50 PM] [2] Launching sub-task '$error.Clear(); $fullPath = [System.IO.Path]::Combine($RoleInstallPath, "bin\microsoft.Exchange.Common.IL.dll"); precompile-ManagedBinary -BinaryName $fullPath;'.
    [2/1/2015 2:19:50 PM] [2] Beginning processing.
    [2/1/2015 2:19:50 PM] [2] Starting: C:\Windows\Microsoft.NET\Framework64\v2.0.50727\ngen.exe arguments: install "C:\Program Files\Microsoft\Exchange Server\bin\microsoft.Exchange.Common.IL.dll" /verbose
    [2/1/2015 2:19:50 PM] [2] Process standard output: Microsoft (R) CLR Native Image Generator - Version 2.0.50727.4252
    Copyright (c) Microsoft Corporation.  All rights reserved.
    Installing assembly C:\Program Files\Microsoft\Exchange Server\bin\microsoft.Exchange.Common.IL.dll
    All compilation targets are up to date.
    [2/1/2015 2:19:50 PM] [2] Process standard error: 
    [2/1/2015 2:19:50 PM] [2] Ending processing.
    [2/1/2015 2:19:50 PM] [1] Executing '$fullPath = [System.IO.Path]::Combine($RoleInstallPath, "bin\Microsoft.Exchange.Diagnostics.dll"); precompile-ManagedBinary -BinaryName $fullPath;', handleError = False
    [2/1/2015 2:19:50 PM] [2] Launching sub-task '$error.Clear(); $fullPath = [System.IO.Path]::Combine($RoleInstallPath, "bin\Microsoft.Exchange.Diagnostics.dll"); precompile-ManagedBinary -BinaryName $fullPath;'.
    [2/1/2015 2:19:50 PM] [2] Beginning processing.
    [2/1/2015 2:19:50 PM] [2] Starting: C:\Windows\Microsoft.NET\Framework64\v2.0.50727\ngen.exe arguments: install "C:\Program Files\Microsoft\Exchange Server\bin\Microsoft.Exchange.Diagnostics.dll" /verbose
    [2/1/2015 2:19:51 PM] [2] Process standard output: Microsoft (R) CLR Native Image Generator - Version 2.0.50727.4252
    Copyright (c) Microsoft Corporation.  All rights reserved.
    Installing assembly C:\Program Files\Microsoft\Exchange Server\bin\Microsoft.Exchange.Diagnostics.dll
    All compilation targets are up to date.
    [2/1/2015 2:19:51 PM] [2] Process standard error: 
    [2/1/2015 2:19:51 PM] [2] Ending processing
    [2/1/2015 2:20:07 PM] [2] Process standard error: 
    [2/1/2015 2:20:07 PM] [2] Ending processing.
    [2/1/2015 2:20:07 PM] [1] Executing '$fullPath = [System.IO.Path]::Combine($RoleInstallPath, "bin\Microsoft.Exchange.PowerShell.configuration.dll"); precompile-ManagedBinary -BinaryName $fullPath;', handleError = False
    [2/1/2015 2:20:07 PM] [2] Launching sub-task '$error.Clear(); $fullPath = [System.IO.Path]::Combine($RoleInstallPath, "bin\Microsoft.Exchange.PowerShell.configuration.dll"); precompile-ManagedBinary -BinaryName $fullPath;'.
    [2/1/2015 2:20:07 PM] [2] Beginning processing.
    [2/1/2015 2:20:07 PM] [2] Starting: C:\Windows\Microsoft.NET\Framework64\v2.0.50727\ngen.exe arguments: install "C:\Program Files\Microsoft\Exchange Server\bin\Microsoft.Exchange.PowerShell.configuration.dll" /verbose
    [2/1/2015 2:20:10 PM] [2] Process standard output: Microsoft (R) CLR Native Image Generator - Version 2.0.50727.4252
    Copyright (c) Microsoft Corporation.  All rights reserved.
    Installing assembly C:\Program Files\Microsoft\Exchange Server\bin\Microsoft.Exchange.PowerShell.configuration.dll
    All compilation targets are up to date.
    [2/1/2015 2:20:10 PM] [2] Process standard error: 
    [2/1/2015 2:20:10 PM] [2] Ending processing.
    [2/1/2015 2:20:10 PM] [1] Executing '$fullPath = [System.IO.Path]::Combine($RoleInstallPath, "bin\Microsoft.Exchange.Management.SnapIn.Esm.dll"); precompile-ManagedBinary -BinaryName $fullPath;', handleError = False
    [2/1/2015 2:20:10 PM] [2] Launching sub-task '$error.Clear(); $fullPath = [System.IO.Path]::Combine($RoleInstallPath, "bin\Microsoft.Exchange.Management.SnapIn.Esm.dll"); precompile-ManagedBinary -BinaryName $fullPath;'.
    [2/1/2015 2:20:10 PM] [2] Beginning processing.
    [2/1/2015 2:20:10 PM] [2] Starting: C:\Windows\Microsoft.NET\Framework64\v2.0.50727\ngen.exe arguments: install "C:\Program Files\Microsoft\Exchange Server\bin\Microsoft.Exchange.Management.SnapIn.Esm.dll" /verbose
    [2/1/2015 2:20:12 PM] [2] Process standard output: Microsoft (R) CLR Native Image Generator - Version 2.0.50727.4252
    Copyright (c) Microsoft Corporation.  All rights reserved.
    Installing assembly C:\Program Files\Microsoft\Exchange Server\bin\Microsoft.Exchange.Management.SnapIn.Esm.dll
    All compilation targets are up to date.
    [2/1/2015 2:20:12 PM] [2] Process standard error: 
    [2/1/2015 2:20:12 PM] [2] Ending processing.
    [2/1/2015 2:20:12 PM] [1] Processing component 'Bridgehead Permissions Configuration' (Setting folder and registry permissions).
    [2/1/2015 2:20:12 PM] [1] Executing 'Set-LocalPermissions -Feature:"Bridgehead"', handleError = False
    [2/1/2015 2:20:12 PM] [2] Launching sub-task '$error.Clear(); Set-LocalPermissions -Feature:"Bridgehead"'.
    [2/1/2015 2:20:12 PM] [2] Beginning processing.
    [2/1/2015 2:20:12 PM] [2] Ending processing.
    [2/1/2015 2:20:12 PM] [1] Processing component 'Common Perf Counters ' (Configuring performance counters).
    [2/1/2015 2:20:12 PM] [1] Executing 'new-perfcounters -DefinitionFileName ExchangeTopologyPerformanceCounters.xml', handleError = True
    [2/1/2015 2:20:12 PM] [2] Launching sub-task '$error.Clear(); new-perfcounters -DefinitionFileName ExchangeTopologyPerformanceCounters.xml'.
    [2/1/2015 2:20:12 PM] [2] Beginning processing.
    [2/1/2015 2:20:12 PM] [2] Processing file: C:\Program Files\Microsoft\Exchange Server\Setup\Perf\ExchangeTopologyPerformanceCounters.xml
    [2/1/2015 2:20:12 PM] [2] Performance counter name is Latest Exchange Topology Discovery Time in Seconds, type is NumberOfItems32.
    [2/1/2015 2:20:12 PM] [2] Performance counter name is Number of Exchange Topology Discoveries, type is NumberOfItems32.
    [2/1/2015 2:20:12 PM] [2] Performance counter name is Number of Siteless Servers, type is NumberOfItems32.
    Appreciate if someone can help us move forward in this scenario.
    We have
    1. disabled anti virus and tried.
    2. removed watermarks and action entries in the registry
    3. tried almost everything mentioned on google but i am not able to move forward.
    Please help. we need this as part of our migration to Exchange 2013 for co-existence.
    Thank you.
    Philip

    ExchangeSetup.log (part 3)
    [2/2/2015 8:06:45 PM] [1] Executing '$RoleSetupLoggingPath = "C:\ExchangeSetupLogs"', handleError = False
    [2/2/2015 8:06:45 PM] [2] Launching sub-task '$error.Clear(); $RoleSetupLoggingPath = "C:\ExchangeSetupLogs"'.
    [2/2/2015 8:06:45 PM] [1] Executing '$RoleFqdnOrName = "pgcvmexg"', handleError = False
    [2/2/2015 8:06:45 PM] [2] Launching sub-task '$error.Clear(); $RoleFqdnOrName = "pgcvmexg"'.
    [2/2/2015 8:06:45 PM] [1] Executing '$RoleTargetVersion = "8.3.83.6"', handleError = False
    [2/2/2015 8:06:45 PM] [2] Launching sub-task '$error.Clear(); $RoleTargetVersion = "8.3.83.6"'.
    [2/2/2015 8:06:45 PM] [1] Executing '$RoleUpdatesDir = "C:\SP3\Updates"', handleError = False
    [2/2/2015 8:06:45 PM] [2] Launching sub-task '$error.Clear(); $RoleUpdatesDir = "C:\SP3\Updates"'.
    [2/2/2015 8:06:45 PM] [1] Executing '$RoleIsClientAccessRoleInstalled = $True', handleError = False
    [2/2/2015 8:06:45 PM] [2] Launching sub-task '$error.Clear(); $RoleIsClientAccessRoleInstalled = $True'.
    [2/2/2015 8:06:45 PM] [1] Executing '$RoleRoleName = "BridgeheadRole"', handleError = False
    [2/2/2015 8:06:45 PM] [2] Launching sub-task '$error.Clear(); $RoleRoleName = "BridgeheadRole"'.
    [2/2/2015 8:06:45 PM] [1] Executing '$RoleDomainController = "PGCDC.platcorp.local"', handleError = False
    [2/2/2015 8:06:45 PM] [2] Launching sub-task '$error.Clear(); $RoleDomainController = "PGCDC.platcorp.local"'.
    [2/2/2015 8:06:45 PM] [1] Executing '$RoleProductPlatform = "amd64"', handleError = False
    [2/2/2015 8:06:45 PM] [2] Launching sub-task '$error.Clear(); $RoleProductPlatform = "amd64"'.
    [2/2/2015 8:06:45 PM] [1] Executing '$RoleIsBridgeheadRoleInstalled = $True', handleError = False
    [2/2/2015 8:06:45 PM] [2] Launching sub-task '$error.Clear(); $RoleIsBridgeheadRoleInstalled = $True'.
    [2/2/2015 8:06:45 PM] [1] Executing '$RoleLoggingPath = "C:\Program Files\Microsoft\Exchange Server\Logging"', handleError = False
    [2/2/2015 8:06:45 PM] [2] Launching sub-task '$error.Clear(); $RoleLoggingPath = "C:\Program Files\Microsoft\Exchange Server\Logging"'.
    [2/2/2015 8:06:45 PM] [1] Found 136 tasks to execute
    [2/2/2015 8:06:45 PM] [1] Processing component 'All Roles Common First - Run Once' (Configuring the server.).
    [2/2/2015 8:06:45 PM] [1] Executing 'if ($RoleProductPlatform -eq "amd64") { $watsonMSI = 'dw20sharedamd64.msi'; $watsonMSILogFileName = 'Installdw20sharedamd64.msilog'; } else { $watsonMSI = 'dw20shared.msi'; $watsonMSILogFileName = 'Installdw20shared.msilog';
    } install-MsiPackage -PackagePath ($RoleInstallPath + "bin\$watsonMSI") -LogFile ($RoleSetupLoggingPath + "\$watsonMSILogFileName") -UpdatesDir $RoleUpdatesDir -PropertyValues ("APPGUID=`"{24B2C164-DE66-44fe-B468-A46D9D5E6B31}`"
    LOGVERBOSE=1");', handleError = False
    [2/2/2015 8:06:45 PM] [2] Launching sub-task '$error.Clear(); if ($RoleProductPlatform -eq "amd64") { $watsonMSI = 'dw20sharedamd64.msi'; $watsonMSILogFileName = 'Installdw20sharedamd64.msilog'; } else { $watsonMSI = 'dw20shared.msi'; $watsonMSILogFileName
    = 'Installdw20shared.msilog'; } install-MsiPackage -PackagePath ($RoleInstallPath + "bin\$watsonMSI") -LogFile ($RoleSetupLoggingPath + "\$watsonMSILogFileName") -UpdatesDir $RoleUpdatesDir -PropertyValues ("APPGUID=`"{24B2C164-DE66-44fe-B468-A46D9D5E6B31}`"
    LOGVERBOSE=1");'.
    [2/2/2015 8:06:45 PM] [2] Beginning processing.
    [2/2/2015 8:06:45 PM] [2] ProductCode is '95120000-00b9-0409-1000-0000000ff1ce'.
    [2/2/2015 8:06:45 PM] [2] PackagePath was set to 'C:\Program Files\Microsoft\Exchange Server\bin\dw20sharedamd64.msi'; normalizing to 'C:\Program Files\Microsoft\Exchange Server\bin\dw20sharedamd64.msi'.
    [2/2/2015 8:06:45 PM] [2] ProductCode is '95120000-00b9-0409-1000-0000000ff1ce'.
    [2/2/2015 8:06:45 PM] [2] Installing MSI package 'C:\Program Files\Microsoft\Exchange Server\bin\dw20sharedamd64.msi'.
    [2/2/2015 8:06:47 PM] [2] Ending processing.
    [2/2/2015 8:06:47 PM] [1] Executing 'Set-InstallPathInAppConfig -ConfigFileRelativePath "Scripts\" -ConfigFileName "Exchange2007.xml" -ReplacementString "%ProgramFiles%\Microsoft\Exchange Server\";', handleError = False
    [2/2/2015 8:06:47 PM] [2] Launching sub-task '$error.Clear(); Set-InstallPathInAppConfig -ConfigFileRelativePath "Scripts\" -ConfigFileName "Exchange2007.xml" -ReplacementString "%ProgramFiles%\Microsoft\Exchange Server\";'.
    [2/2/2015 8:06:47 PM] [2] Beginning processing.
    [2/2/2015 8:06:47 PM] [2] Ending processing.
    [2/2/2015 8:06:47 PM] [1] Executing 'Remove-XmlNode -XmlFileRelativePath "Scripts\" -XmlFileName "Exchange2007.xml" -XmlNodeNameToRemove "_locDefinition";', handleError = False
    [2/2/2015 8:06:47 PM] [2] Launching sub-task '$error.Clear(); Remove-XmlNode -XmlFileRelativePath "Scripts\" -XmlFileName "Exchange2007.xml" -XmlNodeNameToRemove "_locDefinition";'.
    [2/2/2015 8:06:47 PM] [2] Beginning processing.
    [2/2/2015 8:06:47 PM] [2] ExchangeInstallPath = C:\Program Files\Microsoft\Exchange Server\, Relative Path = Scripts\, Xml Full File Path = C:\Program Files\Microsoft\Exchange Server\Scripts\Exchange2007.xml, Xml Node Name = _locDefinition
    [2/2/2015 8:06:47 PM] [2] Ending processing.
    [2/2/2015 8:06:47 PM] [1] Executing 'Set-InstallPathInAppConfig -ConfigFileRelativePath "Scripts\" -ConfigFileName "Exchange2007Edge.xml" -ReplacementString "%ProgramFiles%\Microsoft\Exchange Server\";', handleError = False
    [2/2/2015 8:06:47 PM] [2] Launching sub-task '$error.Clear(); Set-InstallPathInAppConfig -ConfigFileRelativePath "Scripts\" -ConfigFileName "Exchange2007Edge.xml" -ReplacementString "%ProgramFiles%\Microsoft\Exchange Server\";'.
    [2/2/2015 8:06:47 PM] [2] Beginning processing.
    [2/2/2015 8:06:47 PM] [2] Ending processing.
    [2/2/2015 8:06:47 PM] [1] Executing 'Remove-XmlNode -XmlFileRelativePath "Scripts\" -XmlFileName "Exchange2007Edge.xml" -XmlNodeNameToRemove "_locDefinition";', handleError = False
    [2/2/2015 8:06:47 PM] [2] Launching sub-task '$error.Clear(); Remove-XmlNode -XmlFileRelativePath "Scripts\" -XmlFileName "Exchange2007Edge.xml" -XmlNodeNameToRemove "_locDefinition";'.
    [2/2/2015 8:06:47 PM] [2] Beginning processing.
    [2/2/2015 8:06:47 PM] [2] ExchangeInstallPath = C:\Program Files\Microsoft\Exchange Server\, Relative Path = Scripts\, Xml Full File Path = C:\Program Files\Microsoft\Exchange Server\Scripts\Exchange2007Edge.xml, Xml Node Name = _locDefinition
    [2/2/2015 8:06:47 PM] [2] Ending processing.
    [2/2/2015 8:06:47 PM] [1] Executing 'Set-InstallPathInAppConfig -ConfigFileRelativePath "Scripts\" -ConfigFileName "Exchange2007_WinSrv2008.xml" -ReplacementString "%ProgramFiles%\Microsoft\Exchange Server\";', handleError = False
    [2/2/2015 8:06:47 PM] [2] Launching sub-task '$error.Clear(); Set-InstallPathInAppConfig -ConfigFileRelativePath "Scripts\" -ConfigFileName "Exchange2007_WinSrv2008.xml" -ReplacementString "%ProgramFiles%\Microsoft\Exchange Server\";'.
    [2/2/2015 8:06:47 PM] [2] Beginning processing.
    [2/2/2015 8:06:47 PM] [2] Ending processing.
    [2/2/2015 8:06:47 PM] [1] Executing 'Remove-XmlNode -XmlFileRelativePath "Scripts\" -XmlFileName "Exchange2007_WinSrv2008.xml" -XmlNodeNameToRemove "_locDefinition";', handleError = False
    [2/2/2015 8:06:47 PM] [2] Launching sub-task '$error.Clear(); Remove-XmlNode -XmlFileRelativePath "Scripts\" -XmlFileName "Exchange2007_WinSrv2008.xml" -XmlNodeNameToRemove "_locDefinition";'.
    [2/2/2015 8:06:47 PM] [2] Beginning processing.
    [2/2/2015 8:06:47 PM] [2] ExchangeInstallPath = C:\Program Files\Microsoft\Exchange Server\, Relative Path = Scripts\, Xml Full File Path = C:\Program Files\Microsoft\Exchange Server\Scripts\Exchange2007_WinSrv2008.xml, Xml Node Name = _locDefinition
    [2/2/2015 8:06:47 PM] [2] Ending processing.
    [2/2/2015 8:06:47 PM] [1] Executing 'Set-InstallPathInAppConfig -ConfigFileRelativePath "Scripts\" -ConfigFileName "Exchange2007Edge_WinSrv2008.xml" -ReplacementString "%ProgramFiles%\Microsoft\Exchange Server\";', handleError
    = False
    [2/2/2015 8:06:47 PM] [2] Launching sub-task '$error.Clear(); Set-InstallPathInAppConfig -ConfigFileRelativePath "Scripts\" -ConfigFileName "Exchange2007Edge_WinSrv2008.xml" -ReplacementString "%ProgramFiles%\Microsoft\Exchange Server\";'.
    [2/2/2015 8:06:47 PM] [2] Beginning processing.
    [2/2/2015 8:06:47 PM] [2] Ending processing.
    [2/2/2015 8:06:47 PM] [1] Executing 'Remove-XmlNode -XmlFileRelativePath "Scripts\" -XmlFileName "Exchange2007Edge_WinSrv2008.xml" -XmlNodeNameToRemove "_locDefinition";', handleError = False
    [2/2/2015 8:06:47 PM] [2] Launching sub-task '$error.Clear(); Remove-XmlNode -XmlFileRelativePath "Scripts\" -XmlFileName "Exchange2007Edge_WinSrv2008.xml" -XmlNodeNameToRemove "_locDefinition";'.
    [2/2/2015 8:06:47 PM] [2] Beginning processing.
    [2/2/2015 8:06:47 PM] [2] ExchangeInstallPath = C:\Program Files\Microsoft\Exchange Server\, Relative Path = Scripts\, Xml Full File Path = C:\Program Files\Microsoft\Exchange Server\Scripts\Exchange2007Edge_WinSrv2008.xml, Xml Node Name = _locDefinition
    [2/2/2015 8:06:47 PM] [2] Ending processing.
    [2/2/2015 8:06:47 PM] [1] Executing 'Set-WERRegistryMarkers;', handleError = False
    [2/2/2015 8:06:47 PM] [2] Launching sub-task '$error.Clear(); Set-WERRegistryMarkers;'.
    [2/2/2015 8:06:47 PM] [2] Beginning processing.
    [2/2/2015 8:06:47 PM] [2] Ending processing.
    [2/2/2015 8:06:47 PM] [1] Processing component 'All Roles Common First' (Creating the Exchange server configuration in the Active Directory).
    [2/2/2015 8:06:47 PM] [1] Executing '$RoleNames = $RoleRoles.Replace('Role','').Split(','); .\ServiceControl.ps1 EnableServices $RoleNames', handleError = False
    [2/2/2015 8:06:47 PM] [2] Launching sub-task '$error.Clear(); $RoleNames = $RoleRoles.Replace('Role','').Split(','); .\ServiceControl.ps1 EnableServices $RoleNames'.
    [2/2/2015 8:06:47 PM] [1] Executing 'Set-LocalPermissions', handleError = False
    [2/2/2015 8:06:47 PM] [2] Launching sub-task '$error.Clear(); Set-LocalPermissions'.
    [2/2/2015 8:06:47 PM] [2] Beginning processing.
    [2/2/2015 8:07:00 PM] [2] Ending processing.
    [2/2/2015 8:07:00 PM] [1] Executing 'get-service | where { $_.Name -ieq "HealthService" } | stop-service -Force:$true', handleError = False
    [2/2/2015 8:07:00 PM] [2] Launching sub-task '$error.Clear(); get-service | where { $_.Name -ieq "HealthService" } | stop-service -Force:$true'.
    [2/2/2015 8:07:00 PM] [1] Executing 'get-service | where { $_.Name -ieq "MOM" } | stop-service -Force:$true', handleError = False
    [2/2/2015 8:07:00 PM] [2] Launching sub-task '$error.Clear(); get-service | where { $_.Name -ieq "MOM" } | stop-service -Force:$true'.
    [2/2/2015 8:07:00 PM] [1] Executing 'get-service | where { $_.Name -ieq "OnePoint" } | stop-service -Force:$true', handleError = False
    [2/2/2015 8:07:00 PM] [2] Launching sub-task '$error.Clear(); get-service | where { $_.Name -ieq "OnePoint" } | stop-service -Force:$true'.
    [2/2/2015 8:07:00 PM] [1] Executing '$mofFilePath = ($RoleInstallPath + "bin\Exchange.MOF"); $mflFilePath = ($RoleInstallPath + "bin\Exchange.MFL"); compile-moffile -MofFilePath:$mofFilePath; compile-moffile -MofFilePath:$mflFilePath;',
    handleError = True
    [2/2/2015 8:07:00 PM] [2] Launching sub-task '$error.Clear(); $mofFilePath = ($RoleInstallPath + "bin\Exchange.MOF"); $mflFilePath = ($RoleInstallPath + "bin\Exchange.MFL"); compile-moffile -MofFilePath:$mofFilePath; compile-moffile
    -MofFilePath:$mflFilePath;'.
    [2/2/2015 8:07:00 PM] [2] Beginning processing.
    [2/2/2015 8:07:01 PM] [2] Exchange tracing provider was installed successfully.
    [2/2/2015 8:07:01 PM] [2] Ending processing.
    [2/2/2015 8:07:01 PM] [2] Beginning processing.
    [2/2/2015 8:07:01 PM] [2] Exchange tracing provider was installed successfully.
    [2/2/2015 8:07:01 PM] [2] Ending processing.
    [2/2/2015 8:07:01 PM] [1] Processing component 'All Roles Precompile Management Binaries' (Pre-compiling management binaries.).
    [2/2/2015 8:07:01 PM] [1] Executing '$fullPath = [System.IO.Path]::Combine($RoleInstallPath, "bin\microsoft.Exchange.Rpc.dll"); precompile-ManagedBinary -BinaryName $fullPath;', handleError = False
    [2/2/2015 8:07:01 PM] [2] Launching sub-task '$error.Clear(); $fullPath = [System.IO.Path]::Combine($RoleInstallPath, "bin\microsoft.Exchange.Rpc.dll"); precompile-ManagedBinary -BinaryName $fullPath;'.
    [2/2/2015 8:07:01 PM] [2] Beginning processing.
    [2/2/2015 8:07:01 PM] [2] Starting: C:\Windows\Microsoft.NET\Framework64\v2.0.50727\ngen.exe arguments: install "C:\Program Files\Microsoft\Exchange Server\bin\microsoft.Exchange.Rpc.dll" /verbose
    [2/2/2015 8:07:02 PM] [2] Process standard output: Microsoft (R) CLR Native Image Generator - Version 2.0.50727.4252
    Copyright (c) Microsoft Corporation.  All rights reserved.
    Installing assembly C:\Program Files\Microsoft\Exchange Server\bin\microsoft.Exchange.Rpc.dll
    All compilation targets are up to date.
    [2/2/2015 8:07:02 PM] [2] Process standard error: 
    [2/2/2015 8:07:02 PM] [2] Ending processing.
    [2/2/2015 8:07:02 PM] [1] Executing '$fullPath = [System.IO.Path]::Combine($RoleInstallPath, "bin\microsoft.Exchange.Common.IL.dll"); precompile-ManagedBinary -BinaryName $fullPath;', handleError = False
    [2/2/2015 8:07:02 PM] [2] Launching sub-task '$error.Clear(); $fullPath = [System.IO.Path]::Combine($RoleInstallPath, "bin\microsoft.Exchange.Common.IL.dll"); precompile-ManagedBinary -BinaryName $fullPath;'.
    [2/2/2015 8:07:02 PM] [2] Beginning processing.
    [2/2/2015 8:07:02 PM] [2] Starting: C:\Windows\Microsoft.NET\Framework64\v2.0.50727\ngen.exe arguments: install "C:\Program Files\Microsoft\Exchange Server\bin\microsoft.Exchange.Common.IL.dll" /verbose
    [2/2/2015 8:07:02 PM] [2] Process standard output: Microsoft (R) CLR Native Image Generator - Version 2.0.50727.4252
    Copyright (c) Microsoft Corporation.  All rights reserved.
    Installing assembly C:\Program Files\Microsoft\Exchange Server\bin\microsoft.Exchange.Common.IL.dll
    All compilation targets are up to date.
    [2/2/2015 8:07:02 PM] [2] Process standard error: 
    [2/2/2015 8:07:02 PM] [2] Ending processing.
    [2/2/2015 8:07:02 PM] [1] Executing '$fullPath = [System.IO.Path]::Combine($RoleInstallPath, "bin\Microsoft.Exchange.Diagnostics.dll"); precompile-ManagedBinary -BinaryName $fullPath;', handleError = False
    [2/2/2015 8:07:02 PM] [2] Launching sub-task '$error.Clear(); $fullPath = [System.IO.Path]::Combine($RoleInstallPath, "bin\Microsoft.Exchange.Diagnostics.dll"); precompile-ManagedBinary -BinaryName $fullPath;'.
    [2/2/2015 8:07:02 PM] [2] Beginning processing.
    [2/2/2015 8:07:02 PM] [2] Starting: C:\Windows\Microsoft.NET\Framework64\v2.0.50727\ngen.exe arguments: install "C:\Program Files\Microsoft\Exchange Server\bin\Microsoft.Exchange.Diagnostics.dll" /verbose
    [2/2/2015 8:07:02 PM] [2] Process standard output: Microsoft (R) CLR Native Image Generator - Version 2.0.50727.4252
    Copyright (c) Microsoft Corporation.  All rights reserved.
    Installing assembly C:\Program Files\Microsoft\Exchange Server\bin\Microsoft.Exchange.Diagnostics.dll
    All compilation targets are up to date.
    [2/2/2015 8:07:02 PM] [2] Process standard error: 
    [2/2/2015 8:07:02 PM] [2] Ending processing.
    [2/2/2015 8:07:02 PM] [1] Executing '$fullPath = [System.IO.Path]::Combine($RoleInstallPath, "bin\Microsoft.Exchange.Common.dll"); precompile-ManagedBinary -BinaryName $fullPath;', handleError = False
    [2/2/2015 8:07:02 PM] [2] Launching sub-task '$error.Clear(); $fullPath = [System.IO.Path]::Combine($RoleInstallPath, "bin\Microsoft.Exchange.Common.dll"); precompile-ManagedBinary -BinaryName $fullPath;'.
    [2/2/2015 8:07:02 PM] [2] Beginning processing.
    [2/2/2015 8:07:02 PM] [2] Starting: C:\Windows\Microsoft.NET\Framework64\v2.0.50727\ngen.exe arguments: install "C:\Program Files\Microsoft\Exchange Server\bin\Microsoft.Exchange.Common.dll" /verbose
    [2/2/2015 8:07:03 PM] [2] Process standard output: Microsoft (R) CLR Native Image Generator - Version 2.0.50727.4252
    Copyright (c) Microsoft Corporation.  All rights reserved.
    Installing assembly C:\Program Files\Microsoft\Exchange Server\bin\Microsoft.Exchange.Common.dll
    All compilation targets are up to date.
    [2/2/2015 8:07:03 PM] [2] Process standard error: 
    [2/2/2015 8:07:03 PM] [2] Ending processing.
    [2/2/2015 8:07:03 PM] [1] Executing '$fullPath = [System.IO.Path]::Combine($RoleInstallPath, "bin\Microsoft.Exchange.Core.Strings.dll"); precompile-ManagedBinary -BinaryName $fullPath;', handleError = False
    [2/2/2015 8:07:03 PM] [2] Launching sub-task '$error.Clear(); $fullPath = [System.IO.Path]::Combine($RoleInstallPath, "bin\Microsoft.Exchange.Core.Strings.dll"); precompile-ManagedBinary -BinaryName $fullPath;'.
    [2/2/2015 8:07:03 PM] [2] Beginning processing.
    [2/2/2015 8:07:03 PM] [2] Starting: C:\Windows\Microsoft.NET\Framework64\v2.0.50727\ngen.exe arguments: install "C:\Program Files\Microsoft\Exchange Server\bin\Microsoft.Exchange.Core.Strings.dll" /verbose
    [2/2/2015 8:07:03 PM] [2] Process standard output: Microsoft (R) CLR Native Image Generator - Version 2.0.50727.4252
    Copyright (c) Microsoft Corporation.  All rights reserved.
    Installing assembly C:\Program Files\Microsoft\Exchange Server\bin\Microsoft.Exchange.Core.Strings.dll
    All compilation targets are up to date.
    [2/2/2015 8:07:03 PM] [2] Process standard error: 
    [2/2/2015 8:07:03 PM] [2] Ending processing.
    [2/2/2015 8:07:03 PM] [1] Executing '$fullPath = [System.IO.Path]::Combine($RoleInstallPath, "bin\Microsoft.Exchange.Net.dll"); precompile-ManagedBinary -BinaryName $fullPath;', handleError = False
    [2/2/2015 8:07:03 PM] [2] Launching sub-task '$error.Clear(); $fullPath = [System.IO.Path]::Combine($RoleInstallPath, "bin\Microsoft.Exchange.Net.dll"); precompile-ManagedBinary -BinaryName $fullPath;'.
    [2/2/2015 8:07:03 PM] [2] Beginning processing.
    [2/2/2015 8:07:03 PM] [2] Starting: C:\Windows\Microsoft.NET\Framework64\v2.0.50727\ngen.exe arguments: install "C:\Program Files\Microsoft\Exchange Server\bin\Microsoft.Exchange.Net.dll" /verbose
    [2/2/2015 8:07:04 PM] [2] Process standard output: Microsoft (R) CLR Native Image Generator - Version 2.0.50727.4252
    Copyright (c) Microsoft Corporation.  All rights reserved.
    Installing assembly C:\Program Files\Microsoft\Exchange Server\bin\Microsoft.Exchange.Net.dll
    All compilation targets are up to date.

  • Help with Performance tunning PL/SQL

    Hi All,
    I have a PL/SQL procedure, it works fine. No errors, and no bugs. However its taking forever to finish. I am using the concatenation operator (||), and I know its expensive. How can I improve performance to the procedure ?
    Here is the code
    create or replace
    PROCEDURE POST_ADDRESS_CLEANSE AS
    CURSOR C1 IS
    SELECT Z.ROW_ID,
            Z.NAME
    FROM  STGDATA.ACCOUNT_SOURCE Z;
    CURSOR  C2 IS
    SELECT  DISTINCT CLEANSED_NAME || CLEANSED_STREET_ADDRESS ||
            CLEANSED_STREET_ADDRESS_2 || CLEANSED_CITY || CLEANSED_STATE ||
            CLEANSED_POSTAL_CODE AS FULLRECORD
    FROM    STGDATA.ACCOUNT_SOURCE_CLEANSED;
    V_ROWID Number := 1;
    V_FLAG VARCHAR2(30);
    TEMP_ROW_ID VARCHAR2(10) := NULL;
    BEGIN
      -- This loop will update CLEANSED_NAME column in ACCOUNT_SOURCE_CLEANSED table.
      FOR X IN C1 LOOP
        TEMP_ROW_ID := TO_CHAR(X.ROW_ID);
      UPDATE STGDATA.ACCOUNT_SOURCE_CLEANSED A
      SET  A.CLEANSED_NAME = X.NAME
      WHERE A.ROW_ID = TEMP_ROW_ID;
        COMMIT;
      END LOOP;
      -- This loop will update columns EM_PRIMARY_FLAG, EM_GROUP_ID in ACCOUNT_SOURCE_CLEANSED table
      FOR Y IN C2 LOOP
        UPDATE  STGDATA.ACCOUNT_SOURCE_CLEANSED
        SET     EM_GROUP_ID = V_ROWID
        WHERE   CLEANSED_NAME || CLEANSED_STREET_ADDRESS || CLEANSED_STREET_ADDRESS_2 ||
                CLEANSED_CITY || CLEANSED_STATE || CLEANSED_POSTAL_CODE = Y.FULLRECORD;
        UPDATE  STGDATA.ACCOUNT_SOURCE_CLEANSED
        SET     EM_PRIMARY_FLAG = 'Y'
        WHERE   CLEANSED_NAME || CLEANSED_STREET_ADDRESS || CLEANSED_STREET_ADDRESS_2 ||
                CLEANSED_CITY || CLEANSED_STATE || CLEANSED_POSTAL_CODE = Y.FULLRECORD
        AND     ROWNUM = 1;
        V_ROWID := V_ROWID + 1;
        COMMIT;
      END LOOP;
      UPDATE  STGDATA.ACCOUNT_SOURCE_CLEANSED
      SET     EM_PRIMARY_FLAG = 'N'
      WHERE   EM_PRIMARY_FLAG IS NULL;
      COMMIT;
      --dbms_output.put_line('V_ROW:'||V_ROWID);
      --dbms_output.put_line('CLEANSED_NAME:'||Y.FULLRECORD); 
    END POST_ADDRESS_CLEANSE;
    Thanks in advance.
    Message was edited by: Rooney -- added code using syntax highlight

    I was able to modify my code a bit, however I don't see a way of not using loops.
    In the loop, I am updating 2 columns. EM_PRIMARY_FLAG, and EM_GROUP_ID. The data I am working with has duplicate records, and that is why I am using a distinct in the cursor. The requirements are is to make one record a primary record, and the rest are reference records. What makes my record primary is updating column EM_PRIMARY_FLAG with a 'Y', and updating EM_GROUP_ID with a number combines all duplicate records into a group.
    In the procedure, I am getting the distinct records, looping through each one, and then doing 2 updates:
    1 - Update EM_PRIMARY_FLAG to 'Y' where rownum = 1, this will set one record to be primary
    2 - Update EM_GROUP_ID to a number (V_ROWID := V_ROWID + 1) where V_ROWID starts from 1, to group all records into a set.
    Here is my latest code after modifying it:
    create or replace
    PROCEDURE POST_ADDRESS_CLEANSE AS
    CURSOR  C1 IS
    SELECT      DISTINCT NVL(CLEANSED_NAME, '') AS NAME_CLEANSED,
                      NVL(CLEANSED_STREET_ADDRESS, '') AS ADDRESS_CLEANSED,
                      NVL(CLEANSED_STREET_ADDRESS_2, '') AS ADDRESS2_CLEANSED,
                      NVL(CLEANSED_CITY, '') AS CITY_CLEANSED,
                      NVL(CLEANSED_STATE, '') AS STATE_CLEANSED,
                      NVL(CLEANSED_POSTAL_CODE, '') AS POSTAL_CODE_CLEANSED
    FROM        STGDATA.ACCOUNT_SOURCE_CLEANSED;
    V_ROWID Number := 1;
    V_FLAG VARCHAR2(30);
    TEMP_ROW_ID VARCHAR2(10) := NULL;
    BEGIN
        UPDATE STGDATA.ACCOUNT_SOURCE_CLEANSED A
        SET  A.CLEANSED_NAME = (SELECT   Z.NAME
                                                       FROM     STGDATA.ACCOUNT_SOURCE Z
                                                       WHERE    Z.ROW_ID = (SELECT  TO_NUMBER(B.ROW_ID)
                                                                                           FROM    STGDATA.ACCOUNT_SOURCE_CLEANSED B
                                                                                           WHERE   B.ROW_ID = A.ROW_ID));
        COMMIT;
      -- This loop will update columns EM_PRIMARY_FLAG, EM_GROUP_ID in ACCOUNT_SOURCE_CLEANSED table
      FOR Y IN C1 LOOP
        UPDATE   STGDATA.ACCOUNT_SOURCE_CLEANSED
        SET          EM_GROUP_ID = V_ROWID
        WHERE    CLEANSED_NAME = Y.NAME_CLEANSED
        AND          CLEANSED_STREET_ADDRESS = Y.ADDRESS_CLEANSED
        AND          CLEANSED_STREET_ADDRESS_2 = Y.ADDRESS2_CLEANSED
        AND          CLEANSED_CITY = Y.CITY_CLEANSED
        AND          CLEANSED_STATE = Y.STATE_CLEANSED
        AND          CLEANSED_POSTAL_CODE = Y.POSTAL_CODE_CLEANSED;
        UPDATE  STGDATA.ACCOUNT_SOURCE_CLEANSED
        SET     EM_PRIMARY_FLAG = 'Y'
        WHERE   CLEANSED_NAME = Y.NAME_CLEANSED
        AND     CLEANSED_STREET_ADDRESS = Y.ADDRESS_CLEANSED
        AND     CLEANSED_STREET_ADDRESS_2 = Y.ADDRESS2_CLEANSED
        AND     CLEANSED_CITY = Y.CITY_CLEANSED
        AND     CLEANSED_STATE = Y.STATE_CLEANSED
        AND     CLEANSED_POSTAL_CODE = Y.POSTAL_CODE_CLEANSED
        AND     ROWNUM = 1;
        V_ROWID := V_ROWID + 1;
      END LOOP;
      COMMIT;
      UPDATE  STGDATA.ACCOUNT_SOURCE_CLEANSED
      SET     EM_PRIMARY_FLAG = 'N'
      WHERE   EM_PRIMARY_FLAG IS NULL;
      COMMIT;
    END POST_ADDRESS_CLEANSE;
    Thanks
    Message was edited by: Rooney - Just added the code in SQL block using syntax highlight.

  • How to upload 15 lakhs of record onto ztable with performance

    I have 15 to 20 lakhs of records in my internal table. I'm uploading it onto ztable in se11.
    While doing so, it's taking lot of time.
    I'm writing the following query:
    MODIFY ZTABLE       FROM TABLE  ITAB(INTERNAL TABLE NAME).
    Please let me know if there is any other alternative which gives better performance.
    Moderator message - Moved to the correct forum
    Edited by: Rob Burbank on Feb 2, 2010 11:59 AM

    Hi Rob,
    just trace a
    MODIFY ZTABLE FROM TABLE ITAB
    with ST05 and you will see what the DBI / DB does with this statement.
    If i remember right you are on DB6. Given current releases it migth be possible
    that a MERGE (which can handle arrays) will be used instead of UPDATE / INSERT on
    a row by row basis.
    On most platforms the modify from table is done row by row like this:
    UPDATE dbtab_row.
    IF sy-subrc NE 0.
       INSERT dbtab_row.
       IF sy-subrc NE 0.
          UPDATE dbtab_row.
       ENDIF.
    ENDIF.
    if the rows exist you will only see updates.
    if the rows don't exist you will see updates (no record) followed by an insert (1 record).
    In rare cases you might see update (no record), insert (no record, somebody else inserted this record after the first update), update (1 record).
    Kind regards,
    Hermann

  • Help with performance SQL  tuning - Rewriting the query

    Hi
    I have serious performance issues with some 8 update queries
    These were earlier taking 5 mins . Now taking 2.5 hours
    This is one of the culprit UPDATE statement (These are 7 such other update statements on different tables but same logic)
    We have change the update to MERGE and used PARALLEL hints but have not got desired results
    There are appropriate indexes on the tables
    Is there a way to rewrite the UPDATE statement in a better way to improve the performance
    update TABLE_dob
    set key_act =
    (select skey from table_subs
    where sub_act = sub_num)
    where exists
    (select 1 from table_subs
    where sub_act = sub_num);
    Table_DOB has 37 million records
    Table_subs has 20 million records

    aashoo_5 wrote:
    Hi
    I have serious performance issues with some 8 update queries
    These were earlier taking 5 mins . Now taking 2.5 hours
    This is one of the culprit UPDATE statement (These are 7 such other update statements on different tables but same logic)
    We have change the update to MERGE and used PARALLEL hints but have not got desired results
    There are appropriate indexes on the tables
    Is there a way to rewrite the UPDATE statement in a better way to improve the performance
    update TABLE_dob
    set key_act =
    (select skey from table_subs
    where sub_act = sub_num)
    where exists
    (select 1 from table_subs
    where sub_act = sub_num);
    Table_DOB has 37 million records
    Table_subs has 20 million recordsThread: HOW TO: Post a SQL statement tuning request - template posting
    HOW TO: Post a SQL statement tuning request - template posting

  • Baffled by performance

    Oracle 11.1.0.6.0 client, 10.2.0.3 database, Visual Studio 2005.
    I have a C# program that had a pretty involved update in it. There were two bind variables, one used several times. When I ran the update as a fat statement within the program, it took hours to run. When I ran it with SQL Developer (with the bind variables in the same places) it took a minute. So I extracted the fat update, put it in a PL/SQL procedure, called it...
      OleDbCommand cmd = CommonSupport._CSIADO.getOleDbForProc("MFIVE.CALC_DOWNTIME.INSERT_PDS");
      OleDbParameter resultParm = cmd.Parameters.Add("p_records_affected", OleDbType.Integer);
      resultParm.Direction = ParameterDirection.Output;
      OleDbParameter downtimeCalcDtParm =
         cmd.Parameters.AddWithValue("p_downtime_calc_dt", un_downtime_calc_dt);
      downtimeCalcDtParm.Direction = ParameterDirection.Input;
      cmd.ExecuteNonQuery();...and it still takes hours. I ran the PL/SQL procedure from within SQL Developer (again, passing in the parameters) and it still takes a minute.
    If I look at Enterprise Manager, it says that it's using the same plan as SQL Developer says it will use. Doing a tkprof of a trace is rather different, though, leaving out the work being done in the subselects and just... looking different.
    I'll post the tkprof output here for the bored, but a general question: does OLEDB make Oracle stupid under some circumstances?
    SQL Developer calling PL/SQL procedure:from SQL Developer (about 100 seconds):
    insert into pd_dwn_stat
         (company, unit_id, period, oper_dt, maint_dt)
        with d as
         (select c.company, c.unit_id, min(c.start_dt) as start_dt,
            min(c.shift_code) as shift_code, c.end_dt
          from
             (select a.company, a.unit_id, a.start_dt, g.shift_code as shift_code,
                max(coalesce(b.end_dt, sysdate)) as end_dt
              from unit_downtime a
                join unit_downtime b
                  on a.company = b.company
                 and a.unit_id = b.unit_id
                left outer join o_wo o
                  on o.company = a.company
                 and o.wo_no = a.wo_no
                left outer join loc_maint g
                  on g.company = o.company
                 and g.location = o.location
              where a.start_dt >= b.start_dt
                and a.start_dt < coalesce(a.end_dt, sysdate)
                and b.start_dt < coalesce(b.end_dt, sysdate)
                and b.start_dt >=any
              (select z.start_dt
               from unit_downtime z
               where z.downtime_calc_dt = :p_downtime_calc_dt
                 and z.unit_id = b.unit_id)
              group by a.company, a.unit_id, a.start_dt, g.shift_code) c
          group by c.company, c.unit_id, c.end_dt),
           f as
         (select company, fisc_pd, start_date,
            lead(start_date) over (partition by company order by fisc_pd) as end_date
          from fiscal_cal)
        select u.company, u.unit_id, f.fisc_pd, 
          (select sum((least(f.end_date, :p_downtime_calc_dt, d.end_dt, s.end_dt) -
             greatest(f.start_date, d.start_dt, s.start_dt))) * 24 * 60 * 60 *1000
           from shift s
             join d
               on s.company = d.company
           where d.unit_id = u.unit_id
             and s.start_dt >= f.start_date
             and s.end_dt < f.end_date
             and d.start_dt <= s.end_dt
             and d.end_dt > s.start_dt
             and s.company = u.company
             and s.shift_code = u.shift_code) as calc_oper_dt,
          (select sum((least(f.end_date, :p_downtime_calc_dt, d.end_dt, s.end_dt) -
             greatest(f.start_date, d.start_dt, s.start_dt))) * 24 * 60 * 60 *1000
           from shift s
             join d
               on s.company = d.company
           where d.unit_id = u.unit_id
             and f.fisc_pd = f.fisc_pd
             and s.start_dt >= f.start_date
             and s.end_dt < f.end_date
             and d.start_dt <= s.end_dt
             and d.end_dt > s.start_dt
             and d.company = u.company
             and s.shift_code = d.shift_code) as calc_maint_dt
        from unit_dept_comp_main u
          join f
            on u.company = f.company
        where u.company = :g_company
          and f.start_date < sysdate
          and f.end_date >=any
           (select e.start_dt
            from unit_downtime e
            where e.company = u.company
              and e.unit_id = u.unit_id
              and e.downtime_calc_dt = :p_downtime_calc_dt)
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.01       0.01          0          0          0           0
    Execute      1    110.31     114.34       1358    2033031      74796       35662
    Fetch        0      0.00       0.00          0          0          0           0
    total        2    110.32     114.35       1358    2033031      74796       35662
    Misses in library cache during parse: 1
    Misses in library cache during execute: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 32 
    Rows     Row Source Operation
      35662  TEMP TABLE TRANSFORMATION  (cr=15420 pr=909 pw=4 time=1416590 us)
          1   LOAD AS SELECT  (cr=14243 pr=737 pw=4 time=897903 us)
        797    HASH GROUP BY (cr=14243 pr=737 pw=0 time=863230 us)
        834     VIEW  (cr=14243 pr=737 pw=0 time=860507 us)
        834      SORT GROUP BY (cr=14243 pr=737 pw=0 time=858836 us)
       1006       NESTED LOOPS OUTER (cr=14243 pr=737 pw=0 time=2222986 us)
       1006        NESTED LOOPS OUTER (cr=13235 pr=733 pw=0 time=2195945 us)
       1006         NESTED LOOPS  (cr=11221 pr=626 pw=0 time=879284 us)
        839          HASH JOIN  (cr=1312 pr=411 pw=0 time=30725 us)
        801           TABLE ACCESS BY INDEX ROWID UNIT_DOWNTIME (cr=745 pr=0 pw=0 time=4057 us)
        801            INDEX RANGE SCAN UNIT_DOWNTIME_DMWIX3 (cr=6 pr=0 pw=0 time=844 us)(object id 98246)
      34925           TABLE ACCESS FULL UNIT_DOWNTIME (cr=567 pr=411 pw=0 time=503836 us)
       1006          TABLE ACCESS BY INDEX ROWID UNIT_DOWNTIME (cr=9909 pr=215 pw=0 time=316547 us)
       9992           INDEX RANGE SCAN UNIT_DOWNTIME_IX1 (cr=904 pr=177 pw=0 time=244588 us)(object id 13200)
       1006         TABLE ACCESS BY INDEX ROWID O_WO (cr=2014 pr=107 pw=0 time=332243 us)
       1006          INDEX UNIQUE SCAN O_WO_IX0 (cr=1008 pr=59 pw=0 time=170868 us)(object id 12787)
       1006        TABLE ACCESS BY INDEX ROWID LOC_MAINT (cr=1008 pr=4 pw=0 time=38706 us)
       1006         INDEX UNIQUE SCAN LOC_MAINT_IX0 (cr=2 pr=1 pw=0 time=8583 us)(object id 12574)
      35662   HASH JOIN RIGHT SEMI (cr=1177 pr=172 pw=0 time=411534 us)
        801    TABLE ACCESS BY INDEX ROWID UNIT_DOWNTIME (cr=745 pr=0 pw=0 time=4055 us)
        801     INDEX RANGE SCAN UNIT_DOWNTIME_DMWIX3 (cr=6 pr=0 pw=0 time=843 us)(object id 98246)
    879375    HASH JOIN  (cr=432 pr=172 pw=0 time=896062 us)
        125     VIEW  (cr=1 pr=0 pw=0 time=1419 us)
        156      WINDOW SORT (cr=1 pr=0 pw=0 time=947 us)
        156       INDEX RANGE SCAN FISCAL_CAL_IX1 (cr=1 pr=0 pw=0 time=170 us)(object id 12304)
       7035     TABLE ACCESS FULL UNIT_DEPT_COMP_MAIN (cr=431 pr=172 pw=0 time=458753 us)
    Elapsed times include waiting on following events:
      Event waited on                             Times   Max. Wait  Total Waited
      ----------------------------------------   Waited  ----------  ------------
      control file sequential read                    5        0.00          0.02
      db file sequential read                       780        0.04          2.11
      db file scattered read                         67        0.01          0.16
      direct path write temp                          1        0.00          0.00
      log file switch completion                      3        0.08          0.15
      SQL*Net message to client                       1        0.00          0.00
      virtual circuit status                         17       29.99        496.46
      SQL*Net message from client                     1      496.46        496.46-----
    From C# program calling PL/SQL procedure (about three hours):
    INSERT INTO PD_DWN_STAT (COMPANY, UNIT_ID, PERIOD, OPER_DT, MAINT_DT) WITH D
      AS (SELECT C.COMPANY, C.UNIT_ID, MIN(C.START_DT) AS START_DT,
      MIN(C.SHIFT_CODE) AS SHIFT_CODE, C.END_DT FROM (SELECT A.COMPANY, A.UNIT_ID,
       A.START_DT, G.SHIFT_CODE AS SHIFT_CODE, MAX(COALESCE(B.END_DT, SYSDATE))
      AS END_DT FROM UNIT_DOWNTIME A JOIN UNIT_DOWNTIME B ON A.COMPANY =
      B.COMPANY AND A.UNIT_ID = B.UNIT_ID LEFT OUTER JOIN O_WO O ON O.COMPANY =
      A.COMPANY AND O.WO_NO = A.WO_NO LEFT OUTER JOIN LOC_MAINT G ON G.COMPANY =
      O.COMPANY AND G.LOCATION = O.LOCATION WHERE A.START_DT >= B.START_DT AND
      A.START_DT < COALESCE(A.END_DT, SYSDATE) AND B.START_DT < COALESCE(B.END_DT,
       SYSDATE) AND B.START_DT >=ANY (SELECT Z.START_DT FROM UNIT_DOWNTIME Z
      WHERE Z.DOWNTIME_CALC_DT = :B1 AND Z.UNIT_ID = B.UNIT_ID) GROUP BY
      A.COMPANY, A.UNIT_ID, A.START_DT, G.SHIFT_CODE) C GROUP BY C.COMPANY,
      C.UNIT_ID, C.END_DT), F AS (SELECT COMPANY, FISC_PD, START_DATE,
      LEAD(START_DATE) OVER (PARTITION BY COMPANY ORDER BY FISC_PD) AS END_DATE
      FROM FISCAL_CAL) SELECT U.COMPANY, U.UNIT_ID, F.FISC_PD, (SELECT
      SUM((LEAST(F.END_DATE, :B1 , D.END_DT, S.END_DT) - GREATEST(F.START_DATE,
      D.START_DT, S.START_DT))) * 24 * 60 * 60 *1000 FROM SHIFT S JOIN D ON
      S.COMPANY = D.COMPANY WHERE D.UNIT_ID = U.UNIT_ID AND S.START_DT >=
      F.START_DATE AND S.END_DT < F.END_DATE AND D.START_DT <= S.END_DT AND
      D.END_DT > S.START_DT AND S.COMPANY = U.COMPANY AND S.SHIFT_CODE =
      U.SHIFT_CODE) AS CALC_OPER_DT, (SELECT SUM((LEAST(F.END_DATE, :B1 ,
      D.END_DT, S.END_DT) - GREATEST(F.START_DATE, D.START_DT, S.START_DT))) * 24
      * 60 * 60 *1000 FROM SHIFT S JOIN D ON S.COMPANY = D.COMPANY WHERE
      D.UNIT_ID = U.UNIT_ID AND F.FISC_PD = F.FISC_PD AND S.START_DT >=
      F.START_DATE AND S.END_DT < F.END_DATE AND D.START_DT <= S.END_DT AND
      D.END_DT > S.START_DT AND D.COMPANY = U.COMPANY AND S.SHIFT_CODE =
      D.SHIFT_CODE) AS CALC_MAINT_DT FROM UNIT_DEPT_COMP_MAIN U JOIN F ON
      U.COMPANY = F.COMPANY WHERE U.COMPANY = :B2 AND F.START_DATE < SYSDATE AND
      F.END_DATE >=ANY (SELECT E.START_DT FROM UNIT_DOWNTIME E WHERE E.COMPANY =
      U.COMPANY AND E.UNIT_ID = U.UNIT_ID AND E.DOWNTIME_CALC_DT = :B1 )
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1   7566.98    1870.53   15834828  137765256      75235       35662
    Fetch        0      0.00       0.00          0          0          0           0
    total        2   7566.98    1870.54   15834828  137765256      75235       35662
    Misses in library cache during parse: 1
    Misses in library cache during execute: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 32     (recursive depth: 1)
    Rows     Row Source Operation
      35662  HASH JOIN RIGHT SEMI (cr=1177 pr=391 pw=0 time=521648 us)
        801   TABLE ACCESS BY INDEX ROWID UNIT_DOWNTIME (cr=745 pr=0 pw=0 time=4842 us)
        801    INDEX RANGE SCAN UNIT_DOWNTIME_DMWIX3 (cr=6 pr=0 pw=0 time=829 us)(object id 98246)
    879375   HASH JOIN  (cr=432 pr=391 pw=0 time=1778117 us)
        125    VIEW  (cr=1 pr=0 pw=0 time=2041 us)
        156     WINDOW SORT (cr=1 pr=0 pw=0 time=1812 us)
        156      FILTER  (cr=1 pr=0 pw=0 time=493 us)
        156       INDEX RANGE SCAN FISCAL_CAL_IX1 (cr=1 pr=0 pw=0 time=332 us)(object id 12304)
       7035    TABLE ACCESS FULL UNIT_DEPT_COMP_MAIN (cr=431 pr=391 pw=0 time=734863 us)
    -----

    I tried the DistribTx=0 option which had the strange effect of causing the update to blow up with a "ORA-28115: policy with check option violation". The table does indeed have a DBMS_RLS policy on it, but why DistribTx=0 started making it fail I don't know. Anyway, that led me to use an Oracle user that wasn't subject to the policy rules and the query was fast again. In other words, trying the DistribTx was helpful in that it led me to discover that something in the DBMS_RLS setup was making the optimizer go mad. It wasn't OLEDB per se that was the problem; using the right (wrong) Oracle user, I was able to make the performance stink in SQL Developer too.

Maybe you are looking for

  • Metro Apps All Crash On Startup - I have read the other threads on this

    UPDATE: I AM UPDATING THIS FIRST POST AS PEOPLE KEEP INCORRECTLY MARKING OUR ISSUE AS ANSWERED WHEN THEY HAVE NOT READ THE THREAD PROPERLY. AS SUCH I WILL START BY SAYING IF YOU ARE COMING HERE AND USING AVAST THEN YOUR SOLUTION WILL BE TO TURN OF TH

  • How to use another application's Dimension or not assigned in Data Manager

    PROMPT(SELECTINPUT,,,,"%CATEGORY_DIM%,%ENTITY_DIM%,%TIME_DIM%,DATASRC") DATASRC IS NOT A MEMBER OF APPLICAION It's for fIltering purpose at Package selection because there are a lot of member id in Dimension but i want to display specified members to

  • Uninstall & install iOS5 on iPhone4

    I have an iPhone4 having size of 8GB. When I connect iPhone to iTunes, It shows me total space 6.37 GB. Q.1 ) If apple says 8GB, where is the remaining space then ? It should specify somewhere that 1.73 GB being used by iOS system. Why is not specifi

  • Search For an IView with the transaction code

    Hello, i'm trying to find out which IView in the portal is calling a special backend transaction. I only got the transaction name ("Transaction Code" in the IView definition). How could I know which Iview is doing thiis ? Thanks in advance for your p

  • Content Aware Scaling and not enough RAM

    I'm on a mac book pro that i bought october 2008 with 4 Gb RAM, with a 2.8 GHz Intel core 2 duo processor. I run content aware scaling on a file make my adjustments, click return and get the warning dialogue: "Could not complete your request because