How can I find a large amount of data from a stored procedure?

How can I find a large amount of data to a stored procedure in an effective way?

For example do not use a cursor to go through all the lines and then assign values to variables.

Thanks in advance!

>
How can I find a large amount of data to a stored procedure in an effective way?

For example do not use a cursor to go through all the lines and then assign values to variables.
>
Leave the query to create the object back to you.

Declare a cursor in a package specification than the result set gives you desired. And to declare a TYPE in the package specification which returns a table composed of % rowtype to this cursor.

Then use this type as the function's return type. Here is the code example that shows how easy it is.

create or replace
    package pkg4
      as
        CURSOR emp_cur is (SELECT empno, ename, job, mgr, deptno FROM emp);
        type pkg_emp_table_type is table of emp_cur%rowtype;
        function get_emp(
                         p_deptno number
                        )
          return pkg_emp_table_type
          pipelined;
  end;
  / 

 create or replace
    package body pkg4
      as
        function get_emp(
                         p_deptno number
                        )
          return pkg_emp_table_type
          pipelined
          is
            v_emp_rec emp_cur%rowtype;
          begin
              open emp_cur;
              loop
                fetch emp_cur into v_emp_rec;
                exit when emp_cur%notfound;
                pipe row(v_emp_rec);
              end loop;
          end;
  end;
  / 

select * from table(pkg4.get_emp(20));

     EMPNO ENAME      JOB              MGR     DEPTNO
---------- ---------- --------- ---------- ----------
      7369 DALLAS     CLERK2          7902         20
      7566 DALLAS     MANAGER         7839         20
      7788 DALLAS     ANALYST         7566         20
      7876 DALLAS     CLERK           7788         20
      7902 DALLAS     ANALYST         7566         20

If you return a line an actual table (all columns of the table) so you don't need to create a cursor with the query a copy you can just declare the type like this % rowtype tables table.

 create or replace
    package pkg3
      as
        type emp_table_type
          is
            table of emp%rowtype;
        function get_emp(
                         p_deptno number
                        )
          return emp_table_type
          pipelined;
  end;
  / 

 create or replace
    package body pkg3
      as
        function get_emp(
                         p_deptno number
                        )
          return emp_table_type
          pipelined
          is
          begin
              for v_rec in (select * from emp where deptno = p_deptno) loop
                pipe row(v_rec);
              end loop;
          end;
  end;
  / 

Tags: Database

