I am deleting approximately 4 million files from a partition and despite the size of all folders is around 350GB is taking a huge amount of time, over 4 hours now. Is there a way or a command to verify the status of the progression from CLI? I am on a W2K8 R2.
We have a Windows 2008 R2 with Oracle11g and I need to uninstall the server and to reinstall again.
I was following this Oracle Uninstall guide here:
http://www.oracle-base.com/articles/misc/ManualOracleUninstall.php
Everything was going fine untill the step:
- Delete the "C:\Oracle" directory, or whatever directory is your ORACLE_BASE.
The problem here is that I am unable to remove that directory?!
I've noticed that when R-Click->Properties the "Read Only" attribute of the folder is checked but disabled. (Now I know that that means that the attributes on the files inside the folder are READ ONLY and the folder itself is NOT). However when I remove the RO attribute, Windows spends several minutes to remove all of the Read Only attributes on the files inside the folder.. but then when i click OK the window closes, and everything is back to Read Only!!
I even tryed to remove those attributes frome the CMD as shown in the image bellow:
And again it spends 2-3 minutes to do the job and then the RO attribute is checked again...
Does anyone have experienced anything similar and perhaps know any suggestion regarding this issue on how can i fix this odd behavior?
UPDATE 12.01.2012:
I've succeed to delete the folder by detaching the hard drive reattaching it on another PC and deleting the folder from there. However the whole Windows 2008 crashed when I attached the HDD back to its original PC and I have to re-install everything all over again. Luckily the server was a test server only. And YES btw, the Windows repair option from the installation CD does not work :P.
Unless someone knows the REAL WAY on how to uninstall Oracle 11g, so far I can only say that this is an answer on how to NOT uninstall Oracle.
We have a little problem here.
We have a share with the backup of all the server's offices, Its a really big share with more than 8.000.000 files.
Our users usually give long names to the folders they create, and then make subfolders (long too) and more subfolders... and more suboflders....
We have a new share with more capacity, and with a simpe robocopy bat we copied all the files and folders (some give problems, but we manually copied them)
But the problem is deleting them. del command didnt work well when so long paths, neirder rmdir... I'm tried some commanders, but no luck.
Can u recommend me any tool that can delete recursively or able to delete 255+ paths?
Edited: The SO on background of the share it's NetApp OS. But I can access it from Windows Servers. 2000 and 2003
Thanks.
Not perfect solution but that works
Here's the script on Windows Scripting I do to solve the problem. It isn't perfect but if anyone has the same problem can use it.
Option Explicit
DIM strFolder
DIM objFSO
' ************************************************************
' Setup
' ************************************************************
' Folder to delete files from (files will also be deleted from subfolders)
strFolder = "Z:\del"
' ************************************************************
set objFSO = createobject("Scripting.FileSystemObject")
Wscript.echo "Processing " & strFolder
RecursiveDeleteByExtension strFolder
wscript.echo "Finished"
sub RecursiveDeleteByExtension(byval strDirectory)
DIM objFolder, objSubFolder, objFile, Tmp, Indice
set objFolder = objFSO.GetFolder(strDirectory)
Wscript.echo "Processing " & strDirectory
for each objFile in objFolder.Files
WScript.echo "Deleting:" & objFile.Path
objFile.Delete
next
Indice = 0
For each objSubFolder in objFolder.SubFolders
If Len (objSubFolder.Name) > 5 Then
Indice = Indice + 1
objSubFolder.Move(objFolder.Path & "\" & Indice & ".t")
End if
Next
for each objSubFolder in objFolder.SubFolders
RecursiveDeleteByExtension objSubFolder.Path
Next
objFSO.DeleteFolder(strDirectory)
end sub
What this script do, recursively, is changing a very long path like \bla...\bla...\bla...\bla... to a much more shorter \1\2\1\2\ and after the renaming in the end of each recursion, it deletes the object folder (who's empty, btw).
It worker extremely well for me, even so we found full paths near 200 chars (imagine with before the script).
Do anyone know some good way to delete files on remote server that are older than X days using just SCP/SFTP?
Sure I can write some script on perl etc but I feel it's overkill.
Any UNIX way?
Oneliner?
Separate utility?
Thanks
P.S. The task is to delete some outdated backup files.
I've set up DFS-R between three servers, and so far, it is replicating everything as its supposed to.
The problem is, I can not access the
DfsrPrivate
folder. Where is it located? So far I see the link/shortcut from within my replicated folder. But I get anaccess denied
, when trying to open it.I can open and browse the
DfsrPrivate
when I'm trying to specify another staging folder through DFS' own configuration, but I can not see files, only folders.Do files/folders I deleted while having an active DFS replication group, get deleted permanently or does it store it in the
Deleted
folder underDfsrPrivate
?Another "bonus" question: If you're dealing with around 500gb of images, how large a staging quota do you recommend? Is there any "Best Practice"?
Thanks.