JDBC 연결

JDBC 데이터베이스 액세스 옵션을 지정합니다.

JDBC 예제

JDBC 드라이버를 사용하여 LibreOffice에서 JDBC 데이터베이스에 연결할 수 있습니다. 드라이버 클래스는 데이터베이스 제조업체에서 제공합니다. JDBC 데이터베이스의 두 가지 예제는 Oracle과 MySQL입니다.

참고 아이콘 The driver classes must be added to LibreOffice in - LibreOffice - Advanced.

Oracle 데이터베이스

JDBC 드라이버를 사용하여 Solaris 또는 Linux에서 Oracle 데이터베이스에 액세스할 수 있습니다. Windows에서 이 데이터베이스에 액세스하려면 ODBC 드라이버가 필요합니다.

데이터 원본 URL 상자에 Oracle 데이터베이스 서버의 위치를 입력합니다. URL 구문은 데이터베이스 유형에 따라 달라집니다. 자세한 내용은 JDBC 드라이버와 함께 제공된 설명서를 참조하십시오.

Oracle 데이터베이스의 경우 URL 구문은 다음과 같습니다.

oracle:thin:@hostname:port:database_name

MySQL 데이터베이스

MySQL 데이터베이스용 드라이버는 MySQL 웹 사이트에서 얻을 수 있습니다.

MySQL 데이터베이스 구문은 다음과 같습니다.

mysql://hostname:port/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- Advanced, and click the Class Path button. After you add the path information, restart LibreOffice.

테스트 클래스

현재 설정을 사용하여 연결을 테스트합니다.

인증

데이터베이스 마법사