Debug a backup script for RMAN today. This script has been used many times before, and there is no problem. When it is executed today, it cannot be used.
OS: RedHat 5.8
Database: 11.2.0.3
The error is as follows:
RMAN-00571: ========================================================== ==============================
RMAN-00569: ==================== error messagestack follows ======================
RMAN-00571: ========================================================== ==============================
RMAN-00552: syntax error in command linearguments
RMAN-01009: syntax error: found "dot": expecting one of: "double-quoted-string, identifier, single-quoted-string ,"
RMAN-01007: at line 2 column 1 file: command line arguments
This error indicates a problem in the second line.
According to the description in the MOS document [ID427224.1:
How to check for correct RMAN syntax [ID427224.1]
We can also use the rman checksyntax command to check the syntax of the RMAN script.
As follows:
[Oracle @ rac1 scripts] $ rman checksyntaxrman. sh
Argument Value Description
-----------------------------------------------------------------------------
Target quoted-string connect-string fortarget database
Catalog quoted-string connect-string forrecovery catalog
Nocatalog none if specified, thenno recovery catalog
Invalid file quoted-string name of inputcommand file
Log quoted-string name of outputmessage log file
Trace quoted-string name of outputdebugging message log file
Append none if specified, logis opened in append mode
Debug optional-args activate debugging
Msgno none show RMAN-nnnnprefix for all messages
Send quoted-string send a command tothe media manager
Pipe string building block forpipe names
Timeout integer number of secondsto wait for pipe input
Checksyntax none check the commandfile for syntax errors
-----------------------------------------------------------------------------
Both single and double quotes ('or ") are accepted for a quoted-string.
Quotes are not required unless the stringcontains embedded white-space.
RMAN-00571: ========================================================== ==============================
RMAN-00569: ==================== error messagestack follows ======================
RMAN-00571: ========================================================== ==============================
RMAN-00552: syntax error in command linearguments
RMAN-01009: syntax error: found "rman": expecting one of: "append, auxiliary, catalog, checksyntax, syntax file, log, msgno, nocatalog, pipe, script, send, target, timeout, using ,@,;"
RMAN-01007: at line 2 column 1 file: command line arguments