RMAN-01009: syntax error: found "dot" solution

Source: Internet
Author: User

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

  • 1
  • 2
  • Next Page

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.