Pular para o conteúdo

Como criar uma Tabela Temp na interface ODI (Interface Amarela)

  • Define the Interface Name , optimization context and select the proper schema for staging Area different from the Target

  • Na aba Diagrama, arraste a sua fonte para o lado Fonte
  • No alvo Data store Clique na área Sem título e você pode ver na área de propriedades Página Nome , Contexto e Temporary Data store Localização
  • Digite o nome da tabela Target Temp que deseja criar na aba Nome
  • Deixe o contexto como está, a menos que você queira executar especificamente apenas para um contexto
  • Select the Work schema for Temporary Data store Location unless you wish to create in the Main Database or Schema.
  • Para criar cópia de toda a tabela como fonte, clique com o botão direito e selecione Adicionar ao alvo.
  • Para as colunas selecionadas em particular, clique com o botão direito nas colunas particulares e selecione Adicionar ao Alvo e somente essas colunas específicas serão adicionadas ao alvo.
  • Modifique o tipo de dados para a base de dados alvo e também o nome da coluna ( se necessário ) . Verifique o nome da coluna e a área de execução i.e ( Fonte , Staging area ou Target )
  • Na guia Fluxo, Selecione o IKM apropriado e coloque o Flow Control para ser Não e Criar Tabela Targ para ser Sim, de modo que ODI pode criar a tabela antes de carregar em Dados ou esquema de trabalho como definido na etapa 6
  • Execute a Interface e verifique se há erros.Se tudo bem você deve ver a tabela criada no esquema selecionado (na etapa 1) com os dados carregados. Vá para o esquema necessário verificar para a tabela e os dados .
  • when you create Temp table using ODI ,  you won’t see the option of Data to see the data directly in the Interface
  • Interface Temp são marcados por um Ícone Amarelo Cor ao contrário de Azul

  • To use this Temporary table, just drag and drop the interface as the Source for other Interfaces. You don’t need to do the Selective Reverse of the temporary data store.

LinkedIn

14 Comments

  1. How to create the target table structure, from a union of tables. In ODI 12c.

  2. When we create and add yellow interface to a blue interface and running blue interface will automatically run yellow interface ? or we need to run yellow interface first ?

  3. hi hope you are fine.

    kindly can you tell us that while upgrading odi 12c to 11 g we need to update temporary interface manually?

  4. Hi
    I have one error in yello/temp interface how can i solve it

    ERROR:ODI-17501 TEMPORARY TABLE HAS NO COLUMN

    THANKS
    KRISHNA

  5. Can the temporary interface be used in an ODI procedure.

    I want to execute a procedure which references several different databases. But i do not want to create permananet db links for this. I am aware that we can use ODI interface to create DB links and Synonyms on the fly. SO i was wondering if this can be an option. If yes, tehn how?

    • Hi Priya,

      If you wish to create DBLink on the fly, the ODI procedure is a good option for that.
      I believe you’ll create it and drop at end of process, right? The databases will be accessed thru interfaces?

  6. Hi cezar.

    I have 3 questions:

    1. what is the time life of temp table?
    2. can i use this temp table to refresh a ODI variable? (i tried but i get a error that say: the table or view doesn’t exist)
    3 can i create a dinamic temp tables? (something like you posted about the odi parallel interfaces)

    Thanks

    • The life time of the temp table is till someone drop it manually or through script .
      Yes you can use this temp table to refresh , since even this is temp table the table is created in the database . This temp table is not the same as Oracle Global Temporary Table that is why you have table and data retained even after the session is disconnected.
      Yes you can create dynamic tables .

  7. After drag the yellow interface in diagram, there is not the precision of the columns. For example:
    1) run the interface (it creates the temp table with char(4))
    2) drag the temporary interface in a diagram and columns indicates only CHAR and not CHAR(4) so i have error massages when i save the new interface.
    (ODI 10g)

  8. Hello,

    I’m very interested in this solution. Sorry for asking a junior question – after running the interface, which module to go to check for the tables under WORK_SCHEMA? Is it in MODEL tab of DESIGNER or TOPOLOGY Manager? I can’t find it anywhere.

    thanks
    Jeffrey

    • Hi Jeffery,

      You won’t find the table under these tabs. You need to check directly the database for the tables created using this option.

Deixe um comentário

Required fields are marked *.


Este site utiliza o Akismet para reduzir spam. Saiba como seus dados em comentários são processados.