|Oracle® Database Backup and Recovery Reference
11g Release 2 (11.2)
|PDF · Mobi · ePub|
Syntax descriptions are provided in this book for RMAN command-line constructs in graphic form or Backus Naur Form (BNF). See Oracle Database SQL Language Reference for general information about how to interpret syntax diagrams and BNF notation. This section explains RMAN conventions exclusively.
Recovery Manager syntax diagrams use lines and arrows to show syntactic structure, as shown in the following example for the
This section describes the components of syntax diagrams and gives examples of how to write RMAN commands. Syntax diagrams are made up of these items:
Keywords have special meanings in Recovery Manager syntax. In the syntax diagrams, keywords appear in rectangular boxes and an uppercase font, like the word
CATALOG in the example diagram. When used in text and code examples, RMAN keywords appear in uppercase, monospace font, for example,
DATAFILECOPY. You must use keywords in RMAN statements exactly as they appear in the syntax diagram, except that they can be either uppercase or lowercase.
Placeholders in syntax diagrams indicate non-keywords. In the syntax diagrams, they appear in ovals, as in the word integer in the example diagram. When described in text, RMAN placeholders appear in lowercase italic, for example, 'filename'. Placeholders are usually:
Names of database objects (tablespace_name)
Oracle data type names (date_string)
When you see a placeholder in a syntax diagram, substitute an object or expression of the appropriate type in the RMAN statement. For example, to write a
DUPLICATE TARGET DATABASE TO 'database_name' command, use the name of the duplicate database you want to create, such as
dupdb, for the database_name placeholder in the diagram.
The only system-independent, valid environment variables in RMAN quoted strings are a question mark (
?) for the Oracle home and an at-sign (
@) for the SID. However, you can use operating system-specific environment variables on the target system within quoted strings. The environment variables are interpreted by the database server and not the RMAN client.
The following table shows placeholders that appear in the syntax diagrams and provides examples of the values you might substitute for them in your statements.
|Quoted strings such as
||A string of characters contained in either single or double quotes. A quoted string may contain white space, punctuation, and RMAN and SQL keywords.||
|Nonquoted strings such as
||A sequence of characters containing no white space and no punctuation characters and starting with an alphabetic character.||
||Any sequence of only numeric characters.||
The RMAN syntax diagrams shows some placeholder values enclosed in required or optional quotes. The syntax diagrams show single quotes, though in all cases double quotes are also valid in RMAN syntax. For example, you may specify either 'filename' or "filename". For
SQL commands, use double quotes, because the SQL statement may also contain quotes. Single and double quotes are not used interchangeably in SQL, and single quotes are the more common type of quote in a SQL statement.