TimesTen 编程资料索引
1.      支持接口概述
 
TimesTen的最新版本为7.0.5,但下面的所有说明是针对7.0.2版本而言的。可能稍微有点差异,请对照具体标准文档更新。TimesTen不仅支持标准的ODBC、JDBC接口,且提供了针对C++的ttClass封装;但TimesTen现在还不支持OCI 接口,Oracle还没有正式发布对PROC的支持,但理论上是可以的,可能在个别的API上有一些不兼容。
TimesTen支持UNIX ODBC 2.5 和Windows ODBC 2.0;支持JDK 1.4 和 JDK 5.0。但在不同的平台之间可能稍有差异,具体请参考readme.pdf 以及相关的文档。
TimesTen支持SQL92标准。
 
2.      支持的平台及环境
 
TimesTen 支持如下的环境:
  • AIX 5L 5.2 and 5.3 32-bit and 64-bit for POWER systems.Compiled and tested with the AIX compiler.
  • HP-UX 11i and 11i v2 32-bit and 64-bit for PA-RISC CPUs. Compiled and tested with the HP compiler.
  • HP-UX 11i v2 (version 11.23) 32-bit and 64-bit for Itanium2. Compiled and tested with the HP Compiler.
  • Microsoft Windows 2000, Windows XP and Windows Server 2003 for Intel IA-32 and EM64T CPUs. Compiled and tested with the Intel 8 compiler. Visual C++ 6.0 and Visual C++ 7.0 (.NET) is also supported.
  • MontaVista Linux Carrier Grade 4.0 32-bit and 64-bit for Intel IA-32 and EM64T CPUs. Compiled with gcc 3.2.3. Tested with gcc 3.0 and 3.2.
  • Red Hat Enterprise Linux AS, ES and WS 3 and 4 for 32-bit and 64-bit Intel IA-32, EM64T and AMD64 CPUs. Compiled with gcc 3.2.3. Tested with 3.2.3 and 3.4.3.
  • Red Hat Enterprise Linux AS, ES and WS 3 and 4 for 64-bit Intel Itanium2 CPUs. Compiled and tested with Intel 8.1.
  • Solaris 8, 9 and 10 32-bit and 64-bit for UltraSparc architecture CPUs. Compiled with Sun Studio 11. Shipped with gcc 3.2.3 client library.
  • Solaris 10 32-bit and 64-bit for AMD64 CPUs. Compiled and tested with the Sun Studio 10 compiler.
  • SUSE Linux Enterprise Server 9 64-bit for Intel Itanium2 CPUs. Compiled with gcc 2.96. Tested with gcc 3.0 and 3.2.
  • SUSE Linux Enterprise Server 9 32-bit and 64-bit for Intel IA-32 and EM64T and AMD64 CPUs. Compiled with gcc 3.2.3. Tested with gcc 3.2.3 and 3.4.3.
 
ttClass 在如下的编译器中编译过。如果要用其它的编译器,需要重新编译ttClass库
  • For Solaris platforms, separate libraries are shipped compiled with Sun Workshop 5, Sun Workshop 6 and gcc 3.2.3.
  • For Linux x86 platforms, a separate library is shipped compiled with gcc 3.4.3.
  • For Linux 86 64bits platforms, a separate library is shipped compiled with gcc 3.4.3
  • For all other platforms a single ttclasses library is shipped.
 
3.      开发资料索引
 
注:$TimesTen_Install 为TimesTen的安装目录
  • Readme.pdf 
当前平台、版本下的说明,在$TimesTen_Install/doc 目录下。该文档说明了不同平台下ODBC、JDBC、ttClass和编译器之间的差异和注意事项,以及一些API、内置存储过程及功能在当前版本下的变更。
  • ms.odbc.pdf
