Oracle® Database Backup and Recovery Reference 11g Release 1 (11.1) Part Number B28273-01 |
|
|
View PDF |
Purpose
Use the SQL
command to execute a SQL statement or a PL/SQL stored procedure from within RMAN.
See Also:
Oracle Database SQL Language ReferencePrerequisites
None.
Syntax
sql::=
Semantics
Syntax Element | Description |
---|---|
CHANNEL channel_id |
Specifies the case-sensitive name of a channel to use when executing an RMAN command within a RUN command.
The channel must have been allocated by means of |
' command ' |
Specifies a SQL statement for execution (see Example 2-143). SELECT statements are not permitted.
You must use duplicate single quotes to insert a single quote into a quoted string when the quoted string uses the same style of quoting. For example, if the string that RMAN passes to SQL contains a filename, then the filename must be enclosed in duplicate single quotes and the entire string following the Note: Because SQL 'BEGIN rman.rman_purge; END;'; |
Examples