JDBC 연결
JDBC 데이터베이스 액세스 옵션을 지정합니다.
JDBC 예제
JDBC 드라이버를 사용하여 LibreOffice에서 JDBC 데이터베이스에 연결할 수 있습니다. 드라이버 클래스는 데이터베이스 제조업체에서 제공합니다. JDBC 데이터베이스의 두 가지 예제는 Oracle과 MySQL입니다.
The driver classes must be added to LibreOffice in LibreOffice - PreferencesTools - Options - LibreOffice - Advanced. |
Oracle 데이터베이스
JDBC 드라이버를 사용하여 Solaris 또는 Linux에서 Oracle 데이터베이스에 액세스할 수 있습니다. Windows에서 이 데이터베이스에 액세스하려면 ODBC 드라이버가 필요합니다.
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.
데이터 원본 URL 상자에 Oracle 데이터베이스 서버의 위치를 입력합니다. URL 구문은 데이터베이스 유형에 따라 달라집니다. 자세한 내용은 JDBC 드라이버와 함께 제공된 설명서를 참조하십시오.
Oracle 데이터베이스의 경우 URL 구문은 다음과 같습니다.
oracle:thin:@hostname:port:database_name
-
hostname은 Oracle 데이터베이스를 실행하는 컴퓨터의 이름입니다. hostname을 서버의 IP 주소로 바꿀 수도 있습니다.
-
port는 Oracle 데이터베이스가 수신하는 포트입니다. 데이터베이스 관리자에게 올바른 포트 주소를 문의하십시오.
-
database_name은 Oracle 데이터베이스입니다. 데이터베이스 관리자에게 올바른 이름을 문의하십시오.
MySQL 데이터베이스
MySQL 데이터베이스용 드라이버는 MySQL 웹 사이트에서 얻을 수 있습니다.
MySQL 데이터베이스 구문은 다음과 같습니다.
mysql://hostname:port/database_name
-
hostname은 MySQL 데이터베이스를 실행하는 컴퓨터의 이름입니다. hostname을 서버의 IP 주소로 바꿀 수도 있습니다.
-
port는 MySQL 데이터베이스의 기본 포트인 3306입니다.
-
database_name은 데이터베이스 이름입니다.
데이터 원본 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 드라이버 클래스
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. |
테스트 클래스
현재 설정을 사용하여 연결을 테스트합니다.