时间:2021-07-01 10:21:17 帮助过:2人阅读
/usr/tandem/jdbcMx/T1275h50.
include:
/demo //Demo programs.
/lib/libjdbcMx.so //driver library
/lib/jdbcMx.jar //Java archive file, which includes the JDBC trace facility
/bin/jdbcMxInstall //installation script
/bin/jdbcMxUninstall //uninstall script
echo $CLASSPATH
export JAVA_HOME=/usr/tandem/java
export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib:/usr/tandem/jdbcMx/current/lib/jdbcMx.jar:/home/ecui/java/test/jta.jar
export _RLD_LIB_PATH=/usr/tandem/jdbcMx/T1275H50/lib
export JAVA_PTHREAD_MAX_TRANSACTIONS=200
java -Djdbcmx.transactionMode=external Test
mixed
Specifies that the driver inherits any active transaction in the current thread. The autocommit setting of the transaction is ignored. The application must either commit or rollback the transaction in this mode. If there is no active transaction, the driver creates one and begins the transaction, or aborts it if there is an SQL error. In this mode, the driver supports both autocommit and non-autocommit. The application ends the transaction in non-autocommit mode.
external
Specifies that if an external transaction exists, transactions are performed within the external transaction. If an external transaction does not exist, the SQL statement is executed without a transaction. This allows SQL statements that do not require an existing transaction to be performed without one, providing an improvment in performace. If an SQL command requires a transaction and no external transaction exists, an SQL exception is thrown.
internal
Specifies that transactions are always performed within a JDBC/MX driver-managed transaction. If an external transaction exists when internal transaction mode is in effect, the external transaction is suspended and the SQL statement is executed within a JDBC/MX driver-managed transaction. Upon completion of the driver’s internally managed transaction, the existing external transaction is resumed. The Connection autoCommit flag maintains a value of true when in internal transaction mode.
Follow these steps to create a base table that has LOB columns:
At the OSS prompt, invoke the SQL/MX utility MXCI. Type:
MXCI
1.
Type the following command to enable creating tables that have LOB columns:
CONTROL QUERY DEFAULT JDBC_PROCESS ‘TRUE‘
2.
Type the CREATE TABLE statement; for example, you might use the following simple form of the
statement:
CREATE TABLE table1 (c1 INTEGER NOT NULL, c2 CLOB, c3 BLOB, PRIMARY
KEY(c1))
JDBC Install for OSS
标签: