Same query has vastly different run times on different DBs

I have a query that is run on two different Oracle DBs (located on separate computers). One finishes in about 45 minutes; the other takes over two hours (how much longer, I can't tell you, as Linux keeps dropping the connection at the two-hour mark, but that's another story).
The tables on each space have identical data; the only significant difference is, one uses tables, while the other uses materialized views. The one with the tables is the faster one.
Both databases are running 11.2.0.2.0 Enterprise Edition 64-bit.
I ran an Explain Plan on the queries, and noticed that the faster one had an additional couple of lines in its plan.
Here is the query:
select pay_plan
     , case when salary < 10000
            then 0
            when salary >= 150000
            then 15
            else floor(salary / 10000)
       end as salary_group
     , pay_grade
     , pay_step
     , fy
     , count(employee_id) as employee_count
from
    select dcps.yr + 1 as fy
         , dcps.employee_id
         , dcpds.pay_plan
         , dcpds.pay_grade
         , dcpds.pay_step
         , sum(dcps.salary) as salary
    from
      select /*+ index(dcps dcps_location) */
             employee_id
           , extract(year from pay_date) as yr
           , sum(
                  case when grc like 'O%'
                       then 0
                       else amt_eec * 26
                  end
                ) as salary
      from dcps
      where location like 'W%'
      and   to_number(to_char(pay_date, 'MMDD')) between 1014 and 1027
      and   substr(grc, 1, 1) IN ('B', 'C', 'D', 'E', 'F', 'H', 'L', 'O', 'R', 'S', 'T')
      group by employee_id, extract(year from pay_date)
    ) dcps
    join
      select employee_id
           , pay_plan
           , pay_grade
           , pay_step
           , file_date
      from
        select /*+ index(dcpds dcpds_location) */
               employee_id
             , pay_plan
             , pay_grade
             , decode(pay_plan, 'YA', 0, pay_step) as pay_step
             , file_date
             , max(file_date)
               over (partition by extract(year from (file_date + 61)))
               as last_file_date
        from dcpds
        where location like 'W%'
        and   pay_plan in ('GS', 'YA')
      where file_date = last_file_date
    ) dcpds
    on (
         dcpds.employee_id = dcps.employee_id
         and dcps.yr = extract(year from dcpds.file_date)
    group by dcps.yr, dcps.employee_id, dcpds.pay_plan, dcpds.pay_grade, dcpds.pay_step
group by pay_plan
    , case when salary < 10000
           then 0
           when salary >= 150000
           then 15
           else floor(salary / 10000)
      end
    , pay_grade
    , pay_step
    , fy;Here is the "faster" plan:
(sorry about the formatting - it's taken from an XML version generated in Toad)
id="0" operation="SELECT STATEMENT" optimizer="ALL_ROWS" cost="10,604,695" cardinality="46" bytes="2,346" cpu_cost="369,545,379,847" io_cost="10,595,408" time="148,466"
    id="1" operation="HASH" option="GROUP BY" cost="10,604,695" cardinality="46" bytes="2,346" cpu_cost="369,545,379,847" io_cost="10,595,408" qblock_name="SEL$1" time="148,466"
        id="2" operation="VIEW" object_owner="DDELGRANDE_DBA" object_instance="1" cost="10,604,694" cardinality="41,337" bytes="2,108,187" cpu_cost="369,477,028,079" io_cost="10,595,408" qblock_name="SEL$103D06FF" time="148,466"
            id="3" operation="HASH" option="GROUP BY" cost="10,604,694" cardinality="41,337" bytes="3,348,297" cpu_cost="369,477,028,079" io_cost="10,595,408" temp_space="4,178,000" qblock_name="SEL$103D06FF" time="148,466"
                id="4" operation="HASH JOIN" cost="10,604,203" cardinality="41,337" bytes="3,348,297" cpu_cost="369,396,215,555" io_cost="10,594,919" temp_space="4,211,000" access_predicates="&quot;EMPLOYEE_ID&quot;=&quot;ITEM_2&quot; AND &quot;ITEM_1&quot;=EXTRACT(YEAR FROM INTERNAL_FUNCTION(&quot;FILE_DATE&quot;))" time="148,459"
                    object_ID="0" id="5" operation="VIEW" object_owner="SYS" object_name="VW_GBC_6" object_type="VIEW" object_instance="39" cost="2,195,131" cardinality="87,663" bytes="3,155,868" cpu_cost="241,010,751,843" io_cost="2,189,074" qblock_name="SEL$2EE98332" time="30,732"
                        id="6" operation="HASH" option="GROUP BY" cost="2,195,131" cardinality="87,663" bytes="3,155,868" cpu_cost="241,010,751,843" io_cost="2,189,074" temp_space="4,424,000" qblock_name="SEL$2EE98332" time="30,732"
                            id="7" operation="VIEW" object_owner="DDELGRANDE_DBA" object_instance="2" cost="2,194,600" cardinality="91,299" bytes="3,286,764" cpu_cost="240,889,683,025" io_cost="2,188,546" qblock_name="SEL$3" time="30,725"
                                id="8" operation="HASH" option="GROUP BY" cost="2,194,600" cardinality="91,299" bytes="3,012,867" cpu_cost="240,889,683,025" io_cost="2,188,546" temp_space="4,424,000" qblock_name="SEL$3" time="30,725"
                                    object_ID="1" id="9" operation="TABLE ACCESS" option="BY INDEX ROWID" optimizer="ANALYZED" object_owner="CORP_FIN" object_name="DCPS" object_type="TABLE" object_instance="3" cost="2,194,088" cardinality="91,299" bytes="3,012,867" cpu_cost="240,769,155,979" io_cost="2,188,037" qblock_name="SEL$3" filter_predicates="TO_NUMBER(TO_CHAR(INTERNAL_FUNCTION(&quot;DTE_PPE_END&quot;),'MMDD'))&gt;=1014 AND TO_NUMBER(TO_CHAR(INTERNAL_FUNCTION(&quot;DTE_PPE_END&quot;),'MMDD'))&lt;=1027 AND (SUBSTR(&quot;GRC&quot;,1,1)='B' OR SUBSTR(&quot;GRC&quot;,1,1)='C' OR SUBSTR(&quot;GRC&quot;,1,1)='D' OR SUBSTR(&quot;GRC&quot;,1,1)='E' OR SUBSTR(&quot;GRC&quot;,1,1)='F' OR SUBSTR(&quot;GRC&quot;,1,1)='H' OR SUBSTR(&quot;GRC&quot;,1,1)='L' OR SUBSTR(&quot;GRC&quot;,1,1)='O' OR SUBSTR(&quot;GRC&quot;,1,1)='R' OR SUBSTR(&quot;GRC&quot;,1,1)='S' OR SUBSTR(&quot;GRC&quot;,1,1)='T')" time="30,718"
                                        object_ID="2" id="10" operation="INDEX" option="RANGE SCAN" optimizer="ANALYZED" object_owner="CORP_FIN" object_name="DCPS_LOCATION" object_type="INDEX" search_columns="1" cost="153,659" cardinality="348,929,550" cpu_cost="22,427,363,111" io_cost="153,095" qblock_name="SEL$3" access_predicates="&quot;LOCATION&quot; LIKE 'W%'" filter_predicates="&quot;LOCATION&quot; LIKE 'W%'" time="2,152"/
                    id="11" operation="VIEW" object_owner="DDELGRANDE_DBA" object_instance="5" cost="8,354,912" cardinality="23,219,146" bytes="1,044,861,570" cpu_cost="123,043,653,827" io_cost="8,351,820" qblock_name="SEL$5" filter_predicates="&quot;FILE_DATE&quot;=&quot;LAST_FILE_DATE&quot;" time="116,969"
                        id="12" operation="WINDOW" option="SORT" cost="8,354,912" cardinality="23,219,146" bytes="766,231,818" cpu_cost="123,043,653,827" io_cost="8,351,820" temp_space="1,211,565,000" qblock_name="SEL$5" time="116,969"
                            object_ID="3" id="13" operation="TABLE ACCESS" option="BY INDEX ROWID" optimizer="ANALYZED" object_owner="CORP_FIN" object_name="DCPDS" object_type="TABLE" object_instance="6" cost="8,225,535" cardinality="23,219,146" bytes="766,231,818" cpu_cost="94,120,935,947" io_cost="8,223,170" qblock_name="SEL$5" filter_predicates="&quot;PAY_PLAN&quot;='GS' OR &quot;PAY_PLAN&quot;='YA'" time="115,158"
                                object_ID="4" id="14" operation="INDEX" option="RANGE SCAN" optimizer="ANALYZED" object_owner="DDELGRANDE_DBA" object_name="DCPDS_LOCATION" object_type="INDEX" search_columns="1" cost="19,848" cardinality="44,080,322" cpu_cost="2,837,503,343" io_cost="19,777" qblock_name="SEL$5" access_predicates="&quot;LOCATION&quot; LIKE 'W%'" filter_predicates="&quot;LOCATION&quot; LIKE 'W%'" time="278"/Here is the "slower" one:
id="0" operation="SELECT STATEMENT" optimizer="ALL_ROWS" cost="28,025,223" cardinality="104,755" bytes="5,552,015" cpu_cost="806,125,131,535" io_cost="27,983,186" time="392,354"
    id="1" operation="HASH" option="GROUP BY" cost="28,025,223" cardinality="104,755" bytes="5,552,015" cpu_cost="806,125,131,535" io_cost="27,983,186" qblock_name="SEL$1" time="392,354"
        id="2" operation="VIEW" object_owner="DDELGRANDE_DBA" object_instance="1" cost="28,025,218" cardinality="104,755" bytes="5,552,015" cpu_cost="806,027,246,428" io_cost="27,983,186" qblock_name="SEL$1D90FC22" time="392,354"
            id="3" operation="HASH" option="GROUP BY" cost="28,025,218" cardinality="104,755" bytes="8,275,645" cpu_cost="806,027,246,428" io_cost="27,983,186" qblock_name="SEL$1D90FC22" time="392,354"
                id="4" operation="HASH JOIN" cost="28,025,213" cardinality="104,755" bytes="8,275,645" cpu_cost="805,929,361,321" io_cost="27,983,186" temp_space="481,887,000" access_predicates="&quot;EMPLOYEE_ID&quot;=&quot;DCPS&quot;.&quot;EMPLOYEE_ID&quot; AND &quot;DCPS&quot;.&quot;YR&quot;=EXTRACT(YEAR FROM INTERNAL_FUNCTION(&quot;FILE_DATE&quot;))" time="392,353"
                    id="5" operation="VIEW" object_owner="DDELGRANDE_DBA" object_instance="2" cost="2,823,626" cardinality="10,475,527" bytes="356,167,918" cpu_cost="487,845,223,357" io_cost="2,798,186" qblock_name="SEL$3" time="39,531"
                        id="6" operation="HASH" option="GROUP BY" cost="2,823,626" cardinality="10,475,527" bytes="398,070,026" cpu_cost="487,845,223,357" io_cost="2,798,186" qblock_name="SEL$3" time="39,531"
                            object_ID="0" id="7" operation="MAT_VIEW ACCESS" option="BY INDEX ROWID" object_owner="ARMYMP" object_name="DCPS" object_type="MAT_VIEW" object_instance="3" cost="2,823,051" cardinality="10,475,527" bytes="398,070,026" cpu_cost="476,819,453,647" io_cost="2,798,186" qblock_name="SEL$3" filter_predicates="TO_NUMBER(TO_CHAR(INTERNAL_FUNCTION(&quot;DTE_PPE_END&quot;),'MMDD'))&gt;=1014 AND TO_NUMBER(TO_CHAR(INTERNAL_FUNCTION(&quot;DTE_PPE_END&quot;),'MMDD'))&lt;=1027 AND (SUBSTR(&quot;GRC&quot;,1,1)='B' OR SUBSTR(&quot;GRC&quot;,1,1)='C' OR SUBSTR(&quot;GRC&quot;,1,1)='D' OR SUBSTR(&quot;GRC&quot;,1,1)='E' OR SUBSTR(&quot;GRC&quot;,1,1)='F' OR SUBSTR(&quot;GRC&quot;,1,1)='H' OR SUBSTR(&quot;GRC&quot;,1,1)='L' OR SUBSTR(&quot;GRC&quot;,1,1)='O' OR SUBSTR(&quot;GRC&quot;,1,1)='R' OR SUBSTR(&quot;GRC&quot;,1,1)='S' OR SUBSTR(&quot;GRC&quot;,1,1)='T')" time="39,523"
                                object_ID="1" id="8" operation="INDEX" option="RANGE SCAN" optimizer="ANALYZED" object_owner="ARMYMP" object_name="DCPS_LOCATION" object_type="INDEX" search_columns="1" cost="281,465" cardinality="215,251,937" cpu_cost="46,870,067,520" io_cost="279,021" qblock_name="SEL$3" access_predicates="&quot;LOCATION&quot; LIKE 'W%'" filter_predicates="&quot;LOCATION&quot; LIKE 'W%'" time="3,941"/
                    id="9" operation="VIEW" object_owner="DDELGRANDE_DBA" object_instance="5" cost="25,134,240" cardinality="20,437,108" bytes="919,669,860" cpu_cost="311,591,056,432" io_cost="25,117,991" qblock_name="SEL$5" filter_predicates="&quot;FILE_DATE&quot;=&quot;LAST_FILE_DATE&quot;" time="351,880"
                        id="10" operation="WINDOW" option="SORT" cost="25,134,240" cardinality="20,437,108" bytes="633,550,348" cpu_cost="311,591,056,432" io_cost="25,117,991" temp_space="984,859,000" qblock_name="SEL$5" time="351,880"
                            object_ID="2" id="11" operation="MAT_VIEW ACCESS" option="BY INDEX ROWID" object_owner="ARMYMP" object_name="DCPDS" object_type="MAT_VIEW" object_instance="6" cost="25,024,511" cardinality="20,437,108" bytes="633,550,348" cpu_cost="286,442,201,519" io_cost="25,009,574" qblock_name="SEL$5" filter_predicates="&quot;PAY_PLAN&quot;='GS' OR &quot;PAY_PLAN&quot;='YA'" time="350,344"
                                object_ID="3" id="12" operation="INDEX" option="RANGE SCAN" optimizer="ANALYZED" object_owner="ARMYMP" object_name="DCPDS_LOCATION" object_type="INDEX" search_columns="1" cost="52,686" cardinality="34,054,388" cpu_cost="8,896,424,679" io_cost="52,222" qblock_name="SEL$5" access_predicates="&quot;LOCATION&quot; LIKE 'W%'" filter_predicates="&quot;LOCATION&quot; LIKE 'W%'" time="738"/Notice the faster one has two extra lines in it; it is creating a SYS-based view with an additional "Group By" hash.
Also, the faster one's Table Access By Rowid lines are marked as "Analyzed", while the slower one's Materialized View Access By Index Rowid lines are not.
Any idea why this would happen?
(And yes, I do notice that the cpu_cost values for the slower one tend to be 2-4x as high as for the faster one.)

Also, the faster one's Table Access By Rowid lines are marked as "Analyzed", while the slower one's Materialized View Access By Index Rowid lines are not.Have you gathered stats on MVs table?

Similar Messages

  • In  iTunes: why different run times for same track?

    I have occasional repeats of the same given track stored in iTunes. Sometimes, the 2 identical tracks show different running times. This happens when one track came from the Net (downloaded before I started using iTunes, then imported into iTunes) and the other comes from a commercial CD. Do you know why the differing times? FYI: In each case, I have checked the endings of both tracks; they are identical, so the music is the same even though one track is rated to run [much] longer than the other. Also, in "Get Info" there's a way to change the running time of a track, but this is no solution: if I enter a shorter run time, the track will truncate itself, and finish playing before the proper end of the song -- if I enter a longer time, I get dead air after the end of the recording. Any ideas?
      Windows XP  
      Windows XP Pro  
      Windows XP Pro  

    "will iphone users in Singapore have access to application from other countries? "
    No. You can buy from the itunes store in the country in which you reside.
    Each country has the same rules:
    "SINGAPORE ONLY. The Service is available to you only in Singapore and is not available in any other location. You agree not to use or attempt to use the Service from outside of the available territory. iTunes may use technologies to verify such compliance."
    http://www.apple.com/legal/itunes/appstore/sg/terms.html#APPS

  • Switching between different run-time menu programati​cally

    Hi All
     I am planning to build a Bilingual program…….am just doing trial and errors in changing all captions and run-time menu s programmatically with a single button click……….Here my logic is working fine for all captions and graphs also…………..but I could not change the run-time menu……….i am unable to switch between different run-time menus……………
    Here I am sending the program am working on………..please have a look on this, and suggest me something………….hope my problem get resolved.
    Thanks
    Anil Punnam
    Attachments:
    Caption_program.ZIP ‏31 KB

    Hi Anil,
    I'm guessing you're using 7.1?  When I first ran your program in 8.0, it worked perfectly and switched back and forth perfectly.  However, I tried it in 7.1 and saw some bad behavior.  The customer run time menu was not updated in the menu bar.  It looks to me like the run time menu is changing, but the front panel is not updating.  After pressing one of your front panel buttons to change the run-time menu back and forth, if you click on the file menu it should update, although this can lead to some funny looking menus since "affiche" is longer than "file" and you can still see the remnants of the old menu.  Try this and let me know if this is indeed the behavior you are seeing (check out the attached pic).  I thinkt hat R&D already had a report on this, and that is why it is fixed in 8.0.
    Megan B.
    National Instruments
    Attachments:
    RTM.JPG ‏34 KB

  • Different sleep times for different monitors?

    I'm using a iBook G4 12" with an external monitor (spanned, not mirrored), and I was wondering if there's a way for me to set different sleep times for each of the LCD and the external monitor?
    Thanks.
    - JC

    Nope. They all sleep or none sleep.

  • How do you set different sleep times for different days?

    Energy Saver --> Schedule allows you to schedule start/wake/sleep/shut down, but it doesn't provide very fine grained control. Is there a way to set the computer to sleep or shut down at different times on different days, to wake only on particular days, etc.?

    AFAIK, Energy Saver doesn't provide the granularity that you're seeking. Launch the Terminal app, copy & paste this command into the window that pops up, hit the return key, and peruse the underlying documentation for the power management setup process:
    man pmset | cat

  • I blocked quite a few different phone numbers awhile ago but when I looked at the blocked numbers today it looks like the same number has been blocked multiple times.  Does anyone know why that is?

    I blocked a lot of different numbers awhile ago but when I checked the blocked numbers today it looked like the same numbers were blocked multiple times.  So for example if I blocked phone numbers 555-555-5555, 555-555-5556, and 555-555-5557 on different days it looks like only 555-555-5555 has been blocked 3 different times and I no longer see phone numbers 555-555-5556 or 555-555-5557.  Does anyone know why?

    Oh dear, one of those phantom disconnections. You know they are actually so common BT have a specialist department that deals with them. I think they are called Priority Back in Service, there is no actual phone number you can ring them on, you have to call 150 as normal and the customer service team are supposed to raise the issue with them to sort out.
    You could contact that Mods but they sometimes take 3 days to reply, especially with it being the weekend.

  • BW Statistics query with process chain run times.

    Hello Guru's,
    We are using BW 3.5 system and the client have asked if it is possible to create a report in BW based out of the Statistics Cube that shows the current status of the Process Chains .i.e. the start/end time of specific process chains along with some sort of Exceptions to show successfully completed chains as 'Green', chains finishing with errors as 'red' and chains presently running as 'Yellow'.
    I have seen such a report in my previous project, but that was using BI 7.0, I am not able to find such Statistics Info Cube in BW 3.5 which meets my requirements.
    Has anybody created such a report in BW 3.5? If yes, would very much appreciate if you can share your way of approach with me.
    Thanks
    Arvind

    Hi Arvind,
    Yes you can achieve this functionality using BW Technical Content. I already implemented this for one of our client. We have some Standard InfoProviders where in wee can get the Start and End time of chains. You can build a query on these Cubes & Multiprovider and there in create exceptions to reflect which step got completed with in stipulated time limit and which took longer than usual......u can display those time statistics in different colour.
    Here are soem cubes names from BW Technical content which may meet your requirement specification:
    1. 0TCT_C01
    2. 0TCT_C02
    3. 0TCT_CA1
    4. 0TCT_C23
    5. 0TCT_C21
    Hope it helps
    Regards,
    Raj

  • Different startup times for different accounts

    Recently I have had slow startup times on my MBP. I tried adding a test account just to test to the startup speed on that account. My main account starts up fine until after the OS X load screen, then the background will load up, but it takes approx. 1 minute for the dock and the menu bar to appear. On the test account, the startup is much quicker and there is not the same lag that there is for my main account. I have recently repaired permissions and the hard drive. I have also removed all startup items for my main account. Does anyone have any ideas as to what is causing these slow startup times?

    Try removing all those files and folders from your desktop and place them elsewhere in your home directory and see if that makes any difference. Otherwise, try deleting…
    ~/Library/Preferences/com.apple.finder.plist
    … and then immediately restart.

  • Music Run Time

    My music CD soundtrack has 10 tracks. When I inserted the CD in my mac, all the tracks were copied in iTunes. I ejected the CD and then I payed the music directly from iTunes. Runtime for the first track is shown as 2:42 in iTunes. But the actual run time specified in the CD is 2:38. Same for other tracks. Runtime is slightly different between the CD and the iTunes (anywhere from 3 seconds to 20 seconds).
    I tried three other music CD's and all have the same issues - different run time.
    Can anyone please specify what is the reason for this? Can this be fixed?
    PS: When I played the CD in boombox CD players, run time exactly matches to what was specified in the CD.
    Thanks

    To which format are you ripping?
    The comment in this blog summarizes some potential discrepancy sources:
    http://www.bostonlowbrow.com/2010/01/collecting-classical-music-digitally-or-itu nes-*****/#comment-2921
    Edit: Sorry, Apple's censoring software won't permit the last part of that link. You will have to hand edit it.  It refers to what you do when you want to drink with a straw.

  • Help!: Control reference seamingly "lost" in run-time execution mode

    Hi!
    The Facts:
    LabView 6.1 PC under NT.
    I've been using "Vi loader" technique since a few month s to distribute a LabView application on severals PCs without having to re-compile it each time. My application uses more than 500 VIs so I can't build it directly. The directories/Vis of the application are simply copied on the target PC and run through the Vi loader technique instead of using the development environnement.
    The problem:
    Since the last release of the my application, differences between the application running in development mode or run-time mode have appeared:
    One VI reading a .ini file does not act the same way if runned in the developpment environnment or
    runned in the run-time environnment. This VI uses control-references from its front-panel and passes them to sub vis. In run-time execution those references seems to be perverted: the sub-vis get them but can't access their properties like Label Name, Values,...
    All works perfectly fine if the VI is runned in the environnment developpment.
    Moreover the same sub-vis called with other control references in other VIs work fine.
    Question:
    Has anyone seen any behavioral difference between run-time execution and development environnement execution?
    Are there any differences in the linkage process between those 2 execution ways?
    Is there any labview Feature that would automaticaly "de-allocate" references at run time and would do so "too early"?
    Is there any know problem with poly-morphique VIS in run-time execution mode.
    That's all, any idea, lead, wellcome!

    Hi Andrew!
    I've allready had a look at the "Problem with VI Loader technique". It only deals with top vis not working (ie broken) when called from loader in Run-Time mode because of ill declared vi.lib path.
    It's "unfortunately" not my problem: My VI is not broken, it's kind'a working, but not as it does in development environment execution mode.
    If NI people are reading this, I would like to send them the VI and it sub-VIs to understand if something has been perverted .
    The problem is seen on all three target PCs.
    Moreover, a new one has appeared: in run-time mode, the standard "file dialog" vi called to prompt the user for a file with a given extension pattern sends back the file name with the extension "double dotted" (exemple: anything..data
    instead of anything.data).
    About the first problem, does any know why a Ctrl Refnum would loose its parent information (name, value...) in run-time execution mode?
    Bye!

  • Run-time error '13':  Type mismatch

    There are A and B excel files.
    And two different POV-dimension in two excel files
    VBA code below:
    Dim vtGrid As Variant
    Dim vtDimNames As Variant
    Dim vtPOVNames As Variant
    x = HypRetrieve("sheet1")
    x = HypUseLinkMacro(True)
    Range("b10").Select
    x = HypGetSourceGrid("sheet1", vtGrid)
    ref = HypMenuVRefresh()
    x = HypGetPOVItems(vtDimNames, vtPOVNames)
    MsgBox (vtPOVNames(6))
    Range("a3").Value = "date: " & vtPOVNames(6) & " - " & vtPOVNames(3)
    Range("a4").Value = "dep : " & vtPOVNames(0)
    There is not any attribute dimension in pov A excel file.
    There is one attribute dimension in pov B excel file.
    The same VBA code excute is normal in A excel file.
    But the same VBA code excute is "run-time error '13': Type mismatch " in B excel file.
    The error '13' in the row of MsgBox (vtPOVNames(6)).
    Is attribute dimension in pov cause this question?
    And how did I solve this question?

    Based on where the error is occurring, it looks like the value returned by vtPOVNames(6) is not defaulting to a string datatype for the msgbox.
    Try 'cstr(vtPOVNames(6))' to force conversion of the value into a string. Also, you may want to test for nulls using IsNull() and empty variant values using IsEmpty().
    It doesn't look like the code you posted shows vtPOVNames being populated. If you're populating the names yourself, you could always use a string array instead of a variant array. Just dim the string array using a statement such as, "Dim strPOVNames(6) as String" or "Dim strPOVNames() as String" in case you need to ReDim the array later to size it for a non-fixed set of POV names.
    Hope this helps.

  • Run time Error 457

    Hi,
    We upgraded to BI 7.0, after upgrade the query is executing fine but while restricting a time characteristic the query throws an error "Run Time Error 457, this key is already associated with an element of this collection". This happens only in the production server, the query is working fine on development and test servers. When i try to access the variable associated with the time characteristic thru query designer the query designer window gets blocked displaying the same above message. I guess the error is related to Visual Basic of MS Office.
    Please let me know  the procedure for resolving the issue.
    Thank you

    Hi,
    Check SAP Note - 517232.
    Also check the below thread:
    BEx Query designer : Run-time error '457'
    Hope these helps u...
    Regards,
    KK.

  • Preserving run time menus

    The problem is that applications do not preserve custom run time menus applied to graphs or controls once the executable is run on another machine, or an installation is built and installed on another machine. I have tried advice from this board about saving .rtm to alternate llb's, to the same destination/support, opening from within development vi and saving to the same path as development vi.
    Surely the concept that you want to define a custom menu for a control and have your customer see this one when he installs is not a foreign concept within Labview. How can this be done?

    Here's how the two workarounds would play out in this situation:
    In the first workaround, you'd have to open the run-time menu editor for each control individually and choose to save the run-time menu to the control instead of the file. I don't think this is a very risky procedure, but it would be tedious. One thing to keep in mind is that in order to get the prompt to save the menu to the control or to a file, you'll need to make some small change to the menu. For instance, you could press the add button to add a temporary item and then the delete button to delete it. Then when you close the menu you'll see the option to save the menu to a control. I suppose this step is the only real risk in the process
    In the second workaround, you'd have to create 3 or 4 new event structure cases, one for each of the different run-time menus you want to display. Then you'd have to register each separate event for all the controls that correspond to that particular menu. This seems a little more risky, because the new code might induce bugs into your system, or you might forget to register the event for a control, or register the wrong event for a control.
    Jarrod S.
    National Instruments

  • Run time error while creating sales order

    hi all,
    im working on ECC 4.7. normally when i create a sales order (VA01) and use incompletion log, it shows no errors. but when i start to save the same order . it shows a RUN TIME ERROR of ABAP . so plz help me to solve out this error
    thanks\

    Hi Tarun,
    When you get a run time error, you can see the error analysis on the left hand side. Check what the analysis is saying and you may need an ABAPer to find out the exact reason for the dump. I am just guessing it could be due to number range.. just a guess.
    Regards,
    Raghav

  • I cannot access my openoffice documents. I keep getting a run time error message

    When I try to open any OpenOffice.org 3.0 file I get a message that says Run time error! This application has asked the Run Time to terminate it in an unusual way.

    Please try updating to version 19.0
    Please check if all your plugins are up-to-date. To do this, go to the [http://mozilla.com/plugincheck Mozilla Plugin Check site].
    Once you're there, the site will check if all your plugins have the latest versions.
    If you see plugins in the list that have a yellow ''Update'' button or a red ''Update now'' button, please update these immediately.
    To do so, please click each red or yellow button. Then you should see a site that allows you to download the latest version. Double-click the downloaded file to start the installation and follow the steps mentioned in the installation procedure.

Maybe you are looking for

  • Exchange Server 2013 Client Mail are Return.Error is [0x80040305-0x0004de-0x00054a]

    Hi, We are using Exchange Server 2013.we have Outlook 2007 SP3 and 2010 SP2 client .Some clients inform mails are return. Return massage "This message could not be sent. Try sending the message again later, or contact your network administrator. Your

  • Material in Sceduling agreement is not coming in Delivery

    Dear Friends One of my materals is maintained in Scheduling Agreement. We have delivered it till 11.4.09. This material is there in MMBE stock. But it is not coming in VL01N. Pls tell me how to bring matrial in VL01n. Thanks Sangeeta

  • XML imported from iM '08 has a different aspect ratio in FCP 6?

    I have the new canon vixia hg 21 which is avchd and FCP 6 isn't recognizing it. Using Imovie to recognize the files works fine, the problem is that when you export from imovie '08 into FCP via xml, it imports fine, but I get a display issue with blac

  • Does the DV8T support 6Gb's sata drives?

    I am curious about this model since I was considering buying one if it supports the new 6Gb sata drives. Thanks!

  • ICR Process 002

    Hi, I'm implementing ICR Process 002, I have created the ledger I2 and I have run transaction GCU1N, so now I have in table FBICRC002A the items I want to reconcile. The problem is that when I run transaction FBICA2 no items are selected. Any idea? T