1*b1cdbd2cSJim Jagielski<?xml version="1.0" encoding="UTF-8"?>
2*b1cdbd2cSJim Jagielski
3*b1cdbd2cSJim Jagielski
4*b1cdbd2cSJim Jagielski
5*b1cdbd2cSJim Jagielski<!--***********************************************************
6*b1cdbd2cSJim Jagielski *
7*b1cdbd2cSJim Jagielski * Licensed to the Apache Software Foundation (ASF) under one
8*b1cdbd2cSJim Jagielski * or more contributor license agreements.  See the NOTICE file
9*b1cdbd2cSJim Jagielski * distributed with this work for additional information
10*b1cdbd2cSJim Jagielski * regarding copyright ownership.  The ASF licenses this file
11*b1cdbd2cSJim Jagielski * to you under the Apache License, Version 2.0 (the
12*b1cdbd2cSJim Jagielski * "License"); you may not use this file except in compliance
13*b1cdbd2cSJim Jagielski * with the License.  You may obtain a copy of the License at
14*b1cdbd2cSJim Jagielski *
15*b1cdbd2cSJim Jagielski *   http://www.apache.org/licenses/LICENSE-2.0
16*b1cdbd2cSJim Jagielski *
17*b1cdbd2cSJim Jagielski * Unless required by applicable law or agreed to in writing,
18*b1cdbd2cSJim Jagielski * software distributed under the License is distributed on an
19*b1cdbd2cSJim Jagielski * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20*b1cdbd2cSJim Jagielski * KIND, either express or implied.  See the License for the
21*b1cdbd2cSJim Jagielski * specific language governing permissions and limitations
22*b1cdbd2cSJim Jagielski * under the License.
23*b1cdbd2cSJim Jagielski *
24*b1cdbd2cSJim Jagielski ***********************************************************-->
25*b1cdbd2cSJim Jagielski
26*b1cdbd2cSJim Jagielski
27*b1cdbd2cSJim Jagielski
28*b1cdbd2cSJim Jagielski
29*b1cdbd2cSJim Jagielski		<helpdocument version="1.0">
30*b1cdbd2cSJim Jagielski<meta>
31*b1cdbd2cSJim Jagielski<topic id="textsharedexplorerdatabasedabawiz02jdbcxml" indexer="include" status="PUBLISH">
32*b1cdbd2cSJim Jagielski<title id="tit" xml-lang="en-US">JDBC Connection</title>
33*b1cdbd2cSJim Jagielski<filename>/text/shared/explorer/database/dabawiz02jdbc.xhp</filename>
34*b1cdbd2cSJim Jagielski</topic>
35*b1cdbd2cSJim Jagielski</meta>
36*b1cdbd2cSJim Jagielski<body>
37*b1cdbd2cSJim Jagielski<bookmark xml-lang="en-US" branch="index" id="bm_id3726920"><bookmark_value>JDBC; databases (Base)</bookmark_value>
38*b1cdbd2cSJim Jagielski<bookmark_value>databases; JDBC (Base)</bookmark_value>
39*b1cdbd2cSJim Jagielski</bookmark><comment>mw copied 2 index entries from shared/explorer/database/11110000.xhp</comment><paragraph role="heading" id="par_idN105FC" xml-lang="en-US" level="1" l10n="NEW"><variable id="jdbc"><link href="text/shared/explorer/database/dabawiz02jdbc.xhp">JDBC Connection</link>
40*b1cdbd2cSJim Jagielski</variable></paragraph>
41*b1cdbd2cSJim Jagielski<paragraph role="paragraph" id="par_idN10600" xml-lang="en-US" l10n="NEW"><ahelp hid=".">Specifies the options to access a <link href="text/shared/00/00000005.xhp#jdbc" name="JDBC">JDBC</link> database.</ahelp><comment>copied text from shared\explorer\database\11110000</comment></paragraph>
42*b1cdbd2cSJim Jagielski<paragraph role="heading" id="par_idN10623" xml-lang="en-US" level="2" l10n="NEW">JDBC Examples</paragraph>
43*b1cdbd2cSJim Jagielski<paragraph role="paragraph" id="par_idN10627" xml-lang="en-US" l10n="NEW">
44*b1cdbd2cSJim Jagielski<item type="productname">You can use a JDBC driver class to connect to a JDBC database from %PRODUCTNAME</item>. The driver class is provided by the database manufacturer. Two examples of JDBC databases are Oracle and MySQL.</paragraph>
45*b1cdbd2cSJim Jagielski<paragraph role="note" id="par_idN1062D" xml-lang="en-US" l10n="CHG">The driver classes must be added to %PRODUCTNAME in <switchinline select="sys"><caseinline select="MAC">%PRODUCTNAME - Preferences</caseinline><defaultinline>Tools - Options</defaultinline></switchinline> - %PRODUCTNAME - Java.<comment>UFI: #i38525#</comment></paragraph>
46*b1cdbd2cSJim Jagielski<paragraph role="heading" id="par_idN10634" xml-lang="en-US" level="3" l10n="NEW">Oracle database</paragraph>
47*b1cdbd2cSJim Jagielski<paragraph role="paragraph" id="par_idN10638" xml-lang="en-US" l10n="NEW">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.</paragraph>
48*b1cdbd2cSJim Jagielski<switch select="sys">
49*b1cdbd2cSJim Jagielski<case select="UNIX"><paragraph role="paragraph" id="par_idN1064B" xml-lang="en-US" l10n="CHG">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 &lt;Oracle client&gt;/product/jdbc/lib/classes111.zip directory. You can also download the latest version from the Oracle web site:</paragraph>
50*b1cdbd2cSJim Jagielski<paragraph role="paragraph" id="par_idN1064E" xml-lang="en-US" l10n="NEW">http://otn.oracle.com/tech/java/sqlj_jdbc/content.html</paragraph>
51*b1cdbd2cSJim Jagielski</case>
52*b1cdbd2cSJim Jagielski</switch>
53*b1cdbd2cSJim Jagielski<paragraph role="paragraph" id="par_idN10661" xml-lang="en-US" l10n="NEW">In the <emph>Data source URL</emph> 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. </paragraph>
54*b1cdbd2cSJim Jagielski<paragraph role="paragraph" id="par_idN10668" xml-lang="en-US" l10n="NEW">For an Oracle database, the syntax of the URL is:</paragraph>
55*b1cdbd2cSJim Jagielski<paragraph role="example" id="par_idN1066B" xml-lang="en-US" l10n="NEW">oracle:thin:@hostname:port:database_name</paragraph>
56*b1cdbd2cSJim Jagielski<list type="unordered">
57*b1cdbd2cSJim Jagielski<listitem>
58*b1cdbd2cSJim Jagielski<paragraph role="listitem" id="par_idN10674" xml-lang="en-US" l10n="NEW">hostname is the name of the machine that runs the Oracle database. You can also replace hostname with the IP address of the server.</paragraph>
59*b1cdbd2cSJim Jagielski</listitem>
60*b1cdbd2cSJim Jagielski<listitem>
61*b1cdbd2cSJim Jagielski<paragraph role="listitem" id="par_idN10678" xml-lang="en-US" l10n="NEW">port is the port where the Oracle database listens. Ask your database administrator for the correct port address.</paragraph>
62*b1cdbd2cSJim Jagielski</listitem>
63*b1cdbd2cSJim Jagielski<listitem>
64*b1cdbd2cSJim Jagielski<paragraph role="listitem" id="par_idN1067C" xml-lang="en-US" l10n="NEW">database_name is the name of the Oracle database. Ask your database administrator for the correct name.</paragraph>
65*b1cdbd2cSJim Jagielski</listitem>
66*b1cdbd2cSJim Jagielski</list>
67*b1cdbd2cSJim Jagielski<bookmark xml-lang="en-US" branch="hid/DBACCESS_HID_PAGE_DBWIZARD_JDBC_ET_MYSQLHOSTSERVER" id="bm_id3033539" localize="false"/><paragraph role="heading" id="par_idN1067F" xml-lang="en-US" level="3" l10n="NEW">MySQL database</paragraph>
68*b1cdbd2cSJim Jagielski<paragraph role="paragraph" id="par_idN10683" xml-lang="en-US" l10n="CHG">The driver for the MySQL database is available on the MySQL web site.<comment>removed link, see i54077</comment></paragraph>
69*b1cdbd2cSJim Jagielski<paragraph role="paragraph" id="par_idN10689" xml-lang="en-US" l10n="NEW">The syntax for a MySQL database is:</paragraph>
70*b1cdbd2cSJim Jagielski<paragraph role="example" id="par_idN1068C" xml-lang="en-US" l10n="NEW">mysql://hostname:port/database_name</paragraph>
71*b1cdbd2cSJim Jagielski<list type="unordered">
72*b1cdbd2cSJim Jagielski<listitem>
73*b1cdbd2cSJim Jagielski<paragraph role="listitem" id="par_idN10695" xml-lang="en-US" l10n="NEW"><ahelp hid=".">hostname is the name of the machine that runs the MySQL database.</ahelp> You can also replace hostname with the IP address of the server.</paragraph>
74*b1cdbd2cSJim Jagielski</listitem>
75*b1cdbd2cSJim Jagielski<listitem>
76*b1cdbd2cSJim Jagielski<paragraph role="listitem" id="par_idN10699" xml-lang="en-US" l10n="NEW">port is the default port for MySQL databases, namely 3306.</paragraph>
77*b1cdbd2cSJim Jagielski</listitem>
78*b1cdbd2cSJim Jagielski<listitem>
79*b1cdbd2cSJim Jagielski<paragraph role="listitem" id="par_idN1069D" xml-lang="en-US" l10n="NEW">database_name is the name of the database.</paragraph>
80*b1cdbd2cSJim Jagielski</listitem>
81*b1cdbd2cSJim Jagielski</list>
82*b1cdbd2cSJim Jagielski<bookmark xml-lang="en-US" branch="hid/DBACCESS_HID_PAGE_DBWIZARD_JDBC_ET_JDBCURL" id="bm_id6293221" localize="false"/>
83*b1cdbd2cSJim Jagielski<bookmark xml-lang="en-US" branch="hid/DBACCESS_HID_PAGE_DBWIZARD_JDBC_ET_MYSQLPORT" id="bm_id3450117" localize="false"/><paragraph role="heading" id="par_idN106A0" xml-lang="en-US" level="2" l10n="NEW">Data source URL</paragraph>
84*b1cdbd2cSJim Jagielski<paragraph role="paragraph" id="par_idN106A4" xml-lang="en-US" l10n="NEW"><ahelp hid="HID_DSADMIN_CONNURL_JDBCPAGE">Enter the URL for the database. For example, for the MySQL JDBC driver, enter "jdbc:mysql://&lt;Servername&gt;/&lt;name of the database&gt;". For more information on the JDBC driver, consult the documentation that came with the driver.</ahelp></paragraph>
85*b1cdbd2cSJim Jagielski<bookmark xml-lang="en-US" branch="hid/DBACCESS_HID_DSADMIN_DRIVERCLASS" id="bm_id3153970" localize="false"/>
86*b1cdbd2cSJim Jagielski<!-- removed HID 852248660 -->
87*b1cdbd2cSJim Jagielski<!-- removed HID 852330580 --><paragraph role="heading" id="par_idN106BB" xml-lang="en-US" level="2" l10n="NEW">JDBC Driver Class</paragraph>
88*b1cdbd2cSJim Jagielski<paragraph role="paragraph" id="par_idN106BF" xml-lang="en-US" l10n="NEW"><ahelp hid="HID_DSADMIN_DRIVERCLASS">Enter the name of the JDBC driver.</ahelp></paragraph>
89*b1cdbd2cSJim Jagielski<section id="classpath">
90*b1cdbd2cSJim Jagielski<paragraph role="warning" id="par_id7953733" xml-lang="en-US" l10n="NEW">Before you can use a JDBC driver, you need to add its class path. Choose <emph><switchinline select="sys"><caseinline select="MAC">%PRODUCTNAME - Preferences</caseinline><defaultinline>Tools - Options</defaultinline></switchinline> - %PRODUCTNAME</emph>
91*b1cdbd2cSJim Jagielski<emph>- Java</emph>, and click the <emph>Class Path</emph> button. After you add the path information, restart <item type="productname">%PRODUCTNAME</item>.</paragraph>
92*b1cdbd2cSJim Jagielski</section>
93*b1cdbd2cSJim Jagielski<!-- removed HID 852251216 --><paragraph role="heading" id="par_idN106CE" xml-lang="en-US" level="2" l10n="NEW">Test Class<comment>UFI: may be Test Connection - both strings are in spec</comment></paragraph>
94*b1cdbd2cSJim Jagielski<paragraph role="paragraph" id="par_idN106E4" xml-lang="en-US" l10n="NEW"><ahelp hid=".">Tests the connection with the current settings.</ahelp></paragraph>
95*b1cdbd2cSJim Jagielski<paragraph role="paragraph" id="par_idN106E7" xml-lang="en-US" l10n="NEW"><link href="text/shared/explorer/database/dabawiz03auth.xhp">Authentication</link></paragraph>
96*b1cdbd2cSJim Jagielski<paragraph role="paragraph" id="par_idN106F6" xml-lang="en-US" l10n="NEW"><link href="text/shared/explorer/database/dabawiz00.xhp">Database Wizard</link></paragraph>
97*b1cdbd2cSJim Jagielski</body>
98*b1cdbd2cSJim Jagielski</helpdocument>
99