How to execute an RMAN command without exiting
I WANT TO HAVE a shell script that will load rman and point to my rman catalog and then execute an RMAN command with me ending-up at the RMAN prompt, not exiting to the O/S
The command I want to execute is for setting my encryption key (ORACLE CLOUD). Any interaction with CLOUD will require that command be run and I want to do it automatically in my script.
Everything I've tried, so far, runs the command but exits to the o/s. I want it to stay in interactive-mode (leaving me at the RMAN> prompt):
This is how it SHOULD LOOK: