![]() |
![]() |
Installing jdbcKona/MSSQLServer4This document tells you how to install jdbcKona/MSSQLServer4 (formerly called FastForward for SQL Server), WebLogic's pure-Java Type 4 JDBC driver for Microsoft SQL Server. jdbcKona/MSSQLServer4 is a 100% pure Java implementation of the Java Database Connectivity (JDBC) API, the industry standard for relational database access from Java clients. It provides Java clients, including applets, with direct access to Microsoft SQL Server. jdbcKona/MSSQLServer4 supports SQL Server versions 4.2, 6.0, 6.5, and 7.0. It is shipped in two versions -- one that supports both versions 6.5 and 7.0, but does not support any version 7.0 specific features -- and one that only supports version 7.0 and the new SQL Server 7.0 nchar, nvarchar, and ntext datatypes. Both are available from the same download page. Note: If you are using jdbcKona/MSSQLServer4 with WebLogic Server 4.5 or later, you must also upgrade the driver for use with WebLogic Server 4.5. You can download the driver from the BEA website. jdbcKona, like all Type 4 JDBC drivers, is pure-Java and requires no vendor-supported client libraries. jdbcKona/MSSQLServer4 communicates directly with SQL Server through a TCP/IP network, using the SQL Server "Tabular Data Stream" protocol, so DB-Library does not have to be installed on a client computer.
Before you beginThe jdbcKona/MSSQLServer4 distribution you downloaded from WebLogic's website includes an evaluation license that allows you to test the product with 2 users for 30 days. To purchase additional licenses, contact sales@weblogic.com. If you are a registered customer installing an upgrade to the jdbcKona/MSSQLServer4 driver, you should move your License.class file before installing:
If you are upgrading to jdbcKona/MSSQLServer from the FastForward driver, be sure to read the Developers Guide. In particular, notice that you will need to update your CLASSPATH environment variable and, since the name of driver class has changed, you will have to modify Connection URLs and the driver class path name in your applications after you install this new release.
Here is how to install:
To purchase a permanent license for jdbcKona/MSSQLServer4, contact sales@weblogic.com. Be sure to save a copy of the License.class file in a safe place so that you can install it again later if you upgrade your jdbcKona/MSSQLServer4 driver. Verifying your SQL Server installationVerify that you are using version 6.5 or 7.0 of Microsoft SQL Server. Older versions of SQL Server do not properly support JDBC metadata functions and have limited data type support. To connect to SQL Server, you will need the following information:
Setting a port for SQL Server connectionsYou set the hostname and port for SQL Server connections by making an entry into the SQL Server configuration files. In the configuration files, a logical "server name" is associated with a server machine name and port number. jdbcKona/MSSQLServer4 does not use the logical server name, only the host name and the port number. You must have administrator privileges to change your SQL Server settings. To set the port:
Once you have set the port, you can verify with telnet that the server is listening on that port. Here is the syntax for the telnet command: $ telnet hostname_or_IP_address port For example, to test the SQL Server listening on port 1433 of the computer named "myhost", type: $ telnet myhost 1433 If the server is not listening on the port, telnet will display an error message. If the server is listening on the port, telnet will display nothing; eventually, the host will drop the connection. You can use isql to test your login information. Here is the isql syntax: $ isql -Uusername -Ppassword -Sserver
Verifying the JDBC driver with dbpingYou can use the WebLogic dbping Java application to verify that the jdbcKona/MSSQLServer driver can connect to your SQL Server. To use dbping, make sure that the c:/weblogic/mssqlserver4rel/classes is in your CLASSPATH, then type this command: $ java utils.dbping MSSQLSERVER4 username password [database@]host[:port]where:
For example, the following command pings the SQL Server "pubs" database on the computer named "myhost", using the default TCP/IP port, and the "sa" login with a null password: $ java utils.dbping MSSQLSERVER4 sa "" pubs@myhost The output from the command includes code that you can use to connect to the database in a Java program.
See Connecting to SQL
Server with jdbcKona/MSSQLServer4 in Using jdbcKona/MSSQLServer4 for
more information about JDBC connections.
|
|
Copyright © 2000 BEA Systems, Inc. All rights reserved.
|