Similar Questions

  • How can I retrieve a large amount of photos that I've accidentally "move to trash" in Lightroom?

    How can I retrieve a large amount of photos that I've accidentally "move to trash" in Lightroom?

    Thanks for the update.

    You can copy the original images from your SD card on the hard drive or the location where they were originally stored, and changes can be restored only if you have a backup catalog that contains the version edited for these images.

    Locate the backup catalog on your computer that contains the changes.

  • InDesign CS5 and CS5.5, how can we get a large amount of text in MS Word in the pages?

    InDesign CS5 and CS5.5, how can we get a large amount of text in MS Word in the pages?

    I'm just looking to get started.

    It's easy to get a small amount of text - I am using simple methods of "copy / paste" but I have a document which is over 70 pages in size.

    I have it in MS Word format and PDF format and are seeking to use either format (not both)

    Please can someone help me?

    Terry

    File > Place. Go to the Word file.

    Shift + click on the page of your document.

    Bob

  • Transport of large amounts of data from a schema of one database to another

    Hello

    We have large amount of data to a 10.2.0.4 database schema from database to another 11.2.0.3.

    Am currently using datapump but quite slow again - to have done in chunks.

    Also files datapump big enough in order to have to compress and move on the network.

    Is there a quick way to better/more?

    Habe haerd on tablespaces transportable but never used and do not know for speed - if more rapid thana datapump.

    tablespace names in the two databases.

    Also source database on the system of solaris on Sun box opertaing

    target database on aix on the power box series of ibm.

    Any ideas would be great.

    Thank you

    Published by: user5716448 on 08-Sep-2012 03:30

    Published by: user5716448 on 2012-Sep-08 03:31

    >
    Habe haerd on tablespaces transportable but never used and do not know for speed - if more rapid thana datapump.
    >
    Speed? Just copy the data files themselves at the level of the BONE. Of course, you use always EXPDP to export the "metadata" for the tablespace but that takes just seconds.

    See and try the example from Oracle-Base
    http://www.Oracle-base.com/articles/Misc/transportable-tablespaces.php

    You can also use the first two steps listed on your actual DB to see if it is eligible for transport and to see what there could be violations.
    >
    DBMS_TTS EXEC. TRANSPORT_SET_CHECK (ts_list-online 'TEST_DATA', => of incl_constraints, TRUE);

    PL/SQL procedure successfully completed.

    SQL > TRANSPORT_SET_VIOLATIONS The view is used to check violations.

    SELECT * FROM transport_set_violations;

    no selected line

    SQL >

  • How oracle will show the large amount of data

    Hi all

    I have server Oracle 11 g on linux os 2. Total sga size is 500 MB only. Now, if customs wants to read the 1 GB of data from database, there no sufficient memory in the buffer cache. So how it will work. the transaction will get successful or it will fail.

    And I have another doubt, done oracle can read data from memory only or it can also read directly on the disc.

    Please let know us your opinion. Thank you.

    Please go through the below documents

    Oracle library documentation

    asktom:how Database Buffer Cache works?

    Oracle database concepts

  • How can I recover the modules and their data from a failed HARD drive (the lost BONE areas, but data files are readable)?

    The HARD drive that was my OS (Windows XP Pro SP3) failed and lost quite a few areas which are essential for the operating system running. Other data is still readable. A got another HARD drive and installed Windows XP SP2, Firefox and other programs. I was able to retrieve the bookmarks, security certificates, and other profile information using the information found in bandages.

    None of them addressed how do to recover the modules or their data. Specifically, there are several large, elegant scripts that took months to develop and customize.

    Articles related to migration and other do not work for me because they require the old copy of FF is functional, that is not because the OS on this HARD drive is damaged. Is it possible to recover these data, similar (or not) about how I could get the other profile info?

    Have you copied the entire folder C:\Documents and Settings\username \Application Data\Mozilla\Firefox\ on the old drive?
    If this is not the case, can you?
    If so, make a copy and save this folder just in case.

    If so, you could replace this folder on the new facility by \Profiles\ [with your profiles inside] folder and the profiles.ini file [delete all other files / folders that may also be in the folder "Firefox"] -and then replace with the same folder named from the old failed drive. Note that you will lose what you already have with the new installation / profile!
    Your profile folder contains all your personal data and customizations, including looking for plugins, themes, extensions and their data / customizations - but no plugins.
    But if the user logon name is different on the new facility that the former, any extension that uses an absolute path to the file in its prefs will be problems. Easily rectified, by changing the path to the file in the file prefs, js - keep the brake line formatting intact. The extensions created after the era of Firefox 2.0 or 3.0, due to changes in the 'rules' for creating extensions usually are not a problem, but some real old extensions that need only "minor" since that time can still use absolute paths - even though I have not seen myself since Firefox Firefox 3.6 or 4.0.

    View instead of 'Modules' I mentioned the 4 types of 'Modules' separately - Plugins are seen as 'Add-ons', but they are not installed in the profile [except those mislabelled as a "plugin", when they are installed via an XPI file], but rather in the operating system where Firefox 'find' through the registry.

    Note: Migration articles can tell you do not re - use the prefs.js file, due to an issue that I feel is easily fixed with a little inspection and editing. I think you can manage that my perception is that you have a small shovel in your tool box, if you encounter a problem you are able to do a little digging and fixing problems with the paths to files - once you have been warned.

    Overall, if you go Firefox 35 35 or even Firefox 34 to 35, I don't think you will run in all the problems that you can not handle [that I cross my fingers and "hope" that I'm not on what it is obvious].

    With regard to the recovery of the 'data' for individual extensions - there are many ways that extension developers used to store their data and pref. The original way should save in prefs.js or their own file RDF in the profile folder. While Firefox has been developed more, developers started using their own files in the profile folder. And because Mozilla has started using sqlite database files in Firefox 3.0, Mozilla extended their own use of sqlite, as have extension developers.
    Elegant uses the file stylish.sqlite to store 'styles', but something in the back of my mine tells me that 'the index' maybe not in this file with the data. But then again, I can be confusing myself a question I had with GreaseMonkey awhile back where I copied the gm_scripts folder in a new profile and with already installed GreaseMonkey but with no script. These GM scripts worked, but I could not see them or modify them - they do not appear in the user GM extension interface window in Firefox.

  • How can I find out what my number Fax from Microsoft?

    Please say how to know my number of Microsoft Fax

    Original title: information

    Hello

    Microsoft does not affect fax number. If you have FAX capabilities then this is the phone number
    the line attached to the fax. If you have the FAX, you need to check on internet
    with its supplier.

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • I do not know the password for my money 2002, how can I find it? Where in the files is stored? u

    Running Windows 7 update of XP.  Now the money request password I can remember.

    Hello

    Check in the Microsoft Money Forum.

    Microsoft Money - Forum
    http://social.Microsoft.com/forums/en/money/threads

    Microsoft Money Solution Center - suggests alternatives
    http://support.Microsoft.com/mny

    What is Microsoft Money Plus sunset
    http://support.Microsoft.com/kb/2118008

    BING - microsoft money replacement
    http://www.bing.com/search?q=Microsoft+Money+replacement&go=&QS=n&SK=&SC=7-27&form=QBLH

    Google - microsoft money replacement
    http://www.google.com/#sclient=psy-ab&hl=en&source=hp&q=microsoft+money+replacement&pbx=1&oq=microsoft+money+replacement&aq=f&aqi=g4&aql=&gs_sm=e&gs_upl=9978l11972l2l12926l12l1l0l0l0l0l467l467l4-1l1l0&bav=on.2,or.r_gc.r_pw.,cf.osb&fp=dcc84c4c7dd2e143&biw=1024&bih=681

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • How can I find Mode of transfer of data to set up the ereader?

    To set up the ereader go 'start' 'MyMachine' 'Data transfer Mode' and then double-click the setting. Cannot get the data transfer mode.

    Hi DonBosley,

    As you use Sony ereader, I recommend you contact Sony support for assistance:

    PRS - T1

    http://www.Sony.co.UK/product/Rd-Reader-eBook/PRS-T1

  • deleted photos from shutterfly album are not in the trash. How can I find them?

    deleted photos from shutterfly album are not in the trash. How can I find them?

    deleted photos from shutterfly album are not in the trash. How can I find them?

    Shutterfly is a third-party application - what it does when you delete a photo belongs to programmers.  You will need to obtain the support of Shutterfly.

  • I have a paid Hotmail/MSN account. No ads, more large spare part, etc. How can I find my use of storage capacity, so far?

    Storage space used with hotmail

    I have a paid Hotmail/MSN account.  No ads, more large spare part, etc.  How can I find my use of storage capacity, so far?

    Hello Robert Whitlock,.

    The best place to ask your question of Windows Live is inside Windows Live help forums. Experts specialize in all things, Windows Live, and would be delighted to help you with your questions. Please choose a product below to be redirected to the appropriate community:

    Windows Live Mail

    Windows Live Hotmail

    Windows Live Messenger

    Looking for a different product to Windows Live? Visit the home page Windows Live Help for the complete list of Windows Live forums to www.windowslivehelp.com.

  • How can I find out what type of ram and the maximum amount that I can add to my: xp professional 32-bit PC?

    How can I find out what type of ram and the amount, maximum I can add to my: xp professional 32-bit PC?

    Thanks, GregCY

    Original title: RAM

    Fastest and easiest is to go to http://www.crucial.com/systemscanner/ and download and use the scanner.

  • ﷯Error - error message: an element on the page "News" at location 33 642 requires the pixelation, but is too large to rasterize. Resize it smaller and try again... I can't fix this or find that the line number.  How can I find this line?

    ﷯Error - error message: an element on the page "News" at location 33 642 requires the pixelation, but is too large to rasterize. Resize it smaller and try again... I can't fix this or find that the line number.  How can I find this line?

    I don't know why it worked, but I changed the police and was able to download Web site.  Thanks for your help!

  • How can I find and open/search the 32 GB of data that fills the disk for possible deletion?

    Using XP: I have only about 2 GB (2 000 MB) of the programs on my hard drive Go 37 and less than 3 GB of space left.

    How can I find and open/search the 32 GB of data that fills the disk for possible deletion?

    Thank you.

    * original title - full hard drive. *

    Using XP: I have only about 2 GB (2 000 MB) of the programs on my hard drive Go 37 and less than 3 GB of space left.

    How can I find and open/search the 32 GB of data that fills the disk for possible deletion?

    Thank you.

    Download and run JDiskReport.

    There are a number of things you can do to- temporarily - free up disk space.  The only real solution, however, is to get a larger hard drive.

    • You can run Disk Cleanup (start > run > cleanmgr > OK)
    • You can reduce the size allocated for the restoration of the system to about 1 GB (right click on desktop > properties > system restore > settings)
    • You can disable hibernation (if you don't use it) (right click on an empty spot on the desktop > properties > screen saver > power > Hibernate)
    • You can disable the indexing of the drive, which will also speed up your computer a bit (http://lifehacker.com/031440/turn-off-indexing-and-speed-up-windows-xp)
    • You can reduce the size of your Internet browser cache (depending on the browser that you use)
    • You can remove most of the $NTUninstallKBxxxxxx files $ following the directions here: http://windowsxp.mvps.org/Hotfix_backup.htm (read the warnings in the gray box first)

    But none of these answers you will earn really large amounts of space for very long.  The term solution time is a bigger hard drive.

    In the meantime, download and run JDiskReport, that will show you graphically what files take up more space and seem to so indicate what files to delete or uninstall applications.

  • Urgent please help: How can I find on what fills my hard drive?

    My drive C guard fills, and I don't know why.  Yesterday, I removed more than 40 GB of files and delete a lot more (I emptied the Recycle Bin).  In the last 4 hours, filled an another 30 GB and I'm now in the red zone (5 GB in the last twenty minutes!).  I only kept a very small Word document on the hard drive.

    It only started past recently, in the last two weeks or more.  I am on Windows Vista and I have McAfee.  I recently completed a full scan and nothing significant has come.

    I have only 5 GB on my C drive on the left, and there is nothing more that I can remove it.  How can I find out what does this and how do I that to solve this problem?

    Any emergency assistance will be greatly appreciated!

    Thank you.

    Free disk space
    Last updated 18/01/2014
     

    Content

    • To see how much space you have used and free
    • To see where the files are too much space
    • Disk Cleanup
    • System restore
    • Fix the basket
    • Fix temporary Internet files
    • Delete files in the system and the folder Temp of Service Profiles
    • Check the size of the swap file
    • Disable the hibernation
    • Compact the Windows databases use various
    • Delete the files updated by the Service Pack
    • Move your Documents
    • Remove saved files created by Photo Gallery
    • Which extends the size of the disk
    • Compress files
    • Turn off the low disk space warnings
    • Boost disk cleanup
     

    To see how much space you have used and free

    Start - All Programs - Accessories- Click with the right button on command prompt and choose run as administrator. Type (or copy and paste by clicking in the command prompt window and choose Paste).

    For the system drive

    WMIC volume where (DriveLetter = '% lecteur_systeme %') are legend, capacity, freespace List

    For all readers

    WMIC volume get/all, freespace, the ability, the legend

    If you want to store this info on your desktop

    WMIC /append:"%userprofile%\desktop\Free on disk space" volume get Caption, freespace format:htable

    To open double click on Free Disk Space on your desk or type

    Start "" "%userprofile%\desktop\Free report.HTML of disk space.

    Then come back here after cleaning and repeat these commands to see the difference.

    If for any reason, the wmic command does not work, use these two commands. Both take a lot of time.

    % Lecteur_systeme % - one defrag

    or

    dir %systemdrive%\*.*/a/s

     
    To see where the files are too much space
     
    It lists the number of files and the size of the folders on your drive. Each command is a subset, so you can run it better.
     

    Start - All Programs - Accessories - right on command prompt and choose run as administrator. Type (or copy and paste by clicking in the command prompt window and choose Paste).
     
     
    Then configure the command prompt. Right-click on the tab of the titlebar - Properties - Layout command prompt - and enter 1000 screen buffer size height and 43 (or 50) to Window Dimensions height. Change the color (color tab) and the police (police tab), if you want.
     
    To see the size of the folders in Documents, excluding images, video, or music files.
     
    for /f "Skip = 2 tokens = 3 ' set doc = A %%A in ('Reg query"HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders"/v"Personal"")
     
    for /f "usebackq tokens = 2 * delims =" %i IN ("dir"% doc"/ a/s ^ |") "." findstr/i/v "\/"^|findstr/l/v "photos video" ') @echo %j & echo. "
     
    To see the size of the folders in the music.
     
    for /f "Skip = 2 tokens = 4" %A in ('Reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v 'My music' ") set Doc = A %
     
    for /f "usebackq tokens = 2 * delims =" %i IN ("dir"% doc"/ a/s ^ |") "." findstr/i/v "-/"') @echo %j & echo. "."

     
    To see the size of the image files.
     
    for /f "Skip = 2 tokens = 4" %A in (' Reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" "My pictures" /v ") set Doc = A %
     
    for /f "usebackq tokens = 2 * delims =" %i IN ("dir"% doc"/ a/s ^ |") "." findstr/i/v "-/"') @echo %j & echo. "."
     
    To see the size of the files in the video.
     
    for /f "Skip = 2 tokens = 4" %A in ('Reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v 'My videos' ") set Doc = A %
     
    for /f "usebackq tokens = 2 * delims =" %i IN ("dir"% doc"/ a/s ^ |") "." findstr/i/v "-/"') @echo %j & echo. "."
     
    To see the size of the files on the desktop.
     
    for /f "Skip = 2 tokens = 3 ' set doc = A %%A in ('Reg query"HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders"/v"Desktop"")
     
    for /f "usebackq tokens = 2 * delims =" %i IN ("dir"% doc"/ a/s ^ |") "." findstr/i/v "-/"') @echo %j & echo. "."

    To see the size of the files in the Windows folder.
     
    for /f "usebackq tokens = 2 * delims =" %i IN ("'%windir%' dir /a /s ^ |") "." findstr/i/v "-/"') @echo %j & echo. "."
     

    To see the size of the files in the Program Files folder.
     
    for /f "usebackq tokens = 2 * delims =" %i IN ("'%ProgramFiles%' dir /a /s ^ |") "." findstr/i/v "-/"') @echo %j & echo. "."
     
     

    Disk Cleanup
    To run Disk Cleanup, normal is to click with the right button on the drive in my computer (Start menu - computer), then Properties - general tab - Disk Cleanup button.
     
     
    Another way is menu Start - All Programs - Accessories - System - Disk Cleanup tools.
     
    Disk Cleanup can be started from the command line.
     

    Start - All Programs - Accessories - right on command prompt and choose run as administrator. Type (or copy and paste by clicking in the command prompt window and choose Paste).

     
    To make your primary drive.
     
    cleanmgr letter
     
    Choose which lead to do.
     
    Cleanmgr
     
    See the last section of this post to see how to performance of disk cleanup.

     System restore

    With disk cleanup displays above the Other Options tab. You can delete all but the last System Restore point and see if that is too much space.

    System Restore uses 15% of the space normally. Change click Start - All Programs - Accessories - right on command prompt and choose run as administrator. Type Regedit and navigate to

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore\cfg

    Double click on DiskPercent and click on decimal and change the value to the desired percentage,

    You can change the command prompt.

    Start - All Programs - Accessories - right on command prompt and choose run as administrator. Type (or copy and paste by clicking in the command prompt window and choose Paste).

    To see the size of the system restore folder.

    You don't normally have access to this folder. You will need to take possession, allow administrators to permission, then the size of the query.

    takeown /f "%systemdrive%\System Volume Information" / a r d y
    ICACLS "%systemdrive%\System Volume Information" / grant administrators: f, t, c, q
    dir "%systemdrive%\System Volume Information" / a/s

    To see the current percentage

    Reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore\cfg" /v DiskPercent

    It is in hexadecimal. The numbers are 0-9 and a-f. So 0xf is 15. 0x5 is 5, 0 x 9 is 9, 0xa is 10, 0 x 14 is 20.

    To set a different value.

    You can use decimal values to set. This affects 10% (in bold in the example and the last item in the line).

    Tracking Add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore\cfg" /v DiskPercent /t REG_DWORD /f /d 10
     
    To repair the system restore, file delete and restart the system restore.
      
    SC stop vss
    takeown /f "%systemdrive%\System Volume Information" / a r d y
    ICACLS "%systemdrive%\System Volume Information" / grant administrators: f, t, c, q
    e "%systemdrive%\System Volume Information" / q/s
    SC start vss

    Fix the basket

    Sometimes, files get lost in the trash. Remove the storage folders. It will be automatically re-created next time you delete a file or open the Recycle Bin. It will remove the trash and the files it contains for all users.

    Empty the trash.

    Start - All Programs - Accessories - right on command prompt and choose run as administrator. Type (or copy and paste by clicking in the command prompt window and choose Paste).

    To see the size of the files in the Recycle Bin

    It must have one or no files inside if you work. There should be a directory (folder) by user.

    dir % systemdrive%\$RECYCLE. BIN\ *. * /a /s

    To reset the trash

    e % systemdrive%\$RECYCLE. BIN/s/q

    Fix temporary Internet files

    Sometimes, files get lost in the temporary internet files folder. Delete the files. It will be automatically recreated the next time download you. It will remove the current user only.

    Start - All Programs - Accessories - right on command prompt and choose run as administrator. Type (or copy and paste by clicking in the command prompt window and choose Paste).

    To see the temporary internet files size empty files folder

    RunDll32.exe InetCpl.cpl, ClearMyTracksByProcess 8

    dir ' %userprofile%\AppData\Local\Microsoft\Windows\Temporary Internet Files\ *.» "*" '%userprofile%\AppData\Local\Microsoft\Internet Explorer\DOMStore\*.*' / a/s

    Then delete.

    Close Internet Explorer and the Explorer first. Some files may not remove at the moment, they can be deleted later.

    "%userprofile%\AppData\Local\Microsoft\Windows\Temporary Internet Files" del /s /q

    also the DOM store, similar to TIF.

    "%userprofile%\AppData\Local\Microsoft\Internet Explorer\DOMStore" del /s /q

    So to see the new size.

    dir ' %userprofile%\AppData\Local\Microsoft\Windows\Temporary Internet Files\ *.» "*" '%userprofile%\AppData\Local\Microsoft\Internet Explorer\DOMStore\*.*' / a/s

     
    To see the size of the cache, type the following
     

    Start - All Programs - Accessories - right on command prompt and choose run as administrator. Type (or copy and paste by clicking in the command prompt window and choose Paste).

     
    Reg query /v "Settings\5.0\Cache\Content Software" CacheLimit valid
    Use the calculator to convert hexadecimal into decimal. Start the Calculator (Start - All Programs - Accessories - calculator) and choose the menu display - scientific, then the menu display - Hex. Enter the value returned above. Menu display - decimal. To convert windows units divide by 1024 for kilobytes, divide by 1024 megabytes.
     
    Located between 50 MB and 250 MB. You can use decimal here. The unit is expressed in kilobytes. Here it is 250 megabytes (250 000 x 1024 bytes)
     
    Add tracking 'Software Settings\5.0\Cache\Content' v CacheLimit valid /t Reg_DWord /d 250000 f
      

    Delete files in the system and the folder Temp of Service Profiles

    The system temp folder is only used when no one connects. It is rarely used but never cleaned. Some services have their own temporary folder which is also cleaned.

    Start - All Programs - Accessories - right on command prompt and choose run as administrator. Type (or copy and paste by clicking in the command prompt window and choose Paste).

    To the list

    dir c:\windows\temp C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Temp C:\Windows\ServiceProfiles\LocalService\AppData\Local\Temp/a/s

    To remove

    del C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Temp\*.* C:\Windows\ServiceProfiles\LocalService\AppData\Local\Temp\*.* c:\windows\temp\*.*/s/f/q

    Check the size of the swap file

    As a rule generally you want to your swap file slightly larger than the amount of memory that you have. It develops automatically but spread automatically. If you use hungery memory programs as this video editing should be bigger. If too big you can reduce and rush of space can be moved to another drive.

    Start - All Programs - Accessories - right on command prompt and choose run as administrator. Type (or copy and paste by clicking in the command prompt window and choose Paste).

    To see what was your use

    WMIC pagefile get List

    To see the size of the file on disk

    dir /a c:\pagefile.sys

    To change the size or change the road see change the size of virtual memory in Start - Help and Support.

     

    Disable the hibernation

    The file shows up is the same size of installed memory. If this is not the case, turn off the computer in hibernation and save a lot of disk space.

    Start - All Programs - Accessories - right on command prompt and choose run as administrator. Type (or copy and paste by clicking in the command prompt window and choose Paste).

    To see if it is on

    If the file will be found. If off the file won't be there.

    dir %systemdrive%\hiberfil.sys /a

    To turn off

    powercfg-h off

    Make a u-turn

    powercfg-h on

    Compact the Windows databases use various

    You can compact the various databases that Windows uses. This is the Windows Update, Windows Search, and certificates of security, Windows Mail, Windows Contacts, Windows, Windows Live and Internet Explorer ver 10 applications calendar.

    Close Windows Mail and Internet Explorer. Wait a minute for Internet Explorer release locks of sound files.

    See how much space taking up type which is below and note the total size (because it scrolls away).

    Start - All Programs - Accessories- Click with the right button on command prompt and choose Run As Administrator. Type (or copy and paste by clicking in the command prompt window and choose Paste).

    dir c:\*.edb c:\*.msmessagestore c:\WebCacheV*.dat c:\catdb/a/s

    Then at compact

    SC stop wuauserv
    stop bits SC
    SC stop wsearch
    SC stop cryptsvc
    for c:\ /r %A in (*.edb *.msmessagestore WebCacheV*.dat catdb *.) do esentutl.exe /p "%A" / o
    for c:\ /r %A in (*.edb *.msmessagestore WebCacheV*.dat catdb *.) do esentutl.exe /d "%A".
    SC start cryptsvc

    SC start wsearch

    SC start bits
    SC start wuauserv

    Then to delete some temporary files.

    del c:\*.integ.raw c:\TEMPDFRG*.edb/s

    To see the new size and compare it to the old size

    dir c:\*.edb c:\*.msmessagestore c:\WebCacheV*.dat c:\catdb/a/s

    If a program has a file open, you can use this procedure to find out which program.

    openfiles/local on

    Reset

    openfiles/query /v | findstr /i "WebCacheV [0-9] *------catdb \.edb \.msmessagestore .dat".

    Delete the files updated by the Service Pack

    See how much space taking up type which is below and note the total size (because it scrolls away). Also, note that the total is higher than it actually is.

    This will remove the ability to uninstall service packs.

    According to the service pack that Windows was provided with you can have both, one or none of these two files.

    Start - All Programs - Accessories - right on command prompt and choose run as administrator. Type (or copy and paste by clicking in the command prompt window and choose Paste).

    dir /a /s c:\Windows\WinSxS

    Then type

    Vsp1cln.exe
    COMPCLN.exe

    To see the new size and compare it to the old size

     
    c:\windows\WinSxS dir /a /s

    Move your Documents

    If you have another disk, you can move the documents folder to it.

    Click with the right button on your Documents (or pictures, etc.) Office, videos, Contacts,) the tab file - Properties - location - move.

     

    Delete the thumbnail and icon Caches

    These files can contain thumbnails or icons of files deleted a long time ago. The files will be recreated if necessary.

    Start - All Programs - Accessories - right on command prompt and choose run as administrator. Type (or copy and paste by clicking in the command prompt window and choose Paste). The desktop and the start menu will disappear briefly.

    To see the size

    dir "% userprofile%\AppData\Local\*.db" "% userprofile%\AppData\Local\Microsoft\Windows\Explorer\*.db" /a

    then remove

    Taskkill /im explorer.exe/f
    attrib - r s h '% userprofile%\AppData\Local\*.db '.
    attrib - r s h '% userprofile%\AppData\Local\Microsoft\Windows\Explorer\*.db '.
    del "% userprofile%\AppData\Local\*.db".
    del "% userprofile%\AppData\Local\Microsoft\Windows\Explorer\*.db".
    Explorer

    to check the new size

    dir "% userprofile%\AppData\Local\*.db" "% userprofile%\AppData\Local\Microsoft\Windows\Explorer\*.db" /a

     

    Remove saved files created by Photo Gallery

     

    Photo Gallery Windows makes a copy of any file that you are editing. Click Start - All Programs - Accessories - (or press the Windows key + R). Type

    Images of the hull: original

    Delete the ones you don't want.

    Which extends the size of the disk

    If all the space on the disk has not all been used it is possible to extend your drive.

    Start - All Programs - Accessories - right on command prompt and choose run as administrator. Type (or copy and paste by clicking in the command prompt window and choose Paste).

    DiskPart

    then type

    Select the c volume:

    Then type to see in size

    the list volume

    then (it will work if possible or not as appropriate)

    extend

    type to display the new size

    the list volume

    then type exit

    output

    If you want advice on the extension of the partition type the following and paste the result back

    DiskPart

    list disk

    the list volume

    Select disk 0

    partition from the list

    Select disk 1

    partition from the list

    output

    To copy the final text right click in the window - Mark , then select the text and press enter.
     

    Compress files

    There are two ways to compress files in windows. Zip files and built-in file compression. It's built-in file compression. For more information on compression type zip in Start - Help and Support .

    Photos, music and video are already compressed. They can get larger if Windows tries to compress it any further. Also usually a bad idea to compress system files.

    If you have files of worksheet they can very well be compressed. If you have files, installation files, they can also be good candidates. Web pages are also good candidates.

    In Windows Explorer, blue file names means Tablet (it is the file system compression not aka zip files compressed files). Green filename means Encrypted.

    To disable file names colored, in Explorer - Tools menu (Alt + T)- display tab and then clear the check box for Show encrypted or compressed NTFS in color .

    Windows compression, encryption and security to work for the most part by applying attributes to a folder and the files in the folder inherit the folder.

    If you have all the files appropriate for compression, find them in solution, made Explorer right click - Properties - general -Advanced button tab - Compress contents to save disk space. Choose to apply to all files and folders when asked.

    To use a command line to compress the files in the Favorites folder.

    Start - All Programs - Accessories - right on command prompt and choose run as administrator. Type (or copy and paste by clicking in the command prompt window and choose Paste).

    compact/c /s:"%userprofile%\Favorites." *

    Put in Favorites to compress files added

    compact/c /s:"%userprofile%\Favorites.

    To view the details of the compression of the Favorites folder

    Compact '% userprofile%\Favorites\*.* '.

     

     

    Turn off the low disk space warnings

    To disable the function to display the disk low space warnings.

    Start - All Programs - Accessories - right on command prompt and choose run as administrator. Type (or copy and paste by clicking in the command prompt window and choose Paste).

    Tracking Add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" v "NoLowDiskSpaceChecks" /t REG_DWORD /d 1 f

    gpupdate/force

     

    Boost disk cleanup

    • Operation of disk cleanup
    • Schedule disk cleanup
    • Creating custom cleaners

    To see a list of products of cleaning disk cleanup.

    Start - All Programs - Accessories - right on command prompt and choose run as administrator. Type (or copy and paste by clicking in the command prompt window and choose Paste).

    @echo. & @echo list of cleaners&@echo = & FOR /F "usebackq tokens = 8 delims =-' %i IN ('reg query 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches'") @echo %i

    
     List of cleaners
     ================
     Active Setup Temp Folders
     Content Indexer Cleaner
     Downloaded Program Files
     Hibernation File
     Internet Cache Files
     Memory Dump Files
     Microsoft_Event_Reporting_2.0_Temp_Files
     Offline Pages Files
     Old ChkDsk Files
     Previous Installations
     Recycle Bin
     Setup Log Files
     System error memory dump files
     System error minidump files
     Temporary Files
     Temporary Setup Files
     Temporary Sync Files
     Thumbnail Cache
     Upgrade Discarded Files
     Windows Error Reporting Archive Files
     Windows Error Reporting Queue Files
     Windows Error Reporting System Archive Files
     Windows Error Reporting System Queue Files
     WLX Thumbnail Cache
    
     

Maybe you are looking for

  • I can't open documents sent to my email address

    I have Adobe reader and can open documents with the exception of any document sent to my email address at att.NET my email provider has tried repeatedly to find problems with the email account ect.with no will. My search engine is Mozilla firefox

  • Satellite A30 cleaning (overheating)

    OK here the same old problem, overheating.now able to go n im getting my hands durty and clean my LT, ive done b4 with DTs and other LTs, however, as im in College, and have little time and its vital that I don't mean anyhting, (ive been having one o

  • Skype website won't let me download the version of Skype Mac

    I select the Mac version of the software and takes me to the page: http://www.Skype.com/intl/en-us/get-Skype/on-your-computer/MacOSX/ I'm prompted to connect / / sign up (even if I'm already connected), and when I sign it automatically downloads the

  • Please check once more! Access denied when I tried to do my hidden folder not hidden.

    So I did one of my folders - one with all my important data hidden. I can see the folder in the F-drive(where i saved it), but I cannot perform all the functions in this regard. I tried to change the attributes to no hidden, but every time I try I ge

  • 8.1 Windows disc included and already installed on the computer

    I received my new 9020 OptiPlex with Windows 7 and accompanying the expedition's 8.1 for windows 8.1 Windows recovery media products. The drive says that it is already installed on my computer. Where? I cannot locate and hesitate to put this disc wit