<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4752407119283408771</id><updated>2024-09-22T12:10:10.240-07:00</updated><category term="MySQL"/><title type='text'>Mr. Fabio</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://fpetito.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4752407119283408771/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://fpetito.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Mr. Fabio</name><uri>http://www.blogger.com/profile/03641437377390899550</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuac1Cksdnx7cnc0sToT8x8_cGGbVoeJx5GASinGmI-_jT-OG9Kqg8JShJm6Ra4rOLp6bJnCqk6zFFZLmEQODhNcDXtriFGSDIn_E4F_kQq77krQWcVtQiWN5MODZ2kYw/s220/me.png'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>14</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4752407119283408771.post-2158661291881238705</id><published>2010-07-21T09:47:00.000-07:00</published><updated>2010-07-22T05:58:52.718-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="MySQL"/><title type='text'>Installation MySQL v5.1.48 on CentOS release 5.5 (Final)</title><content type='html'>Before to start, install all the prerequisites for relative platform (to  know the version use &lt;b&gt;cat /etc/redhat-release&lt;/b&gt;)  (you can find rpm on &lt;a class=&quot;external free&quot; href=&quot;http://rpm.pbone.net/&quot; rel=&quot;nofollow&quot; title=&quot;http://rpm.pbone.net/&quot;&gt;http://rpm.pbone.net/&lt;/a&gt;),  namely (installation with &lt;b&gt;rpm -ivh&lt;/b&gt;):&lt;br /&gt;
&lt;ul&gt;&lt;li&gt; cairomm-1.2.4-1.el5.kb.i386.rpm &lt;/li&gt;
&lt;li&gt; glibmm24-2.12.7-1.el5.kb.i386.rpm &lt;/li&gt;
&lt;li&gt; gtkmm24-2.10.8-1.el5.kb.i386.rpm &lt;/li&gt;
&lt;li&gt; libsigc++20-2.0.18-1.el5.kb.i386.rpm&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;then (with rpm -ivh MySQL-*): &lt;br /&gt;
&lt;ul&gt;&lt;li&gt; MySQL-client-community-5.1.48-1.rhel5.i386.rpm &lt;/li&gt;
&lt;li&gt; MySQL-devel-community-5.1.48-1.rhel5.i386.rpm &lt;/li&gt;
&lt;li&gt; MySQL-embedded-community-5.1.48-1.rhel5.i386.rpm &lt;/li&gt;
&lt;li&gt; MySQL-server-community-5.1.48-1.rhel5.i386.rpm &lt;/li&gt;
&lt;li&gt; MySQL-shared-compat-5.1.48-1.rhel5.i386.rpm &lt;/li&gt;
&lt;/ul&gt;Regarding the successive configuration, please follow steps below: &lt;br /&gt;
&lt;ul&gt;&lt;li&gt; &lt;b&gt;cp /usr/share/mysql/&lt;/b&gt;my-&lt;i&gt;small&lt;/i&gt;&lt;b&gt;.cnf /etc/my.cnf &lt;/b&gt;&lt;/li&gt;
&lt;li&gt; &lt;b&gt;vi /etc/my.cnf&lt;/b&gt;, and add: &lt;/li&gt;
&lt;/ul&gt;&lt;pre&gt;[mysqld]
basedir         = /usr
datadir         = /var/lib/mysql&lt;/pre&gt;&lt;ul&gt;&lt;li&gt; uncomment &lt;b&gt;bind-address&lt;/b&gt; &lt;i&gt;ip&lt;/i&gt; &lt;/li&gt;
&lt;li&gt; give the grants: &lt;/li&gt;
&lt;/ul&gt;&lt;pre&gt;GRANT ALL PRIVILEGES ON *.* TO root@localhost IDENTIFIED BY &#39;root&#39; WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON *.* TO root@&#39;%&#39; IDENTIFIED BY &#39;root&#39; WITH GRANT OPTION;
FLUSH PRIVILEGES;&lt;/pre&gt;&lt;ul&gt;&lt;li&gt; check firewall state (iptables on CentOS) executing follow  instructions: &lt;/li&gt;
&lt;/ul&gt;&lt;pre&gt;iptables -I RH-Firewall-1-INPUT -p tcp --dport 3306 -j ACCEPT&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://fpetito.blogspot.com/feeds/2158661291881238705/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://fpetito.blogspot.com/2010/07/installation-mysql-v5148-on-centos.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4752407119283408771/posts/default/2158661291881238705'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4752407119283408771/posts/default/2158661291881238705'/><link rel='alternate' type='text/html' href='http://fpetito.blogspot.com/2010/07/installation-mysql-v5148-on-centos.html' title='Installation MySQL v5.1.48 on CentOS release 5.5 (Final)'/><author><name>Mr. Fabio</name><uri>http://www.blogger.com/profile/03641437377390899550</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuac1Cksdnx7cnc0sToT8x8_cGGbVoeJx5GASinGmI-_jT-OG9Kqg8JShJm6Ra4rOLp6bJnCqk6zFFZLmEQODhNcDXtriFGSDIn_E4F_kQq77krQWcVtQiWN5MODZ2kYw/s220/me.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4752407119283408771.post-6682392887643515882</id><published>2010-06-08T07:39:00.000-07:00</published><updated>2010-06-08T07:44:05.137-07:00</updated><title type='text'>English abbreviations and acronyms</title><content type='html'>Other &lt;a href=&quot;http://www.learnenglish.de/abbreviations.htm&quot;&gt;here&lt;/a&gt;.&lt;br /&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;@&lt;/td&gt;&lt;td&gt;at&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;a/c&lt;/td&gt;&lt;td&gt;account&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;AGM&lt;/td&gt;&lt;td&gt;annual general meeting&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;a.m.&lt;/td&gt;&lt;td&gt;ante meridiem  (before noon)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;a/o&lt;/td&gt;&lt;td&gt;account of  (on behalf of)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;AOB&lt;/td&gt;&lt;td&gt;any other business&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;ASAP&lt;/td&gt;&lt;td&gt;as soon as possible&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;ATM&lt;/td&gt;&lt;td&gt;automated teller machine (cash dispenser)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;attn&lt;/td&gt;&lt;td&gt;for the attention of &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;approx.&lt;/td&gt;&lt;td&gt;approximately&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;cc&lt;/td&gt;&lt;td&gt;copy to &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;CEO&lt;/td&gt;&lt;td&gt;chief executive officer&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;c/o&lt;/td&gt;&lt;td&gt;care of  (on letters : at the address of)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Co&lt;/td&gt;&lt;td&gt;company&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;cm&lt;/td&gt;&lt;td&gt;centimetre&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;COD&lt;/td&gt;&lt;td&gt;cash on delivery&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;dept&lt;/td&gt;&lt;td&gt;department&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;e.g.&lt;/td&gt;&lt;td&gt;exempli gratia (for example)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;EGM&lt;/td&gt;&lt;td&gt;extraordinary general meeting&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;ETA&lt;/td&gt;&lt;td&gt;estimated time of arrival&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;etc&lt;/td&gt;&lt;td&gt;et caetera  (and so on)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;FYA&lt;/td&gt;&lt;td&gt;for your attention&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;FYI&lt;/td&gt;&lt;td&gt;for your information&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;GDP&lt;/td&gt;&lt;td&gt;gross domestic product&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;GNP&lt;/td&gt;&lt;td&gt;gross national product&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;GMT&lt;/td&gt;&lt;td&gt;Greenwich mean time  (time in London)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;i.e.&lt;/td&gt;&lt;td&gt;id est (meaning : &#39;that is&#39;)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Inc&lt;/td&gt;&lt;td&gt;incorporated&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;IOU&lt;/td&gt;&lt;td&gt;I owe you&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;IPO&lt;/td&gt;&lt;td&gt;initial public offer&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Jr&lt;/td&gt;&lt;td&gt;junior&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;K&lt;/td&gt;&lt;td&gt;thousand&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;lb&lt;/td&gt;&lt;td&gt;pound (weight)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;£&lt;/td&gt;&lt;td&gt;pound (money)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Ltd&lt;/td&gt;&lt;td&gt;limited company&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;mo.&lt;/td&gt;&lt;td&gt;month&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;N/A&lt;/td&gt;&lt;td&gt;not applicable&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;NB&lt;/td&gt;&lt;td&gt;Nota Bene (it is important to note)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;no.&lt;/td&gt;&lt;td&gt;number&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;PA&lt;/td&gt;&lt;td&gt;personal assistant&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;p.a.&lt;/td&gt;&lt;td&gt;per annum  (per year)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Plc&lt;/td&gt;&lt;td&gt;public limited company&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;pls&lt;/td&gt;&lt;td&gt;please&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;p.m.&lt;/td&gt;&lt;td&gt;post meridiem  (after noon)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;p.p.&lt;/td&gt;&lt;td&gt;per pro  (used before signing in a person&#39;s absence)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;PR&lt;/td&gt;&lt;td&gt;public relations&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;p.s.&lt;/td&gt;&lt;td&gt;post scriptum&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;pto&lt;/td&gt;&lt;td&gt;please turn over&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;p.w.&lt;/td&gt;&lt;td&gt;per week&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;qty&lt;/td&gt;&lt;td&gt;quantity&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;R &amp;amp; D&lt;/td&gt;&lt;td&gt;research and development&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;re&lt;/td&gt;&lt;td&gt;with reference to&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;ROI&lt;/td&gt;&lt;td&gt;return on investment&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;RSVP&lt;/td&gt;&lt;td&gt;repondez s&#39;il vous plait (please reply)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;s.a.e.&lt;/td&gt;&lt;td&gt;stamped addressed envelope&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;VAT&lt;/td&gt;&lt;td&gt;value added tax&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;VIP&lt;/td&gt;&lt;td&gt;very important person&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;</content><link rel='replies' type='application/atom+xml' href='http://fpetito.blogspot.com/feeds/6682392887643515882/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://fpetito.blogspot.com/2010/06/english-abbreviations-and-acronyms.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4752407119283408771/posts/default/6682392887643515882'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4752407119283408771/posts/default/6682392887643515882'/><link rel='alternate' type='text/html' href='http://fpetito.blogspot.com/2010/06/english-abbreviations-and-acronyms.html' title='English abbreviations and acronyms'/><author><name>Mr. Fabio</name><uri>http://www.blogger.com/profile/03641437377390899550</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuac1Cksdnx7cnc0sToT8x8_cGGbVoeJx5GASinGmI-_jT-OG9Kqg8JShJm6Ra4rOLp6bJnCqk6zFFZLmEQODhNcDXtriFGSDIn_E4F_kQq77krQWcVtQiWN5MODZ2kYw/s220/me.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4752407119283408771.post-3351849158465499703</id><published>2010-06-08T07:30:00.000-07:00</published><updated>2010-06-08T07:30:34.644-07:00</updated><title type='text'>DB2, delete data in a table</title><content type='html'>&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;delete from &lt;i&gt;table_name&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
or, if the table contains a large number of rows and you get an error of &quot;full transaction log&quot;, you can run the truncate statement:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;v8&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;alter table &lt;i&gt;table_name&lt;/i&gt; activate not logged initially with empty table&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;from v9.1&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;truncate table &lt;i&gt;table_name&lt;/i&gt; immediate&lt;/span&gt;&lt;br /&gt;
More information about this new statement on precius &lt;a href=&quot;http://publib.boulder.ibm.com/infocenter/dzichelp/v2r2/index.jsp?topic=/com.ibm.db29.doc.sqlref/db2z_sql_truncate.htm&quot;&gt;InfoCenter&lt;/a&gt;.</content><link rel='replies' type='application/atom+xml' href='http://fpetito.blogspot.com/feeds/3351849158465499703/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://fpetito.blogspot.com/2010/06/db2-delete-data-in-table.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4752407119283408771/posts/default/3351849158465499703'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4752407119283408771/posts/default/3351849158465499703'/><link rel='alternate' type='text/html' href='http://fpetito.blogspot.com/2010/06/db2-delete-data-in-table.html' title='DB2, delete data in a table'/><author><name>Mr. Fabio</name><uri>http://www.blogger.com/profile/03641437377390899550</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuac1Cksdnx7cnc0sToT8x8_cGGbVoeJx5GASinGmI-_jT-OG9Kqg8JShJm6Ra4rOLp6bJnCqk6zFFZLmEQODhNcDXtriFGSDIn_E4F_kQq77krQWcVtQiWN5MODZ2kYw/s220/me.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4752407119283408771.post-6017855353326130409</id><published>2010-06-08T07:15:00.000-07:00</published><updated>2010-06-08T07:15:32.245-07:00</updated><title type='text'>DB2, changing the datatype of a column (only v9.7)</title><content type='html'>&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;ALTER TABLE &lt;i&gt;customer_info&lt;/i&gt; ALTER COLUMN &lt;i&gt;customer_age&lt;/i&gt; &lt;b&gt;SET DATA TYPE&lt;/b&gt; &lt;i&gt;datatype&lt;/i&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Examples:&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;create table pippo(idpippo decimal(18) not null, cdesc char(20));&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;alter table pippo add primary key (idpippo);&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;insert into pippo values (2,’ciaooo’);&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;ALTER TABLE pippo ALTER COLUMN cdesc SET DATA TYPE varchar(50);&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;ALTER TABLE pippo ALTER COLUMN cdesc SET DATA TYPE varchar(60);&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
You can not go back to CHAR.&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;ALTER TABLE pippo ALTER COLUMN cdesc SET DATA TYPE char(40);&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;KO: Reason code=”23?.. SQLCODE=-20054, SQLSTATE=55019&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;ALTER TABLE pippo ALTER COLUMN idpippo SET DATA TYPE decimal(28);&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;ALTER TABLE pippo ALTER COLUMN idpippo SET DATA TYPE decimal(3);&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
In most cases, &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;ALTER SET DATA TYPE&lt;/span&gt; requires table reorganization (&lt;i&gt;reorg&lt;/i&gt; statement) because it changes the physical row format.</content><link rel='replies' type='application/atom+xml' href='http://fpetito.blogspot.com/feeds/6017855353326130409/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://fpetito.blogspot.com/2010/06/db2-changing-datatype-of-column-only.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4752407119283408771/posts/default/6017855353326130409'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4752407119283408771/posts/default/6017855353326130409'/><link rel='alternate' type='text/html' href='http://fpetito.blogspot.com/2010/06/db2-changing-datatype-of-column-only.html' title='DB2, changing the datatype of a column (only v9.7)'/><author><name>Mr. Fabio</name><uri>http://www.blogger.com/profile/03641437377390899550</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuac1Cksdnx7cnc0sToT8x8_cGGbVoeJx5GASinGmI-_jT-OG9Kqg8JShJm6Ra4rOLp6bJnCqk6zFFZLmEQODhNcDXtriFGSDIn_E4F_kQq77krQWcVtQiWN5MODZ2kYw/s220/me.png'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4752407119283408771.post-4576045100748564614</id><published>2010-06-08T07:10:00.000-07:00</published><updated>2010-06-08T07:10:57.757-07:00</updated><title type='text'>DB2, move to UTF8 from IBM-1252</title><content type='html'>The only way to move to UTF8 from IBM-1252 is to create a new database with UTF8 codeset. Export data from IBM-1252 database and load to the new UTF8 database.&lt;br /&gt;
There are a few things to consider during the ETL exercise:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Length of CHAR columns – You might have to increase the width of CHARACTER columns in your UTF8 database. Depending on the character in your database, the column width can grow between 1-4x.&lt;/li&gt;
&lt;li&gt;Use of String manipulation functions – Because of the difference in character byte length, you will need to take care to make sure that your application will work properly if you are using function such as SUBSTR.&lt;/li&gt;
&lt;li&gt;Collation – On UTF8 databases, DB2 supports binary collation as well as 3 different Unicode Collation Algorithm (UCA) based collations. You may need to investigate a bit to port your applications properly.&lt;/li&gt;
&lt;/ul&gt;</content><link rel='replies' type='application/atom+xml' href='http://fpetito.blogspot.com/feeds/4576045100748564614/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://fpetito.blogspot.com/2010/06/db2-move-to-utf8-from-ibm-1252.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4752407119283408771/posts/default/4576045100748564614'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4752407119283408771/posts/default/4576045100748564614'/><link rel='alternate' type='text/html' href='http://fpetito.blogspot.com/2010/06/db2-move-to-utf8-from-ibm-1252.html' title='DB2, move to UTF8 from IBM-1252'/><author><name>Mr. Fabio</name><uri>http://www.blogger.com/profile/03641437377390899550</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuac1Cksdnx7cnc0sToT8x8_cGGbVoeJx5GASinGmI-_jT-OG9Kqg8JShJm6Ra4rOLp6bJnCqk6zFFZLmEQODhNcDXtriFGSDIn_E4F_kQq77krQWcVtQiWN5MODZ2kYw/s220/me.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4752407119283408771.post-106669396587610949</id><published>2010-06-08T07:07:00.000-07:00</published><updated>2010-06-12T03:55:18.129-07:00</updated><title type='text'>DB2, conversion from DECIMAL value to VARCHAR (without zero)</title><content type='html'>You can perform this conversion using the following syntax:&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;REPLACE( REPLACE( rtrim( ltrim( REPLACE( char(&amp;nbsp; ), &#39;0&#39;, &#39; &#39;))), &#39; &#39;, &#39;0&#39;), &#39;.&#39;, &#39;&#39;)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
In fact, having the following sample table:&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;DESCRIBE TABLE pippo&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;COLUMN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Type&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Type&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; schema&amp;nbsp;&amp;nbsp;&amp;nbsp; name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Length&amp;nbsp;&amp;nbsp; Scale Nulls&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;------------------------------ --------- ------------------ -------- ----- ------&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;IDPIPPO&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SYSIBM&amp;nbsp;&amp;nbsp;&amp;nbsp; DECIMAL&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 18&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 Yes&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;CNUMPIPPO&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SYSIBM&amp;nbsp;&amp;nbsp;&amp;nbsp; VARCHAR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 120&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 Yes&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&amp;nbsp; 2 record(s) selected.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
with a single tuple:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;INSERT INTO pippo VALUES (250,NULL);&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
we can see the difference between a simple cast and the syntax shown above:&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;UPDATE pippo SET CNUMPIPPO = char(idpippo);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;IDPIPPO&amp;nbsp;&amp;nbsp;&amp;nbsp; CNUMPIPPO&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;250&amp;nbsp;&amp;nbsp;&amp;nbsp; 000000000000000250.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
and with some optimizations:&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;UPDATE pippo SET CNUMPIPPO=REPLACE( REPLACE( rtrim( ltrim( REPLACE( char(idpippo), &#39;0&#39;, &#39; &#39;))), &#39; &#39;, &#39;0&#39;), &#39;.&#39;, &#39;&#39;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;IDPIPPO&amp;nbsp;&amp;nbsp;&amp;nbsp; CNUMPIPPO&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;250&amp;nbsp;&amp;nbsp;&amp;nbsp; 250&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
NB: syntax is not used when there are negative values.</content><link rel='replies' type='application/atom+xml' href='http://fpetito.blogspot.com/feeds/106669396587610949/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://fpetito.blogspot.com/2010/06/db2-conversion-from-decimal-value-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4752407119283408771/posts/default/106669396587610949'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4752407119283408771/posts/default/106669396587610949'/><link rel='alternate' type='text/html' href='http://fpetito.blogspot.com/2010/06/db2-conversion-from-decimal-value-to.html' title='DB2, conversion from DECIMAL value to VARCHAR (without zero)'/><author><name>Mr. Fabio</name><uri>http://www.blogger.com/profile/03641437377390899550</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuac1Cksdnx7cnc0sToT8x8_cGGbVoeJx5GASinGmI-_jT-OG9Kqg8JShJm6Ra4rOLp6bJnCqk6zFFZLmEQODhNcDXtriFGSDIn_E4F_kQq77krQWcVtQiWN5MODZ2kYw/s220/me.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4752407119283408771.post-5341727999068007234</id><published>2010-06-08T06:29:00.000-07:00</published><updated>2010-06-08T06:29:14.710-07:00</updated><title type='text'>JDBC connection, syntax for DBMS</title><content type='html'>&lt;b&gt;Oracle Thin&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;oracle.jdbc.driver.OracleDriver&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;jdbc:oracle:thin:@&lt;i&gt;server&lt;/i&gt;&lt;server&gt;[:1521]:&lt;i&gt;sid&lt;database_name&gt;&lt;/database_name&gt;&lt;/i&gt;&lt;/server&gt;&lt;/span&gt;&lt;br /&gt;
More &lt;a href=&quot;http://www.oracle.com/technology/tech/java/sqlj_jdbc/htdocs/jdbc_faq.html&quot;&gt;information&lt;/a&gt;&lt;br /&gt;
download &lt;a href=&quot;http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html&quot;&gt;driver&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;DB2&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;DB2 App (tipo 2)&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;COM.ibm.db2.jdbc.app.DB2Driver&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;jdbc:db2:&lt;i&gt;database name&lt;/i&gt;&lt;dbname&gt;&lt;/dbname&gt;&lt;/span&gt;&lt;br /&gt;
Read the following articles for more information: &lt;a href=&quot;http://www.ibm.com/developerworks/data/library/techarticle/0307zikopoulos/0307zikopoulos.html&quot;&gt;Overview of Java Development on DB2&lt;/a&gt; and &lt;a href=&quot;http://www.ibm.com/developerworks/data/library/techarticle/dm-0512kokkat/&quot;&gt;Understand the DB2 UDB JDBC Universal Driver&lt;/a&gt;&lt;br /&gt;
download &lt;a href=&quot;http://www-01.ibm.com/support/docview.wss?rs=71&amp;amp;uid=swg27007053&quot;&gt;driver&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Description of the connection type 2&lt;/i&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCYAGZrGWRx_4mFya3A1C7o8epz6BPjDSm0b1m4HgYZTZFbBCvMfQXX8GryXXDJ8LFbpSaSgdi_GE1uEeY4Owhgh2y7vgoCdXNTkPH3KYNJRYqmO5VWaTbXDChF9nn4zlri_j3sbxLExHi/s1600/fig2.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCYAGZrGWRx_4mFya3A1C7o8epz6BPjDSm0b1m4HgYZTZFbBCvMfQXX8GryXXDJ8LFbpSaSgdi_GE1uEeY4Owhgh2y7vgoCdXNTkPH3KYNJRYqmO5VWaTbXDChF9nn4zlri_j3sbxLExHi/s320/fig2.gif&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;b&gt;DB2 Jcc (tipo 4)&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;com.ibm.db2.jcc.DB2Driver&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;jdbc:db2://&lt;host&gt;&lt;i&gt;hostname&lt;/i&gt;:&lt;i&gt;port&lt;/i&gt;(50000)&lt;porta&gt;/&lt;i&gt;database name&lt;/i&gt;&lt;dbname&gt;&lt;/dbname&gt;&lt;/porta&gt;&lt;/host&gt;&lt;/span&gt;&lt;br /&gt;
Read the following articles for more information: &lt;a href=&quot;http://www.ibm.com/developerworks/data/library/techarticle/0307zikopoulos/0307zikopoulos.html&quot;&gt;Overview of Java Development on DB2&lt;/a&gt; and &lt;a href=&quot;http://www.ibm.com/developerworks/data/library/techarticle/dm-0512kokkat/&quot;&gt;Understand the DB2 UDB JDBC Universal Driver&lt;/a&gt;&lt;br /&gt;
download &lt;a href=&quot;http://www-01.ibm.com/support/docview.wss?rs=71&amp;amp;uid=swg27007053&quot;&gt;driver &lt;/a&gt;and licence&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;
&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;Description of the connection type 4&lt;/i&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZKLjlaHlSeHAZe9AyRwclpBAodeZpSxDXkK0ngTyMzJxQm2AwJBE0oWvHWxGsG_QyRhOnZruPVNhRran3RO5WUIgvrD1GNZY1GFWXTs-N52gxQA5fww-D2NtqA-8UDvsZ529BT_JsZSE_/s1600/fig4.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZKLjlaHlSeHAZe9AyRwclpBAodeZpSxDXkK0ngTyMzJxQm2AwJBE0oWvHWxGsG_QyRhOnZruPVNhRran3RO5WUIgvrD1GNZY1GFWXTs-N52gxQA5fww-D2NtqA-8UDvsZ529BT_JsZSE_/s320/fig4.gif&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;MySQL&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;com.mysql.jdbc.Driver&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;jdbc:mysql://&lt;hostname&gt;&lt;i&gt;hostname&lt;/i&gt;[:3306]/&lt;i&gt;database name&lt;/i&gt;&lt;dbname&gt;&lt;/dbname&gt;&lt;/hostname&gt;&lt;/span&gt;&lt;br /&gt;
download &lt;a href=&quot;http://dev.mysql.com/downloads/connector/j/3.1.html&quot;&gt;driver&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;MSSQL Server 2005&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;com.microsoft.sqlserver.jdbc.SQLServerDriver&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;jdbc:microsoft:sqlserver://&lt;server_name&gt;&lt;i&gt;hostname&lt;/i&gt;:1433;&lt;/server_name&gt;&lt;/span&gt;&lt;br /&gt;
More &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ms378672%28v=SQL.90%29.aspx&quot;&gt;information&lt;/a&gt;&lt;br /&gt;
download &lt;a href=&quot;http://www.microsoft.com/downloads/details.aspx?familyid=e22bc83b-32ff-4474-a44a-22b6ae2c4e17&amp;amp;displaylang=en&quot;&gt;driver&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;ODBC Bridge&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;sun.jdbc.odbc.JdbcOdbcDriver&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;jdbc:odbc:&lt;i&gt;odbc name&lt;/i&gt;&lt;alias&gt;&lt;/alias&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://fpetito.blogspot.com/feeds/5341727999068007234/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://fpetito.blogspot.com/2010/06/jdbc-connection-syntax-for-dbms.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4752407119283408771/posts/default/5341727999068007234'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4752407119283408771/posts/default/5341727999068007234'/><link rel='alternate' type='text/html' href='http://fpetito.blogspot.com/2010/06/jdbc-connection-syntax-for-dbms.html' title='JDBC connection, syntax for DBMS'/><author><name>Mr. Fabio</name><uri>http://www.blogger.com/profile/03641437377390899550</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuac1Cksdnx7cnc0sToT8x8_cGGbVoeJx5GASinGmI-_jT-OG9Kqg8JShJm6Ra4rOLp6bJnCqk6zFFZLmEQODhNcDXtriFGSDIn_E4F_kQq77krQWcVtQiWN5MODZ2kYw/s220/me.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCYAGZrGWRx_4mFya3A1C7o8epz6BPjDSm0b1m4HgYZTZFbBCvMfQXX8GryXXDJ8LFbpSaSgdi_GE1uEeY4Owhgh2y7vgoCdXNTkPH3KYNJRYqmO5VWaTbXDChF9nn4zlri_j3sbxLExHi/s72-c/fig2.gif" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4752407119283408771.post-296292818133482908</id><published>2010-06-08T06:05:00.000-07:00</published><updated>2010-06-08T06:05:32.578-07:00</updated><title type='text'>DB2 and jdbc, how solve slow reading of metadata</title><content type='html'>Connecting to the database as instance administrator and run the command:&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;BIND db2schema.bnd BLOCKING ALL GRANT PUBLIC&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://fpetito.blogspot.com/feeds/296292818133482908/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://fpetito.blogspot.com/2010/06/db2-and-jdbc-how-solve-slow-reading-of.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4752407119283408771/posts/default/296292818133482908'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4752407119283408771/posts/default/296292818133482908'/><link rel='alternate' type='text/html' href='http://fpetito.blogspot.com/2010/06/db2-and-jdbc-how-solve-slow-reading-of.html' title='DB2 and jdbc, how solve slow reading of metadata'/><author><name>Mr. Fabio</name><uri>http://www.blogger.com/profile/03641437377390899550</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuac1Cksdnx7cnc0sToT8x8_cGGbVoeJx5GASinGmI-_jT-OG9Kqg8JShJm6Ra4rOLp6bJnCqk6zFFZLmEQODhNcDXtriFGSDIn_E4F_kQq77krQWcVtQiWN5MODZ2kYw/s220/me.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4752407119283408771.post-8950682109905960887</id><published>2010-06-08T05:59:00.000-07:00</published><updated>2010-06-08T05:59:48.972-07:00</updated><title type='text'>CAST function to convert string to numeric value</title><content type='html'>Through the SQL statements, we learn to handle strings as numeric values:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;create table pippo (id varchar(50));&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;delete from pippo;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;insert into pippo values (&#39;1223430&#39;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;insert into pippo values (&#39;300030&#39;);&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;DB2&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;select * from pippo order by &lt;b&gt;integer&lt;/b&gt;(id); &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;MySQL&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;select * from pippo order by &lt;b&gt;cast&lt;/b&gt;(id as decimal);&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Oracle&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;select * from pippo order by &lt;b&gt;to_number&lt;/b&gt;(id);&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://fpetito.blogspot.com/feeds/8950682109905960887/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://fpetito.blogspot.com/2010/06/cast-function-to-convert-string-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4752407119283408771/posts/default/8950682109905960887'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4752407119283408771/posts/default/8950682109905960887'/><link rel='alternate' type='text/html' href='http://fpetito.blogspot.com/2010/06/cast-function-to-convert-string-to.html' title='CAST function to convert string to numeric value'/><author><name>Mr. Fabio</name><uri>http://www.blogger.com/profile/03641437377390899550</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuac1Cksdnx7cnc0sToT8x8_cGGbVoeJx5GASinGmI-_jT-OG9Kqg8JShJm6Ra4rOLp6bJnCqk6zFFZLmEQODhNcDXtriFGSDIn_E4F_kQq77krQWcVtQiWN5MODZ2kYw/s220/me.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4752407119283408771.post-5528956629491976552</id><published>2010-06-08T05:24:00.000-07:00</published><updated>2010-06-08T05:24:52.198-07:00</updated><title type='text'>How to Revise an Email So That People Will Read It</title><content type='html'>I found a very interesting article, I hope you like it. The author is &lt;a href=&quot;http://blogs.harvardbusiness.org/silverman/&quot; rel=&quot;nofollow&quot;&gt;David  Silverman&lt;/a&gt;,  a famous business writing teacher.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;How to Revise an Email So That People Will Read It&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&quot;People think that the first draft is the big event and that revision is  cleaning up afterward. But the first draft is really setting up the  chairs, tables, and cups, and revision isn&#39;t cleaning up after the  party, it is the party.&quot;&lt;br /&gt;
&lt;br /&gt;
&quot;All first drafts are terrible. I don&#39;t care if you&#39;re Hemingway.&quot;&lt;br /&gt;
&lt;br /&gt;
&quot;What comes out unfiltered from anyone&#39;s mind is mud.&quot;&lt;br /&gt;
&lt;br /&gt;
The first two quotations come from writing professors whose names I&#39;ve  since forgotten (and they were quoting other people whom they&#39;d  forgotten). The last one is one I just made up myself. But regardless of  the source, the advice is sound: no email should be clicked-to-send  without revision.&lt;br /&gt;
&lt;br /&gt;
I&#39;ve found that for your average email, the number of revisions largely  depends on the number of recipients. Here&#39;s my experience:&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;    1 to 5 recipients = 2 to 4 revisions&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt; &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;    5 to 10 recipients = 8 to 12 revisions&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt; &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;    Company-wide or to Executive Committee = 30 to 50 revisions&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Even the simplest missive to one person benefits from a couple of extra  passes, and if it&#39;s going to the management committee, expect everyone  to have changes (and changes to those changes).&lt;br /&gt;
&lt;br /&gt;
Here&#39;s a checklist to consider when revising:&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;&lt;b&gt;Delete redundancies.&lt;/b&gt; &lt;strike&gt;Say it once. That&#39;s enough.&lt;/strike&gt;  If you&#39;re repetitive, the reader will stop reading and start skimming.  (Like you probably just did.)&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Use numbers and specifics  instead of adverbs and adjectives.&lt;/b&gt;  &quot;The project is currently way behind schedule on major tasks,&quot; is not as  clear as &quot;The project is 3 weeks late delivering hamburger buns to Des  Moines.&quot; (If you don&#39;t have numbers, still get rid of the adverbs and  adjectives.)&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Add missing context.&lt;/b&gt; Does your reader know  that hamburger  buns in Iowa are required for the company to collect $37 million? If  you&#39;re not sure, remind them.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Focus on the strongest  argument.&lt;/b&gt; Should those hamburger buns  get shipped because the delay is embarrassing for the company, because  it&#39;s costing children their lunch, or because it&#39;s costing the company  tens of millions of dollars? Maybe all three, but one of those reasons  (and it depends on your reader) will be enough to get buns on the road.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Delete  off-topic material.&lt;/b&gt; The best emails say one thing and  say it clearly. One-subject emails also make it easier for the recipient  to file the message once they&#39;ve taken action, something anyone who  uses Outlook to manage tasks appreciates.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Seek out  equivocation and remove it.&lt;/b&gt; &quot;It was the best of  times, it was the worst of times&quot; works for Dickens, not status reports.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Kill  your favorites.&lt;/b&gt; Is something in your text particularly  pithy, amusing, or clever? Chances are, it&#39;s not. If it sticks out, it&#39;s  probably a tap-dancing gorilla in boxer shorts — hilarious when you  thought of it, embarrassing when it gets in your manager&#39;s inbox.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Delete  anything written in the heat of emotion.&lt;/b&gt; Will this  sentence show them who&#39;s been right about the hamburger buns since the  beginning? Yes? Cut it.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Shorten.&lt;/b&gt; Remember the reader  struggling to digest your  message on the run — a BlackBerry or an iPhone gets about 40 words per  screen. What looks short on your desktop monitor is an epic epistle on  their mobile device.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Give it a day.&lt;/b&gt; With time, what  seemed so urgent may no longer  need to be said. And one less email is something everyone will thank  you for.&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
Do you agree that even late-night emails sent from the bar should be  revised before sending? (Have you ever seen one the next day?) Have you  bravely sent something unrevised only to have it come flying back at  you? What&#39;s your best advice for revising?&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://blogs.harvardbusiness.org/silverman/2009/04/how-to-revise-an-email-so-that.html&quot; rel=&quot;nofollow&quot;&gt;Here&lt;/a&gt;  you will find the original version.</content><link rel='replies' type='application/atom+xml' href='http://fpetito.blogspot.com/feeds/5528956629491976552/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://fpetito.blogspot.com/2010/06/how-to-revise-email-so-that-people-will.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4752407119283408771/posts/default/5528956629491976552'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4752407119283408771/posts/default/5528956629491976552'/><link rel='alternate' type='text/html' href='http://fpetito.blogspot.com/2010/06/how-to-revise-email-so-that-people-will.html' title='How to Revise an Email So That People Will Read It'/><author><name>Mr. Fabio</name><uri>http://www.blogger.com/profile/03641437377390899550</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuac1Cksdnx7cnc0sToT8x8_cGGbVoeJx5GASinGmI-_jT-OG9Kqg8JShJm6Ra4rOLp6bJnCqk6zFFZLmEQODhNcDXtriFGSDIn_E4F_kQq77krQWcVtQiWN5MODZ2kYw/s220/me.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4752407119283408771.post-285604564563541580</id><published>2010-06-08T05:20:00.000-07:00</published><updated>2010-06-08T05:20:49.066-07:00</updated><title type='text'>Improving LOAD performance</title><content type='html'>Example of a LOAD instruction (small table with 219146 rows) and related costs:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;LOAD FROM table.ixf of ixf INSERT INTO table;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
The utility is beginning the &quot;LOAD&quot; phase at time 11:28:37.789940&lt;br /&gt;
The utility has finished the &quot;LOAD&quot; phase at time 11:29:09.774459&lt;br /&gt;
&lt;b&gt;Total:&lt;/b&gt; about 32 sec.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;LOAD FROM table.ixf of ixf SAVECOUNT 200000 INSERT INTO table DATA BUFFER 5000 &lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;SORT BUFFER 768 CPU_PARALLELISM 4;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
The utility is beginning the &quot;LOAD&quot; phase at time 11:50:08.747113&lt;br /&gt;
The utility has finished the &quot;LOAD&quot; phase at time 11:50:29.627021&lt;br /&gt;
&lt;b&gt;Total:&lt;/b&gt; about 21 sec.&lt;br /&gt;
&lt;br /&gt;
Now we study the parameters that have influenced results:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;CPU_PARALLELISM&lt;/b&gt;&lt;br /&gt;
Use this parameter to exploit intra-partition parallelism (if this is part of your machine’s capability), and significantly improve load performance. The parameter specifies the number of processes or threads used by the load utility to parse, convert, and format data records. The maximum number allowed is 30. If there is insufficient memory to support the specified value, the utility adjusts the value. If this parameter is not specified, the load utility selects a default value that is based on the number of CPUs on the system.&lt;br /&gt;
Record order in the source data is preserved regardless of the value of this parameter.&lt;br /&gt;
If tables include either LOB or LONG VARCHAR data, CPU_PARALLELISM is set to one. Parallelism is not supported in this case.&lt;br /&gt;
Although use of this parameter is not restricted to symmetric multiprocessor (SMP) hardware, you may not obtain any discernible performance benefit from using it in non-SMP environments.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;DATA BUFFER&lt;/b&gt;&lt;br /&gt;
The DATA BUFFER parameter specifies the total amount of memory allocated to the load utility as a buffer. It is recommended that this buffer be several extents in size. An extent is the unit of movement for data within DB2, and the extent size can be one or more 4KB pages. The DATA BUFFER parameter is useful when working with large objects (LOBs); it reduces I/O waiting time. The data buffer is allocated from the utility heap. Depending on the amount of storage available on your system, you should consider allocating more memory for use by the DB2(R) utilities. The database configuration parameter util_heap_sz can be modified accordingly. The default value for the Utility Heap Size configuration parameter is 5 000 4KB pages. Because load is only one of several utilities that use memory from the utility heap, it is recommended that no more than fifty percent of the pages defined by this parameter be available for the load utility, and that the utility heap be defined large enough.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;SORT BUFFER&lt;/b&gt;&lt;br /&gt;
This option specifies a value that overrides the sortheap database configuration parameter during a load operation. It is relevant only when loading tables with indexes and only when the INDEXING MODE parameter is not specified as DEFERRED. The value that is specified cannot exceed the value of sortheap. This parameter is useful for throttling the sort memory that is used when loading tables with many indexes without changing the value of sortheap, which would also affect general query processing.</content><link rel='replies' type='application/atom+xml' href='http://fpetito.blogspot.com/feeds/285604564563541580/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://fpetito.blogspot.com/2010/06/improving-load-performance.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4752407119283408771/posts/default/285604564563541580'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4752407119283408771/posts/default/285604564563541580'/><link rel='alternate' type='text/html' href='http://fpetito.blogspot.com/2010/06/improving-load-performance.html' title='Improving LOAD performance'/><author><name>Mr. Fabio</name><uri>http://www.blogger.com/profile/03641437377390899550</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuac1Cksdnx7cnc0sToT8x8_cGGbVoeJx5GASinGmI-_jT-OG9Kqg8JShJm6Ra4rOLp6bJnCqk6zFFZLmEQODhNcDXtriFGSDIn_E4F_kQq77krQWcVtQiWN5MODZ2kYw/s220/me.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4752407119283408771.post-3972316563608892523</id><published>2010-06-08T03:32:00.000-07:00</published><updated>2010-06-08T05:16:38.385-07:00</updated><title type='text'>Install DB2 Express-C in silent mode on Linux</title><content type='html'>This article teaches you the basics of how install, in silent mode and without X Server, &lt;b&gt;DB2 Express-C&lt;/b&gt; with the support of the official guide and other authoritative documents.&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;Copy the installation tar &lt;a href=&quot;http://www-01.ibm.com/software/data/db2/express/download.html?S_TACT=index&amp;amp;S_CMP=expcsite&quot;&gt;file&lt;/a&gt; (my favorite mode to do this is through &lt;a href=&quot;http://winscp.net/&quot;&gt;WinScp&lt;/a&gt; and &lt;a href=&quot;http://www.chiark.greenend.org.uk/%7Esgtatham/putty/&quot;&gt;Putty&lt;/a&gt;) and login as &lt;i&gt;root&lt;/i&gt; on server.&lt;/li&gt;
&lt;li&gt;Before start check if there are all prerequisites (they can have different names in other Linux distribution): &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;compat-libstdc++&lt;/span&gt;, &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;nfs-utils&lt;/span&gt;, &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;libaio1&lt;/span&gt;, &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;ksh&lt;/span&gt;, &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;libstdc++5&lt;/span&gt;.&lt;/li&gt;
&lt;li&gt;Now, after you have unpacked the archive containing the installation files (&quot;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;tar -xvf&lt;/span&gt;&quot; and/or &quot;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;gunzip&lt;/span&gt;&quot;), run the following statement:&lt;/li&gt;
&lt;/ol&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;./db2_install&lt;/div&gt;&lt;ol&gt;&lt;li value=&quot;4&quot;&gt;As DB2 server has machine level authentication, now it&#39;s time to create every groups and users that we need:&lt;/li&gt;
&lt;/ol&gt;Groups:&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;/usr/sbin/groupadd -g 999 db2iadm1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;/usr/sbin/groupadd -g 998 db2fadm1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;/usr/sbin/groupadd -g 997 dasadm1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;/usr/sbin/groupadd -g 1000 db2dev&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Users:&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;/usr/sbin/useradd -g db2grp1 -m -d /home/db2inst1 db2inst1 -p db2inst1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;/usr/sbin/useradd -g db2fgrp1 -m -d /home/db2fenc1 db2fenc1 -p db2fenc1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;/usr/sbin/useradd -g dasadm1 -m -d /home/dasusr1 dasusr1 -p dasusr1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;/usr/sbin/useradd -g db2dev -m -d /home/db2user db2user –p db2user&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
It&#39;s necessary to verified the password:&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;passwd db2inst1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;passwd db2fenc1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;passwd dasusr1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;passwd db2user&lt;/span&gt;&lt;br /&gt;
&lt;ol&gt;&lt;li value=&quot;5&quot;&gt;Instance creation: &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;db2icrt -a SERVER -p 50000 -s wse -u db2fenc1 db2inst1&lt;/span&gt;&lt;/li&gt;
&lt;li value=&quot;6&quot;&gt; Das user creation: &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;dascrt -u dasusr1&lt;/span&gt;&lt;/li&gt;
&lt;li value=&quot;7&quot;&gt;Verify default shell used by DB2 users:&lt;/li&gt;
&lt;/ol&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;vi /etc/passwd&lt;/div&gt;&lt;br /&gt;
&lt;b&gt;From:&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;db2inst1:x:1001:1001::/home/db2inst1:/bin/sh&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;db2fenc1:x:1002:1002::/home/db2fenc1:/bin/sh&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;dasusr1:x:1003:1003::/home/dasusr1:/bin/sh&lt;/div&gt;&lt;br /&gt;
&lt;b&gt;to:&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;db2inst1:x:1001:1001::/home/db2inst1:/bin/bash&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;db2fenc1:x:1002:1002::/home/db2fenc1:/bin/bash&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;dasusr1:x:1003:1003::/home/dasusr1:/bin/bash&lt;/div&gt;&lt;ol&gt;&lt;li value=&quot;8&quot;&gt;Enabling remote administration as &lt;i&gt;root &lt;/i&gt;user:&lt;/li&gt;
&lt;/ol&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;vi /etc/services&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
and add following lines:&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;ibm-db2 523/tcp # IBM DB2 DAS&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;ibm-db2 523/udp # IBM DB2 DAS&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;db2c_db2inst1 50000/tcp # IBM DB2 instance - db2inst1&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;as db2inst1 (instance administrator):&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;db2 update dbm cfg using SVCENAME db2c_db2inst1&lt;br /&gt;
db2set DB2COMM=tcpip&lt;br /&gt;
db2stop&lt;br /&gt;
db2start&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;and as &lt;i&gt;dasusr1 &lt;/i&gt;(administration user):&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;db2admin stop&lt;br /&gt;
db2admin start&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;ol style=&quot;font-family: inherit;&quot;&gt;&lt;li value=&quot;9&quot;&gt;Instance automatically startup, as &lt;i&gt;db2inst1&lt;/i&gt;:&lt;/li&gt;
&lt;/ol&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;db2set DB2AUTOSTART=YES&lt;/div&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;as &lt;i&gt;root&lt;/i&gt;:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;vi /etc/init.d/db2&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;and put following lines:&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;#!/bin/bash&lt;br /&gt;
#&lt;br /&gt;
# Script to start DB2 instances on bootup.&lt;br /&gt;
#&lt;br /&gt;
set -e&lt;br /&gt;
. /lib/lsb/init-functions&lt;br /&gt;
case &quot;$1&quot; in&lt;br /&gt;
start)&lt;br /&gt;
/opt/ibm/db2/version/instance/db2istrt&lt;br /&gt;
;;&lt;br /&gt;
stop|restart|reload)&lt;br /&gt;
;;&lt;br /&gt;
esac&lt;br /&gt;
exit 0&lt;/div&gt;&lt;ol style=&quot;font-family: inherit;&quot;&gt;&lt;li value=&quot;10&quot;&gt;Admin manager automatically startup:&lt;/li&gt;
&lt;/ol&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;as root:&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;vi /etc/rc.local&lt;/span&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt; and put following lines:&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;su dasusr1 -c /home/dasusr1/script/startadmin.sh&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;exit 0&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;as &lt;/span&gt;&lt;i style=&quot;font-family: inherit;&quot;&gt;dasusr1&lt;/i&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;vi /home/dasusr1/script/startadmin.sh&lt;/span&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt; and put following lines:&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;#!/bin/sh&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;# The following three lines have been added by UDB DB2.&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;if [ -f /home/dasusr1/das/dasprofile ]; then&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;. /home/dasusr1/das/dasprofile&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;fi&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;db2admin start&lt;/span&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt; after:&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;chmod 777 /home/dasusr1/script/startadmin.sh&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;ol style=&quot;font-family: inherit;&quot;&gt;&lt;li value=&quot;11&quot;&gt;Optimizing the Linux kernel by editing the configuration (/etc/sysctl.conf) through the rules of &lt;a href=&quot;http://www.ibm.com/developerworks/data/library/techarticle/dm-0406qi/&quot;&gt;document&lt;/a&gt; &quot;The DB2 UDB memory model&quot; in &lt;b&gt;DeveloperWorks&lt;/b&gt;, beautiful web site:&lt;/li&gt;
&lt;/ol&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt; vi /etc/sysctl.conf&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt; Example 64 bit achitecture with 2G of RAM (please look &quot;Tuning and Monitoring Database System Performance&quot; &lt;/span&gt;&lt;a href=&quot;http://www.ibm.com/developerworks/data/bestpractices/systemperformance/&quot; style=&quot;font-family: inherit;&quot;&gt;redbook&lt;/a&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;):&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;kernel.sem=250 256000 32 1024&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt; kernel.shmmni=4096&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt; kernel.shmmax=1610612736&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt; kernel.shmall=1932735283&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt; kernel.msgmni=1024&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt; kernel.msgmax=65536&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt; kernel.msgmnb=65536&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;ol&gt;&lt;li value=&quot;12&quot;&gt;Instance environment configuration, as &lt;i&gt;db2inst1&lt;/i&gt;:&lt;/li&gt;
&lt;/ol&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;vi .bashrc&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;and put following lines:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;# some more ls aliases&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;alias ll=&#39;ls -l&#39;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;alias la=&#39;ls -A&#39;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;alias l=&#39;ls -CF&#39;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;export PATH=/home/db2inst1/scripts:$PATH&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;export DB2CODEPAGE=1252&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;after:&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;vi  /home/db2inst1/sqllib/db2profile&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;and put following lines:&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;export  DB2CODEPAGE=1252&lt;/span&gt; (or your code page)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;and as root:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;vi /etc/profile&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;and put following lines:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;DB2INSTANCE=db2inst1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;export DB2INSTANCE&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;INSTHOME=/home/db2inst1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;export DB2CODEPAGE=1252 &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;ol&gt;&lt;/ol&gt;</content><link rel='replies' type='application/atom+xml' href='http://fpetito.blogspot.com/feeds/3972316563608892523/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://fpetito.blogspot.com/2010/06/install-db2-express-c-in-silent-mode-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4752407119283408771/posts/default/3972316563608892523'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4752407119283408771/posts/default/3972316563608892523'/><link rel='alternate' type='text/html' href='http://fpetito.blogspot.com/2010/06/install-db2-express-c-in-silent-mode-on.html' title='Install DB2 Express-C in silent mode on Linux'/><author><name>Mr. Fabio</name><uri>http://www.blogger.com/profile/03641437377390899550</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuac1Cksdnx7cnc0sToT8x8_cGGbVoeJx5GASinGmI-_jT-OG9Kqg8JShJm6Ra4rOLp6bJnCqk6zFFZLmEQODhNcDXtriFGSDIn_E4F_kQq77krQWcVtQiWN5MODZ2kYw/s220/me.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4752407119283408771.post-427641876503943544</id><published>2010-06-08T02:39:00.000-07:00</published><updated>2010-06-08T02:39:00.740-07:00</updated><title type='text'>DB2 CLP, How to turn autocommit off</title><content type='html'>By default DB2 uses &lt;i&gt;&lt;span style=&quot;background-color: white;&quot;&gt;autocommit&lt;/span&gt;&lt;/i&gt;, but you can disable it executing the &quot;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;update command options&lt;/span&gt;&quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Disable autocommit&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;update command options using c off&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
commit&lt;/div&gt;&lt;br /&gt;
&lt;b&gt;Enable autocommit&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;update command options using c on&lt;/div&gt;&lt;br /&gt;
If executed from command line put all statements in a file and execute with:&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;db2 -tv +c -f filename&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://fpetito.blogspot.com/feeds/427641876503943544/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://fpetito.blogspot.com/2010/06/db2-clp-how-to-turn-autocommit-off.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4752407119283408771/posts/default/427641876503943544'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4752407119283408771/posts/default/427641876503943544'/><link rel='alternate' type='text/html' href='http://fpetito.blogspot.com/2010/06/db2-clp-how-to-turn-autocommit-off.html' title='DB2 CLP, How to turn autocommit off'/><author><name>Mr. Fabio</name><uri>http://www.blogger.com/profile/03641437377390899550</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuac1Cksdnx7cnc0sToT8x8_cGGbVoeJx5GASinGmI-_jT-OG9Kqg8JShJm6Ra4rOLp6bJnCqk6zFFZLmEQODhNcDXtriFGSDIn_E4F_kQq77krQWcVtQiWN5MODZ2kYw/s220/me.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4752407119283408771.post-3438014943121933732</id><published>2010-06-08T02:29:00.000-07:00</published><updated>2010-06-08T02:30:31.967-07:00</updated><title type='text'>Install DB2 Client in silent mode on Linux</title><content type='html'>Please follow the steps below to install the DB2 Client v9.7 in silent mode:&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;Copy the installer into the directory you want on the server used. You can visit the IBM&#39;s &lt;a href=&quot;http://www.ibm.com/products/finder/us/finders?Ne=5000000&amp;amp;finderN=1000188&amp;amp;pg=ddfinder&amp;amp;collectionN=0&amp;amp;sid=685720101275988542465&amp;amp;cm_re=other-_-suprcn-_-download&amp;amp;cc=us&amp;amp;lc=en&amp;amp;oldC1=5000002&amp;amp;tmpl=%2Fproducts%2Ffinder%2Fus%2Fen%2Ffinders&amp;amp;C1=5000002&amp;amp;C2=5000049&amp;amp;ibm-go.x=15&amp;amp;ibm-go.y=4#dropdowns&quot;&gt;website&lt;/a&gt; and find &lt;b&gt;Data Server Client&lt;/b&gt; and &lt;b&gt;Data Server Driver Package&lt;/b&gt; (optional, this package contains drivers and libraries for various programming language environments).&lt;/li&gt;
&lt;li&gt;Follow carefully the paragraphs concerning the prerequisites to install. Read the document on IBM &lt;a href=&quot;http://publib.boulder.ibm.com/infocenter/db2luw/v9r7/index.jsp?topic=/com.ibm.db2.luw.qb.server.doc/doc/r0025127.html&quot;&gt;InfoCenter&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&amp;nbsp;Create the necessary users:&lt;/li&gt;
&lt;/ol&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;/usr/sbin/groupadd db2iadm1&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;/usr/sbin/useradd -g db2iadm1 -m -d /home/db2inst1 db2inst1 -p db2inst1&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
change the environment depending on the Linux distribution used. For example, Ubuntu uses bash so:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;db2inst1:x:1003:1005::/home/db2inst1:/bin/sh&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
to:&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;db2inst1:x:1003:1005::/home/db2inst1:/bin/bash&lt;/span&gt;&lt;/span&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;&lt;li value=&quot;4&quot;&gt;You can find the samples of &lt;i&gt;response file&lt;/i&gt; necessary to start-up the installer with -r option enabled on &lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;/&lt;i&gt;path&lt;/i&gt;/client/db2/linux/samples&lt;/span&gt;&lt;/span&gt;. After you can execute:&lt;/li&gt;
&lt;/ol&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;./db2setup -r path/db2client.rsp&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
before to execute it you should edit the file and change follow parameters:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;LIC_AGREEMENT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = ACCEPT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ** ACCEPT or DECLINE&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;db2inst1.NAME&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = db2inst1&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;db2inst1.GROUP_NAME&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = db2iadm1&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;db2inst1.HOME_DIRECTORY&amp;nbsp;&amp;nbsp; = /home/db2inst1&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;db2inst1.PASSWORD&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = password&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://fpetito.blogspot.com/feeds/3438014943121933732/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://fpetito.blogspot.com/2010/06/install-db2-client-in-silent-mode-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4752407119283408771/posts/default/3438014943121933732'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4752407119283408771/posts/default/3438014943121933732'/><link rel='alternate' type='text/html' href='http://fpetito.blogspot.com/2010/06/install-db2-client-in-silent-mode-on.html' title='Install DB2 Client in silent mode on Linux'/><author><name>Mr. Fabio</name><uri>http://www.blogger.com/profile/03641437377390899550</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuac1Cksdnx7cnc0sToT8x8_cGGbVoeJx5GASinGmI-_jT-OG9Kqg8JShJm6Ra4rOLp6bJnCqk6zFFZLmEQODhNcDXtriFGSDIn_E4F_kQq77krQWcVtQiWN5MODZ2kYw/s220/me.png'/></author><thr:total>0</thr:total></entry></feed>