Pular para o conteúdo

Ligação SQL Server

Ligação Oracle Data Integrator e MS SQL Server

1. Consulte este link Download para Microsoft SQL Server 2005 JDBC Driver 1.2

http://www.microsoft.com/downloads/details.aspx?FamilyId=C47053EB-3B64-4794-950D-81E1EC91C1BA&displaylang=en

e para Microsoft SQL Server JDBC Driver 2.0 aqui

http://www.microsoft.com/downloads/details.aspx?familyid=99B21B65-E98F-4A61-B811-19912601FDC9&displaylang=en

JDBC Driver 1.2

Extract the downloaded .exe or .gz and copy jar file ” sqljdbc.jar” into the $ODI_HOMEDRIVERS folder

Agora vá para a topologia e sob a arquitetura física da Microsoft SQL Server. Defina um novo Data Server com o nome necessário, conexão do usuário.

Vá para a próxima guia JDBC, digite o driver JDBC e JDBC Url

JDBC Driver : com.microsoft.sqlserver.jdbc.SQLServerDriver
JDBC Url : jdbc:sqlserver://<Server address> :<Default port=1433 >selectMethod=cursor
JDBC Url : jdbc:sqlserver://<Server address> :<Default port=1433 >selectMethod=cursor;responseBuffering=adaptive

O comando acima funciona muito bem com SQL Server 2005 e para SQLServer 2000 tente isso

JDBC Driver : com.microsoft.jdbc.sqlserver.SQLServerDriver
JDBC Url : jdbc:microsoft:sqlserver://<Server address> :<Default port=1433 >selectMethod=cursor

Saiba mais sobre opção como selectMethod=cursor e responseBuffering=adaptativo aqui http://msdn.microsoft.com/en-us/library/bb879937.aspx e outras cadeias de ligação aqui http://msdn.microsoft.com/en-us/library/ms378428.aspx.

To learn more about the Url Option check the ” Lançar ” document available with extracted .exe or . gz

Clique em Teste para testar a conexão e selecione o banco de dados apropriado e proprietário para Physical Schema e definir o Logical Schema adequado.

Note for ‘ Proprietário ( Esquema )‘ Select the right owner of the database , mostly ” dbo ” . check with your SQL Server DBA for right schema owner

Para o proprietário do esquema de trabalho , o usuário certo que tem permissão para acessar o esquema tem que ser selecionado.

JDBC Driver 2.0

JDBC Driver ver 2.0 funciona apenas com JDK ou JRE 1.5 ou superior e como ODI é enviado com 1.4 para que você certamente encontrar o erro.

Para resolver este problema, baixe Jdk ou Jre 1.5 ou superior e altere o ODI_JAVA_HOME em conformidade e aponte para o novo JAVA_HOME,

Sql Server JDBC Driver is shipped with both ‘sqljdbc‘ and ‘sqljdbc4‘ .To use JDBC Type 4 driver copy only ‘ sqljdbc4‘ in the ‘ oracledi/drivers ‘ folders .

[ Note : Please refer to the release document – point number 1 under Known Issues ]

Copy the ‘ sqljdbc4 ‘driver and test the connection. Restart the agent and try the same Driver and URL as shown above and refer to its ‘ Release ‘ document for more details.

Learn more about  SQL JDBC driver from your extracted driver folder at  ‘ enuhelpindex.html ‘ or access all these information online http://msdn.microsoft.com/en-us/library/ee229547%28SQL.10%29.aspx

6 Comments

  1. Hi,

    Initially we have 2 schemas(dbo and guest) in SQL. Recently they have created 1 new schema(test) in sql.
    While trying to create a physical schema i am not able to find the newly created schema through ODI.

  2. Hi,

    Can you please provide the URL/path to get the release notes.

    Thanks,
    Chary

  3. You should make a note in this that yu should use the selectMethod=cursor option on the URL for SQL Server. Otherwise, you will get various exceptions thrown.

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.