Amigos,
 
Estou com construindo uma tabela externa mas esta gerando erro :
 
ERROR at line 1: 
ORA-29913: error in executing ODCIEXTTABLEOPEN callout 
ORA-29400: data cartridge error 
KUP-04063: unable to open log file COUNTRIES_EXT_1260_1200.log 
OS error The system cannot find the file specified. 
ORA-06512: at "SYS.ORACLE_LOADER", line 19 
---------------------------------------------------------------------------------------------------------------------
Meu arquivo chama-se RETORNO.TXT e não tem delimitador por é apenas um campo 
vou pegar esse campo e jogar na tabela.Vou mandar meu codigo se alguem puder me 
ajudar.
 
 
---cria diretorio 
---Tabela EXTERNA 
---Usada apenas para pegar o arquivo Retorno e atualizar a tabela do banco 
TEMPDETSPCR 
---Apos alimentado a tabela TEMPDETSPCR a tabela EXT_TEMPDETSPCR é DROPADA
---
create or replace directory DIR_EXT_TEMPDETSPC as 'c:\tmp\retorno';
----
---cria tabela externa apontando para um arquivo, otimo para carga de arquivos 
no oracle.
---Nome da tabela  : EXT_TEMPDETSPCR
---Campo da Tanela : EXT_CONTEUDO_DETALHE VARCHAR2(250)
---
create table EXT_TEMPDETSPCR (EXT_CONTEUDO_DETALHE  VARCHAR2(250))
       
organization external (
   type oracle_loader
   default directory DIR_EXT_TEMPDETSPC
   access parameters (records delimited by newline 
                                       fields   )
   location ('retorno.txt'))
      
  INSERT INTO crd.tempdetspcr
         (detalhe)
  SELECT ext_conteudo_detalhe FROM crd.ext_tempdetspcr; 
  COMMIT;
  
  --DROP TABLE EXT_CONTEUDO_DETALHE;      
        
reject limit unlimited;
 
Obrigado
 
Elcio .......
 
 


      Veja quais são os assuntos do momento no Yahoo! +Buscados
http://br.maisbuscados.yahoo.com

[As partes desta mensagem que não continham texto foram removidas]

Responder a