Tuesday, May 13, 2014

Checking syntax of RMAN Script




1.Checking the syntax of script using checksyntax keyword in the command line

rman  checksyntax @rman_7.cmd

Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.

connected to target database: CVRMAN (DBID=657566608)

RMAN> #configuring channel with difference piecesize ,disk rate and location
2> run
3> {
4> allocate channel ch1
5> device type disk
6> format="+DATA"
7> maxpiecesize=200M
8> rate=50M;
9> allocate channel ch2
10> device type disk
11> format="/SHARED/backup1/%U"
12> maxpiecesize=100M
13> rate=30M;
14> backup datafile 1,2;
15> release channel ch1;
16> release channel ch2;
17> }
18>
The cmdfile has no syntax errors




No comments: