HPE 9000 and HPE e3000 Servers
cancel
Showing results for 
Search instead for 
Did you mean: 

script in cron can't copy my data files

 
YAQUB_1
Respected Contributor

script in cron can't copy my data files

Hi There,

I have a script in cron that copy my data files from one folder to another on daily basis, some of the data files are larger than 2 GB, and /var/mail/oracle is showing me following errors regarding the script execution:

cp: /u02/oradata/TABSTST/TABS_DATA01.dbf: File too large

a /u01/daily_cold_backup/TABSTST/system01.dbf 819216 blocks
a /u01/daily_cold_backup/TABSTST/undotbs01.dbf 4014096 blocks
Can't open /dev/tty to prompt for more media.

Would you help me in this respect please?

Thanks.
3 REPLIES 3
Robert-Jan Goossens_1
Honored Contributor

Re: script in cron can't copy my data files

Yaqub,

Title: cp can incorrectly give an error and not copy a large file
Document ID: KBRC00008357

http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000079991935

check if you have this patch installed.

HP-UX 11.0 PHCO_29680
HP-UX 11.11 PHCO_30156

Regards,
Robert-Jan
Bill Hassell
Honored Contributor

Re: script in cron can't copy my data files

cp will copy any sized file, but if the destination is not enabled for largefiles, you'll get the failure message. Change the destination filesystem to all largefiles and cp will work OK. If you are using tar, tar will fail at 2 Gb (or 8 Gb with latest version) so it is not useful for large files.


Bill Hassell, sysadmin
YAQUB_1
Respected Contributor

Re: script in cron can't copy my data files

Hi All,

Thanks you for your all of unique support.

Have a Nice Day,
Yaqub.