偷偷摘套内射激情视频,久久精品99国产国产精,中文字幕无线乱码人妻,中文在线中文a,性爽19p

用于連接多個數(shù)據(jù)庫的Jython安裝

開發(fā) 后端
本文簡單介紹了用于連接多個數(shù)據(jù)庫的Jython安裝步驟。

本Jython安裝例子主要是針對Jython需要連接多個數(shù)據(jù)庫(Oracle和TimesTen)來寫。

Jython安裝前提:

1、本用戶下,可以通過sqlplus連接Oracle,也就是Oracle的客戶端安裝完整,環(huán)境變量設(shè)置正確。

2、本用戶下,可以通過ttisqlcs連接TimesTen數(shù)據(jù)庫,則表示TimesTen的客戶端安裝完成,環(huán)境變量正確。

3、JDK要求版本在1.4以上,最好是1.5版本以上。

Jython安裝工作的主要目標:

Jython運行依賴JDK,所以必須要設(shè)置JDK的路徑。

Jython要連接Oracle,當然必須要告知Jython,Oracle JDBC所在的路徑(一般在ORACLE_HOME/jdbc下)。

要連接TimesTen,也必須要告知Jython,TimesTen JDBC所在的路徑(一般在TT_HOME/lib下)。

JDBC路徑下一般有多個版本的JDBC jar包文件,建議使用和JDK版本一致的,如果相同版本沒有,則選擇小一號的版本。

詳細Jython安裝步驟:

第一步:安裝指令:java -jar jython_installer-2.2.1.jar --console

  1. Welcome to Jython !  
  2. You are about to install Jython version 2.2.1  
  3. (at any time, answer c to cancel the installation)  
  4. For the installation process, the following languages are available: English, German  
  5. Please select your language [e/g] >>> e  
  6. Do you want to read the license agreement now ? [y/n] >>> n  
  7. Do you accept the license agreement ? [y/n] >>> y  
  8. The following installation types are available:  
  9.  1. All (everything, including sources)  
  10.  2. Standard (core, library modules, demos and examples, documentation)  
  11.  3. Minimum (core)  
  12.  9. Standalone (a single, executable .jar)  
  13. Please select the installation type [1/2/3/9] >>> 1  
  14. Do you want to exclude parts from the installation ? [y/n] >>> n  
  15. Please enter the target directory >>> /home/lsabm/jy  
  16. Unable to find directory /home/lsabm/jy, create it ? [y/n] >>> y  
  17. Please enter the target java home directory (== for current) >>> /usr/java5_64  
  18. Checking java version ...  
  19. Your java version to start Jython is: IBM Corporation / 1.5.0  
  20. Please press Enter to proceed >>>   
  21. Your operation system version is: AIX / 5.3  
  22. This operating system might not be fully supported.  
  23. Please press Enter to proceed anyway >>>   
  24. Summary:  
  25.  - mod: true  
  26.  - demo: true  
  27.  - doc: true  
  28.  - src: true  
  29.  - JRE: /usr/java5_64  
  30. Please confirm copying of files to directory /home/lsabm/jy [y/n] >>> y  
  31. 10 %  
  32. 20 %  
  33. 30 %  
  34. 40 %  
  35. 50 %  
  36. 60 %  
  37. 70 %  
  38. 80 %  
  39. 90 %  
  40. 100 %  
  41. Generating start scripts ...  
  42. 100 %  
  43. Do you want to show the contents of README ? [y/n] >>> n  
  44. Congratulations! You successfully installed Jython 2.2.1 to directory /home/lsabm/jy. 

第二步:配置java、oracle jdbc和tt jdbc路徑。

cd jython安裝路徑

vi jython  (下面是jython文件的內(nèi)容,加粗部分是需要確認路徑是否正確的)

  1. #!/bin/sh  
  2. # This file was generated by the Jython installer  
  3. # Created on Tue Apr 28 10:35:21 CDT 2009 by lsabm  
  4.  
  5. CP="$ORACLE_HOME/jdbc/ojdbc4.jar:$TT_HOME/lib/ttjdbc5.jar:/home/lsabm/jython/jython.jar" 
  6. if [ ! -z "$CLASSPATH" ]  
  7. then  
  8.   CP=$CP:$CLASSPATH  
  9. fi  
  10. "/usr/java5_64/bin/java" -Dpython.home="/home/lsabm/jython" -classpath "$CP" org.python.util.jython "$@" 

【編輯推薦】

  1. Jython的安裝以及使用JDBC驅(qū)動程序連接DB2
  2. Hibernate訪問多個數(shù)據(jù)庫
  3. JDBC事務(wù)處理機制探秘
  4. 使用JDBC的五個精華功能
  5. Tomcat5+MySQL JDBC連接池配置
責任編輯:周立方 來源: 新浪博客
相關(guān)推薦

2009-07-16 11:04:17

Jython連接數(shù)據(jù)庫

2009-07-15 16:29:39

Jython連接JavJavaUtils模塊

2023-10-29 17:15:57

2009-07-02 09:35:02

hibernate訪問

2009-09-28 13:33:48

Hibernate訪問

2009-12-23 09:40:53

ADO對象模型

2009-07-15 18:01:53

Jython數(shù)據(jù)庫

2009-07-16 13:09:46

Jython安裝

2010-04-19 10:00:02

Oracle SQL

2011-03-24 16:01:30

數(shù)據(jù)庫管理

2023-12-29 22:39:25

Golang應(yīng)用程序數(shù)據(jù)庫

2024-01-30 15:29:20

Django數(shù)據(jù)庫Python

2010-06-07 15:24:34

Java連接MYSQL

2010-03-18 15:09:15

python數(shù)據(jù)庫連接

2009-09-25 13:18:15

Hibernate數(shù)據(jù)

2020-09-22 15:56:31

Java

2011-05-26 13:42:50

MFC連接MySql數(shù)據(jù)庫

2009-06-16 11:11:25

JBoss目錄數(shù)據(jù)庫連接

2009-06-24 07:58:52

Hibernate多數(shù)

2010-10-26 15:54:02

連接oracle數(shù)據(jù)庫
點贊
收藏

51CTO技術(shù)棧公眾號