Skip to content

Instantly share code, notes, and snippets.

@Tracnac
Last active September 23, 2022 16:11
Show Gist options
  • Select an option

  • Save Tracnac/96ff0592a570d867dce20bb98d8df211 to your computer and use it in GitHub Desktop.

Select an option

Save Tracnac/96ff0592a570d867dce20bb98d8df211 to your computer and use it in GitHub Desktop.
RMAN recover datafile #oracle

Sous RMAN :

Source :

backup as copy tablespace sysaux format 'datafilecopy-sysaux.rman';

Dest :

alter database datafile '....' offline drop;

catalog datafilecopy '...';
RUN {
    SET NEWNAME FOR DATAFILE 2 to '+DATA_2D8B';
    RESTORE DATAFILE 2;
    SWITCH DATAFILE 2;
}

alter database datafile '....' online;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment