In Oracle 11g r2 database rman crashes during exit and gives error like DBGMISC: ENTERED crmkmrsr.
Inconsistency in NLS settings. (This is specified as a bug on the oracle side.)
The problem will be solved when NLS_COMP and NLS_SORT are set to BINARY during the rman session.
RMAN> sql "alter session set NLS_COMP=BINARY";
RMAN> sql "alter session set NLS_SORT=BINARY";
You can run your scripts afterwards.