自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

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

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

本Jython安裝例子主要是針對(duì)Jython需要連接多個(gè)數(shù)據(jù)庫(kù)(Oracle和TimesTen)來(lái)寫(xiě)。

Jython安裝前提:

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

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

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

Jython安裝工作的主要目標(biāo):

Jython運(yùn)行依賴(lài)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版本一致的,如果相同版本沒(méi)有,則選擇小一號(hào)的版本。

詳細(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ū)動(dòng)程序連接DB2
  2. Hibernate訪(fǎng)問(wèn)多個(gè)數(shù)據(jù)庫(kù)
  3. JDBC事務(wù)處理機(jī)制探秘
  4. 使用JDBC的五個(gè)精華功能
  5. Tomcat5+MySQL JDBC連接池配置
責(zé)任編輯:周立方 來(lái)源: 新浪博客
相關(guān)推薦

2009-07-16 11:04:17

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

2009-07-15 16:29:39

Jython連接JavJavaUtils模塊

2023-10-29 17:15:57

2009-07-02 09:35:02

hibernate訪(fǎng)問(wèn)

2009-09-28 13:33:48

Hibernate訪(fǎng)問(wèn)

2009-12-23 09:40:53

ADO對(duì)象模型

2009-07-16 13:09:46

Jython安裝

2009-07-15 18:01:53

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

2011-03-24 16:01:30

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

2010-04-19 10:00:02

Oracle SQL

2023-12-29 22:39:25

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

2010-06-07 15:24:34

Java連接MYSQL

2024-01-30 15:29:20

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

2010-03-18 15:09:15

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

2009-07-10 17:13:29

Jython的安裝JDBC驅(qū)動(dòng)程序Jython

2010-10-26 15:54:02

連接oracle數(shù)據(jù)庫(kù)

2009-09-25 13:18:15

Hibernate數(shù)據(jù)

2011-05-26 13:42:50

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

2020-09-22 15:56:31

Java

2010-08-04 10:42:08

Flex數(shù)據(jù)庫(kù)
點(diǎn)贊
收藏

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