167 lines
9.0 KiB
HTML
167 lines
9.0 KiB
HTML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE html
|
|
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html lang="en-us" xml:lang="en-us">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<meta name="security" content="public" />
|
|
<meta name="Robots" content="index,follow" />
|
|
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
|
|
<meta name="DC.Type" content="reference" />
|
|
<meta name="DC.Title" content="JDBC Librarylist property" />
|
|
<meta name="abstract" content="The JDBC LibraryList property specifies one or more libraries that you want to add to or replace the library list of the server job, and optionally sets the default library (default schema)." />
|
|
<meta name="description" content="The JDBC LibraryList property specifies one or more libraries that you want to add to or replace the library list of the server job, and optionally sets the default library (default schema)." />
|
|
<meta name="DC.Relation" scheme="URI" content="jdbcproperties.htm" />
|
|
<meta name="copyright" content="(C) Copyright IBM Corporation 2006" />
|
|
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2006" />
|
|
<meta name="DC.Format" content="XHTML" />
|
|
<meta name="DC.Identifier" content="jdbcliblistproperty" />
|
|
<meta name="DC.Language" content="en-us" />
|
|
<!-- All rights reserved. Licensed Materials Property of IBM -->
|
|
<!-- US Government Users Restricted Rights -->
|
|
<!-- Use, duplication or disclosure restricted by -->
|
|
<!-- GSA ADP Schedule Contract with IBM Corp. -->
|
|
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
|
|
<link rel="stylesheet" type="text/css" href="./ic.css" />
|
|
<title>JDBC Librarylist property</title>
|
|
</head>
|
|
<body id="jdbcliblistproperty"><a name="jdbcliblistproperty"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">JDBC Librarylist property</h1>
|
|
<div><p>The JDBC LibraryList property specifies one or more libraries that
|
|
you want to add to or replace the library list of the server job, and optionally
|
|
sets the default library (default schema).</p>
|
|
<div class="section"><div class="p">The examples in the following table make these assumptions:<ul><li>A library called MYLIBDAW contains MYFILE_DAW</li>
|
|
<li>You are running this SQL statment:<pre> "SELECT * FROM MYFILE_DAW"</pre>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="p">
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" width="100%" frame="border" border="1" rules="all"><thead align="left"><tr><th valign="top" width="21.62162162162162%" id="d0e31">Scenario </th>
|
|
<th valign="top" width="42.9054054054054%" id="d0e33">SQL Naming</th>
|
|
<th valign="top" width="35.47297297297297%" id="d0e35">System Naming</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr><td valign="top" width="21.62162162162162%" headers="d0e31 "><p>Basic Rules</p>
|
|
</td>
|
|
<td valign="top" width="42.9054054054054%" headers="d0e33 "><p>Only one library is searched. </p>
|
|
<ul><li> If a library is specified on the URL, it is used. It becomes the default
|
|
library. </li>
|
|
<li>If no library is specified on the URL, the first library in the 'libraries'
|
|
property is used. It becomes the default library. </li>
|
|
<li> If no library on URL and if no libraries property is specified, the library
|
|
with the same name as the signed-on user profile is used. </li>
|
|
</ul>
|
|
<p>The job's library list is updated with the libraries in the libraries
|
|
property. This may affect the behavior of some triggers and stored procedures.
|
|
It does not affect unqualified names in statements. </p>
|
|
</td>
|
|
<td valign="top" width="35.47297297297297%" headers="d0e35 "><p>The job's library list is updated with the libraries
|
|
on the libraries property. If a default library is specified on the URL then
|
|
that becomes the default library. </p>
|
|
</td>
|
|
</tr>
|
|
<tr><td valign="top" width="21.62162162162162%" headers="d0e31 "><p>1. No library specified anyplace.</p>
|
|
</td>
|
|
<td valign="top" width="42.9054054054054%" headers="d0e33 "><p>Default schema is the user profile name. </p>
|
|
</td>
|
|
<td valign="top" width="35.47297297297297%" headers="d0e35 "><p>No default schema. Job's library list is searched.</p>
|
|
</td>
|
|
</tr>
|
|
<tr><td valign="top" width="21.62162162162162%" headers="d0e31 "><p>2. Default library specified on URL. </p>
|
|
</td>
|
|
<td valign="top" width="42.9054054054054%" headers="d0e33 "><p>Default schema is the specified library. </p>
|
|
</td>
|
|
<td valign="top" width="35.47297297297297%" headers="d0e35 "><p>Default schema is the specified library. Library
|
|
list is not searched to resolve unqualified name in SQL statements. </p>
|
|
</td>
|
|
</tr>
|
|
<tr><td valign="top" width="21.62162162162162%" headers="d0e31 "><p>3. Default library specified via property.</p>
|
|
</td>
|
|
<td valign="top" width="42.9054054054054%" headers="d0e33 "><p>Default schema is the specified library. </p>
|
|
</td>
|
|
<td valign="top" width="35.47297297297297%" headers="d0e35 "><p>No default schema. All libraries on list searched. </p>
|
|
</td>
|
|
</tr>
|
|
<tr><td valign="top" width="21.62162162162162%" headers="d0e31 "><p>4. Default library specified on URL and property.</p>
|
|
</td>
|
|
<td valign="top" width="42.9054054054054%" headers="d0e33 "><p>Default schema is the library specified on the URL.
|
|
Library list is ignored. </p>
|
|
</td>
|
|
<td valign="top" width="35.47297297297297%" headers="d0e35 "><p>Default schema is the library specified on the URL.
|
|
Library list is not searched to resolve unqualified name in SQL statements. </p>
|
|
</td>
|
|
</tr>
|
|
<tr><td valign="top" width="21.62162162162162%" headers="d0e31 "><p>5. Library property specified, lib name is bad </p>
|
|
</td>
|
|
<td valign="top" width="42.9054054054054%" headers="d0e33 "><p>Default schema is the specified library </p>
|
|
</td>
|
|
<td valign="top" width="35.47297297297297%" headers="d0e35 "><p>No default schema. The Library list can not be changed
|
|
because one of the libraries in the list is not found so the job's library
|
|
list is used. </p>
|
|
</td>
|
|
</tr>
|
|
<tr><td valign="top" width="21.62162162162162%" headers="d0e31 "><p>6. No library on URL, library property specified,
|
|
file found in second library in list </p>
|
|
</td>
|
|
<td valign="top" width="42.9054054054054%" headers="d0e33 "><p>Default schema is the first library in the list,
|
|
rest of libraries ignored. </p>
|
|
</td>
|
|
<td valign="top" width="35.47297297297297%" headers="d0e35 "><p>If all libraries exist , then no default schema,
|
|
all libraries on list searched, list replaces job's library list. </p>
|
|
<p> If
|
|
one of the libraries on the list does not exist, the job's library list is
|
|
not changed. </p>
|
|
</td>
|
|
</tr>
|
|
<tr><td valign="top" width="21.62162162162162%" headers="d0e31 "><p>7. Library property specified, list starts with a
|
|
comma </p>
|
|
</td>
|
|
<td valign="top" width="42.9054054054054%" headers="d0e33 "><p>Default schema is user profile </p>
|
|
</td>
|
|
<td valign="top" width="35.47297297297297%" headers="d0e35 "><p>No default schema, all libraries on list searched,
|
|
list replaces job's library list. </p>
|
|
</td>
|
|
</tr>
|
|
<tr><td valign="top" width="21.62162162162162%" headers="d0e31 "><p>8. Library property specified, list starts with a
|
|
*LIBL </p>
|
|
</td>
|
|
<td valign="top" width="42.9054054054054%" headers="d0e33 "><p>Default schema is user profile </p>
|
|
</td>
|
|
<td valign="top" width="35.47297297297297%" headers="d0e35 "><p>No default schema, all libraries on list searched,
|
|
libraries specified added to end of list </p>
|
|
</td>
|
|
</tr>
|
|
<tr><td valign="top" width="21.62162162162162%" headers="d0e31 "><p>9. Library property specified, list ends with a *LIBL </p>
|
|
</td>
|
|
<td valign="top" width="42.9054054054054%" headers="d0e33 "><p>Default schema is first lib on list, rest of list
|
|
ignored </p>
|
|
</td>
|
|
<td valign="top" width="35.47297297297297%" headers="d0e35 "><p>No default schema, all libraries on list searched,
|
|
libraries specified added to beginning of job's library list </p>
|
|
</td>
|
|
</tr>
|
|
<tr><td valign="top" width="21.62162162162162%" headers="d0e31 "><p>10. URL library invalid </p>
|
|
</td>
|
|
<td valign="top" width="42.9054054054054%" headers="d0e33 "><p>No default schema, user profile used </p>
|
|
</td>
|
|
<td valign="top" width="35.47297297297297%" headers="d0e35 "><p>No default schema, job's library list is used </p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="p"><div class="note"><span class="notetitle">Note:</span> When a default schema is specified on the URL and the
|
|
libraries property is not used, the default schema is appended before the
|
|
current library list</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="jdbcproperties.htm" title="Many properties can be specified when connecting to a server database using JDBC. All properties are optional and can be specified either as part of the URL or in a java.util.Properties object. If a property is set in both the URL and a Properties object, the value in the URL will be used.">IBM Toolbox for Java JDBC properties</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |