setembro 6, 2009
por kdevendr
5 Comments
Categories: Drivers , ODI , Technology

Esta é a amostra da tabela de origem a ser povoada como arquivo plano.
Target [Flat File – region.dat]
1. Vá para a arquitetura física da Topologia e insira um novo Data Server sob Tecnologia de Arquivo
2. For the JDBC Driver choose the " Sunopsis File JDBC Driver "
3. Defina Physical schema, inserindo o diretório como mostrado na imagem para Windows ou definir o caminho do diretório do ambiente Unix. ( Certifique-se de que seu agent deve ter permissão para essa pasta e arquivo )
For windows enter the path with " /" even though windows shows directory with " "
4. Link para o Logical Schema
5. Defina seu alvo model com o Logical Schema necessário definido acima.
6. O próximo passo é definir as colunas e certificar-se de que todos os tipos de dados são definidos como string mesmo para datas.
7. Comparando com a fonte, eu defini Target como com duas colunas region_id e region_name com string tipo de dados.
8. O próximo passo é definir as Propriedades do Arquivo a ser preenchido.
( Note – The most important part of File property is how we define them i.e how the Records are stored and how ODI can categorize Columns while reading from the File ]
9. Next step is to define the Interface , since our target is a File we have to check mark the option " Staging area different from target " and selecting either the source or other schema which you want to use as the Staging schema , but preferably Source Schema.
10. Select the required LKM if the staging is different from the Source and " IKM Sql to File Append" . Apply and Execute .
11. Enable the option " GENERATE_HEADER " if you wish to populate the data with Headers.
12. Finalmente o seu arquivo é criado com os dados e cabeçalhos nele.
[Tip : – If you wish not to create a new data server for File Technology , you can use the default data server " FILE GENERIC " , the path is to store and create file under FILE_GENERIC is ‘ ODI_HOMEoracledidemofile ‘ . ]