Query takes too long to run after clone

Hi all

We have a query that works well in our development environment and take about 15 seconds to run the query. When we run the same query with the same parameters in a recently cloned instance, the query takes 1200 dry run.
Please help us on this issue.

Thank you
Rambaud

Thanks for any response.
We have solved the problem by using indicators of index.

Thanks for the update!

Tags: Oracle Applications

Similar Questions

  • SQL query takes too long to run (1 h 25 min)... pls help how to set up the query.

    Hello

    Could someone please help how to tune the query as its takes a long time to retrieve the results.

    Select

    col1,

    col2,

    col3,

    COL4,

    col5,

    col6,

    col7,

    COL8,

    col9,

    col10,

    Col11,

    col12,

    Sum (volume1),

    Sum (volume2),

    Sum (volume3),

    Sum (volume4),

    Sum (volume5),

    Sum (volume6),

    Sum (volume7),

    Sum (volume8),

    Sum (volume9),

    Sum (volume10),

    Sum (volume11),

    Sum (volume12),

    Sum (volume13),

    Sum (volume14),

    Sum (volume15),

    Sum (volume16),

    Sum (volume17),

    Sum (Volume18),

    Sum (volume19),

    Sum (volume20),

    Sum (rate1),

    Sum (rate2),

    Sum (rate3),

    Sum (rate4),

    Sum (rate5),

    Sum (rate6),

    Sum (rate7),

    Sum (rate8),

    Sum (rate9),

    Sum (rate10),

    Sum (rate11),

    Sum (rate12),

    Sum (rate13),

    Sum (rate14),

    Sum (rate15),

    Sum (rate16),

    Sum (rate17),

    Sum (rate18)

    Sum (rate19),

    Sum (rate20)

    Of

    Table 1 - 13, 25, 99, 400 records

    Table2 - 13, 45, 1000 records

    Table 3 - 4, 50, 000 records

    Table 4 - 1,00,000 records

    table5 - 30 000 records

    where tabl1.col1 = table2.col2,

    Table1.Col1 = table3.col1.

    table2.col2 = table3.col2...

    Group

    Sum (volume1),

    Sum (volume2),

    Sum (volume3),

    Sum (volume4),

    Sum (volume5),

    Sum (volume6),

    Sum (volume7),

    Sum (volume8),

    Sum (volume9),

    Sum (volume10),

    Sum (volume11),

    Sum (volume12),

    Sum (volume13),

    Sum (volume14),

    Sum (volume15),

    Sum (volume16),

    Sum (volume17),

    Sum (Volume18),

    Sum (volume19),

    Sum (volume20),

    Sum (rate1),

    Sum (rate2),

    Sum (rate3),

    Sum (rate4),

    Sum (rate5),

    Sum (rate6),

    Sum (rate7),

    Sum (rate8),

    Sum (rate9),

    Sum (rate10),

    Sum (rate11),

    Sum (rate12),

    Sum (rate13),

    Sum (rate14),

    Sum (rate15),

    Sum (rate16),

    Sum (rate17),

    Sum (rate18)

    Sum (rate19),

    Sum (rate20)

    Thank you

    Prasad.

    > Could someone please help how to tune the query as its takes a long time to retrieve the results.

    The query you posted is obviously fake.

    If you ask to give us a request that you do not post and we cannot see.

    For real?

  • Data dictionary query takes too long.

    Hello
    I'm using ORACLE DATABASE 11 g.

    The following query takes too long to run and not give the result. As I've tried a few tricks SQL Oracle but it forces developed.
    SELECT 
    distinct B.TABLE_NAME, 'Y' 
      FROM USER_IND_PARTITIONS A, USER_INDEXES B, USER_IND_SUBPARTITIONS C
     WHERE A.INDEX_NAME = B.INDEX_NAME
       AND A.PARTITION_NAME = C.PARTITION_NAME
       AND C.STATUS = 'UNUSABLE'
        OR A.STATUS = 'UNUSABLE'
        OR B.STATUS = 'INVALID';
    Please guide me what to do? to run this query in a fast paced mode...


    Thanks in advance...

    Your query is incorrect. It returns all tables if A.STATUS = "UNUSABLE" or B.STATUS = "INVALID". Most likely, you meant:

    SELECT
    distinct B.TABLE_NAME, 'Y'
      FROM USER_IND_PARTITIONS A, USER_INDEXES B, USER_IND_SUBPARTITIONS C
     WHERE A.INDEX_NAME = B.INDEX_NAME
       AND A.PARTITION_NAME = C.PARTITION_NAME
       AND (C.STATUS = 'UNUSABLE'
        OR A.STATUS = 'UNUSABLE'
        OR B.STATUS = 'INVALID');
    

    But the above will return sous-partitionnee tables not valid/no usable index. He ain't no non-sous-partitioned tables partitioned index/index not valid/not usable with same partitions in the form of tables not partitioned with valid/no unusable indexes. If you want to get any table with indexes not valid/not usable, you outer join that's going to hurt even more performance. I suggest you use the UNION:

    SELECT  DISTINCT TABLE_NAME,
                     'Y'
      FROM  (
              SELECT INDEX_NAME,'Y' FROM USER_INDEXES WHERE STATUS = 'INVALID'
             UNION ALL
              SELECT INDEX_NAME,'Y' FROM USER_IND_PARTITIONS WHERE STATUS = 'UNUSABLE'
             UNION ALL
              SELECT INDEX_NAME,'Y' FROM USER_IND_SUBPARTITIONS WHERE STATUS = 'UNUSABLE'
            ) A,
            USER_INDEXES B
      WHERE A.INDEX_NAME = B.INDEX_NAME
    /
    

    SY.

  • Statement Update takes too long to run

    Hi all

    I am trying to run this update statement. But its takes too long to run.
        UPDATE ops_forecast_extract b SET position_id = (SELECT a.row_id
            FROM s_postn a
            WHERE UPPER(a.desc_text) = UPPER(TRIM(B.POSITION_NAME)))
            WHERE position_level = 7
            AND b.am_id IS NULL;
            SELECT COUNT(*) FROM S_POSTN; 
            214665
            SELECT COUNT(*) FROM ops_forecast_extract;
            49366
    SELECT count(*)
            FROM s_postn a, ops_forecast_extract b
            WHERE UPPER(a.desc_text) = UPPER(TRIM(B.POSITION_NAME));
     575
    What could be the reason for the update statement to run so long?
    Thank you

    polasa wrote:
    Hi all

    I am trying to run this update statement. But its takes too long to run.

    What could be the reason for the update statement to run so long?

    You did not say what means "too long", but a simple and good reason might be that the scalar subquery on "s_postn" using a full table for each run scan. Potentially this subquery is executed for each row of the table "ops_forecast_extract" that satisfies your filter predicates. 'Potentially' due to "filter/subquery optimization" cunning of the Oracle execution engine that tries to cache results of already executed of instances of subquery. Given that the in-memory hash table that contains these cached results is limited in size, the optimization algorithm depends on the sort order of data and could suffer collisions of hash that it is unpredictable, how this optimization works in your particular case.

    You can view the execution plan, it should at least tell you how Oracle will run the scalar subquery (that tell you nothing about this "filter/subquery optimization" feature).

    Follow the generic guidelines how to generate a useful plan explain output and how to post here:

    Could please post a correctly formatted explain you plan output using DBMS_XPLAN. SCREEN, including the 'Predicate information' section below the plan to provide more details about your statement. Please use the noformat} [{noformat} code {noformat}] {noformat} before tag and {noformat} [{noformat} / code {noformat}] {noformat} tag or after the noformat} {{noformat} code {noformat}} {noformat} tag before and after to improve the readability of the outing:

    In SQL * more:

    SET LINESIZE 130
    
    EXPLAIN PLAN FOR ;
    
    SELECT * FROM TABLE(DBMS_XPLAN.DISPLAY);
    

    Note that the DBMS_XPLAN package. DISPLAY is only available from 9i on.

    In 9i and above, if "Predicate information" section is missing from the DBMS_XPLAN. Output display, but you get the message "Plan table is old version" instead, you must recreate your plan table using the script server '$ORACLE_HOME/rdbms/admin/utlxplan.sql '.

    In previous versions, you can run the following in SQL * Plus (on the server) instead:

    @?/rdbms/admin/utlxpls
    

    A different approach in SQL * more:

    SET AUTOTRACE ON EXPLAIN
    
    ;
    

    also displays the execution plan.

    In order to get a better understanding where your statement passes the time, you might want to turn on SQL tracing as described here:

    When your query takes too long...

    and after the "tkprof' out here, too.

    Kind regards
    Randolf

    Oracle related blog stuff:
    http://Oracle-Randolf.blogspot.com/

    SQLTools ++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676 /.
    http://sourceforge.NET/projects/SQLT-pp/

  • What query takes too long

    How can you know which application takes too long to run in a database? and most of the resources consumption?

    user3636719 wrote:
    How can you know which application takes too long to run in a database? and most of the resources consumption?

    Try to use the following text:

    SELECT * FROM
    (SELECT
    sql_fulltext,
    sql_id,
    child_number,
    disk_reads,
    executions,
    first_load_time,
    last_load_time
    V $ sql
    ORDER BY DESC elapsed_time)
    WHERE ROWNUM<>
    ;

    Also, try the v$ session_longops querying:

    Select * from)
    Select the target, sofar, less, totalwork.
    units, elapsed_seconds, message
    from v$ session_longops by start_time desc)
    where rownum<>

    Kind regards
    Rizwan Wangde
    SR Oracle DBA.
    http://Rizwan-DBA.blogspot.com

  • How to stop the query takes too long

    Is there a way to tell oracle to stop a query that takes too long to run?

    I'm trying to end a way to prevent some users from running any querys that takes more than 2 minutes... any help?

    I use 10g

    Thank you!

    Hello

    You can create a profile... and limit...

    CREATE a PROFILE prof_low LIMIT
    CPU_PER_CALL 3000 (about 30 seconds)
    PRIVATE_SGA 500K
    LOGICAL_READS_PER_CALL 1000;

    ALTER USER myuser PROFILE prof_low;

    Concerning
    Joao Oliveira

  • query takes too long

    Hello

    The following query takes too long (more than 30 minutes), work with 11g.
    The table has three columns RID, ida, geometry and index has been created on all of the columns.
    The table has about 5,40,000 documents of point geometries.

    Please help me with your suggestions. I want to select the geometry in double point where ida = STRING.


    SQL > select a.rid, b.rid from totalrecords, totalrecords b where a.ida = 'CORD' and b.idat = 'CORD' and
    sdo_equal (a.geometry, b.geometry) = 'TRUE' and a.rid! = b.rid order of 1,2;

    concerning

    Hello

    Just glad it helped, don't forget to award points ;-).

    The SDO_JOIN will use the spatial index for a spatial comparison.
    First of all, it will use the index to check which geometries MBR interact, it is the primary filter: http://docs.oracle.com/cd/B28359_01/appdev.111/b28400/sdo_intro.htm#g1000087

    Secondly, you should apply a space MASK, pair of geometries that comes out of the primary filter is then compared according to the MASK, MASK for example = EQUAL, will check these pair of geoms are equal.

    Now, because you have points, the members are the points themselves, so that if their MBR interact, points to interact, which means they are equal.
    This means that the result of the SDO_JOIN points, in this case even a self-join, will give you all the points that are equal.

    But as points are also equal in their car, the join join reflexive sdo, will give you: a = b & one = one but also a b.
    To this effect, you set the a.rowid< b.rowid,="" to="" avoid="" a="a" but="" also="" b="">

    I hope this explains it a little, again read and read great literature (early!), will have a better understanding.

    Good luck

    Luke

  • takes too long to execute after the join

    I found that only this little code of actual code is very heavy running and it has 81000 hr_employeeattendance table and increase day & c_bpartner table has 7000 records

    If this query is executed without enroll_id & timeofattendance then it takes too much time (20 minutes). Is it possible to run faster

    DB version is 10.2.0.1

    CREATE TABLE HR_EMPLOYEEATTENDANCELOG
    ('AD_CLIENT_ID'-> NUMBER (10,0) NOT NULL,)
    "AD_ORG_ID"-> NUMBER (10,0) NOT NULL,
    "CREATED"-> default SYSDATE DATE NOT NULL,
    "CREATEDBY"-> NUMBER (10,0) default 0 NOT NULL,.
    "ENROLL_ID"-> NUMBER (10.0).
    "FIRSTATTENDANCE"-> CHAR (1 BYTE) by DEFAULT 'n',
    "HR_EMPLOYEEATTENDANCELOG_ID"-> NUMBER (10,0) NOT NULL,
    "IP address"-> NVARCHAR2 (30),
    "INOUTMODE"-> NUMBER (10.0).
    "ISACTIVE"-> CHAR (1 BYTE) by DEFAULT NOT NULL, 'Y '.
    "LASTATTENDANCE"-> CHAR (1 BYTE) by DEFAULT 'n',
    "MACHINENUMBER"-> NUMBER (10.0).
    "TIMEOFATTENDANCE"-> DATE.
    "UPDATED"-> DATE default SYSDATE NOT NULL,.
    "UPDATEDBY'-> NUMBER (10,0) default 0 NOT NULL,.
    "VERIFYMODE"-> NUMBER (10.0)
    )
    insert into  hr_employeeattendance values(1000000, 1000002, 07-OCT-2011, 0, 127, Y, 1276566, 192.168.20.185, 0, Y,     N, 8, 03-OCT-2011 08:32:11, 07-OCT-2011, 0,     1)
     
    insert into  hr_employeeattendance values(1000000,     1000002,     07-OCT-2011,     0,     127,     N,     1276640,     192.168.20.185,     0,     Y,     N,     8,     03-OCT-2011 11:52:11,     07-OCT-2011,     0,     1)
     
     
    insert into  hr_employeeattendance values(1000000,     1000002,     07-OCT-2011,     0,     127,     N,     1276640,     192.168.20.185,     0,     Y,     Y,     8,     03-OCT-2011 16:04:11,     07-OCT-2011,     0,     1)
    CREATE TABLE C_BPARTNER
    ('AD_CLIENT_ID'-> NUMBER (10,0) NOT NULL,)
    "AD_ORG_ID"-> NUMBER (10,0) NOT NULL,
    "C_BPARTNER_ID"-> NUMBER (10,0) NOT NULL,
    "ISEMPLOYEE"-> CHAR (1 BYTE) DEFAULT ' is NOT NULL,.
    'NAME'-> NVARCHAR2 (60) NOT NULL,
    "ENROLL_ID"-> NUMBER
    )
    insert into  hr_employeeattendance values (100004,1000001,1000045,Y, TIM,127)
     
    insert into  hr_employeeattendance values (100004,1000001,1000045,Y, TIM,128)
    Some code is here which is a problem then as full downstairs
    SELECT   DISTINCT
               alii.ad_org_id,
               alii.ad_client_id,
               bpii.c_bpartner_id,
               NVL (
                  (SELECT   (MIN(TO_CHAR (ali.timeofattendance, 'HH24:MI:SS')))
                     FROM   hr_employeeattendancelog ali
                    WHERE   bpii.enroll_id = ali.enroll_id
                            AND TO_DATE (TO_CHAR (ali.timeofattendance),
                                         'dd/mm/yyyy') =
                                  TO_DATE (TO_CHAR (alii.timeofattendance),
                                           'dd/mm/yyyy')),
                  0
               )
                  AS first,
           TO_DATE (alii.timeofattendance, 'DD-Mon-YYYY') AS timeofattendance
        FROM      c_bpartner bpii
               JOIN
                  hr_employeeattendancelog alii
               ON alii.enroll_id = bpii.enroll_id
       WHERE       bpii.isemployee = 'Y'
               AND bpii.isactive = 'Y'             
    --           AND bpii.enroll_id = '127'  --this not to give in this
    --           AND alii.timeofattendance BETWEEN '01-oct-2011' AND '02-nov-2011'  ----this not to give in this
    GROUP BY   bpii.c_bpartner_id,
               bpii.enroll_id,
               alii.timeofattendance,
               alii.ad_org_id,
               alii.ad_client_id;
    Output is the place where enroll_id = 127.
    ad_org_id- ad_client_id- c_bpartner_id-  first-   timeofattendance - 
    -----------------------------------------------------------------------------------------------
    1000002     1000000     1005766     08:41:22     10/1/0011              
    1000002     1000000     1005766     08:44:16     10/3/0011             
    1000002     1000000     1005766     08:42:38     10/4/0011                
    1000002     1000000     1005766     08:45:12     10/5/0011                
    1000002     1000000     1005766     08:42:44     10/7/0011
    If this query is executed without enroll_id & timeofattendance then it takes too much time (20 minutes). Is it possible to run faster

    the actual query that I have to run it is where that bit of code that is written above
    SELECT   DISTINCT
               alii.ad_org_id,
     
               alii.ad_client_id,
     
               bpii.c_bpartner_id,
     
               NVL (
                  (SELECT   (MIN (TO_CHAR (ali.timeofattendance, 'HH24:MI:SS')))
                     FROM   hr_employeeattendancelog ali
                    WHERE   bpii.enroll_id = ali.enroll_id
                            AND TO_DATE (TO_CHAR (ali.timeofattendance),
                                         'dd/mm/yyyy') =
                                  TO_DATE (TO_CHAR (alii.timeofattendance),
                                           'dd/mm/yyyy')),
                  0
               )
                  AS first,
     
               NVL (
                  (SELECT   (MAX (TO_CHAR (ali.timeofattendance, 'HH24:MI:SS')))
                     FROM   hr_employeeattendancelog ali
                    WHERE   bpii.enroll_id = ali.enroll_id
                            AND TO_DATE (TO_CHAR (ali.timeofattendance),
                                         'dd/mm/yyyy') =
                                  TO_DATE (TO_CHAR (alii.timeofattendance),
                                           'dd/mm/yyyy')),
                  0
               )
                  AS last,
     
               TO_CHAR (alii.timeofattendance, 'DD-Mon-YYYY') AS dated,
              
            NVL (
                  (SELECT   TO_CHAR (hr.intime, 'HH24:MI:SS')
                     FROM   hr_markattendance hr
                    WHERE   hr.enroll_id = bpii.enroll_id
                            AND TO_DATE (hr.date1, 'dd/mm/yyyy') =
                                  TO_DATE (alii.timeofattendance, 'dd/mm/yyyy')),
                  0
               )
                  AS intime,
     
               NVL (
                  (SELECT   TO_CHAR (hr.outtime, 'HH24:MI:SS')
                     FROM   hr_markattendance hr
                    WHERE   hr.enroll_id = bpii.enroll_id
                            AND TO_DATE (hr.date1, 'dd/mm/yyyy') =
                                  TO_DATE (alii.timeofattendance, 'dd/mm/yyyy')),
                  0
               )
                  AS outtime,
     
               TO_DATE (alii.timeofattendance, 'DD-Mon-YYYY') AS timeofattendance
     
        FROM      c_bpartner bpii
               JOIN
                  hr_employeeattendancelog alii
               ON alii.enroll_id = bpii.enroll_id
       WHERE       bpii.isemployee = 'Y'
               AND bpii.isactive = 'Y'
               AND bpii.enroll_id = '100'                                              --- This is dynamic value selected at front end-----
    --           AND alii.timeofattendance BETWEEN '01-oct-2011' AND '02-nov-2011'
    GROUP BY   bpii.c_bpartner_id,
               bpii.enroll_id,
               alii.timeofattendance,
               alii.ad_org_id,
               alii.ad_client_id;

    Navneet Singh says:

    Has no result, one is still unanswered

    Because it is not possible to answer when you refuse to provide the information requested in this thread and and now in this

    DOM Brooks wrote:
    See [url https://forums.oracle.com/forums/thread.jspa?threadID=863295] how to post a sql tuning request

    If you are prompted to provide information needed by people to help you, you need it, do not ignore queries and start a new thread for the same subject where you again once do not provide the necessary information.

    It's wasting the other forum members time and abuse of this community.

  • Query takes too long, but the cost is low

    Hi guys,.

    I run a query on two databases that were created in the same way and have the same data.

    On one, the cost is almost 1 million, and it runs in the space of a few seconds
    On the other hand, the cost is 40,000, and it does not end execution

    I looked at the plan to explain it and there is no Cartesian merge on the second query join, but it takes so long. What can I do to study this?

    Thank you

    The sqlxtplan provides comprehensive information on the query that was executed, or running, depending on the mode you choose. It has all the information of dbms_xplan plus much more. for example all the table definitions used in the query, filters of predicate query, plans for execution, his stats of all tables, indexes, etc... used in the query.
    I find the way the fastest to get an overview of how the optimizer made its decision. If it is running run mode, it, rather than using the id of sql or hash, it also gives a 10053 trace.

  • create table query takes too long...

    Hello experts...

    I take the backup of table A, which consist of 135 million records...

    Why use query below...

    create the table tableA_bkup in select * from tableA;

    It takes more time... always running...

    is there another way to quickly query...

    Thanks in advance...

    ECT is one of the fastest ways to do such a thing.

    Do you remember the duplicate data. This means that if your table contains 50 GB of data, then it will have to copy these 50 GB of data.

    Another way may be to use EXPDP to create a backup of the data of the table dump file. However I don't know if there is a difference in performance.
    The two versions might benefit from parallel execution.

  • Executed scripts takes too long

    Hello

    I hope for more help with improvement / reducing the amount of time required to get a script to run. I have provided the following script to our CMDB group but they say it take too long to run (full day).

    I already use the get-view option to extract the details. Maybe someone can advise how they would improve this script. For the record, we have 2000 + vm in our environment.

    Script is attached.

    Any help is very appreciated.

    Hello, VM_.

    Well, nobody likes a slow script, that's for sure.  And a script of the day?  Double boo to that.

    I had a quick glance, and there were some spots of improvement.  I have them made here:

    Add-PSSnapin VMware.VimAutomation.Core
    
    function Get-VMSerial {  ## rewrote to take UUID; already being gotten in properties below  # param([VMware.VimAutomation.ViCore.Impl.V1.Inventory.VirtualMachineImpl]$VirtualMachine)  # $s = ($VirtualMachine.ExtensionData.Config.Uuid).Replace("-", "")  param([string]$Uuid)  $s = $Uuid.Replace("-", "")  $Uuid = "VMware-"  for ($i = 0; $i -lt $s.Length; $i += 2)  {    $Uuid += ("{0:x2}" -f [byte]("0x" + $s.Substring($i, 2)))    if ($Uuid.Length -eq 30) { $Uuid += "-" } else { $Uuid += " " }  }
    
      return $Uuid.TrimEnd()}
    
    # Connect to vcenterConnect-VIServer vcenter
    
    #Gathering VM settingsWrite-Verbose -Verbose "Gathering VM statistics"$VMReport = @()$Count = 0
    
    ## no need to use Get-VM#Get-VM | % {## moved outside of the Foreach-Object scriptblock, so this Get-View only gets called once, not 2000+ times (not once per VM, just once at all)$filter = @{"Config.Template"="false"}Get-View -ViewType VirtualMachine -Filter $filter -Property Name,Guest.HostName,summary.config.numcpu,summary.config.memorysizemb,summary.config.numEthernetCards,Summary.Config.NumVirtualDisks,Config.Uuid,Parent,Guest.GuestFamily,config.tools.toolsversion,guest.toolsstatus,config.Version,Config.ChangeTrackingEnabled,Datastore,AvailableField,Value | %{    ## $vm is the View of the current VM    $vm = $_    ## not used -- removed it    # $CustomDetails = Get-VM $_ | Select -ExpandProperty customfields    ## rewrote to use Get-View or UpdateViewData()    # $LunTierStringArray = Get-VM $_ | Get-Datastore    $LunTierStringArray = Get-View -Property Name -Id $vm.Datastore    $LunTierString = $LunTierStringArray.Name -split "_"    $vms = "" | Select-Object VMName, Cluster, DnsName, TotalCPU, TotalMemory, TotalNics, Disks, DiskTier, SDF, UUID, Folder, OS, ToolsVersion, ToolsStatus, HardwareVersion, CBT, Serial    $vms.VMName = $vm.Name    ## rewrote to use UpdateViewData()    # $vms.Cluster = $(Get-vm $_ | Get-cluster).Name    $vms.Cluster = &{$vm.UpdateViewData("Runtime.Host.Parent.Name"); $vm.Runtime.LinkedView.Host.LinkedView.Parent.Name}    $vms.DnsName = $vm.Guest.HostName    $vms.TotalCPU = $vm.summary.config.numcpu    $vms.TotalMemory = $vm.summary.config.memorysizemb    $vms.TotalNics = $vm.summary.config.numEthernetCards    $vms.Disks = $vm.Summary.Config.NumVirtualDisks    $vms.DiskTier = $LunTierString[0]    ## getting this in some other way, from the    # $vms.SDF = ($_ | Get-Annotation -CustomAttribute 'School/Division/Faculty').Value    $vms.SDF = & {$intCustomAttributeKey = ($vm.AvailableField | ?{$_.Name -eq "School/Division/Faculty"}).Key; ($vm.Value | ?{$_.Key -eq $intCustomAttributeKey}).Value}    $vms.UUID = $vm.Config.Uuid    ## add -Property Name, though, with " | Out-Null", does this even work?    # $current = Get-View $vm.Parent | Out-Null    $current = Get-View $vm.Parent -Property Name,Parent -ErrorAction:SilentlyContinue    $path = $vm.Name    do {         $parent = $current         if($parent.Name -ne "vm"){$path =  $parent.Name + "\" + $path}         ## add -Property Name, though, with " | Out-Null", does this even work?         $current = if ($null -ne $current.Parent) {Get-View $current.Parent -Property Name,Parent -ErrorAction:SilentlyContinue}    } while ($current.Parent -ne $null)    $vms.Folder = $path    $vms.OS = $vm.Guest.GuestFamily    $vms.ToolsVersion = $vm.config.tools.toolsversion    $vms.ToolsStatus = $vm.guest.toolsstatus    $vms.HardwareVersion = $vm.config.Version    $vms.CBT = $vm.Config.ChangeTrackingEnabled    $vms.Serial = Get-VMSerial -Uuid $vm.Config.Uuid    $VMReport += $vms    $Count++    ## added Write-Verbose so that the pipeline does not get polluted with strings (for the day that this code is returning objects for further manipulation down the pipeline, instead of going straight to CSV)  Write-Verbose -Verbose $Count}#Output$VMReport | Export-Csv vcenter_vm_report.csv_tmp -NoTypeInformation -UseCultureCopy-Item vcenter_vm_report.csv_tmp vcenter_vm_report.csv
    

    I commented on the changes I made (and why) and commented on by the code I replaced.  Give a run and see if it is not faster for you / your CMDB crew.

    Message has been edited by Matt Boren on February 24, 2015: correction of the piece that gets the path of the inventory of the VM (were able only to return a parent level previously) minor

  • After the upgrade of RAM it take too long to begin and start windows.

    Original title: laptop

    Hello

    I have (HP compaq presario V6615EN)
    Core 2 duo 1.83 GHz
    2 GB OF RAM
    Windows vista Home premium 32-bit
    It took 20 seconds to start and windows boot
    (Yes, only 20 seconds)
    When I upgraded my ram to 4 GB it takes too long to start and windows boot
    nearly 160 seconds

    Hello

    1 - is the operating frequency of the matches with the 'old' RAM newly installed?
    2. how many RAM sticks are there?

    Let's try the following steps:

    Also launch memory diagnostic tool. How will I know if my computer has a memory problem?

    http://Windows.Microsoft.com/en-in/Windows-Vista/how-do-i-know-if-my-computer-has-a-memory-problem

    If there are 2 RAM sticks, remove one RAM Strip and check the speed. You can also try to swap the RAM sticks and check.

    For more help, I suggest that you post your question in the HP support forum.

    http://h30434.www3.HP.com/PSG/

  • Windows update takes too long to find the updates

    I had just installed a new hard drive on my laptop Dell inspiron N5050. I did a reinstall of system clean of my operating system to windows 7. After that, I started to run windows update to get all the necessary updates that I need to update completely from the computer. He has worked for a very long time with no result. In addition, at least 2 hours. all the settings for windows update is set to the settings recommended. but for some reason, in my view, takes too long to get updates. can someone help me please this possible issue

    Hello Darrin,

    Thanks for posting your query on the Microsoft Community.

    According to the description, the Windows updates take a long time to find the updates.

    I suggest to follow the methods below and check if that helps.

    Method 1: If your computer is experiencing problems find and install updates of the operating system, try using the troubleshooter.to of update of Windows the problem fix. He makes sure your computer is connected to the Internet and checks to see if your network card and Windows Update services are running properly.

    Reference:

    Open the Windows Update troubleshooting tool

    If the problem persists, try Method 2,

    Method 2: run the clean boot: Place your system in the clean boot state helps determine if third-party applications or startup items are causing the problem. Check this question in the clean boot state.

    Reference: How to perform a clean boot in Windows

    http://support.Microsoft.com/kb/929135

     

    Note: After the boot minimum troubleshooting step, read the sections "How to reset the computer to start as usual after a clean boot troubleshooting" in the link provided to return the computer to a Normal startup mode.

    See also:

    Problems with installing updates

    Hope this information is useful. Let us know if you need more help, we will be happy to help you.

  • "Unable to configure windows update, changes the way back" takes too long...

    My PC just newly formatted and now I can see a problem when I turn it off, he just starts to day and after that it fails... I'm worried about what it takes too long... from 10:00 until 16:00? I read an article on them, she'll just take up to 20-30 minutes, but watch?

    Is there something I can do? Can normally on my return from PC? or what I need to reformat?

    Hi Andrei,

    Thanks for posting your query in Microsoft Community.

    I understand your concern, and we as a community will try to help you in the best possible way we can.

    Here are solutions to some common problems with installing updates. You might be able to fix some problems automatically by running the Windows Update Troubleshooter.

    I suggest you check out the link below and check if it helps.

    "Configuration of the Windows updates failed. Restoration of the changes. Do not turn off your computer"error when you try to install Windows updates

    https://support.Microsoft.com/en-us/KB/949358

    Hope the information helps, if you have any additional questions, feel free to post. We are here to help you.

    Kind regards

    Guru Kiran

  • HP ENVY 15-j110, takes too long to start

    Hey guys I have HP ENVY 15-j110 I bought recently, but now, after a month it takes too long to open and sometimes only a black screen.

    He

    Product number is this #ACJ F6C58PA

    answer as soon as possible.

    This could be due to the application running in the back ground and starting applications. Try

    Selective startup:

    http://Windows.Microsoft.com/en-us/Windows/Run-Selective-startup-system-configuration#1TC=Windows-7

Maybe you are looking for

  • Upgrading RAM on Compaq 610

    I have HP Compaq 610, processor: Intel (r) Core (TM) 2 Duo CPU 2.00 GHz, RAM 2 T5870. 0 GB. I want to increase RAM, then how many and which kind of Rams can I support my laptop

  • Receive calls that say they are Microsoft and I have viruses.

    How can I TELL IF DEMAND REALLY WINDOWS SECIURITY AND MICROSOFT WITH HOLDING No. Original title: KEEP GET CALL TELEPHONE SAYING MICROSOFT THERE AND I HAVE a VIRUS AND THEY want TO TAKE CONTROL OF MY PC IS it REALLY YOU OR SPAM PHONE CALLS HELP DO NOT

  • Dell Dock is missing from the office.

    So when I got this laptop he had that thing of type bar tool at the top of my desk, she had icons in there that when I sailed on them that they got a little older, I don't know what it's called or how to get back on my desktop screen. Can someone hel

  • How can I change folder icon in Windows Vista Ultimate?

    I accidentally deleted my file downloads under Windows Vista Ultimate Edition.  When I recreated and restored from a previous version, the icon is the standard folder icon.  How can I change to the original file downloads snazzy with the blue arrow i

  • How to change the security permissions to access the data restored on a separate hard drive?

    I keep data such as program installations, documents, etc., on a separate hard disk systems sees reader1 (D:\). The previous operating system was Windows XP Pro and before removing this BONE, all hard drives have been saved on a separate external har