You are on page 1of 4

1-a le rôle de fichier de contrôle dans Rman il permet de faire une copie de la métadonnée de la

base de données cible qu’il sont nécessaire à la récupération

1-b- le catalogue de récupération permet de faire une copie de fichier de Contrôle


2  Complet && incrémentiel
3
Shutdown immediate
Startup mount
Backup database format ‘c://Rman1_%d_s’;

4
Rman target sys@cdb
> create BIGFILE tablespace tbs1 datafile 'C:\svrman\tcr.dbf' size 20M;

> create table t1 tablespace tbs1 as select * from tab;

Backup database format ‘c://ZZohra_%d_%s’;

> alter tablespace tbs1 offline;

Host del “c://c.txt”

> restore tablespace tbs1;


> recover tablespace tbs1;

> alter tablespace tbs1 online;


5
(flashback table t1 before drop)
> create table t1 as select * from tab;

Backup database format ‘c://Rman2_%d_%s’;


Backup cumulative level=1 database format ‘c://Rman2_%d_%s’;

// comment  select timestamp_to_scn(‘23/03/2021 à 10:15:17’) from dual; //// scn  4521458551

// alter pluggable database pdb1 close;


// Drop table t1;

> commit;
> run {
shutdown immediate;
startup mount;
// comment  set until scn 4521458551;
set until time to_date(23/03/2021 à 10:15:17’, 'DD-MM-YYYY HH24:MI:SS')";
restore table test;
recover table test;
alter database open resetlogs;
}

6
Rman target sys/pass@isga

Backup database format ‘c://Rman2_%d_s’;

Backup incremental level=1 database format ‘c://Rman2_%d_s’ pluggable database pdb1;


Backup incremental level=1 database format ‘c://Rman2_%d_s’ pluggable database pdb2;

7
Rman target sys/password@isga

Shutdown immediate
Startup mount
Alter database archivlog;
Alter database open;
exit

Rman target sys/password@pdb1

> create tablespace tbs1 datafile 'C:\svrman\tcr.dbf' size 200M;


> create table t1 tablespace tbs1 as select * from tab;

Backup database format ‘c://Rman2_%d_%s’ pluggable database pdb1;


Backup incremental level=1 database format ‘c://Rman2_%d_%s’ pluggable database pdb1;

> alter tablespace tbs1 offline;

> host 'del c:\svrman\tcr.dbf';


Alter pluggable database pdb1 close;

> restore database pdb1;


> recover database pdb1;

Alter pluggable database pdb1 open;

> alter tablespace tbs1 online;


Exam année dernière
1 ---- report schema;

2.
Rman target sys/password@cdb

Backup database format ‘c://RM1_%d_%s’ ;


Backup incremental level= 1 database format ‘c://RM1_%d_%s’ ;
Backup incremental level= 2 database format ‘c://RM1_%d_%s’ ;
Backup incremental level= 1 database format ‘c://RM1_%d_%s’ ;
Backup incremental level= 2 database format ‘c://RM1_%d_%s’ ;
Backup incremental level= 1 database format ‘c://RM1_%d_%s’ ;
Backup incremental level= 2 database format ‘c://RM1_%d_%s’ ;
Backup database format ‘c://RM1_%d_%s’ ;

3.
> rman target sys/Password@cdb

Shutdown immediate
startup mount

Restore database;
Recover database;

alter database open resetlogs;

5.
Rman target sys/pass@cdb
> configure channel device type disk format 'C:\rmanG1\isi_%d_%s';

> backup database root;

Shutdown immediate
Startup mount
Host del “ouss”
> restore database root;
> recover database root;

Alter database open resetLogs

You might also like