title: RMAN backup restore in a different node with datafiles and redolog files to a different directory
body: <p>I can't restore the datafiles and redolog files from backup.
  In RMAN I wrote,</p>
  
  <pre><code>run{
  set newname for datafile 1 to '/u02/data_redo/system01.dbf';
  set newname for datafile 2 to '/u02/data_redo/sysaux01.dbf';
  set newname for datafile 3 to '/u02/data_redo/undotbs01.dbf';
  set newname for datafile 4 to '/u02/data_redo/users01.dbf';
  set newname for datafile 5 to '/u02/data_redo/example01.dbf';
  sql "alter database rename file '/u01/app/oracle/oradata/db01/redo01.log' to 
  '/u02/data_redo/redo01.log'";
  sql "alter database rename file '/u01/app/oracle/oradata/db01/redo02.log' to 
  '/u02/data_redo/redo02.log'";
  sql "alter database rename file '/u01/app/oracle/oradata/db01/redo03.log' to 
  '/u02/data_redo/redo03.log'";
  restore database;
  switch datafile all;
  recover database; 
  }
  </code></pre>
  
  <p>But it says, </p>
  
  <pre><code>using target database control file instead of recovery catalog
  sql statement: alter database rename file 
  '/u01/app/oracle/oradata/db01/redo01.log' to '/u02/data_redo/redo01.log'
  RMAN-00571: ===========================================================
  RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
  RMAN-00571: ===========================================================
  RMAN-03009: failure of sql command on default channel at 07/30/2017 16:18:19
  RMAN-10015: error compiling PL/SQL program
  </code></pre>
  
  <p>How can I do this?</p>