summaryrefslogtreecommitdiff
path: root/helpcontent2/source/text/shared/explorer/database/dabawiz02jdbc.xhp
blob: a3630159b59a9b33ebbc65113c94b79424d34828 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<?xml version="1.0" encoding="UTF-8"?>
<!--***********************************************************************
 *
 *  The Contents of this file are made available subject to the terms of
 *  either of the following licenses
 *
 *         - GNU Lesser General Public License Version 2.1
 *         - Sun Industry Standards Source License Version 1.1
 *
 *  Sun Microsystems Inc., October, 2000
 *
 *  GNU Lesser General Public License Version 2.1
 *  =============================================
 *  Copyright 2000 by Sun Microsystems, Inc.
 *  901 San Antonio Road, Palo Alto, CA 94303, USA
 *
 *  This library is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU Lesser General Public
 *  License version 2.1, as published by the Free Software Foundation.
 *
 *  This library is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *  Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU Lesser General Public
 *  License along with this library; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston,
 *  MA  02111-1307  USA
 *
 *
 *  Sun Industry Standards Source License Version 1.1
 *  =================================================
 *  The contents of this file are subject to the Sun Industry Standards
 *  Source License Version 1.1 (the "License"); You may not use this file
 *  except in compliance with the License. You may obtain a copy of the
 *  License at http://www.openoffice.org/license.html.
 *
 *  Software provided under this License is provided on an "AS IS" basis,
 *  WITHOUT WARRUNTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING,
 *  WITHOUT LIMITATION, WARRUNTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
 *  MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
 *  See the License for the specific provisions governing your rights and
 *  obligations concerning the Software.
 *
 *  The Initial Developer of the Original Code is: Sun Microsystems, Inc..
 *
 *  Copyright: 2000 by Sun Microsystems, Inc.
 *
 *  All Rights Reserved.
 *
 *  Contributor(s): _______________________________________
 *
 *
 ************************************************************************-->
	
