Rman TAGs with variables in Stored Scripts
When writing shell scripts its easy to create variables and create rman command and tags with date formats etc.
When using stored scripts, I have tried passing in variables , and using filespec with no luck.
How do you create a TAG based on date in stored scripts?
e.g where the tag says 'test', change to 'test_yymmdd' .
This works:
CREATE GLOBAL SCRIPT global_backup_inc0_disk
COMMENT 'comment'
{
resync catalog;
allocate channel disk1
device type disk
format '/xxx/%d/%d_lvl0_%t_s%s_p%p.bck';
backup incremental level 0
tag lvl0
maxsetsize=25G
database
plus archivelog
maxsetsize=25G;