Oracle® TimesTen In-Memory Database Java Developer's Guide Release 11.2.1 Part Number E13068-02 |
|
|
View PDF |
This chapter describes how to install, configure, and test your TimesTen application development environment. It includes the following topics:
Install and configure TimesTen for your environment, as described in Oracle TimesTen In-Memory Database Installation Guide, and the Java JDK, as described in your Java installation documentation. As you set up a Java development environment, the topics of particular interest in Oracle TimesTen In-Memory Database Installation Guide include:
After you have installed and configured TimesTen, create a data store DSN as described in "Creating TimesTen Data Stores" in Oracle TimesTen In-Memory Database Operations Guide. The topics of particular interest include the following:
Environment variable settings for TimesTen are discussed in "Environment variables" in Oracle TimesTen In-Memory Database Installation Guide.
On UNIX platforms, you can set environment variables by executing one of the following scripts.
install_dir/bin/ttenv.sh install_dir/bin/ttenv.csh
On Windows, you can either set environment variables during installation or run the following:
install_dir\bin\ttenv.bat
See "Java environment variables" in Oracle TimesTen In-Memory Database Installation Guide for more information about environment variables for Java, including discussion of the PATH, CLASSPATH, THREAD_FLAGS, and shared library path environment variables.
After you have configured your Java environment, you can confirm that everything is set up correctly by compiling and running the TimesTen Quick Start demo applications. Refer to the Quick Start welcome page at install_dir
/quickstart.html
, especially the links under Sample Programs, for information about the following:
Demo schema and setup
The build_sampledb
script creates a sample database and demo schema. You must run this before you start using the demos.
Demo environment and setup
The ttquickstartenv
script, a superset of the ttenv
script generally used for TimesTen setup, sets up the demo environment. You must run this each time you enter a session where you want to compile and run any of the demos.
Demos and setup
TimesTen provides demos for JDBC and JMS/XLA under the quickstart/sample_code
directory. For instructions on compiling and running the demos, see the README file or files in the subdirectories.
What the demos do
A synopsis of each demo is provided. The TimesTen basic Java demos are named level1
, level2
, level3
, and level4
. Data files for the level
demos are in the jdbc/datfiles
directory.
Note:
All of thelevel
demos support both direct and client/server connections to the data store.