Ask her take too long

Hi friends,

the view that I created on a table takes too long to gimme results

When I try to select * from table_name

Can someone suggest me a solution pls

CREATE OR REPLACE VIEW XXKDD_LATEST_SAL
(RN, MONTH, YEAR, EMPLOYEE_NUMBER, POSITION,)
DEPT, STATUS, TERMINATION_DATE, PAYROLL_NAME, FULL_NAME,
TOP3, BASIC_SALARY)
AS
(
Select "RN", "MONTH", "YEAR", "EMPLOYEE_NUMBER", "POSITION", "PAYROLL_NAME", "DEPT", 'STATUS', 'TERMINATION_DATE', "FULL_NAME", "TOP3", "BASIC_SALARY" of)
ROW_NUMBER() SELECT over (PARTITION BY employee_number ORDER BY employee_number) rn, tp.*
(SOME MONTHS, YEAR, employee_number, position, payroll_name, dept, status, termination_date, full_name,)
ROW_NUMBER () OVER (PARTITION BY employee_number, basic_salary ORDER BY YEAR, MONTH) top3,
DECODE (basic_salary,
100000, 4500,
24000, 1921
basic_salary
) basic_salary
OF kdd_pay_hr_sal_vw
TP command by employee_number, year desc)
WHERE top3 < = 1
))

Select * from XXKDD_LATEST_SAL

Look in the SQL and PL/SQL FAQ:

SQL and PL/SQL FAQ

Tags: Database

