Pular para o conteúdo
Visualizando 14 posts - 1 até 14 (de 14 do total)
  • Autor
    Posts
  • #94435
    mpvargas
    Participante

      impdp “teste/pass@banco dumpfile=bkp.dmp directory=export tables=(Tabela1)”

      Import: Release 10.2.0.1.0 – 64bit Production on Monday, 07 June, 2010 17:37:40

      Copyright (c) 2003, 2005, Oracle. All rights reserved.

      Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 – 64bit Production
      With the Partitioning, OLAP and Data Mining options
      ORA-31626: job does not exist
      ORA-31638: cannot attach to job SYS_IMPORT_TABLE_01 for user TESTE
      ORA-06512: at “SYS.DBMS_SYS_ERROR”, line 95
      ORA-06512: at “SYS.KUPV$FT_INT”, line 389
      ORA-39077: unable to subscribe agent KUPC$A_1_20100607173743 to queue “KUPC$C_1_20100607173742”
      ORA-06512: at “SYS.DBMS_SYS_ERROR”, line 95
      ORA-06512: at “SYS.KUPC$QUE_INT”, line 248
      ORA-00604: error occurred at recursive SQL level 2
      ORA-01502: index ‘SYS.I_RULE’ or partition of such index is in unusable state

      Alguem ja teve esse erro ao usar o impdp?

      #94436
      Avatar photoRegis Araujo
      Participante

        Salve Vargas..!

        O usuário TESTE tem permissão para gerar backup ?

        Abraços..!

        #94437
        mpvargas
        Participante

          Fala camarada…

            Tem sim... sempre faço esse processo e agora que preciso com urgencia (é sempre nessa hora, né? hehehe) não funciona...
          
          #94447
          mpvargas
          Participante

            AINDA SEM SOLUÇÃO

            Algumas tentativas sem sucesso:

            • Criação de novo diretorio
            • Exclusão e criação do mesmo diretorio

            Alguem tem alguma ideia de como resolver esse problema?
            Obrigado

            #94448
            VitorLeandro
            Participante

              Cara, tente efetuar o rebuild dos indexes com status ‘UNUSABLE’ e depois efetue o import novamente..

              select * from dba_indexes where STATUS = ‘UNUSABLE’

              tente tambem, colocar esta SKIP_UNUSABLE_INDEXES=Y no impdp, se não der certo!

              #94451
              mpvargas
              Participante

                Fala Vitor,

                Tentei com as suas dicas

                Com relação ao indice, verifiquei todos que são UNUSABLE e nenhum deles está relacionado ao usuário SYS conforme mostra o erro
                ORA-01502: index ‘SYS.I_RULE’ or partition of such index is in unusable state

                E tentei tb colocando o parametro no IMPDP, mas deu o mesmo erro.

                Preciso restaurar uma tabela e estou com esse problema desde ontem.

                Obrigado pela ajuda.

                #94453
                VitorLeandro
                Participante

                  Como você está com urgencia, existe outro banco que você pode fazer este import? Se tiver, importa a tabela nele e a transfira via dblink. Depois vc resolve o problema do impdp nesta instancia…
                  Já tentou importar outra coisa via impdp?

                  Vou dar uma pesquisada aqui!

                  #94455
                  mpvargas
                  Participante

                    Tentei fazer outro impdp e dá o mesmo erro.
                    Vou seguir a sua dica e tentar recuperar a tabela em outra base.
                    Esse erro está meio sinistro, já pesquisei bastante, mas não consigo solução.

                    #94467
                    burga
                    Participante

                      Verifica na dba_indexes o status do indice I_RULE.

                      select owner, index_name, status, last_analyzed, partitioned from dba_indexes where index_name = 'I_RULE';

                      Posta o resultado aqui.

                      #94471
                      mpvargas
                      Participante

                        SQL> select owner, index_name, status, last_analyzed, partitioned from dba_indexes where index_name = ‘I_RULE’;

                        OWNER INDEX_NAME STATUS LAST_ANAL


                        PAR

                        SYS I_RULE UNUSABLE 03-JUN-10
                        NO

                        #94472
                        diegolenhardt
                        Participante

                          tenta fazer o rebuild do index


                          alter index I_RULE rebuild;

                          #94473
                          mpvargas
                          Participante

                            Fala Diego,
                            Blz, o indice ficou com STATUS=VALID

                            SQL> select owner, index_name, status, last_analyzed, partitioned from dba_indexes where index_name = ‘I_RULE’;

                            OWNER INDEX_NAME STATUS LAST_ANAL PAR
                            SYS I_RULE VALID 09-JUN-10 NO

                            MAS ao tentar fazer um expdp novamente, deu o seguinte erro:

                            ORA-39125: Worker unexpected fatal error in KUPW$WORKER.UNLOAD_METADATA while calling DBMS_METADATA.FETCH_XML_CLOB [TABLE_DATA:”TESTE”.”TAB10″]
                            ORA-01502: index ‘SYS.I_EXTERNAL_TAB1$’ or partition of such index is in unusable state

                            Aí fiz o mesmo procedimento para o indice em questão e resolveu…

                            MUITO OBRIGADO PELA AJUDA…

                            #94474
                            diegolenhardt
                            Participante

                              Tu moveu algo de lugar do schema SYS?

                              Existe o parametro skip_unusable_indexes que setado como TRUE, talvez resolva, mas eu iria pelo caminho de fazer o rebuild em todos primeiro pra ver se arruma:


                              Begin
                              For i In (Select Index_Name From Dba_Indexes Where Status = 'UNUSABLE') Loop
                              Execute Immediate 'ALTER INDEX ' || I.Index_Name || ' REBUILD';
                              End Loop;
                              End;

                              Depois veja se sobrou algum UNUSABLE, se não manda bala.

                              #94478
                              mpvargas
                              Participante

                                Sinceramente não lembro de ter alterado o esquema SYS… fiz algumas movimentações de datafiles (não sei se isso influencia)

                                Vou verificar os indices conforme sua orientação

                                Obrigado pela ajuda.

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