4.2.6.  Driver JDBC

[Nota]Nota

Il software CADENAS necessario per utilizzare le connessioni JDBC alla banca dati di collegamento è soggetto a licenza e a pagamento.

È necessaria una licenza supplementare (CNS20059*DATABASE*JDBC)!

[Nota]Nota

Vantaggi dell'utilizzo dei driver JDBC:

Il driver viene installato e configurato sul server! Non è necessario installare il driver su ogni client, come nel caso di ODBC!

Quando si utilizza PARTapplicationServer, il vantaggio è relativo, poiché il driver viene configurato solo sul server.

[Nota]Nota

Driver JDBC

I driver JDBC standard sono disponibili all'indirizzo libs/all/java/jar.

Altri devono essere contattati dal rispettivo produttore (Oracle, Microsoft) e memorizzato nella directory libs/all/java/jar essere copiato. NON sono installati sul lato CADENAS.

Si prega di scaricarli da uno dei seguenti indirizzi:

I dettagli sono riportati nella sezione Sezione 4.7.2, “ Connessione al database ”.

jdbc.cfg file di configurazione

Le File di configurazione jdbc.cfg salva il file dati di connessione alla banca dati, vale a dire server, banca dati e in particolare Driver e l'URL per il driver JDBC per creare il driver JDBC Connessione al database.

# [PLINKDB]
#   #IP-adress or server name
# Server=
#   #Database name
# ServerDB=
#   #the jdbc driver class
# DriverClass=com.sap.dbtech.jdbc.DriverSapDB
#   #the complete URL for the jdbc driver
# URL=jdbc:sapdb://catia2.cadenas/PLINKDB

#Examples for different databases:
#---------------------------------

#MSSQL with JTDS
#[PLINKDB_MSSQLJDBC]
#Server=136.230.230.214
#ServerDB=DB-test
#DriverClass=net.sourceforge.jtds.jdbc.Driver
#URL=jdbc:jtds:sqlserver://136.230.230.214:1433/PLINKDB

#:HELP;MSSQL with sqljdbc 4.1. You can download the driver from the microsoft homepage. 
 section_75_1154427696031The file sqljdbc41.jar has to be copied into the folder software
 \libs\all\java\jar. The file sqljdbc_auth.dll has to be copied into the directory software\
 libs\x86\32\java\lib and software\libs\x86\64\java\lib
#[PLINKDB_MSSQLJDBC_41]
#Server=servername
#ServerDB=SQLEXPRESS
#DriverClass=com.microsoft.sqlserver.jdbc.SQLServerDriver
#URL=jdbc:sqlserver://servername:1433;databaseName=plinkdb;integratedSecurity=true

#:HELP;Oracle You can download the driver from https://www.oracle.com/database/technologies
/appdev/jdbc-downloads.html. The jar file (f.e. ojdbc8.jar) has to be copied into the folder 
software\libs\all\java\jar.
#[PLINKDB_ORACLEJDBC]
#DriverClass=oracle.jdbc.driver.OracleDriver
#URL=jdbc:oracle:thin:@servername:1521/PLINKDB

#SAP-DB:
#[PLINKDB_SAPDBJDBC]
#DriverClass=com.sap.dbtech.jdbc.DriverSapDB
#URL=jdbc:sapdb://servername/PLINKDB

#:HELP;MySQL You can download the driver from mysql.com. The jar file (f.e. mysql-connector
 -java-8.0.17.jar) has to be copied into the folder software\libs\all\java\jar.
  
#[PLINKDB_MYSQLJDBC]
#DriverClass=com.mysql.jdbc.Driver
#URL=jdbc:mysql://servername:3306/PLINKDB

#Derby (local)    (Experimental!):
#[PLINKDB_DERBYJDBC]
#DriverClass=org.apache.derby.jdbc.EmbeddedDriver
#URL=jdbc:derby:C:\data\derby\plinkdb

#Derby (net)   (Experimental!):
#[PLINKDB_DERBYJDBC]
#DriverClass=org.apache.derby.jdbc.ClientDriver
#URL=jdbc:derby://localhost:1527/plinkdb

#SQ-Lite (pldbdemo)
[PLDBDEMO_SQLITEJDBC]
#:VALS_S
#:HELP;IP-adress or server name, on which the database is installed
Server=localhost
#:VALS_S
#:HELP;The instance name of the database. Oracle: SID
ServerDB=pldbdemo
#:VALS_S
#:HELP;The jdbc driver class.
DriverClass=SQLite.JDBCDriver
#:VALS_S
#:HELP;The complete URL for the jdbc driver.
Url=jdbc:sqlite:/$CADENAS_USER/sqlite/pldbdemo.db3