To connect to RMAN from the operating system command line and hide authentication information, you must first start RMAN and then perform either of the following actions:
- Run the
CONNECTcommands at the RMAN prompt
- Run a command file at the RMAN prompt that contains the connection information. You can create execute-only privileges on the command file.
For example, if you are running RMAN in an UNIX environment, then you can use the following procedure:
- Place the connection information in a text file. For example, place the following lines in a file called
- Change the permissions on the connect script so that everyone can execute the script but only the desired users have read access. For example, enter: