日韩无码专区无码一级三级片|91人人爱网站中日韩无码电影|厨房大战丰满熟妇|AV高清无码在线免费观看|另类AV日韩少妇熟女|中文日本大黄一级黄色片|色情在线视频免费|亚洲成人特黄a片|黄片wwwav色图欧美|欧亚乱色一区二区三区

RELATEED CONSULTING
相關(guān)咨詢
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時(shí)間:8:30-17:00
你可能遇到了下面的問題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
用于連接多個(gè)數(shù)據(jù)庫的Jython安裝

本Jython安裝例子主要是針對Jython需要連接多個(gè)數(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安裝工作的主要目標(biāo):

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

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

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

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

詳細(xì)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)容,加粗部分是需要確認(rèn)路徑是否正確的)

 
 
 
  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訪問多個(gè)數(shù)據(jù)庫
  3. JDBC事務(wù)處理機(jī)制探秘
  4. 使用JDBC的五個(gè)精華功能
  5. Tomcat5+MySQL JDBC連接池配置

分享文章:用于連接多個(gè)數(shù)據(jù)庫的Jython安裝
本文來源:http://www.5511xx.com/article/cogggec.html