Database Backup and Recovery (MOSC)

MOSC Banner

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:

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center