IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Administration Oracle Discussion :

[10g] Datafile corrompu


Sujet :

Administration Oracle

  1. #21
    Membre du Club
    Profil pro
    Inscrit en
    Juin 2006
    Messages
    69
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2006
    Messages : 69
    Points : 40
    Points
    40
    Par défaut
    Voici ce que j'ai fait :

    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
    alter tablespace CRYPTALIS31_CONNEXION END BACKUP;
    alter tablespace CRYPTALIS31_CONNEXION END BACKUP
    *
    ERROR at line 1:
    ORA-01235: END BACKUP failed for 5 file(s) and succeeded for 0
    ORA-01199: file 5 is not in online backup mode
    ORA-01110: data file 5: '/base1/oradata/cryptali/cryptalis31_connexion01.dbf'
    ORA-01199: file 11 is not in online backup mode
    ORA-01110: data file 11: '/base1/oradata/cryptali/cryptalis31_connexion02.dbf'
    ORA-01199: file 12 is not in online backup mode
    ORA-01110: data file 12: '/base1/oradata/cryptali/cryptalis31_04.dbf'
    ORA-01199: file 17 is not in online backup mode
    ORA-01110: data file 17: '/base1/oradata/cryptali/cryptalis31_connexion05.dbf'
    ORA-01199: file 22 is not in online backup mode
    ORA-01110: data file 22: '/base1/oradata/cryptali/cryptalis31_connexion10.dbf'
    Je ne comprends pas trop la différence entre ce qui est dit par la requête et la commande ci-dessus.

    J'ai certainement pas mené la bonne action

    Au vu de ton edit : j'ai utilisé la bonne commande.

  2. #22
    Membre expert
    Avatar de bouyao
    Inscrit en
    Janvier 2005
    Messages
    1 778
    Détails du profil
    Informations forums :
    Inscription : Janvier 2005
    Messages : 1 778
    Points : 3 033
    Points
    3 033
    Par défaut
    1. Il faut assurer que tu a les sauvegardes avant tous ces manipulations.
    2. Avant de commencer, il faut tester
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    alter database open resetlogs;
    Si ca ne marche pas, il faut que tu restaure la base avant tous ces manipulations (c.a.d avant le recover)
    Et après on va faire étape par étape.

  3. #23
    Membre du Club
    Profil pro
    Inscrit en
    Juin 2006
    Messages
    69
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2006
    Messages : 69
    Points : 40
    Points
    40
    Par défaut
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
     ALTER DATABASE open resetlogs;
    ALTER DATABASE open resetlogs
    *
    ERROR at line 1:
    ORA-01139: RESETLOGS option only valid after an incomplete database recovery
    Je restaure la sauvegarde de ce matin.

    Comment puis-je te prévenir quand cela est OK ?

  4. #24
    Membre expert
    Avatar de bouyao
    Inscrit en
    Janvier 2005
    Messages
    1 778
    Détails du profil
    Informations forums :
    Inscription : Janvier 2005
    Messages : 1 778
    Points : 3 033
    Points
    3 033
    Par défaut
    Quand tu restaure la base tu relance
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    SELECT file#,status,fuzzy from v$datafile_header ;

  5. #25
    Membre du Club
    Profil pro
    Inscrit en
    Juin 2006
    Messages
    69
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2006
    Messages : 69
    Points : 40
    Points
    40
    Par défaut
    Ok, les fichiers de sauvegarde sont en cours de copie et décompression.

    Ensuite, je fais un startup standard ou tu préconises une manipulation particulière ?

    Pour rester positif : c'est dans la merde qu'on apprend le plus .

  6. #26
    Membre du Club
    Profil pro
    Inscrit en
    Juin 2006
    Messages
    69
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2006
    Messages : 69
    Points : 40
    Points
    40
    Par défaut
    J'ai tenté de faire un startup mount et voilà ce que j'obtiens :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    startup mount
    ORACLE instance started.
     
    Total System Global Area  939524096 bytes
    Fixed Size                   781984 bytes
    Variable Size             921702752 bytes
    Database Buffers           16777216 bytes
    Redo Buffers                 262144 bytes
    ORA-00214: controlfile '/oracle/oradata/cryptali/control01.ctl' version 819707
    inconsistent with file '/base1/oradata/cryptali/control02.ctl' version 819622
    Comme je ne veux pas gâcher le temps de mes bienfaiteurs, je vais attendre avant de faire n'importe quoi, vos sages conseils.

  7. #27
    Membre expert
    Avatar de bouyao
    Inscrit en
    Janvier 2005
    Messages
    1 778
    Détails du profil
    Informations forums :
    Inscription : Janvier 2005
    Messages : 1 778
    Points : 3 033
    Points
    3 033
    Par défaut
    Il y'a deux fichier de controles distincts :
    '/oracle/oradata/cryptali/control01.ctl' version 819707
    '/base1/oradata/cryptali/control02.ctl' version 819622
    Comme control02.ctl est le plus ancien.
    1. tu arrête la base
    2. tu renome control01.ctl en control01.old
    3. tu fait une copie de control02.ctl ver control01.ctl
    4. tu démarre la base

  8. #28
    Membre du Club
    Profil pro
    Inscrit en
    Juin 2006
    Messages
    69
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2006
    Messages : 69
    Points : 40
    Points
    40
    Par défaut
    Normal !!!

    tous les fichiers de la sauvegarde n'avaient pas été redescendus !!!

    Au temps pour moi !!!!

    Dès que cette bétise est corrigée je reviens.

  9. #29
    Membre du Club
    Profil pro
    Inscrit en
    Juin 2006
    Messages
    69
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2006
    Messages : 69
    Points : 40
    Points
    40
    Par défaut
    Ok, la base est démarrée et montée. En ce qui concerne la requête demandée, voici le résultat :

    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
    24
    25
    26
    27
    28
    29
    30
    31
    SELECT file#,status,fuzzy from v$datafile_header ;
     
         FILE# STATUS  FUZ
    ---------- ------- ---
             1 ONLINE  YES
             2 ONLINE  YES
             3 ONLINE  YES
             4 ONLINE  YES
             5 OFFLINE YES
             6 ONLINE  NO
             7 ONLINE  YES
             8 ONLINE  YES
             9 ONLINE  YES
            10 ONLINE  YES
            11 OFFLINE YES
     
         FILE# STATUS  FUZ
    ---------- ------- ---
            12 OFFLINE YES
            13 ONLINE  YES
            14 ONLINE  YES
            15 ONLINE  YES
            16 ONLINE  YES
            17 OFFLINE YES
            18 ONLINE  NO
            19 ONLINE  YES
            20 ONLINE  YES
            21 ONLINE  YES
            22 ONLINE  YES
     
    22 rows selected.

  10. #30
    Membre expert
    Avatar de bouyao
    Inscrit en
    Janvier 2005
    Messages
    1 778
    Détails du profil
    Informations forums :
    Inscription : Janvier 2005
    Messages : 1 778
    Points : 3 033
    Points
    3 033
    Par défaut
    essaye
    alter datafile '/base1/oradata/cryptali/cryptalis31_connexion01.dbf' offline;

  11. #31
    Membre du Club
    Profil pro
    Inscrit en
    Juin 2006
    Messages
    69
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2006
    Messages : 69
    Points : 40
    Points
    40
    Par défaut
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    alter datafile '/base1/oradata/cryptali/cryptalis31_connexion01.dbf' offline;
    alter datafile '/base1/oradata/cryptali/cryptalis31_connexion01.dbf' offline
          *
    ERROR at line 1:
    ORA-00940: invalid ALTER command
     
     
    SQL> alter database datafile '/base1/oradata/cryptali/cryptalis31_connexion01.dbf' offline;
     
    Database altered.
    j'ai enchainé avec :

    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
    24
    25
    26
    27
    28
    29
    30
    31
    SELECT file#,status,fuzzy from v$datafile_header ;
     
         FILE# STATUS  FUZ
    ---------- ------- ---
             1 ONLINE  YES
             2 ONLINE  YES
             3 ONLINE  YES
             4 ONLINE  YES
             5 OFFLINE YES
             6 ONLINE  NO
             7 ONLINE  YES
             8 ONLINE  YES
             9 ONLINE  YES
            10 ONLINE  YES
            11 OFFLINE YES
     
         FILE# STATUS  FUZ
    ---------- ------- ---
            12 OFFLINE YES
            13 ONLINE  YES
            14 ONLINE  YES
            15 ONLINE  YES
            16 ONLINE  YES
            17 OFFLINE YES
            18 ONLINE  NO
            19 ONLINE  YES
            20 ONLINE  YES
            21 ONLINE  YES
            22 ONLINE  YES
     
    22 rows selected.

  12. #32
    Membre expert
    Avatar de bouyao
    Inscrit en
    Janvier 2005
    Messages
    1 778
    Détails du profil
    Informations forums :
    Inscription : Janvier 2005
    Messages : 1 778
    Points : 3 033
    Points
    3 033
    Par défaut
    Essaye d'ouvrir la base;
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    alter database open;

  13. #33
    Membre du Club
    Profil pro
    Inscrit en
    Juin 2006
    Messages
    69
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2006
    Messages : 69
    Points : 40
    Points
    40
    Par défaut
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
     ALTER DATABASE open;
    ALTER DATABASE open
    *
    ERROR at line 1:
    ORA-01113: file 1 needs media recovery
    ORA-01110: data file 1: '/oracle/oradata/cryptali/system01.dbf'

  14. #34
    Membre expert
    Avatar de bouyao
    Inscrit en
    Janvier 2005
    Messages
    1 778
    Détails du profil
    Informations forums :
    Inscription : Janvier 2005
    Messages : 1 778
    Points : 3 033
    Points
    3 033
    Par défaut
    C'est le fichier de contrôle qui n'es pas synchronisé avec les fichiers de données.

    Tu doit recréer un nouveau fichier de contrôle.

    NB. je doit aller manger (dans 1h)

  15. #35
    Membre du Club
    Profil pro
    Inscrit en
    Juin 2006
    Messages
    69
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2006
    Messages : 69
    Points : 40
    Points
    40
    Par défaut
    Fait :

    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
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    CREATE CONTROLFILE REUSE DATABASE "CRYPTALI" NORESETLOGS  ARCHIVELOG
      2      MAXLOGFILES 16
      3      MAXLOGMEMBERS 3
      4      MAXDATAFILES 100
      5      MAXINSTANCES 8
      6      MAXLOGHISTORY 13178
      7  LOGFILE
      8    GROUP 1 '/base1/oradata/cryptali/redo01.log'  SIZE 25500K,
      9    GROUP 2 '/base1/oradata/cryptali/redo02.log'  SIZE 25500K,
     10    GROUP 3 '/base1/oradata/cryptali/redo03.log'  SIZE 25500K
     11  DATAFILE
     12    '/oracle/oradata/cryptali/system01.dbf',
     13    '/oracle/oradata/cryptali/undotbs01.dbf',
     14    '/oracle/oradata/cryptali/sysaux01.dbf',
     15    '/base1/oradata/cryptali/cryptalis31_01.dbf',
     16    '/base1/oradata/cryptali/cryptalis31_connexion01.dbf',
     17    '/base2/oradata/cryptali/cryptalis31_index01.dbf',
     18    '/oracle/oradata/cryptali/users01.dbf',
     19    '/base1/oradata/cryptali/cryptalis31_02.dbf',
     20    '/base1/oradata/cryptali/cryptalis31_03.dbf',
     21    '/base1/oradata/cryptali/cryptalis31_connexion02.dbf',
     22    '/base1/oradata/cryptali/cryptalis31_04.dbf',
     23    '/base1/oradata/cryptali/cryptalis31_05.dbf',
     24    '/base2/oradata/cryptali/cryptalis31_index02.dbf',
     25    '/base2/oradata/cryptali/cryptalis31_index03.dbf',
     26    '/base1/oradata/cryptali/cryptalis31_connexion03.dbf',
     27    '/base1/oradata/cryptali/cryptalis31_connexion05.dbf',
     28    '/base2/oradata/cryptali/cryptalis31_index04.dbf',
     29    '/base2/oradata/cryptali/cryptalis31_index05.dbf',
     30    '/base1/oradata/cryptali/cryptalis31_connexion06.dbf',
     31    '/base1/oradata/cryptali/cryptalis31_connexion10.dbf'
     32  CHARACTER SET UTF8
     33  ;
     
    Control file created.

  16. #36
    Membre expert
    Avatar de bouyao
    Inscrit en
    Janvier 2005
    Messages
    1 778
    Détails du profil
    Informations forums :
    Inscription : Janvier 2005
    Messages : 1 778
    Points : 3 033
    Points
    3 033
    Par défaut
    après tu fait :
    alter database open resetlogs;

  17. #37
    Membre du Club
    Profil pro
    Inscrit en
    Juin 2006
    Messages
    69
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2006
    Messages : 69
    Points : 40
    Points
    40
    Par défaut
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    alter database open resetlogs;
    alter database open resetlogs
    *
    ERROR at line 1:
    ORA-01139: RESETLOGS option only valid after an incomplete database recovery

  18. #38
    Membre expert
    Avatar de bouyao
    Inscrit en
    Janvier 2005
    Messages
    1 778
    Détails du profil
    Informations forums :
    Inscription : Janvier 2005
    Messages : 1 778
    Points : 3 033
    Points
    3 033
    Par défaut
    lance
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    RECOVER DATABASE USING BACKUP CONTROLFILE UNTIL CANCEL;

  19. #39
    Membre du Club
    Profil pro
    Inscrit en
    Juin 2006
    Messages
    69
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2006
    Messages : 69
    Points : 40
    Points
    40
    Par défaut
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    RECOVER DATABASE USING BACKUP CONTROLFILE UNTIL CANCEL;
    ORA-00279: change 1895676671 generated at 11/19/2006 16:11:58 needed for thread
    1
    ORA-00289: suggestion : /base1/arch/cryptali/arch_1_60220.563106388.arc
    ORA-00280: change 1895676671 for thread 1 is in sequence #60220
     
     
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    pour infos ce fichier :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    /base1/arch/cryptali/arch_1_60220.563106388.arc
    N'existe plus

  20. #40
    Membre expert
    Avatar de bouyao
    Inscrit en
    Janvier 2005
    Messages
    1 778
    Détails du profil
    Informations forums :
    Inscription : Janvier 2005
    Messages : 1 778
    Points : 3 033
    Points
    3 033
    Par défaut
    Maitenant, tu tape juste Cancel sans appliquer les archivelogs.
    et tu essaye d'ouvrir la base avec un resetlogs.
    Si ca ne marche pas est ce que tu a les archivelogs demandé ?

+ Répondre à la discussion
Cette discussion est résolue.
Page 2 sur 3 PremièrePremière 123 DernièreDernière

Discussions similaires

  1. Controlfile corrompu 10G
    Par Oraman dans le forum Oracle
    Réponses: 1
    Dernier message: 18/03/2010, 17h06
  2. Oracle 10g : spile "corrompu"
    Par Bonnie38 dans le forum Administration
    Réponses: 6
    Dernier message: 24/01/2008, 10h48
  3. Drop de datafile Oracle 10g R1 Base de Production
    Par iks22 dans le forum Administration
    Réponses: 6
    Dernier message: 29/09/2007, 13h17
  4. Oracle 10g (+Rman) - Error Drop Datafile
    Par alfb59 dans le forum Recovery Manager
    Réponses: 22
    Dernier message: 27/06/2007, 10h58
  5. Réponses: 2
    Dernier message: 25/08/2006, 13h26

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo