Solved

cp > 2 Gb file URGENT

Posted on 2007-04-06
7
278 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
  • 3
  • 3
7 Comments
 
LVL 45

Accepted Solution

by:
Kdo 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 45

Expert Comment

by:Kdo
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:Kdo
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

948 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now