Pular para o conteúdo
Visualizando 6 posts - 1 até 6 (de 6 do total)
  • Autor
    Posts
  • #103882
    silverwal
    Participante

      Olá Pessoal Bom Dia!

      Vejam se pode me ajudar, o cliente está fazendo o export mas está acontecendo o seguinte erro.

      [b]
      Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 – Production
      With the Partitioning, OLAP, Data Mining and Real Application Testing options
      Export done in WE8ISO8859P1 character set and AL16UTF16 NCHAR character set
      server uses WE8MSWIN1252 character set (possible charset conversion)

      About to export specified tables via Conventional Path …
      . . exporting table NOTAFSICAL_ENTRADA
      EXP-00056: ORACLE error 1489 encountered
      ORA-01489: result of string concatenation is too long
      Export terminated successfully with warnings [/b]

      O comando que estou executando é;
      exp parfile=c:caminho_parfile.par

      Comando do parfile;


      USERID=dba@prod
      COMPRESS=N
      FILE=C:EXP04_CLIENTE_ENTRADA.dmp
      LOG=C:LOG04_exp04_CLIENTE_ENTRADA.LOG
      BUFFER=10000000
      FEEDBACK=100000
      TABLES=(NOTAFISCAL_ENTRADA)
      QUERY="where cod_holding || cod_filial || cod_matriz || id_nf_entrada in
      (select t.cod_holding || t.cod_filial || t.cod_matriz || t.id_nf_entrada from NF_ENTRADA t where to_date(t.dt_entrada,'dd/mm/yyyy') = '01/05/2011')"

      #103884
      Douglas Paiva de Sousa
      Participante

        É a primeira vez que você está fazendo isso? Este export já funcionou alguma vez?

        Te pergunto isso porque parece que o tamanho do seu parfile parece não estar sendo reconhecido pelo export (não sei se estou falando groselha, mais parece ser isso).

        Att,

        #103888
        silverwal
        Participante

          Olá DPaiva sim o comando funciona, pois testei em um banco local.

          #103893
          Avatar photoRegis Araujo
          Participante

            @silverwal

            Boa tarde..!

            Amigo.. me explica esta sua query.. vc está fazendo um in da tabela nela mesma?? É isto??

            Se vc fizer apenas oq demonstro abaixo já não resolve???

            QUERY=”where to_date(t.dt_entrada,’dd/mm/yyyy’) = ’01/05/2011′)”

            O problema está na concatenação que vc está fazendo.. no query.. tente fazer da maneira que eu passei acima…

            Poste os resultados aqui…

            Abraços..!

            #103909
            silverwal
            Participante

              Olá Thunder_Catz

              Me desculpe realmente o nome da tabela estava errada, eu corrigi o nome agora.


              USERID=dba@prod
              COMPRESS=N
              FILE=C:EXP04_CLIENTE_ENTRADA.dmp
              LOG=C:LOG04_exp04_CLIENTE_ENTRADA.LOG
              BUFFER=10000000
              FEEDBACK=100000
              TABLES=(NOTAFISCAL_ENTRADA)
              QUERY="where cod_holding || cod_filial || cod_matriz || id_nf_entrada in
              (select t.cod_holding || t.cod_filial || t.cod_matriz || t.id_nf_entrada from NF_ENTRADA t where to_date(t.dt_entrada,'dd/mm/yyyy') = '01/05/2011')"

              #103918
              silverwal
              Participante

                Bom Pessoal, resolvi fazer o seguinte, fiz o export da tabela sem a query, importei em outro owner, e fiz a inserção do que eu precisava com tables insert.

                Obrigado A TODOS!

                Abs.

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