<helpdocument version="1.0">
<meta>
<topic id="textsharedexplorerdatabasedabawiz02jdbcxml" indexer="include" status="DRAFT">
<title id="tit" xml-lang="en-US">JDBC Connection</title>
<filename>text/shared/explorer/database/dabawiz02jdbc.xhp</filename>
</topic>
<history>
<created date="2004-07-28T15:55:36">UFI: Database Wizard JDBC page</created>
<lastedited date="2004-07-28T16:50:53"/>
</history>
</meta>
<body>
<paragraph role="heading" id="par_idN105FC" xml-lang="en-US" level="1" l10n="NEW">JDBC Connection</paragraph>
<paragraph role="paragraph" id="par_idN10600" xml-lang="en-US" l10n="NEW">Specifies the options for accessing <link href="text/shared/00/00000005.xhp#jdbc" name="JDBC">JDBC</link> databases.<comment>copied text from shared\explorer\database\11110000</comment></paragraph>
<paragraph role="heading" id="par_idN10623" xml-lang="en-US" level="2" l10n="NEW">JDBC Examples</paragraph>
<paragraph role="paragraph" id="par_idN10627" xml-lang="en-US" l10n="NEW">
<item type="productname">%PRODUCTNAME</item> can communicate with a database through a JDBC driver class, that is provided by the database manufacturer. Below are two examples of JDBC driver classes.</paragraph>
<paragraph role="paragraph" id="par_idN1062D" xml-lang="en-US" l10n="NEW">The driver classes must be added to the Java CLASSPATH on your system, or in <item type="productname">%PRODUCTNAME</item>.</paragraph>
<paragraph role="heading" id="par_idN10634" xml-lang="en-US" level="3" l10n="NEW">Oracle database</paragraph>
<paragraph role="paragraph" id="par_idN10638" xml-lang="en-US" l10n="NEW">Use JDBC to access an Oracle database from Solaris or Linux, and ODBC to access the database from Microsoft Windows.</paragraph>
<switch select="sys">
<case select="UNIX">
<paragraph role="paragraph" id="par_idN1064B" xml-lang="en-US" l10n="NEW">Under UNIX, ensure that the Oracle database client is installed with JDBC support. The JDBC driver class from 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>
<paragraph role="paragraph" id="par_idN1064E" xml-lang="en-US" l10n="NEW">http://otn.oracle.com/tech/java/sqlj_jdbc/content.html</paragraph>
</case>
</switch>
<paragraph role="paragraph" id="par_idN10661" xml-lang="en-US" l10n="NEW">Enter the location of the Oracle database server in the <emph>Data source URL</emph> box. The syntax of the URL depends on the database type. See the documentation that came with the JDBC driver for more information. </paragraph>
<paragraph role="paragraph" id="par_idN10668" xml-lang="en-US" l10n="NEW">For an Oracle database, the syntax of the URL is:</paragraph>
<paragraph role="example" id="par_idN1066B" xml-lang="en-US" l10n="NEW">oracle:thin:@hostname:port:database_name</paragraph>
<paragraph role="paragraph" id="par_idN1066E" xml-lang="en-US" l10n="NEW">Where:</paragraph>
<list type="unordered">
<listitem>
<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>
</listitem>
<listitem>
<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>
</listitem>
<listitem>
<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>
</listitem>
</list>
<paragraph role="heading" id="par_idN1067F" xml-lang="en-US" level="3" l10n="NEW">MySQL database</paragraph>
<paragraph role="paragraph" id="par_idN10683" xml-lang="en-US" l10n="NEW">Use the mm.mysql-2.0.4-bin.jar driver archive available on the following web site:</paragraph>
<paragraph role="paragraph" id="par_idN10686" xml-lang="en-US" l10n="NEW">http://mmmysql.sourceforge.net/oldDist.html</paragraph>
<paragraph role="paragraph" id="par_idN10689" xml-lang="en-US" l10n="NEW">The syntax for a MySQL database is:</paragraph>
<paragraph role="example" id="par_idN1068C" xml-lang="en-US" l10n="NEW">mysql://hostname:port/database_name</paragraph>
<paragraph role="paragraph" id="par_idN1068F" xml-lang="en-US" l10n="NEW">Where:</paragraph>
<list type="unordered">
<listitem>
<paragraph role="listitem" id="par_idN10695" xml-lang="en-US" l10n="NEW">hostname is the name of the machine that runs the MySQL database. You can also replace hostname with the IP address of the server.</paragraph>
</listitem>
<listitem>
<paragraph role="listitem" id="par_idN10699" xml-lang="en-US" l10n="NEW">port is the default port for MySQL databases, namely 3306.</paragraph>
</listitem>
<listitem>
<paragraph role="listitem" id="par_idN1069D" xml-lang="en-US" l10n="NEW">database_name is the name of the database.</paragraph>
</listitem>
</list>
<paragraph role="heading" id="par_idN106A0" xml-lang="en-US" level="2" l10n="NEW">Data source URL</paragraph>
<paragraph role="paragraph" id="par_idN106A4" xml-lang="en-US" l10n="NEW"><ahelp hid="HID_DSADMIN_CONNURL_JDBCPAGE">Enter the URL for connecting to the database, for example, for the MySQL-JDBC-Driver, enter "jdbc:mysql://&lt;Servername&gt;/&lt;DB-Name&gt;", where "DB-Name" is the name of the database. For more information on the JDBC driver, consult the documentation that came with the driver.</ahelp></paragraph>
<bookmark xml-lang="en-US" branch="hid/HID_DSADMIN_DRIVERCLASS" id="bm_id3153970" localize="false"/>
<paragraph role="heading" id="par_idN106BB" xml-lang="en-US" level="2" l10n="NEW">JDBC Driver Class</paragraph>
<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>
<paragraph role="heading" id="par_idN106CE" xml-lang="en-US" level="2" l10n="NEW">Test Connection<comment>UFI: may be Test Class - both strings are in spec</comment></paragraph>
<paragraph role="paragraph" id="par_idN106E4" xml-lang="en-US" l10n="NEW">Click to test the connection using the current settings.</paragraph>
<paragraph role="paragraph" id="par_idN106E7" xml-lang="en-US" l10n="NEW"><link href="text/shared/explorer/database/dabawiz03auth.xhp">Authentification</link></paragraph>
<paragraph role="paragraph" id="par_idN106F6" xml-lang="en-US" l10n="NEW"><link href="text/shared/explorer/database/dabawiz00.xhp">Database Wizard</link></paragraph>
</body>
</helpdocument>