
3. JDBC handles the request, formats the information, and returns the result to the Web
page.
JDBC Code Examples and Tips
The following lines must be a part of the HTML file for JDBC:
<applet code="CLASSPATH.*.class codebase="../ width=600 height=425>
<param name=url value="jdbc:sharenet://spdssnet_node:PORT">
<param name="dbms_options" value=DBQ='libname' HOST='host_node' SERV='NNNN'>
<param name="spdsuser" value="userid">
<param name="sharePassword" value="thepassword">
<param name="shareRelease" value="V9">
<param name="dbms" value="spds">
</applet>
Line 1:
•
CLASSPATH
points to the class path set up where the JDBC driver is installed.
•
*.class
is the name of the Java class that consumes all of the <PARAM name=...> lines.
Line 2:
•
spdssnet_node
is the node name of the machine on which the SPD SNET server is
running.
•
PORT=port number of the machine on which the SPD SNET server is running.
Line 3:
•
value=DBQ='libname'
is the LIBNAME domain of the SPD Server.
•
HOST='host_node'
is the location of the SPD SNET server.
•
SERV='NNNN'
is the port number of the name server.
Line 4:
•
spdsuser
value=
user ID
is the user ID that queries the SPD Server table.
Line 5:
•
sharePassword
value=
the password
is the password of the user ID that will make the
query.
Line 6:
•
shareRelease
value=V9 is the version of the driver you are using. This must not be
altered.
Line 7:
•
Sets the foreign database property on the JDBC driver. This means that the server is
not SAS and JDBC should not create a DataBaseMetaData object. See the examples
below for how to get around this.
JDBC Code Examples and Tips
101
Содержание Scalable Performance Data Server 4.5
Страница 1: ...SAS Scalable Performance Data Server 4 5 Administrator s Guide...
Страница 7: ...Part 1 Product Notes Chapter 1 SPD Server 4 5 Product Notes 3 1...
Страница 8: ...2...
Страница 12: ...6...
Страница 63: ...Part 3 Migration Chapter 5 SPD Server 3 x to SPD Server 4 5 Conversion Utility 59 57...
Страница 64: ...58...
Страница 70: ...64 Chapter 5 SPD Server 3 x to SPD Server 4 5 Conversion Utility...
Страница 72: ...66...
Страница 76: ...70 Chapter 6 Using the SPD Server Name Server to Manage Resources...
Страница 94: ...88 Chapter 7 Administering and Configuring SPD Server Using the SAS Management Console...
Страница 98: ...92 Chapter 8 SPD Server SQL Query Rewrite Facility...
Страница 116: ...110 Chapter 10 Configuring Disk Storage for SPD Server...
Страница 128: ...122 Chapter 11 Setting Up SPD Server Parameter Files...
Страница 154: ...148...
Страница 198: ...192 Chapter 14 ACL Security Overview...
Страница 212: ...206 Chapter 15 Managing SPD Server Passwords Users and Table ACLs...
Страница 214: ...208...
Страница 224: ...218 Chapter 16 SPD Server Operator Interface Procedure PROC SPDO...
Страница 236: ...230 Chapter 18 SPD Server Table List Utility Spdsls...
Страница 256: ...250 Chapter 19 SPD Server Backup and Restore Utilities...
Страница 264: ...258 Chapter 20 SPD Server Directory Cleanup Utility...
Страница 270: ......