Not possible to create rman script
I'm trying to transfer old scripts into a new rman catalog but it is not possible even though it is syntactically correct as it was used for years in the old one.
RMAN> create or replace global script offline_weekly
2> {
3> shutdown immediate;
startup mount;
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE DEFAULT DEVICE TYPE TO 'SBT_TAPE';
CONFIGURE DEVICE TYPE SBT_TAPE PARALLELISM 2;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE SBT_TAPE TO '%d_%F';
backup device type sbt format '%d_full_offline_%s_%U_%t' filesperset 1 tag '%TAG' database;
alter database open;
crosscheck backup of database completed before 'trunc (sysdate-35)';