Pular para o conteúdo
  • Este tópico contém 3 respostas, 3 vozes e foi atualizado pela última vez 13 anos atrás por Gustavo L. P. Gomes.
Visualizando 4 posts - 1 até 4 (de 4 do total)
  • Autor
    Posts
  • #105133
    Gustavo L. P. Gomes
    Participante

      Bom dia Pessoal,

      Estou executando um teste de backup/restauração utilizando o rman. No momento que vou restaurar o backup do rman ele está apresentando o seguinte erro:

      CONFIGURAÇÕES DO BACKUP:

      RMAN> show all;

      RMAN configuration parameters are:
      CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;
      CONFIGURE BACKUP OPTIMIZATION OFF; # default
      CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
      CONFIGURE CONTROLFILE AUTOBACKUP ON;
      CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
      CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET;
      CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
      CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
      CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/u01/rman/bkp_%d_%t_%s.rman';
      CONFIGURE MAXSETSIZE TO UNLIMITED; # default
      CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
      CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
      CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
      CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/10.2.0/db_1/dbs/ snapcf_lamoda.f'; # default

      CONFIGURAÇÕES SCRIPT.SH


      !/bin/ksh
      export ORACLE_SID=XXXXX
      rman<

      ERRO NO MOMENTO DE RESTAURAR O CONTROLFILE


      RMAN> SET DBID=3678751854

      executing command: SET DBID

      RMAN> startup nomount

      database is already started

      RMAN> restore controlfile from 'bkp_XXXXX_809056804_14.rman';
      Starting restore at 06-MAR-13
      using target database control file instead of recovery catalog
      allocated channel: ORA_DISK_1
      channel ORA_DISK_1: sid=1314 devtype=DISK

      RMAN-00571: ===========================================================
      RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
      RMAN-00571: ===========================================================
      RMAN-03002: failure of restore command at 03/06/2013 10:15:14
      RMAN-06172: no autobackup found or specified handle is not a valid copy or piece

      Alguém tem ideia do que pode ser?
      Obrigado!

      #105135
      Fábio Prado
      Participante

        @gustavolpgomes,

        Me parece que o RMAN não está encontrando o backup do control file “bkp_XXXXX_809056804_14.rman”. O artigo abaixo do Burleson deve te ajudar a resolver o seu problema:
        http://www.dba-oracle.com/t_rman_06172_ … _found.htm

        []s

        #105142
        Ricardo Portilho Proni
        Participante

          Você tem que dizer o caminho completo de onde está o Backup.
          A informação e one estão os backups estão no controlfile, que você ainda não tem. Então tem que ajudar o RMAN.

          RMAN> RESTORE CONTROLFILE FROM ‘/home/oracle/meuarquivodebackupdocontrolfie.bkp’;

          #105151
          Gustavo L. P. Gomes
          Participante

            @RicardoPortilhoProni e @fbifabio

            Consegui restaurar o backup!!!!

            Estava cometendo 2 erros.

            O primeiro era que eu não estava especificando o caminho completo!
            O segundo foi que eu estava tentando recurepar o controlfile do arquivo de backup errado.


            -rwxrwxr-x 1 oracle oinstall 11M Mar 4 13:41 BKP_CF_XXXXXX_809185218_16.rman
            -rwxrwxr-x 1 oracle oinstall 12G Mar 4 11:45 bkp_XXXXXX_809056804_14.rman
            -rwxrwxr-x 1 oracle oinstall 11M Mar 4 13:54 c-3678751854-20130304-00

            Estava colocando para o rman recuperar do aquivo /u01/rman/bkp_XXXXXX_809056804_14.rman sendo que o correto era o /u01/rman/c-3678751854-20130304-00

            Obrigado pela força!!!!!
            Abraços!!!!

          Visualizando 4 posts - 1 até 4 (de 4 do total)
          • Você deve fazer login para responder a este tópico.