ODBC编程指南,在$TimesTen_Install/doc 目录下。该文档详细介绍了如何通过Driver 以及 Driver Manager 建立到数据源的连接、如何执行SQL、如何检索结果集、如何进行事务处理、如何捕捉错误信息以及如何终止连接等。并详细介绍了每个API的用法。但该文档是一个标准的ODBC开发指南,并不是专门针对TimesTen的,所以个别 API 用法上稍有差异,详细说明可以参考 C_dev.pdf
  • C_dev.pdf
TimesTen C 语言编程指南,在$TimesTen_Install/doc 目录下。该文档是专门针对TimesTen的 C 语言编程指南,其中包含了TimesTen特有的一些属性以及功能的调用和访问。可以和 ms.odbc.pdf 结合使用。
  •  java_dev.pdf
TimesTen Java 语言编程指南,在$TimesTen_Install/doc 目录下。该文档是在 Java语言下针对 TimesTen 的编程指南。它包含了在Java环境下如何访问TimesTen、JMS/XLA事件管理、分布式事务处理JTA、应用优化、TopLink/Hibernate的整合、Application Server(Oracle AS / JBOSS / Weblogic / Websphere / Sun Java System AS)的配置以及相关的API的详细说明。
  • ttclasses.pdf
ttClass开发指南,在$TimesTen_Install/doc 目录下。该文档介绍了,如何编译、连接ttClass,连接池的使用、XLA的使用等信息。
  • error_ref.pdf
TimesTen的所有错误代码说明,在$TimesTen_Install/doc 目录下。针对TimesTen来说,规范的写法是每次调用API之后,都要捕捉返回信息并进行处理。
  • sql.pdf
TimesTen的SQL语法说明,在$TimesTen_Install/doc 目录下。
  • operations.pdf
TimesTen Client/Server 配置,性能调优,查询优化、全球化支持等。在$TimesTen_Install/doc 目录下。
 
4.      开发范例索引
 
注:TimesTen 所有的Demo都位于$TimesTen_Install/demo目录下。
  • tptbm
位于$TimesTen_Install/demo/performance/目录下,是一个TimesTen的Benchmark测试程序,可以通过配置并发进程数,处理的事务量来观察相关的性能指标。可以通过它对TimesTen的性能有一个初步的认识。
  • bulkinsert
位于$TimesTen_Install/demo/performance/目录下,批量插入demo程序,该程序测试了批量事务处理情况下的性能。如果在应用的初始化阶段需要大批量的插入原始数据,该模式是一个很好的选择。
  • bulktest
位于$TimesTen_Install/demo/ttclass/目录下,是C++版本的批量事务处理Demo。
  • pooltest
位于$TimesTen_Install/demo/ttclass/目录下,实现了连接池的管理。
  • Xlademo
位于$TimesTen_Install/demo/ttclass/目录下,针对XLA事件管理的Demo。
  • Level1~4.java
位于$TimesTen_Install/demo/tutorial/java目录下,Java语言下针对TimesTen的编程范例。
  • XlaLevel1~3.java
位于$TimesTen_Install/demo/tutorial/java目录下,Java语言下针对TimesTen的事件管理的编程范例。
  • Application Server
位于$TimesTen_Install/demo/appserver目录下,该目录包含了TimesTen结合jboss、Hibernate、toplink、weblogic、websphere以及Oracle AS的使用范例。
  • Unicode
位于$TimesTen_Install/demo/nls 目录下,该示例展示了如何在TimesTen的应用中处理Unicode数据。
  • SNMP
位于$TimesTen_Install/demo/snmp 目录下,该示例展示了如何监听特定端口的 SNMP Trap信息。
 

除了上述比较典型的应用范例外,在Demo目录下还有一些其它的范例。

一个回复 “TimesTen随机自带编程资料索引”

  1. TimesTen » Blog Archive » TimesTen for Windows 使用指南(1) 说:

    [...] 其中有很多Demo可以去试试,关于Demo的说明可以参考编程索引,比较典型的一个是Throughput Benchmark Demo,试运行如下: [...]

留言