Is there any way that we can run script file Directly through RMAN.

Hi Team,
I have backup script as ,
allocate channel t1 type disk;
backup
format 'C:\bkup'
(database);
release channel t1;
I had used this script for backup operation on RMAN & its executing properly...as
RMAN> run
2> {
3> allocate channel t1 type disk;
4> backup
5> format 'C:\bkup'
6> (database);
7> release channel t1;
8> }     
Now I want to put this srcipt file in one file i.e (backup.sh) ... Can I give this backup.sh file (stored in disk location)directly to the Run command. Is there any way ..
Plz comment...

You can use cmdfile parameter to specify the script which contains the actual code and also you can specify log parameter for the log file. Here is an example:
rman target / cmdfile=backup.ora log=backup.log
And here are all the command line parameters which you can use with RMAN:
Argument Value Description
target quoted-string connect-string for target database
catalog quoted-string connect-string for recovery catalog
nocatalog none if specified, then no recovery catalog
cmdfile quoted-string name of input command file
log quoted-string name of output message log file
trace quoted-string name of output debugging message log file
append none if specified, log is opened in append mode
debug optional-args activate debugging
msgno none show RMAN-nnnn prefix for all messages
send quoted-string send a command to the media manager
pipe string building block for pipe names
timeout integer number of seconds to wait for pipe input
checksyntax none check the command file for syntax errors
Daljit Singh

Similar Messages

Maybe you are looking for

  • How do I use NI-Motion tools to directly control a P70360?

    I can currently control a P70360 via modbus commands. I am interested in using NI-Motion routines to do this, if possible. But all the examples and VIs seem to assume there is an intermediary controller card, between the AC Drive and my labview app.

  • IMac "Core 2 Duo" 3.06 24-Inch (Early 2009)  update from 1TB to 4TB HD

    Hallo, I am new here and I give my best Regards to everybody in this Comunity. I have a iMac "Core 2 Duo" 3.06 24-Inch (Early 2009) with 1TB HD, 8GB Ram, ATI Radeon HD 4850 and OSX 10.9.3. I would like to update the storage capacity from 1TB HD to 4T

  • How to send Mp4 file on Mail

    Please could some friendly person tell me how to send a recorded Mp4 track by email? I can drag it off the desktop (from iTunes) into a new message, but cannot play it back.

  • Problems with a return

    I ordered a phone and added a line for my son on Dec 20. I had problems with my order online, and chatted with an associate who helped me. At one point I had to log out, log back in and re-start my order. Three days later I received two phones and ch

  • Finder Not Showing DVD Content

    Hey there folks. i have had a macbook for about 6 months now with very minimal problems, but i have just come across one that is bugging me quite a lot. i have all my h/d backed up on dvd (philips dvd+rw) i inserted the dvd into the superdrive, but f