ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzatz_5.4.0.1/51/admin/wsadatasrc.htm

52 lines
2.1 KiB
HTML
Raw Normal View History

2024-04-02 14:02:31 +00:00
<!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 new data source</title>
</head>
<BODY>
<!-- Java sync-link -->
<SCRIPT LANGUAGE="Javascript" SRC="../../../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
<h4><a name="wsadatasrc"></a>Use wsadmin to configure a new data source</h4>
<p>To configure a data source 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/WebASE51/ASE/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:</p>
<pre>set newjdbc [$AdminConfig getid /Cell:<em>myCell</em>/Node:<em>myNode</em>/
Server:<em>myAppSvr</em>/JDBCProvider:<em>JDBC1</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, <em>myAppSvr</em> is the name of your application server, and <em>JDBC1</em> is the name of your JDBC provider.</p>
<p><strong>Note:</strong> This command has been wrapped for display purposes.</p></li>
<li><p>Run this command to display the required attributes for a data source:</p>
<pre>$AdminConfig required DataSource</pre>
<p>The command displays this output:</p>
<pre>
Attribute Type
name String</pre></li>
<li><p>Run these commands to set the required attributes:</p>
<pre>set name [list name <em>DS1</em>]
set dsAttrs [list $name]</pre>
<p>where <em>DS1</em> is the name of the data source that you want to create.</p></li>
<li><p>Run this command to create a data source:</p>
<pre>set newds [$AdminConfig create DataSource $newjdbc $dsAttrs]</pre></li>
<li><p>Run this command to save your changes:</p>
<pre>$AdminConfig save</pre></li>
</ol>
</body>
</html>