JDBC Install for OSS

JDBC Install for OSS

1. The default JDBC/MX driver installation directory laction is

  1. /usr/tandem/jdbcMx/T1275h50.
  2. include:
  3. /demo          //Demo programs.
  4. /lib/libjdbcMx.so   //driver library
  5. /lib/jdbcMx.jar      //Java archive file, which includes the JDBC trace facility
  6. /bin/jdbcMxInstall   //installation script
  7. /bin/jdbcMxUninstall   //uninstall script

2. Verify the version of the JDBC/MX driver, use these commands:

Java command, which displays the version of the java code portion of the JDBC/MX driver

Vproc command, which displays the version of the C code portion of the JDBC/MX driver

To use the java command, type the following at the OSS prompt: This command displays output similar to:

java JdbcMx -version

JDBC driver for NonStop(TM) SQL/MX Version

T127H50_23DEC2005_JDBCMX...

Compare the output with the product numbers in the Softdoc file on the NonStop Server for Java 5

distribution CD.

Use the vproc command to check for the correct library. Issue the following at the OSS prompt:

vproc /jdbcmx-installation-directory/T1275H50/lib/libjdbcMx.so

...

Binder timestamp: 20DEC2005 18:10:14

Version procedure: T1275H50_23DEC2005_JDBCMX_1220

TNS/E Native Mode: runnable file

The version procedure that corresponds to the JDBC/MX Driver (T1275) product should match in the

output of both the java and vproc commands.

3. set CLASSPATH

  1. echo $CLASSPATH
  2. export JAVA_HOME=/usr/tandem/java
  3. export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib:/usr/tandem/jdbcMx/current/lib/jdbcMx.jar:/home/ecui/java/test/jta.jar

4. set  _RLD_LIB_PATH

  1. export _RLD_LIB_PATH=/usr/tandem/jdbcMx/T1275H50/lib

5.

Before running the JDBC application that uses BLOB and CLOB data through the JDBC API, the database administrator must create the LOB tables.  or information on creating LOB tables, see Managing LOB Data with the JDBC/MX Lob Admin Utility.

6.

Before using the procedure to create the tables, note that when using MXCI to create base tables, you must enter

the following special command in the MXCI session to enable the base table creation of tables that have LOB

(BLOB or CLOB) columns:

CONTROL QUERY DEFAULT JDBC_PROCESS ‘TRUE‘

7.

To specify 200 transactions per process, use the following command.

  1. export JAVA_PTHREAD_MAX_TRANSACTIONS=200

You cannot make procedure calls to TMF directly from any Java application. You must use either the com.tandem.tmf.Current class or the Java Transaction API (JTA) to manage transactions.

 

8. use the properties

  1. 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))

来自为知笔记(Wiz)

时间: 2024-08-09 06:20:34

JDBC Install for OSS的相关文章

make modules_install常见错误集合

1.(1): RedHatLinux2.4.18 升级到 2.4.31-SMP (2): 进入2.4.31系统 (3): 补丁squashfs, patch -p1 < /usr/src/squashfs.pacth (3): 在/usr/src/linux-2.4下make mrproper后,将/boot/config-2.4.18拷贝到 当前目录的.config (4): make menuconfig,在原来配置的基础上在FileSystem菜单增加了squashfs, 选择Y. (5)

手把手教你搭建Oracle Secure Global Desktop演示环境

你可以在这里找到原文. 前提条件 已经安装和配置好下列OS环境:- Oracle Linux 6.5 64bit- Hostname: sgd.example.com- IP: 192.168.56.110 已经配置好一个可用的Yum源. 本例使用了一个本地FTP(ftp://192.168.56.254/pub/iso)作为Yum源.而且,SGD的安装包已经下载好,重命名为SGD5.2forLin.zip,同时上传到这个FTP上(ftp://192.168.56.254/pub/SGD5.2f

maven添加sqlserver的jdbc驱动包

http://search.maven.org/中没有sqlserver的jdbc驱动,所以需要本地安装sqljdbc的jar包,然后再在pom里面引入 Step 1 在微软官网下载sqljdbc的jar包:http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&id=11774 本次下载了4.0版本 空间下载连接分享:https://yunpan.cn/cv3TjJqDZM7zu  访问密码 d6bb Step 2

喜大普奔,微软Microsoft JDBC Driver For SQL Server已发布到maven中央仓库

相信通过java和SQLServer开发应用的同学们都经历过如下类似的问题. 微软提供的JDBC官方驱动没有放置在Maven仓库中,这样如果你的Java应用需要访问SQL Server,你不得不下载sqljdbc4.jar至本地,然后每次都通过如下Maven命令安装这一驱动: mvn install:install-file -DgroupId=com.microsoft.sqlserver -DartifactId=sqljdbc4 -Dversion=4.0 -Dpackaging=jar

在Maven仓库中手动添加Oracle11g JDBC驱动

由于Oracle授权问题,Maven3不提供Oracle JDBC driver,为了在Maven项目中应用Oracle JDBC driver,必须手动添加到本地仓库 手动添加oracle 11g JDBC 驱动  mvn install:install-file -Dfile=D:/ojdbc6.jar -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=11.2.0.1.0 -Dpackaging=jar 命令执行后 将D:/ojdbc6.

JDBC的引入及mysql的引入

一.JDBC概念的引入 JDBC是一套接口,实现类是jar包(由提供数据库厂商提供) 完全不关心实现类的内容.只关心接口的方法(也就是只关心JDBC) 二.mysql的引入,绿色包下载 https://www.oracle.com/index.html 下载网址:https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.18-winx64.zip 修改密码的命令:alter user 'root'@'localhost' identified

怎么安装MYSQL5.0的JDBC驱动

1.下载mysql for jdbc driver.   http://dev.mysql.com/downloads/connector/j/3.1.htmlMySQL Connector/J is distributed as a .zip or .tar.gz archive containing the sources and class files as well as a class-file only "binary" .jar archive named "m

在OEL 5.4 32bit上使用yum install命令遇到的问题

[[email protected] yum.repos.d]# yum install elfutils-libelf-devel-static* Loaded plugins: security Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package elfutils-libelf-devel-static.i386 0:0.137-3.el5 set to b

在Maven仓库中添加Oracle JDBC驱动

由于Oracle授权问题,Maven3不提供Oracle JDBC driver,为了在Maven项目中应用Oracle JDBC driver,必须手动添加到本地仓库. 一.首先要得到Oracle JDBC Driver 1.通过Oracle官方网站下载相应版本:http://www.oracle.com/technetwork/database/features/jdbc/index-091264.html 2.通过Oracle的安装目录获得,位置在“{ORACLE_HOME}\jdbc\l