ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzamy_5.4.0.1/50/admin/wsajdbc.htm

54 lines
2.2 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
<LINK rel="stylesheet" type="text/css" href="../../../rzahg/ic.css">
<title>Use wsadmin to configure a JDBC provider</title>
</head>
<BODY>
<!-- Java sync-link -->
<SCRIPT LANGUAGE="Javascript" SRC="../../../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
<h4><a name="wsajdbc"></a>Use wsadmin to configure a JDBC provider</h4>
<p>To configure a JDBC provider with wsadmin, follow these steps:</p>
<ol>
<li><p>On the CL command line, run the STRQSH (Start Qshell) command.</p></li>
<li><p>Run the cd command to change to the directory that contains the wsadmin tool:</p>
<pre>cd /QIBM/ProdData/WebASE/ASE5/bin</pre></li>
<li><p><a href="wsarun.htm#start">Start wsadmin</a>.</p></li>
<li><p>At the wsadmin prompt, run this command to identify the parent ID and assign it to the node variable:</p>
<pre>set node [$AdminConfig getid /Cell:<em>myCell</em>/Node:<em>myNode</em>/Server:<em>myAppSvr</em>/]</pre>
<p>where <em>myCell</em> is the name of the cell that contains your application server, <em>myNode</em> is the name of the node that contains your application server, and <em>myAppSvr</em> is the name of your application server.</p></li>
<li><p>Run this command to identify the required attributes:</p>
<pre>$AdminConfig required JDBCProvider</pre>
<p>The command displays this output:</p>
<pre>
Attribute Type
name String
implementationClassName String</pre></li>
<li><p>Run these commands to set the required attributes and assign them to the jdbcAttrs variable:</p>
<pre>set n1 [list name JDBC1]
set implCN [list implementationClassName myclass]
set jdbcAttrs [list $n1 $implCN]</pre>
<p>You can modify the example to set optional attributes for JDBC provider. For a list of all of the attributes of a JDBC provider, run this command:</p>
<pre>$AdminConfig attributes JDBCProvider</pre></li>
<li><p>Run this command to create the new JDBC provider:</p>
<pre>$AdminConfig create JDBCProvider $server $jdbcAttrs</pre>
<li><p>Run this command to save your changes:</p>
<pre>$AdminConfig save</pre></li>
</ol>
</body>
</html>