`
本来不想注册
  • 浏览: 197561 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

teradata DB connection在Jboss中的配置

阅读更多
To set up the environment for teradata DB connection in Jboss4.0
Please do several actions to set up the environment for connection to teradata DB in Jboss4.0:

1)Put the named: teradata-ds.xml file into folder below:
JbossFolder\server\default\deploy

2)Put the named: TdgssUserConfigFile.xml file into folder below:
JbossFolder\server\default\conf

3)Put the named: terajdbc4.jar file into folder below:
JbossFolder\server\default\lib


teradata-ds.xml 代码如下:
<?xml version="1.0" encoding="UTF-8"?>
<datasources>
  <local-tx-datasource>
    <jndi-name>TeradataDS</jndi-name>
    <connection-url>jdbc:teradata://serverIPAddress/DATABASE=dbName,TMODE=ANSI,CHARSET=UTF8</connection-url>	
    <driver-class>com.teradata.jdbc.TeraDriver</driver-class>
    <user-name>myName</user-name>
    <password>myPassword</password>
  </local-tx-datasource>
</datasources>



TdgssUserConfigFile.xml代码如下: 我没去弄明白什么意思,不管他,拿来能用就行^_^

<?xml version="1.0" encoding="US-ASCII"?>

<!-- TDGSS User Configuration File -->

<!-- This file consists of five sections:
        Header
        LegalValues
        Algorithms
        GlobalQops
        Mechanisms
-->

<TdgssConfigFile>

    <Header
        Version="1"
        ConfigFileType="User">
    </Header>

    <!-- Mechanisms Section: This section puts it all together; what
         mechanisms are available and what QOPs each supports. -->

    <Mechanisms>

        <!-- One entry for each supported mechanism goes here -->


        <!-- Teradata Method 1 -->
        <!-- This mechanism is required to support clients prior to
             TTU 8.0.  Previous clients use a different message 
             format and therefore require a separate mechanism.

             It should not have the attribute DefaultMechanism="no"
             since DBSV2 6.0 will not offer TD1 to TTU 8.0 clients.
        -->
        <Mechanism Name="TD1">

            <MechanismProperties
                AuthenticationSupported="no"
                AuthorizationSupported="no"

                MechanismEnabled="yes"
                MechanismRank="10"
                
                DelegateCredentials="no"
                MutualAuthentication="yes"
                ReplayDetection="yes"
                OutOfSequenceDetection="yes"
                ConfidentialityDesired="yes"
                IntegrityDesired="yes"
                AnonymousAuthentication="no"              
                DesiredContextTime=""
                DesiredCredentialTime=""
                CredentialUsage="0"
                />

        </Mechanism>


        <!-- Teradata Method 2 (uses AES) -->

        <Mechanism Name="TD2">

            <MechanismProperties
                AuthenticationSupported="no"
                AuthorizationSupported="no"

                MechanismEnabled="yes"
                MechanismRank="20"
                DefaultMechanism="no"
                
                DelegateCredentials="no"
                MutualAuthentication="yes"
                ReplayDetection="yes"
                OutOfSequenceDetection="yes"
                ConfidentialityDesired="yes"
                IntegrityDesired="yes"
                AnonymousAuthentication="no"              
                DesiredContextTime=""
                DesiredCredentialTime=""
                CredentialUsage="0"

                VerifyDHKey="no"
DHKeyP="E4BE0A78F54C4A0B17E7E9249A78BCC08868C17281D8463C880937853E73DDC787E41580A8AFE2594D984C9E0814C590790354ECCD1BE8EA85961E5E0974B32EFE178335F061E80189B4BDAA20F67B47"
DHKeyG="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005"
                />

        </Mechanism>


        <!-- SSPI: Kerberos Compatability -->
        <!-- This mechanism is required to support clients prior to
             TTU 8.0.  Previous clients use a different message 
             format and therefore require a separate mechanism.

             It should not have the attribute DefaultMechanism="no"
             since DBSV2 6.0 will not offer KRB5C to TTU 8.0 clients.
        -->
        <Mechanism Name="KRB5C">

            <MechanismProperties
                AuthenticationSupported="yes"
                AuthorizationSupported="no"

                MechanismEnabled="yes"
                MechanismRank="30"
                
                DelegateCredentials="no"
                MutualAuthentication="yes"
                ReplayDetection="yes"
                OutOfSequenceDetection="yes"
                ConfidentialityDesired="yes"
                IntegrityDesired="yes"
                AnonymousAuthentication="no"              
                DesiredContextTime=""
                DesiredCredentialTime=""
                CredentialUsage="0"
                />

        </Mechanism>


        <!-- SSPI: Kerberos -->

        <Mechanism Name="KRB5">

            <MechanismProperties
                AuthenticationSupported="yes"
                AuthorizationSupported="no"

                MechanismEnabled="yes"
                MechanismRank="40"
                DefaultMechanism="no"

                
                DelegateCredentials="no"
                MutualAuthentication="yes"
                ReplayDetection="yes"
                OutOfSequenceDetection="yes"
                ConfidentialityDesired="yes"
                IntegrityDesired="yes"
                AnonymousAuthentication="no"              
                DesiredContextTime=""
                DesiredCredentialTime=""
                CredentialUsage="0"
                
                />

        </Mechanism>


        <!-- SSPI: NTLM Compatability -->
        <!-- This mechanism is required to support clients prior to
             TTU 8.0.  Previous clients use a different message 
             format and therefore require a separate mechanism.

             It should not have the attribute DefaultMechanism="no"
             since DBSV2 6.0 will not offer NTLMC to TTU 8.0 clients.
        -->

        <Mechanism Name="NTLMC">

            <MechanismProperties
                AuthenticationSupported="yes"
                AuthorizationSupported="no"

                MechanismEnabled="yes"
                MechanismRank="50"

                DelegateCredentials="no"
                MutualAuthentication="yes"
                ReplayDetection="yes"
                OutOfSequenceDetection="yes"
                ConfidentialityDesired="yes"
                IntegrityDesired="yes"
                AnonymousAuthentication="no"              
                DesiredContextTime=""
                DesiredCredentialTime=""
                CredentialUsage="0"            
                />

        </Mechanism>


        <!-- SSPI: NTLM -->
        <Mechanism Name="NTLM">

            <MechanismProperties
                AuthenticationSupported="yes"
                AuthorizationSupported="no"

                MechanismEnabled="yes"
                MechanismRank="60"
                DefaultMechanism="no"

                
                DelegateCredentials="no"
                MutualAuthentication="yes"
                ReplayDetection="yes"
                OutOfSequenceDetection="yes"
                ConfidentialityDesired="yes"
                IntegrityDesired="yes"
                AnonymousAuthentication="no"              
                DesiredContextTime=""
                DesiredCredentialTime=""
                CredentialUsage="0"                
                />

        </Mechanism>

        <!-- LDAPv3 -->

        <Mechanism Name="ldap">

            <MechanismProperties
                AuthenticationSupported="yes"
                AuthorizationSupported="yes"

                MechanismEnabled="yes"
                MechanismRank="70"
                DefaultMechanism="no"

                
                DelegateCredentials="no"
                MutualAuthentication="yes"
                ReplayDetection="yes"
                OutOfSequenceDetection="yes"
                ConfidentialityDesired="yes"
                IntegrityDesired="yes"
                AnonymousAuthentication="no"              
                DesiredContextTime=""
                DesiredCredentialTime=""
                CredentialUsage="0"
                
                VerifyDHKey="no"
DHKeyP="E4BE0A78F54C4A0B17E7E9249A78BCC08868C17281D8463C880937853E73DDC787E41580A8AFE2594D984C9E0814C590790354ECCD1BE8EA85961E5E0974B32EFE178335F061E80189B4BDAA20F67B47"
DHKeyG="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005"

                LdapServerName=""
                LdapServerPort="389"
                LdapServerRealm=""
                LdapSystemFQDN=""
                LdapBaseFQDN=""
                />

        </Mechanism>

    </Mechanisms>

</TdgssConfigFile>



terajdbc4.jar 请参看附件

OVER
分享到:
评论

相关推荐

    TeraData 驱动+乱码处理

    1. **配置文件说明**:在提供的"乱码处理.txt"文件中,应该包含了如何配置TeraData驱动以适应中文字符集的指导。这可能包括设置JDBC连接URL中的字符集参数,例如`useUnicode=true`和`characterEncoding=UTF-8`。确保...

    teradata数据库学习资料

    在“teradata数据库学习资料”这个主题中,我们可以通过提供的资源深入理解Teradata的核心概念、基本操作以及优化策略。 首先,"teradata-参考资料(某著名外企内部培训所用资料).pdf"很可能包含了一些内部培训课程...

    Tomcat下Teradata的JNDI数据源配置

    在Tomcat中配置Teradata的JNDI数据源,我们需要遵循以下步骤: 1. **准备驱动**: Teradata的数据连接需要特定的JDBC驱动,如`terajdbc4.jar`和`tbcjdbc.jar`。在给定的文件列表中,我们看到了`terajdbc4.jar`,这是...

    TERADATA 连接JAVA所需jar

    在Java环境中与Teradata进行交互时,通常需要特定的驱动程序来建立连接。标题提到的"TERADATA 连接JAVA所需jar"正是指这些驱动程序的Java归档文件(JAR),它们允许Java应用程序通过JDBC(Java Database ...

    Teradata基础知识(绝对中文)

    Teradata基础知识是数据库管理和分析领域的核心内容,尤其在大规模数据处理和数据仓库系统中具有重要地位。本教程主要涵盖了Teradata的基础概念、设计思想、体系结构、数据分配和访问机制,以及用户管理、数据保护与...

    teradata14版本数据库下载

    在安装过程中可能会涉及到配置选项的选择,请根据实际需求进行设置。 5. **初始化数据库**: 安装完成后,根据官方文档进行数据库初始化设置,包括创建管理员账户、设置参数等。 6. **测试连接**: 使用客户端工具连接...

    Teradata安装步骤-Windows系统

    为了在Windows系统中安装和使用Teradata,我们需要按照一定的步骤进行安装。本文将详细介绍Teradata安装步骤在Windows系统中的实施过程。 为何需要安装JAVA JDK? 在开始安装Teradata Express之前,我们需要先安装...

    Teradata语法迁移到elk

    例如,在Teradata中可以使用DATEFORMAT来格式化日期数据,而在ELK中,我们可以通过Elasticsearch的mapping和date formatter来定义和转换日期格式。 4. 模式对象:Teradata提供了创建、操作表、列存表、索引、视图等...

    Teradata_JDBC驱动.rar

    1. 加载驱动:在Java代码中,我们需要通过`Class.forName()`方法加载Teradata JDBC驱动。 ```java Class.forName("com.teradata.jdbc.TeraDriver"); ``` 2. 建立连接:使用`DriverManager.getConnection()`...

    Teradata基础教程(中文)PDF

    综上所述,本教程从关系数据库的基本概念出发,结合具体的示例表,详细解释了Teradata数据库中的实体、属性、记录以及它们之间的关系,并介绍了如何使用E-R图来表示这些关系,为学习者提供了全面深入的理解Teradata...

    teradata manager user guide.pdf

    - **安全性最佳实践**:强调了在配置 Teradata Manager 时应注意的安全性问题,比如权限管理、加密通信等。 - **性能优化**:分享了一些提高 Teradata Manager 性能的方法,如合理规划资源分配、定期维护等。 - **...

    teradata数据库

    - **ODBC配置**:通过数据源管理器添加Teradata驱动,配置DBSource、TeradataInfo、DefaultDatabase、Username和Password等参数,建立应用程序与数据库的连接。 #### 四、Teradata SQL Assistant & Administrator -...

    Teradata QueryGrid Teradata16.1 Database-to-Hadoop3.xPDF

    在描述“Teradata QueryGrid Teradata16.1 Database-to-Hadoop3.x”中,我们可能期望这份文档详细阐述了如何配置和使用Teradata QueryGrid在Teradata 16.1和Hadoop 3.x之间的连接。可能的内容包括安装指南、配置步骤...

    Teradata SQL(中文).pdf

    Teradata SQL(中文).pdf

    Teradata AWS

    通过优化的架构设计与高效的查询处理技术,Teradata 能够确保用户能够在海量数据中快速获取有价值的信息。 #### 二、Teradata 在数据仓库中的应用 Teradata 数据仓库解决方案主要面向以下应用场景: 1. **业务...

    Teradata 15 jdbc 驱动

    Teradata是全球知名的大型数据仓库解决方案提供商,其15版本的JDBC驱动提供了一种高效、安全的方式,使得Java开发者能够无缝地在他们的应用程序中集成Teradata数据库。 1. **Terajdbc4.jar**: 这个文件是Teradata...

    Teradata初次使用指南

    初次接触Teradata的用户应仔细阅读并遵循上述指导,以确保能够顺利地在自己的系统环境中部署并运行Teradata数据库。尽管Teradata V2R6.0已经是较早的版本,但通过这些步骤的学习,可以为后续接触更现代版本的...

Global site tag (gtag.js) - Google Analytics