Bonjour,
Dans le cadre d'un projet scolaire je met en place une base de données et j'aimerais mettre en place un script qui backup (a chaud) ma db sur une autre machine et ce de manière régulière.
J'en suis dans mes tests au point où j'arrive à restaurer ma db via le backup quand j'efface mes dossiers DATAFILE et ONLINELOG.
Par contre je suis incapable de restaurer ma db sans les controlfiles.
J'ai essayé plusieurs méthodes pour backup ces derniers mais je me retrouve toujours coincé par une erreur ou une autres.
Je pense avoir réussis à backup les controlfiles:
ci dessous ma config rman:
mais, par exemple, si je lance :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3 CONFIGURE CONTROLFILE AUTOBACKUP ON CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/rman/controlfile/%F'
Je pense que je part dans la bonne direction mais je n'en suis pas sur.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 RMAN> restore controlfile from autobackup; Starting restore at 09-FEB-13 allocated channel: ORA_DISK_1 channel ORA_DISK_1: SID=19 device type=DISK recovery area destination: C:\app\Win\flash_recovery_area database name (or database unique name) used for search: ORCL channel ORA_DISK_1: no AUTOBACKUPS found in the recovery area channel ORA_DISK_1: looking for AUTOBACKUP on day: 20130209 channel ORA_DISK_1: looking for AUTOBACKUP on day: 20130208 channel ORA_DISK_1: looking for AUTOBACKUP on day: 20130207 channel ORA_DISK_1: looking for AUTOBACKUP on day: 20130206 channel ORA_DISK_1: looking for AUTOBACKUP on day: 20130205 channel ORA_DISK_1: looking for AUTOBACKUP on day: 20130204 channel ORA_DISK_1: looking for AUTOBACKUP on day: 20130203 channel ORA_DISK_1: no AUTOBACKUP in 7 days found RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03002: failure of restore command at 02/09/2013 14:41:27 RMAN-06172: no AUTOBACKUP found or specified handle is not a valid copy or piece
Un coup de main serait le bienvenue.
Merci d'avance.
Partager