JDBC ühendus
Määrab JDBC andmebaaside juurdepääsu sätted.
JDBC näited
You can use a JDBC driver class to connect to a JDBC database from LibreOffice. The driver class is provided by the database manufacturer. Two examples of JDBC databases are Oracle and MySQL.
The driver classes must be added to LibreOffice in LibreOffice - PreferencesTools - Options - LibreOffice - Advanced.
Oracle'i andmebaas
You can use a JDBC driver to access an Oracle database from Solaris or Linux. To access the database from Windows, you need an ODBC driver.
On UNIX, ensure that the Oracle database client is installed with JDBC support. The JDBC driver class for the Solaris Oracle client version 8.x is located in the <Oracle client>/product/jdbc/lib/classes111.zip directory. You can also download the latest version from the Oracle web site.
In the Data source URL box, enter the location of the Oracle database server. The syntax of the URL depends on the database type. See the documentation that came with the JDBC driver for more information.
Oracle'i andmebaaside puhul on URL-i süntaks:
oracle:thin:@serverinimi:port:andmebaasi_nimi
-
serverinimi on selle masina nimi, kus Oracle'i andmebaas töötab. Sa võid serveri nime asemel ka serveri IP-aadressi kirjutada.
-
port on pordinumber, mida Oracle'i andmebaas jälgib. Küsi andmebaasi administraatorilt õiget pordinumbrit.
-
andmebaasi_nimi on Oracle'i andmebaasi nimi. Küsi andmebaasi administraatorilt õiget nime.
MySQL-i andmebaas
The driver for the MySQL database is available on the MySQL web site.
Süntaks MySQL-i andmebaasi jaoks on:
mysql://serverinimi:port/andmebaasi_nimi
-
hostname is the name of the machine that runs the MySQL database. You can also replace hostname with the IP address of the server.
-
port on MySQL-i andmebaaside vaikimisi port, see on 3306.
-
andmebaasi_nimi on andmebaasi nimi
Andmeallika URL
Enter the URL for the database. For example, for the MySQL JDBC driver, enter "jdbc:mysql://<Servername>/<name of the database>". For more information on the JDBC driver, consult the documentation that came with the driver.
JDBC draiveriklass
Enter the name of the JDBC driver.
Before you can use a JDBC driver, you need to add its class path. Choose LibreOffice - PreferencesTools - Options - LibreOffice- Advanced, and click the Class Path button. After you add the path information, restart LibreOffice.
Testi klassi
Testib ühendust aktiivsete sätetega.