Coloca em modo PARALLEL

  _____  

De: oracle_br@yahoogrupos.com.br [mailto:oracle...@yahoogrupos.com.br]
Em nome de Samuel Santos
Enviada em: quinta-feira, 13 de agosto de 2009 16:21
Para: oracle_br
Assunto: [oracle_br] Problema create table xxx as


  

Pessoal, Boa tarde.

Vejam se podem me ajudar, estou tentando criar uma tabela selecionando
os dados apartir de uma outra tabela (essa tabela possui muitos
registros) - esta demorando muito para poder criar, o que pode estar
acontecendo e que eu posso fazer pra resolver esse tipo de problema?

create table matriz_integracao_ban_2009 NOLOGGING as
select lin_cod_linha, lin_cod_linha_integracao, ban_datahora_utiliz,
ban_datahora_utiliz_in,
       tta_cod_identif_tipo_tarifa, tta_cod_identif_tipo_tarifa_in
from
  (
    select
      case when
        (ban.ban_tipo_debito6 = 2 or ban.ban_tipo_debito7 = 2 or
tta_cod_identif_tipo_tarifa in (2,4,6) ) then 1 else 0
      end integrou,
      tta_cod_identif_tipo_tarifa,
   lag (ban.tta_cod_identif_tipo_tarifa, 1, null) over (partition by
ban.ban_cgn_cod_identif_ext order by ban.ban_datahora_utiliz)
tta_cod_identif_tipo_tarifa_in,
      ban.lin_cod_linha as lin_cod_linha,
      lag (ban.lin_cod_linha, 1, null) over (partition by
ban.ban_cgn_cod_identif_ext order by ban.ban_datahora_utiliz)
lin_cod_linha_integracao,
      ban_datahora_utiliz as ban_datahora_utiliz,
      lag (ban.ban_datahora_utiliz, 1, null) over (partition by
ban.ban_cgn_cod_identif_ext order by ban.ban_datahora_utiliz)
ban_datahora_utiliz_in
      from TPU_RO_BILHETES_ANALITICOS_BAN ban
      where ban.rop_data_coleta between '01/04/2009' and '31/05/2009'
      order by ban.rop_data_coleta, ban.ban_cgn_cod_identif_ext,
ban..ban_datahora_utiliz
  )
where integrou = 1

Desde ja agradeço a atenção de todos.
Atenciosamente, 
Samuel 

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

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




  _____  

  _____  


The information transferred by this e-mail is solely for the intended
recipient(s).
Any disclosure, copying, distribution of this e-mail by and to others is
not allowed. If you are not an intended recipient, please delete this
e-mail and notify the sender.
  _____  



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

Responder a