Delete and copy file(s) slowly(!?)


 
Thread Tools Search this Thread
Operating Systems Solaris Delete and copy file(s) slowly(!?)
# 1  
Old 02-20-2008
Delete and copy file(s) slowly(!?)

Hi all!

I have to monitor space in V890 machine, Solaris 10 weekly, because there is Oracle DB on it with many datafiles which have been taken offline to make enough size.

Sometime, one or more datafiles are big, they are 20GB, 40GB etc.. The problem I have encountered is the processing of copying and deleting slowly.

And I am a newbie on Solaris, would you like to guide me for this problem?

Thank you very much!
# 2  
Old 02-21-2008
Do you really want to take a copy and remove the datafiles ?
It will make your DB inconsistent. Isn't it ?
# 3  
Old 02-21-2008
Quote:
Originally Posted by manikantants
Do you really want to take a copy and remove the datafiles ?
It will make your DB inconsistent. Isn't it ?
It's belonged to my policy which is manually take one/more copies datafile to the other storages. And, you may not wonder about this, I am sure that about, because I am a DBA. However, when I copied them to the Windows machine, it was very slow, same to delete internal in Solaris.

I wonder about the processing because one situation may be occur like:

- Take a copy datafile to its location from DVD when if some people want to retrieve history data.

Thank you for your reply! Smilie
# 4  
Old 02-21-2008
well, where do you need a backup ? in some other mount of the same machine or to some external storage device ?
# 5  
Old 02-21-2008
Quote:
Originally Posted by manikantants
well, where do you need a backup ? in some other mount of the same machine or to some external storage device ?
Thank you for your reply!

Said I that
Quote:
However, when I copied them to the Windows machine, it was very slow, same to delete internal in Solaris.
I meant all of the datafiles brought to offline was copied to the other system, it's a Windows machine in LAN. I used the SMB method to connect to Windows, and copied them to. Well, there is stranger thing, 2/3 copied processing are very fast, about 35GB, the remained file was about 14GB was very very slow. I did not really understand why. Of course, the tablespace was brough offline.

About the backup, I use RMAN to backup DB with policy RECOVER WINDOW OF 7 DAYS, whole backup. And there is no relation to this problem, inlcuding CPU process or resource, because it is executed at Saturday weekly.

Thanks again!
# 6  
Old 02-21-2008
Hi all!

I've found that the slowly processing due to Interface.
And then, I use command 'rm -f' to delete a file, it's very cool.
However, would you like to guide me how do I not connect to Solaris by File Zila server?

I often connect to it by command in Windows, that's ok.

Thank you!
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Md5sum is running very slowly

Hi, I am trying to get the hash values of md5 of a string. I am on Redhat Linux. using the 25-27 field in the file I need to generate the md5 and append it at the end of the record as a new field. I have tried the below code but its painfully slow. can you please suggest any alternatives or... (21 Replies)
Discussion started by: ahmedwaseem2000
21 Replies

2. Shell Programming and Scripting

copy, then delete lines in file with sed using a pattern

I need to copy lines to a new file from files with sed using a pattern in char postions 1-3. Then after the copy, I need to delete those same lines from the input files. For example, string "ABC" in pos 1-3 (6 Replies)
Discussion started by: laksjfhoius9123
6 Replies

3. Shell Programming and Scripting

Loop folders, delete files, copy new ones

Folks, I am hopeful that you may be able to help me out with writing a script that can be run nightly (as cron?) to loop through all subfolders within the "/media" directory, delete all of the files in each of them, and then copy in all of the files from the "/home//sansa" directory to each of... (6 Replies)
Discussion started by: acraig
6 Replies

4. Shell Programming and Scripting

Shell script for searching a record,copy to a file and then delete it

Hi, I have a requirement in hand: I have a file with millions of records say file 1.I have another file, say file 2 which has 2000 records in it. The requirement is to read file2 , and remove the read record from file 1 and move i to a seperate file, file 3. For eg: Read file 2, get the... (5 Replies)
Discussion started by: kumara2010
5 Replies

5. Shell Programming and Scripting

Script required to copy and delete files

Hi All, I have written a script to ensure all my ARCHIVE files are backed up retaining the directory structure. The Script is-- #!/bin/sh # Script to take backup of DCS Folders # The file locations are /ftp/edi_ftp/edi_p/dcsftp/DCS/*/ARCHIVE DCSITIME=$(perl -e '($ss, $mm, $hh, $DD, $MM,... (3 Replies)
Discussion started by: srnagu
3 Replies

6. Shell Programming and Scripting

Copy and Delete Question

I have a script to tar up some older files. It did a find and mv, but I had to change it to preserve the directory structure because some of the directories now have duplicate nameed files. I changed it to a find and copy, then added a find and remove. Is there a better way so I don't have to... (2 Replies)
Discussion started by: prismtx
2 Replies

7. Shell Programming and Scripting

How to copy to server & delete locally?

Hi, I've got a cronjob running daily creating backup files. How can I send that created file to a remote server & then delete it on my workstation to save space? The filename format is as follows: proj_bk_20070624_15h30, proj_bk_20070625_15h30, etc tar cvf - /project | gzip -c > proj_bk_$(date... (3 Replies)
Discussion started by: mokgonec
3 Replies

8. Shell Programming and Scripting

Unzip, copy, and delete loop

Hey there, I am trying to move zipped text files from a remote server to a remote tape storage facility, through my home directory. What I want to do is get the zip file (using scp), unzip it, copy the output text file which was inside (using rfcp) to the tape storage server, and then delete... (3 Replies)
Discussion started by: spyne
3 Replies

9. UNIX for Dummies Questions & Answers

Telnet and file Copy/Delete Problem

Hi there....I'm new for the UNIX... just wondering if there is any method that can telnet to a server without typing the userID and PWD each time... that is any command or scripts that allows me to enter the server directly? also...after i enter the server... i want to get some files then... (17 Replies)
Discussion started by: biglemon
17 Replies
Login or Register to Ask a Question