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.

Tags: Database

Similar Questions

  • LaserJet pro m401dne: fatal error, takes too long to connect with the printer

    Downloaded the driver of HP software, started installation and got to the point where it says to connect the printer, did, he recognizes it, start the data transfer and just takes forever. After ten minutes, I get fatal error takes too long to communicate with the printer, if aging persists restart the computer and try again.

    I've made this 3 times now and same result.

    Since my laptop doesn't have a cd drive, I copied the cd to a flash drive and installed the software from that. Worked perfectly. Something must be missing or corrupted download. Anyway problem solved

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

  • How can I fix Firefox 18 and 19 to take too long to close when the custom settings for history is used?

    Hello, please read entire post before responding, thanks!

    I had 12. Firefox (FF) something and he used with happiness when I was getting a new hard drive and start over, I decided to upgrade to the latest FF of the moment, 18.something...

    After going through the implementation of all the different Add - ons etc... and reset the options/preferences (not cool how you reset all those whenever it updates!) The opening time and closing went from 2 to 4 seconds each to 78 seconds to open and 48 seconds to close. In the last two days, I tried (except reset) and read all the suggestions on here does not.

    So I read up on how to uninstall completely any trace of Firefox so I could do a clean install, which did not work, either: the freshly reinstalled 18 FF. ? program still opened and closed at the same time, and had all my info despite my deleting files/sub-sub-sub-records said to hold this info. I disabled everything in FF, still no improvement, so still once I tried to find info on how to completely remove the FF and still nothing it is right for current programs.

    Today I looked again for the info on how to remove completely the FF, found something new to me and tried this, including the complete registry search and remove anything with the name of firefox, then reinstalled FF 18. ?
    Yet all my favorites and info was there, and when I raised my help he auto-mis updated to 19.0 without my permission, even when I don't like other decisions for me for "my good"(d'où le nom d'écran) not OK! ".

    So I tried the reset function to 19.0 FF and it's just that and the opening and closing time lag had gone, back to 2-4 seconds each, which seemed great!, but no.

    When I went back to set up my options and restarted, FF went back to the lag, so I eventually removed/reset everything and all was well again, so I started putting/setting things back one at a time, that's when I found and verified the problem, the history settings!!!
    

    I repeated this 6 times with the same results:
    The value of history to remember, and everything works well, story custom game lag returns without fail.

    My settings in Custom were:

    Accept and remember everything until I close FF
    Clear history the closure of FF.

    In the "Settings" submenu under the closure of FF clear history:
    All 6 boxes are checked for history and no boxes have been checked for data (all default values)

    I watched the process running in the task manager during startup and shutdown FF with these settings, I found that it was not only FF.exe works but also a plugin - container.exe, both eventually stop after about 48 seconds, the plugin container does not appear to run when the story is set on do not forget all the... (I have an incomplete memory on the container of plugin causing problems of this kind in the past, but I can't remember what or exactly when so much...)

    I also tried to leave the setting of history to remember them all and him restarted and tried to erase everything in the menu Tools and FF unresponsive for about 60 seconds and then seemed fine afterwards.

    So, I conclude that there is a problem in the newer versions with the history of compensation in the background while the browser continues to operate, and the likely culprit is the plugin container(again?)...

    So now to the questions...

    Is it possible to set to Custom history and 19.0 FF remain operational during this process and for FF close in a few seconds, as in FF 12. something with the same parameters of the story?
    If yes how can I configure that?

    If no, what is the last version that will work properly with history to remember until FF is closed and then wipe front of re-opening, without waiting for more than a few seconds for everything to happen as it was in my FF12. ? Version?

    Also, How do I remove ALL TRACES of Firefox 18.? and up so that I can do a clean install if I need to, as I said everything that is here or linked to from here up to today, 2/21/2013, was not sufficient.
    

    Thanks for your time...

    (See attached image) That's what worked for me to 19.0 Firefox, and I was able to verify that cookies have been deleted before restart, thanks again for your timely assistance.

  • HP DV7-1020EA takes too long to load, when the Bureau before being able to use windows Vista 64 bit

    HP Pavilion DV7-1020EA

    Last update of BIOS/CMOS

    Vista Home Premium 64-bit

    Watermark factory recovery

    All the appropriate HP update & Windows Update installed

    Adobe Flash & Sun Java installed

    Removed bloatware

    Tried Msconfig and disable all startup with no improvement items

    Intel Centrino 2

    NVIDIA PureVideo HD graphics card

    HDMI & eSATA

    Problem: Booting into windows is OK a tad slow ish but it load the Office once it takes forever to load before you can get along with just about anything.  As you can not connect to the Internet until the Office has charged.  I don't think its something in the system tray causing lazy loading.

    Any suggestions what to try please.

    See you soon

    Steven.

    Hi Steven,

    It should not perform the function of the buttons on the capacitive Strip if you disable Task Scheduler fast player - however another option would be to put the service to start manually instead of automatically when Windows starts.  To do this, first enable the service from the msconfig services tab, apply the change and then reboot the laptop.

    When windows has completely recharged (it will probably slow again), open windows control panel, open administrative tools, and open Services.  Find the Task Scheduler player quick entry, right click and select Properties.  In the drop-down list next to Start up type, select manual, then click on apply then Ok to save the change.  Restart the computer for the change to apply and see if the time it takes to get a usable desktop is always good - if this is the case, then I'd leave the QPTS function defined in the manual.

    Kind regards

    DP - K

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

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

  • 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

  • The db connection takes too long with connection of shared servers

    Hi all

    Operating system: Solaris SPARC 64-bit 11
    DB: 2 node RAC Oracle 11.2.0.3.5

    After a migration from a database of 40GBs of a 9i database to an 11g database, he is takin too long to connect to the db, which uses the shared server. At present, it is not all applications using the Pb, just me. Do a few tests, I saw that when I use a dedicated connection, I can connect almost instantly, but by using the shared connection, it takes almost 4 seconds to connect via sqlplus. Here are a few shared server settings:
    shared_server_sessions               integer
    shared_servers                          integer     1
    max_shared_servers                   integer     20
    dispatchers                               string      (protocol=TCP)(disp=5)
    max_dispatchers                        integer     5
    
    lsnrctl service
    
    
      Instance "INSTANCE", status READY, has 6 handler(s) for this service...
        Handler(s):
          "DEDICATED" established:5 refused:0 state:ready
             LOCAL SERVER
          "D004" established:93 refused:0 current:0 max:1022 state:ready
             DISPATCHER <machine: orahml01, pid: 4073>
             (ADDRESS=(PROTOCOL=tcp)(HOST=hostname)(PORT=65402))
          "D003" established:85 refused:0 current:0 max:1022 state:ready
             DISPATCHER <machine: orahml01, pid: 4070>
             (ADDRESS=(PROTOCOL=tcp)(HOST=hostname)(PORT=44055))
          "D002" established:90 refused:0 current:2 max:1022 state:ready
             DISPATCHER <machine: orahml01, pid: 4066>
             (ADDRESS=(PROTOCOL=tcp)(HOST=hostname)(PORT=41277))
          "D001" established:89 refused:0 current:1 max:1022 state:ready
             DISPATCHER <machine: orahml01, pid: 4062>
             (ADDRESS=(PROTOCOL=tcp)(HOST=hostname)(PORT=61887))
          "D000" established:91 refused:0 current:0 max:1022 state:ready
             DISPATCHER <machine: orahml01, pid: 4060>
             (ADDRESS=(PROTOCOL=tcp)(HOST=hostname)(PORT=44222))
    
      INSTANCE =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = hostname-scan)(PORT = 1521))
          (CONNECT_DATA =
            (SERVER = SHARED)
            (SERVICE_NAME = INSTANCE)
          )
      )
      
    INSTANCE1 =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = hostname-vip)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = INSTANCE)
          (INSTANCE_NAME = INSTANCE1)
        )
      )  
      
    
    INSTANCE2 =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = hostname-vip)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = INSTANCE)
          (INSTANCE_NAME = INSTANCE2)
        )
      ) 
    The alert.log doesn't show anything wrong.

    It can be the cause of this problem with shared server?

    Thanks in advance.

    Published by: Fabricio_Jorge on 03/27/2013 06:14

    You have five dispatchers/dispatchers and a shared server. A Dispatcher and five servers shared would be a more normal setting. Try to launch a few servers more shared, perhaps

    alter system set shared_servers=20;
    

    --
    John Watson
    Oracle Certified Master s/n
    http://skillbuilders.com

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

  • Why does take so long to load from the time wherever I power up until it takes to get to the login screen? help taking too long

    Why does take so long to load from the time wherever I power up until it takes to get to the login screen? help taking too long

    You should take a look at your startup programs and decide what is really necessary and what is nothing more than useless clutter. There is nothing wrong with the startup programs, some may be really useful or even necessary for your personal needs. But keep in mind that many programs build to start when you start the computer and that most of them must not start when the computer starts, all they do is slow down your boot time and clutter of things when you're trying to solve problems, and some are downright harmful!

    I mean, have you really need things like real Planner and Gadwin Print Screen running all the time? These programs will run very well, even if they are not started automatically every time that you start the computer. Go to these programs and change/disable their boot option. Some may be difficult to kill for public assistance services can be useful when you try to control startup programs. Try CodeStuff Starter, it's safe and easy to use, I think you'll like it, download it here:

    http://CodeStuff.tripod.com/products_starter.html>

    Use AutoRuns to check axis start, Richard:

    http://TechNet.Microsoft.com/en-us/sysinternals/bb963902.aspx>

    Use Cclenar-> tools-> start

    http://www.CCleaner.com/download/builds.aspx>

    I can't tell you what to keep, startup items it is a personal preference, but pretty well all the startup items indicated by CodeStuff Starter are safe to disable, and changes are easy to reverse if you change your mind. Searches for items it shows you and decide whether or not these things are really useful or necessary. Some programs will be started at startup without your knowledge and over time, that list can expand to include useless parasites, part of good computer maintenance includes regular control of these startup items and the removal of the unnecessary.

    Suggest that you first spread malware as the cause of the problem by following these steps:

    I. - delete your temporary files

    Clean the system (compensation to all temp/tmp folders and included all the content offline, the tif browser, delete the cookies of compensation.)

    Do a disk cleanup. Click the Start button. in the search box, type disk cleanupand then in the list of results, click Disk Cleanup. Better and easier to use - ccleaner.

    Download the basic version (slim) via

    http://www.Piriform.com/CCleaner/builds>

    The basic version (slim) does not contain the toolbar disgusted

    DO NOT USE ANY cleaning of the advanced options. DO NOT TOUCH THE REGISTRY OR TOOLS. At least not for now.

    Reset

    II. - have your system scanned as a result of security/antivirus installed.

    III. - download, install, update and run both of these tools to a-squared free scans:

    MalwareBytes anti-malware (MBAM)

    http://www.Malwarebytes.org/products/malwarebytes_free>

    SUPERAntiSpyware (SAS)

    http://SUPERAntiSpyware.com/superantispywarefreevspro.html>

    UTC/GMT is 18:16 on Wednesday, January 18, 2012

  • 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

Maybe you are looking for

  • How can I transfer photo from Nokia N97 Mini to Backflip by Blue Tooth?

    Hi all, I'm sorry because I'm a new user since 05/10/2010 wef. Just bought the phone of the telco company. Blue tooth file transfer impossible. Could someone tell me Y?

  • Digital input maintains to 5V

    Hi all I meet a scenario where the digital input on my DAQ card channel giving 5V when I measure between the channel and the ground. As a result, I was not able to read the digital signal. This happned in the past, a few months ago and my work around

  • keep a constant temperature

    Hi all Installation problem of &: I have a daq card that will measure the temperature of 6 thermocouples. I want that the average temperature of last 3 thermocouples to be as close as possible to the average temperature of the first 3 thermocouples.

  • problems with automatic updates from microsoft

    have hp pc running xp pro version 2002 service pack 3, and when I allow the automatic update (kb2661254 or kb2749655 or kn2756822) to install the machine restarts. I try and install one at a time and each restarts the machine?

  • How to improve the fsx tio connection

    When I try to organize a meeting that my connection is in the red and to-1, no one will join my game. Do you know how to fix this?