Solved

copy not taking place

Posted on 2013-05-27
4
213 Views
Last Modified: 2013-06-04
I have backup in /home/oracle/Desktop/backup location

my current directory is /u01/app/oracle/oradate/orcl  how will I copy the contents of backup folder to the current directory ie the above one..

shows error like this


[oracle@term1 orcl]$ cp /home/oracle/Desktop/backup/
cp: missing destination file operand after `/home/oracle/Desktop/backup/'
Try `cp --help' for more information.
[oracle@term1 orcl]$ cp home/oracle/Desktop/backup/
cp: missing destination file operand after `home/oracle/Desktop/backup/'
Try `cp --help' for more information.
[oracle@term1 orcl]$
0
Comment
Question by:walkerdba
4 Comments
 
LVL 16

Expert Comment

by:Swadhin Ray
ID: 39200269
You need to pass the file name and the destination path too while doing the copy.

Please refer this link for more information:

http://www.tuxfiles.org/linuxhelp/fileman.html
0
 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
ID: 39201058
As noted in the link above, cp takes two parameters:  cp FROM TO.

Check out the man page:
http://linux.die.net/man/1/cp

At a minimum you need:
cp /home/oracle/Desktop/backup/* /u01/app/oracle/oradate/orcl

I figure you will also want recursive:
cp -r /home/oracle/Desktop/backup/* /u01/app/oracle/oradate/orcl
0
 
LVL 21

Accepted Solution

by:
Mazdajai earned 500 total points
ID: 39201509
Asterisk can be omitted if recursive option is added.

cp -rv /home/oracle/Desktop/backup /u01/app/oracle/oradate/orcl

Open in new window

0
 

Author Closing Comment

by:walkerdba
ID: 39219936
yes
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

911 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

19 Experts available now in Live!

Get 1:1 Help Now