Creating an RMAN script from a template
You can use the bpdbsbora command to create a script from a backup template. This command generates RMAN shell scripts from the templates that the backup wizard creates.
At the command prompt, type this command in the following format:
bpdbsbora -backup -g script_file -t templ_name.tpl -S server_name
Where:
-backup | Specifies the template type. |
-g script_file | Specifies the name of the file to which you want bpdbsbora to write the script. Enclose script_file in quotation marks if it contains blanks. This option cannot be used with the -r (run) option. |
-t templ_name.tpl | Specifies the name of the template that you want to use as the basis for the script. Make sure that the template exists. bpdbsbora retrieves backup templates from a known location on the master server, so specify only the template file name. |
-S server_name | Specifies the master server upon which the template resides. When you specify the bpdbsbora command, it retrieves backup templates from the specified master server. |