Similar Questions

  • Windows 7 take too long to the mouse and keyboard anable.

    Hello

    I have replace my SSD HARD drive (2 hard drives 120 GB each RAID 0) w / Windows 7 Pro 64 bit. After the replacement windows take longer time to activate the mouse and the keyboard - 5/10 seconds.
    I've updated the drivers for the two, but still have the same question. The boot is faster, but the mouse and keyboard take longer to wake up.

    Any help?

    Thank you

    M. Vilela

    Hi MVilela,

    Thanks for asking this question to Microsoft Community!

    I understand that after the replacement of the hard disk of the computer takes too long to turn on the mouse and the keyboard.

    Your Windows 7 is better suited in the TechNet forums. I suggest you to send your query there.

    Here is the link: http://social.technet.microsoft.com/Forums/en-us/w7itproperf/threads

    It will be useful. For any other corresponding Windows help, do not hesitate to contact us and we will be happy to help you.

    Kind regards!

  • Why it takes too long to open attachments of the e-mail account?

    It takes forever to download attachments from my mail account. I tried to do the following tasks explained on the vista forum: http://windowshelp.microsoft.com/Windows/en-US/help/6b046ae9-1434-4423-9303-400ff6fe686b1033.mspx#ESD, but none of the fixed work possible.

    After clicking on open on the box pop up asking if I want to open or save the attachment, it takes too long to download. The transfer window remains open to showing that he is ready to download, but rest in this window of bhox. I press cancel and try to open once again, if the chance that it opens this file, otherwise it takes forever forceing me to cancel. Very small files most of the time, usually between 50 KB should take seconds.

    I even tried to save the files, but once again the same process. The transfer case remains open but does not download.

    One of the ideas.

    Thanks in advance.

    Hello

    It is not easy to tell exactly what is happening, but it must be something with the e-mail account provider and their page. For me, this case is not a typical problem of Vista, but you can try to find the solution on Vista from Microsoft IT Pro forum.

    By the way: you have an alternative email by another provider address? Is it the same situation?

  • Flgam takes too long to stop

    Here I would start troubleshooting in a fglam that takes too long to stop?

    Solaris 10

    Flgam version 5.6.2.4

    The full list of former agents running

    [myname@myhost bin] $ sudo. / fglam - wq

    2013-06-12 22:18:48.000 INFO [natives] send request stop at "AgentManager.

    process running in/opt/Foglight/fglam/state/default (pid 26893).

    2013-06-12 22:18:48.000 INFO [native] transmitted stay application.

    2013-06-12 22:18:48.000 INFO [native] Meanwhile the process of "AgentManager.

    (pid 26893) stopped

    I'll just kill him at this time, but I had to know exactly, what happened with her. It is not the first report of the fglam power issues I've had.

    You can start with a beam of support from fglam and then analyze it to see if the repetition of messages are written.

    How long you wait for the fglam to terminate?

    David Mendoza

  • "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

  • Hyperion EPM services take too long to start

    Hyperion 11.1.2.3

    Windows 2008 R2

    32 GB of memory on each server

    Java 1.6.35

    Server environment four (Foundation/FDMEE, planning, Essbase and SQL server).

    Some how it takes too long to start the services of Hyperion. Using the batch script to start all services. Can someone advise where to start looking. Here's the log of HyS9Planning_SERVER-sysout. If this can give an idea

    < 12 February 2014 12:40:34 hours EST > < Info > < security > < BEA-090905 > < disabling CryptoJ JCE provider auto-intégrité for better startup performance. To allow this control, enter - Dweblogic.security.allowCryptoJDefaultJCEVerification = true >

    < 12 February 2014 12:40:35 hours EST > < Info > < security > < BEA-090906 > < change the default Random Number Generator in RSA CryptoJ of ECDRBG to FIPS186PRNG. To disable this change, specify - Dweblogic.security.allowCryptoJDefaultPRNG = true >

    < 12 February 2014 12:40:35 hours EST > < opinion > < WebLogicServer > < BEA-000395 > < according to the contents of the extensions added at the end of the classpath directory:

    D:\u01\Oracle\Middleware\user_projects\domains\EPMSystemHYDEV\lib\audit-client.jar;D:\u01\Oracle\Middleware\user_projects\domains\EPMSystemHYDEV\lib\css.jar;D:\u01\Oracle\Middleware\user_projects\domains\EPMSystemHYDEV\lib\ctg_custom.jar;D:\u01\Oracle\Middleware\user_projects\domains\EPMSystemHYDEV\lib\ldapbp.jar;D:\u01\Oracle\Middleware\user_projects\domains\EPMSystemHYDEV\lib\opencsv-1.8.jar;D:\u01\Oracle\Middleware\user_projects\domains\EPMSystemHYDEV\lib\registry-api.jar;D:\u01\Oracle\Middleware\user_projects\domains\EPMSystemHYDEV\lib\wlpool.jar>

    < 12 February 2014 12:40:35 hours EST > < Info > < WebLogicServer > < BEA-000377 > < start WebLogic Server with Oracle JRockit (R) Version R28.2.5-50-153520-1.6.0_37-20121220-0844-windows-x86_64 of Oracle Corporation >

    < 12 February 2014 12:41:19 hours EST > < Info > < management > < BEA-141107 > < Version: WebLogic Server 10.3.6.0 Mar 15 08:52:36 PST Nov 2011 1441050 >

    < 12 February 2014 12:41:43 hours EST > < emergency > < management > < BEA-141151 > < Management Server could not be reached at http://hydevf01.uts.mcmaster.ca:7001. >

    < 12 February 2014 12:41:43 hours EST > < Info > < Configuration Management > < BEA-150018 > < this server will be started in mode of managed server independence in the absence of the admin server. >

    < 12 February 2014 12:41:43 hours EST > < opinion > < WebLogicServer > < BEA-000365 > < server status changed initially >

    < 12 February 2014 12:41:43 hours EST > < Info > < WorkManager > < BEA-002900 > < self-adjusting Initializing of thread pool >

    < 12 February 2014 12:41:44 hours EST > < opinion > < LoggingService > < BEA-320400 > < D:\u01\Oracle\Middleware\user_projects\domains\EPMSystemHYDEV\servers\Planning0\logs\Planning0.log log file will be rotated. Reopen the log file if stopped tailings. This can happen on some platforms such as Windows. >

    < 12 February 2014 12:41:44 hours EST > < opinion > < LoggingService > < BEA-320401 > < log file was shot in D:\u01\Oracle\Middleware\user_projects\domains\EPMSystemHYDEV\servers\Planning0\logs\Planning0.log00014. Log messages will continue to be logged in D:\u01\Oracle\Middleware\user_projects\domains\EPMSystemHYDEV\servers\Planning0\logs\Planning0.log. >

    < 12 February 2014 12:41:44 hours EST > < opinion > < Log Management > < BEA-170019 > < D:\u01\Oracle\Middleware\user_projects\domains\EPMSystemHYDEV\servers\Planning0\logs\Planning0.log server log file is opened. All events in the log server-side will be written to this file. >

    OracleFileSSOWalletImpl.getWalletData: enter...

    OracleFileSSOWalletImpl.getWalletData: System.getProperty (user.name) = sp_hydevadm

    OracleFileSSOWalletImpl.getWalletData: dummy sso (shared) file locking...

    OracleFileSSOWalletImpl.getWalletData: locking (shared) file sso...

    Oracle Wallet: Pocket size 12573

    OracleWallet: getSecretStore

    OracleSecretStore: load flow wallet

    OracleSSOKeyStoreImpl: engineLoad

    OracleKeyStoreSpi: Load flow wallet

    OracleKeyStoreSpi: Safe opening 0

    OracleKeyStoreSpi: Safe opening 0

    OracleKeyStoreSpi: found cert bag

    OracleKeyStoreSpi: found cert bag

    OracleKeyStoreSpi: found cert bag

    OracleKeyStoreSpi: found cert bag

    OracleKeyStoreSpi: found cert bag

    OracleKeyStoreSpi: found cert bag

    OracleKeyStoreSpi: found cert bag

    OracleKeyStoreSpi: found cert bag

    OracleKeyStoreSpi: Safe opening 0

    OracleKeyStoreSpi: found secret store bag

    OracleKeyStoreSpi: found secret store bag

    OracleKeyStoreSpi: found secret store bag

    OracleKeyStoreSpi: found secret store bag

    OracleKeyStoreSpi: found secret store bag

    OracleKeyStoreSpi: found secret store bag

    OracleKeyStoreSpi: found secret store bag

    OracleKeyStoreSpi: found secret store bag

    OracleKeyStoreSpi: Safe opening 0

    OracleKeyStoreSpi: Safe opening 0

    Treatment TP 0

    Storage TP 0 as CN = Entrust .net Secure Server Certification Authority

    TP-1 treatment

    Storage TP 1 as CN = Entrust .net Secure Server Certification Authority 1

    Treatment of TP 2

    TP 2 storing as authority of Certification CN = Entrust .net (2048)

    Treatment TP 3

    Storage of TP 3 in CN = GTE CyberTrust Global Root

    TP 4 of treatment

    TP 4 storing as OU = Secure Server Certification Authority

    Treatment TP 5

    TP 5 storing as UO = class public primary Certification Authority 1

    Treatment TP 6

    TP 6 by storing like UO = class public primary Certification Authority 2

    TP treatment 7

    TP 7 by storing like UO = class public primary Certification Authority 3

    OracleKeyStoreSpi: Storage Secret0

    Get the sequence of bag

    Get the alias of sequence

    Get the secret of the sequence

    OracleKeyStoreSpi: Storage Secret1

    Get the sequence of bag

    Get the alias of sequence

    Get the secret of the sequence

    OracleKeyStoreSpi: Storage Secret2

    Get the sequence of bag

    Get the alias of sequence

    Get the secret of the sequence

    OracleKeyStoreSpi: Storage Secret3

    Get the sequence of bag

    Get the alias of sequence

    Get the secret of the sequence

    OracleKeyStoreSpi: Storage of Secret4

    Get the sequence of bag

    Get the alias of sequence

    Get the secret of the sequence

    OracleKeyStoreSpi: Storage Secret5

    Get the sequence of bag

    Get the alias of sequence

    Get the secret of the sequence

    OracleKeyStoreSpi: Storage Secret6

    Get the sequence of bag

    Get the alias of sequence

    Get the secret of the sequence

    OracleKeyStoreSpi: Storage Secret7

    Get the sequence of bag

    Get the alias of sequence

    Get the secret of the sequence

    OracleKeyStoreSpi: Keystore loaded

    OracleWallet: getSecretStore

    OracleFileSSOWalletImpl.getWalletData: enter...

    OracleFileSSOWalletImpl.getWalletData: System.getProperty (user.name) = sp_hydevadm

    OracleFileSSOWalletImpl.getWalletData: dummy sso (shared) file locking...

    OracleFileSSOWalletImpl.getWalletData: locking (shared) file sso...

    Oracle Wallet: Pocket size 3941

    OracleWallet: getSecretStore

    OracleSecretStore: load flow wallet

    OracleSSOKeyStoreImpl: engineLoad

    OracleKeyStoreSpi: Load flow wallet

    OracleKeyStoreSpi: Safe opening 0

    OracleKeyStoreSpi: Safe opening 0

    OracleKeyStoreSpi: found cert bag

    OracleKeyStoreSpi: found cert bag

    OracleKeyStoreSpi: found cert bag

    OracleKeyStoreSpi: found cert bag

    OracleKeyStoreSpi: Safe opening 0

    OracleKeyStoreSpi: found secret store bag

    OracleKeyStoreSpi: found secret store bag

    OracleKeyStoreSpi: found secret store bag

    OracleKeyStoreSpi: found secret store bag

    OracleKeyStoreSpi: Safe opening 0

    OracleKeyStoreSpi: Safe opening 0

    Treatment TP 0

    Storing TP 0 as UO = class public primary Certification Authority 1

    TP-1 treatment

    Storage of TP 1 in CN = GTE CyberTrust Global Root

    Treatment of TP 2

    TP 2 by storing like UO = class public primary Certification Authority 2

    Treatment TP 3

    TP 3 by storing like UO = class public primary Certification Authority 3

    OracleKeyStoreSpi: Storage Secret0

    Get the sequence of bag

    Get the alias of sequence

    Get the secret of the sequence

    OracleKeyStoreSpi: Storage Secret1

    Get the sequence of bag

    Get the alias of sequence

    Get the secret of the sequence

    OracleKeyStoreSpi: Storage Secret2

    Get the sequence of bag

    Get the alias of sequence

    Get the secret of the sequence

    OracleKeyStoreSpi: Storage Secret3

    Get the sequence of bag

    Get the alias of sequence

    Get the secret of the sequence

    OracleKeyStoreSpi: Keystore loaded

    OracleWallet: getSecretStore

    < 12 February 2014 12:42:11 hours EST > < opinion > < security > < BEA-090082 > < security initialization using security realm myrealm. >

    < 12 February 2014 12:42:55 hours EST > < WARNING > < JTA > < BEA-110503 > < migration tool (the AdminServer for JTA manual migration policy, or the captain Singleton for automatic migration JTA strategy) is not available. Jump JTA TRS restoration because isStrictOwnershipCheck is [false]. This may cause corruption of potential TLOG if TRS of Planning0 has been migrated to the backup server and the backup server accesses the TLOG of Planning0. More security can be achieved by setting isStrictOwnershipCheck [true]. >

    < 12 February 2014 12:42:56 hours EST > < opinion > < LoggingService > < BEA-320400 > < D:\u01\Oracle\Middleware\user_projects\domains\EPMSystemHYDEV\servers\Planning0\logs\access.log log file will be rotated. Reopen the log file if stopped tailings. This can happen on some platforms such as Windows. >

    < 12 February 2014 12:42:56 hours EST > < opinion > < LoggingService > < BEA-320401 > < log file was shot in D:\u01\Oracle\Middleware\user_projects\domains\EPMSystemHYDEV\servers\Planning0\logs\access.log00030. Log messages will continue to be logged in D:\u01\Oracle\Middleware\user_projects\domains\EPMSystemHYDEV\servers\Planning0\logs\access.log. >

    < 12 February 2014 12:43:01 hours EST > < WARNING > < oracle.dms.jrockit.jfr > < DMS-58041 > < The JRockit FlightRecorder class declares that it is not active and so the DMS cannot use it. >

    < 12 February 2014 12:44:01 hours EST > < opinion > < WebLogicServer > < BEA-000365 > < server changed to STANDBY status >

    < 12 February 2014 12:44:01 hours EST > < opinion > < WebLogicServer > < BEA-000365 > < server status changed initially >

    Using the OraclePKI provider

    taken javax.net.ssl.TrustManagerFactory supported

    taken javax.net.ssl.KeyManagerFactory supported

    Using the OracleJSSE103 provider

    < 12 February 2014 12:47:37 hours EST > < WARNING > < security > < BEA-090668 > < ignored the role 'Admin' resource deployment ' type = < url >, application is DMS Application #11.1.1.1.0, contextPath = / dms, uri = / ">".

    < 12 February 2014 12:51:03 hours EST > < WARNING > < oracle.adfinternal.view.faces.partition.FeatureUtils > < ADF_FACES-30130 > < without taking into account the dependence of the feature on the function "AdfDvtCommon".  There is no such feature. >

    ATTENTION: From post-deployment of ADF library jar on WebLogic Server. "Provider-lazy-inited" init-param missing LibraryFilter? Ignore this warning if the ADFJspResourceProvider is not used.

    On the road: ADF library non-ADFJspResourceProvider after deployment

    Finishing: ADF library non-ADFJspResourceProvider after deployment (millis): 16

    null

    < 12 February 2014 12:51:17 hours EST > < opinion > < Cluster > < BEA-000197 > < listening for cluster communications using unicast cluster messaging >

    < 12 February 2014 12:51:17 hours EST > < opinion > < Cluster > < BEA-000133 > < waiting to synchronize with other members in the planning stages. >

    < 12 February 2014 12:51:22 hours EST > < WARNING > < Log Management > < BEA-170011 > < The LogBroadcaster on this server has no messages to the server admin log. The server administrator can not run. Emissions of message to the administrator of the server will be disabled. >

    < 12 February 2014 12:51:48 hours EST > < opinion > < WebLogicServer > < BEA-000365 > < server status changed to ADMIN >

    < 12 February 2014 12:51:48 hours EST > < opinion > < WebLogicServer > < BEA-000365 > < Server State has changed for RESUMING >

    < 12 February 2014 12:52:24 hours EST > < opinion > < Cluster > < BEA-000162 > < "async" replication service to start with remote cluster address "null" >

    < 12 February 2014 12:52:24 hours EST > < opinion > < Server > < BEA-002613 > < Channel "Default" is now listening on 172.26.55.119:8300 for protocols iiop, t3, CLUSTER-STREAM, ldap, snmp, http. >

    < 12 February 2014 12:52:24 hours EST > < opinion > < Server > < BEA-002613 > < Channel "Default [2]" is now listening on fe80:0:0:0:0:100:7f:fffe:8300 for protocols iiop, t3, CLUSTER-STREAM, ldap, snmp, http. >

    < 12 February 2014 12:52:24 hours EST > < opinion > < Server > < BEA-002613 > < channel 'by default [5]' now listen on 0:0:0:0:0:0:0:1:8300 for protocols iiop, t3, CLUSTER-STREAM, ldap, snmp, http. >

    < 12 February 2014 12:52:24 hours EST > < opinion > < Server > < BEA-002613 > < Channel "Default [4]" now listen on 127.0.0.1:8300 for protocols iiop, t3, CLUSTER-STREAM, ldap, snmp, http. >

    < 12 February 2014 12:52:24 hours EST > < opinion > < Server > < BEA-002613 > < Channel "[1] by default ' is now listening on fe80:0:0:0:385e:468:a776:2aac:8300 for protocols iiop, t3, CLUSTER-STREAM, ldap, snmp, http. >

    < 12 February 2014 12:52:24 hours EST > < opinion > < Server > < BEA-002613 > < Channel "Default [3]" is now listening on fe80:0:0:0:0:5efe:ac1a:3777:8300 for protocols iiop, t3, CLUSTER-STREAM, ldap, snmp, http. >

    < 12 February 2014 12:52:24 hours EST > < WARNING > < Server > < BEA-002611 > < Hostname "HYDEVP01.uts.mcmaster.ca", corresponds to multiple IP addresses: 172.26.55.119, fe80:0:0:0:385e:468:a776:2aac % 14 >

    < 12 February 2014 12:52:24 hours EST > < opinion > < WebLogicServer > < BEA-000358 > < started WebLogic independent server managed by "Planning0" for the domain "EPMSystemHYDEV" running in Production Mode >

    < 12 February 2014 12:52:24 hours EST > < WARNING > < JMX > < BEA-149510 > < could not establish connectivity JMX with the Administration Server AdminServer to < JMXServiceURL:null >. >

    < 12 February 2014 12:52:39 hours EST > < WARNING > < Socket > < BEA-000449 > < socket closure as no data read on 172.26.55.119:52,430 for the configured timeout of 5 seconds >

    < 12 February 2014 12:52:39 hours EST > < WARNING > < Socket > < BEA-000449 > < socket closure as no data read on 172.26.55.119:52,427 for the configured timeout of 5 seconds >

    < 12 February 2014 12:52:39 hours EST > < WARNING > < Socket > < BEA-000449 > < socket closure as no data read on 172.26.55.119:52,429 for the configured timeout of 5 seconds >

    < 12 February 2014 12:52:40 hours P.M. > < WARNING > < Socket > < BEA-000449 > < socket closure as no data read on 172.26.55.119:52,428 for the configured timeout of 5 seconds >

    < 12 February 2014 12:52:49 hours EST > < WARNING > < Socket > < BEA-000449 > < socket closure as no data read on 172.26.55.119:52,441 for the configured timeout of 5 seconds >

    < 12 February 2014 12:52:49 hours EST > < WARNING > < Socket > < BEA-000449 > < socket closure as no data read on 172.26.55.119:52,442 for the configured timeout of 5 seconds >

    < 12 February 2014 12:52:49 hours EST > < WARNING > < Socket > < BEA-000449 > < socket closure as no data read on 172.26.55.119:52,443 for the configured timeout of 5 seconds >

    < 12 February 2014 12:52:49 hours EST > < WARNING > < Socket > < BEA-000449 > < socket closure as no data read on 172.26.55.119:52,439 for the configured timeout of 5 seconds >

    Do you still have this problem after restarting the server?

    See you soon

    John

    http://John-Goodwin.blogspot.com/

  • 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

  • Open database (recovery) takes too long

    Hello
    Ive been using your great BerkeleyDB Java Edition for a couple of years and have been very happy with it.

    I am facing a problem with trying to open the database after a full disk problem (which gave rise to the database is unable to write and therefore not closed).

    While recovery seems to work, it took a lot of time - 16 hours so far. My database has data about 200 GB, which has swollen to more than 450 GB during the deletion of entries, so gobble up all the free space on the disk.

    My questions are:
    * Should I continue to wait for the recovery?
    * Are there opportunities in loop?
    * Is there an easier way (DBDump?) to extract data from the database without having to perform a recovery?

    Other information that can help:
    * The recovery has reduced the size of the last important file and created 3 new files since it started running.
    * I did open (using lsof) files and they change every now and then to other files, but a good amount of his time came near the end of the database.

    So, I feel like recovery runs normally just takes too long. Please let me know your opinion.

    A few other things I should mention about my question:
    * The database was, until yesterday, running on java bdb 3.3.75. After several hours of recovery, I upgraded to 4.1.10 (since I read about a possible recovery loop bug in one of the versions)
    * Once 4.1.10 began recovering, he spat errors on the last 2 files. Only on deleting those 2 files (the latter being 0 bytes, the 2nd last one being about 5 k) made the beginning of recovery. Note that the recovery 3.3.75's longer never complained about these files. I can post errors here as appropriate.
    * Some files jdb (about 500 cases of the 47 000 files that make up the database) are files of 100 MB, because I had experienced with files of larger sizes for a few days, then returned the setting.

    All these above would affect a successful recovery?


    My configuration is:
    OS: Linux CentOS 5.2, 64-bit, kernel 2.6.18 - 92.el5
    JVM: Sun Java 1.6.0_20, 64-bit
    Memory: 16 GB of RAM, including 8 GB is allocated to the java process (- Xmx8000M - Xms8000M)
    Cache of BDB for use 6 GB of RAM (envconfig.setCacheSize (6000000000))

    Only the basic BDB API is to be used (environment, data, the sliders). We do use DPL, or HA features.

    Waiting for your kind response,
    Sushant has
  • 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/

  • My daughter Air2 IPad takes too long to save. It is connected to wifi, connected and the screen is locked.mAny advice?

    My daughter Air2 IPad takes too long to save. It is plugged in, connected to wifi and the screen is locked. Any tips?

    How long is too long? If it lasts for more than a few hours - and even that is too long in my humble OPINION - then something is wrong. Completely backup, because it will not terminate in any case if its been so long, forced to reboot the device and try again.

    To force the reboot your device, press and hold the two buttons of sleep/wake and home for at least ten seconds, until you see the Apple logo.

    This may not work either. The backup may be damaged and you will need to remove and start over. However, its easy starting point and it will not hurt anything. If the backup will not end, he has nothing to lose.

  • Should I keep plugging my iphone to the computer during the update download process? especially the download will take too long because it is more than 2 GB and my internet speed is not fast, I can unplug my iphone until the full download?

    I am a new user of Iphone, I must he keep plugging my Iphone to the computer during the update download process? especially the download will take too long because it is more than 2 GB and my internet speed is not fast, I can unplug my Iphone until the full download?

    Without doubt, but why not just make the day downloading overnight?

  • 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

  • Take too long time to come for Windows

    Hello

    I have Pavilion g6-2031se and of the last two days it takes too long to come to Windows. I faced this problem for the first time and I do not use my notebook for Skype, Facebook and only very light work. Can someone help me with this?

    Thank you

    Ganga

    @Ganga,

    No worries, I would like you to try a clean boot. This allows the computer to boot without unnecessary programs or offers to start with it.  When you open this document of croll to the section "How to perform a clean boot" once listed there to expand the section for your operating system to get the appropriate instructions.

    Once you have made the appropriate changes, restart the computer at least 3 times and see if you notice a difference not how long it takes to start.

    Please answer as soon as possible.

    Thank you

  • 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/

  • LaserJetPro HP 1102w impression takes too long

    Hello

    I installed HP 1102w on my laptop using the driver from the CD. Printing is configured using USB and ePrint is disabled.

    Printing takes very long (18 s). When I send a print job (even test page), I don't see that it appears in the printer job window liquid. However until I see that some data has been sent to the printer (for example 4 KB / 146kb) time is about 9 seconds. To start sending data up to what the page is printed is another second 8-9 so time total is Reiver 18 seconds in the best of cases.

    My laptop is:

    Windows Visa Business, 3 GB of RAM, Dual-Core clocked at 1.6 GHZ, SSD drive 120 GB.

    I tried to install the XPS (planned it will be faster) driver for this printer however failed to install with the 0x070c error code.

    Please have a tip how to print faster (reduce the time of 8 seconds until that data is sent to the printer)

    Thank you

    Miro.

    Hi @MKLI ,

    I see by your post that the printer takes too long to print in a USB connection. I would like to help you today.

    What kind of documents you print? (PDF, Txt)

    Have what applications you tried?

    Try a different file or application to see if you have the same results.

    Try and print a self-test on the printer hardware to see if it is a hardware or software problem.

    Printing a Configuration Page. Select the method two.

    Make sure the printer is connected directly to a wall outlet and the USB cable is connected directly to the computer. The USB cable should not be more then 6 feet. Try a different USB port on the laptop. Some ports are higher power then others. You may need to try another USB cable to see if that causes this problem.

    Check the power on the computer to see if that is causing the problem.

    How to make in the Windows Device Manager?

    Go to Device Manager, under Bus for each made USB root hub controllers right click and left click on properties, for the management of the power supply remove the check box for "allow the computer to turn off this device to save energy. It allows the computer to restrict or cut off the power for this unit.

    Restart the spooler to print on the laptop.

    Click Start (), type services.msc in the Search box and press ENTER.

    Find the service named print spooler, right click and select Properties. Click on stop and then click Start.

Maybe you are looking for