Solved

cp > 2 Gb file URGENT

Posted on 2007-04-06
7
282 Views
Last Modified: 2010-04-21
I am trying to copy a file 6 GB in size using the following command, (MKS emulator on Windows platform)
$cp sourcefile.dbf <target directory>

Getting error:
cp: Error copying file J:/PHLCISUT/DBDATA/CISD01.DBF to h:/PHLCISUT/dbdata/CISD01.DBF: Insufficient system resources exist to complete the requested service.
Is there an alternate command for copying

Thanks
0
Comment
Question by:Greens8301
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
7 Comments
 
LVL 45

Accepted Solution

by:
Kent Olsen earned 500 total points
ID: 18866194

Hi Greens8301,

Any of several things could be at play here.

-  Is there enough room on the destination device to hold a 6GB file?
-  Some systems and emulators have a 2GB file limit.  I don't know about MKS.

The 2GB file limit is based on the ff_blk structure having a 32 bit integer value for file position.  It's hard to do I/O past the 2GB position when you can't reference it.


Kent
0
 

Author Comment

by:Greens8301
ID: 18866248
Kdo,
The windows is a 32bit architecture
6 GB is the database file which is being used fine no problem at the database end
When I copy for backup I get the error

There is suffiecient room in the target directory

is there a command other than "cp" to try, something like .."io.."

Greens8301
0
 

Author Comment

by:Greens8301
ID: 18866375
Kent,

Do you think it is not possible to backup at all,  files > 2 GB with any available unix command

Greens8301
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 45

Expert Comment

by:Kent Olsen
ID: 18866539
Hi Greens8301,

I suspect that it's an issue with MKS.

I've never used it so I can only speak from what I read, but it appears that there are 32 and 64-bit versions of it.  There may well be an issue with the 32-bit.

It's easy to test.  

--  Create a 1GB file.  Copy it somewhere else.
--  Cat the new file to the end of the original (making a 2GB file).
--  Copy the 2GB file somewhere else.
--  Cat the 1GB file to the new file (making a 3GB file).
--  Copy the 3GB file somewhere else.

If that 3GB copy fails, you can be reasonbly sure that there a problem with MKS.


Kent
0
 
LVL 6

Expert Comment

by:DocGyver
ID: 18867182
Going out on a limb here but is the destination drive NTFS?  If it is FAT32 then you can't have a file greater than 2G on it.
0
 
LVL 45

Expert Comment

by:Kent Olsen
ID: 18867212

Hi Doc,

That seems like a pretty stable limb.   :)


Kent
0
 

Author Comment

by:Greens8301
ID: 18867588
Kent,

I used oracle RMAN copy istead. and it copied the 6 GB file byte per byte successfully

When I have time , will try your test

Thanks
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question