Pular para o conteúdo

Fóruns Banco de dados Oracle Erro Export Erro Export

#99791
jurupoc
Participante

    [quote=”jurupoc”:11zqxy26][quote=”felipeg”:11zqxy26][quote=”jurupoc”:11zqxy26][quote=”felipeg”:11zqxy26]É, pelo retorno acho que você caiu nesses notes da metalink:

    — ORA-01555 And Other Errors while Exporting Table With LOBs, How To Detect Lob Corruption. (Doc ID 452341.1)
    — EXP ORA-01555 ORA-22924 ORA-01578 ORA-22922 (Doc ID 787004.1)

    Você tem acesso ao metalink?

    A sugestão que eles dão é o seguinte update nos campos com erro:

    update set = empty_blob()
    where rowid in (rowids dos registros corrompidos);

    Porém sugiro testar, se possível, em um ambiente que não seja de produção pois nunca testei uma situação parecida.

    Atenciosamente,
    Felipe.[/quote]

    Então eu nao tenho acesso ao metalink, vou executar o update em um banco de teste para depois executar no de produção.
    Muito obrigado pela ajuda!!!!
    Abraços!!!

    Gustavo L. P. Gomes[/quote]

    Gustavo, pra matar de vez essa dúvida.

    Você tem mais alguma tabela com o mesmo tipo de campo? Ou nesta tabela tem algum ROWID que não tenha caido naquele relatório que fizemos?

    Se sim tente exportar utilizando o exp abaixo:


    exp / file=test.dmp log=test.log tables= query="where rowid='' "

    Execute esse comando utilizando um rowid não corrompido e um corrompido, se o primeiro exportar OK significa que é este mesmo o problema (corrupção).

    Se for confirmado o problema execute o update nos ROWIDS CORROMPIDOS sem medo e a minha sugestão é que, depois de consertado, você coloque o campo como DEFAULT EMPTY_BLOB().

    Atenciosamente,
    Felipe.[/quote]

    Já fiz o update e deu certo a tabela foi exportada!!!

    Export: Release 10.2.0.1.0 - Production on Wed Jun 22 17:00:15 2011

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

    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Export done in US7ASCII character set and AL16UTF16 NCHAR character set
    server uses WE8ISO8859P1 character set (possible charset conversion)

    About to export specified tables via Conventional Path ...
    . . exporting table FATOBSERVPEDIDO 158166 rows exported
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    Export terminated successfully with warnings.

    Vou fazer o export no banco de produção….

    Nossa você não imagina a quanto tempo eu estava procurando a resposta para esse problema!!![/quote]

    Fiz o teste colocando o rowid com problema e realmente não exportou, fiz outro teste excluindo o rowid com problema e deu certo!!!

    [oracle@srv-lamoda ~]$ exp lamoda/oracle10glamoda file=fatobservpedido.dmp log=fatobservpedido.log tables=fatobservpedido query="where rowid=''AAAMzAAAFAABXFWAAo'' "

    Export: Release 10.2.0.1.0 - Production on Wed Jun 22 17:22:00 2011

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

    Connected to: Oracle Database 10g Release 10.2.0.1.0 - Production
    Export done in US7ASCII character set and AL16UTF16 NCHAR character set
    server uses WE8ISO8859P1 character set (possible charset conversion)

    About to export specified tables via Conventional Path ...
    . . exporting table FATOBSERVPEDIDO
    EXP-00056: ORACLE error 1555 encountered
    ORA-01555: instantaneo muito antigo: numero de segmento de rollback com nome "" muito pequeno
    ORA-22924: snapshot muito antigo
    Export terminated successfully with warnings.
    [oracle@srv-lamoda ~]$ exp lamoda/oracle10glamoda file=fatobservpedido.dmp log=fatobservpedido.log tables=fatobservpedido query="where rowid not in ''AAAMzAAAFAABXFWAAo'' "

    Export: Release 10.2.0.1.0 - Production on Wed Jun 22 17:22:46 2011

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

    Connected to: Oracle Database 10g Release 10.2.0.1.0 - Production
    Export done in US7ASCII character set and AL16UTF16 NCHAR character set
    server uses WE8ISO8859P1 character set (possible charset conversion)

    About to export specified tables via Conventional Path ...
    . . exporting table FATOBSERVPEDIDO 160350 rows exported
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    Export terminated successfully with warnings.
    [oracle@srv-lamoda ~]$