1.

How To Check The Syntax Of Rman Commands?

Answer»

Start the RMAN CLIENT with the OPERATING system command-line argument checksyntax.

$ rman checksyntax
Recovery Manager: RELEASE 11.2.0.4.0 – Production on Wed 
RMAN> connect target /

The command has no syntax errors
RMAN> backup database;

The command has no syntax errors

You can ALSO use the checksyntax argument to check the syntax of RMAN commands that are part of a command file.

Example:
$ rman checksyntax @/tmp/rmancmdfile

Start the RMAN client with the operating system command-line argument checksyntax.

$ rman checksyntax
Recovery Manager: Release 11.2.0.4.0 – Production on Wed 
RMAN> connect target /

The command has no syntax errors
RMAN> backup database;

The command has no syntax errors

You can also use the checksyntax argument to check the syntax of RMAN commands that are part of a command file.

Example:
$ rman checksyntax @/tmp/rmancmdfile



Discussion

No Comment Found