<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>N.Paital&#039;s CSQL Webblog</title>
	<atom:link href="http://niharpaitalcsql.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://niharpaitalcsql.wordpress.com</link>
	<description>If you have performance problems with database, CSQL solves it without much code changes to your existing application.  Visit_all_the_links_for_find_more_info_about_Caching.</description>
	<lastBuildDate>Thu, 22 Sep 2011 17:45:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='niharpaitalcsql.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/4740235904f727d403f85517c5d97ee3?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>N.Paital&#039;s CSQL Webblog</title>
		<link>http://niharpaitalcsql.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://niharpaitalcsql.wordpress.com/osd.xml" title="N.Paital&#039;s CSQL Webblog" />
	<atom:link rel='hub' href='http://niharpaitalcsql.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Show Cached Table Information in CSQL</title>
		<link>http://niharpaitalcsql.wordpress.com/2009/10/24/show-cached-table-information-in-csql/</link>
		<comments>http://niharpaitalcsql.wordpress.com/2009/10/24/show-cached-table-information-in-csql/#comments</comments>
		<pubDate>Sat, 24 Oct 2009 07:49:23 +0000</pubDate>
		<dc:creator>niharcsql</dc:creator>
				<category><![CDATA[CSQL]]></category>
		<category><![CDATA[caching]]></category>
		<category><![CDATA[csql cache]]></category>
		<category><![CDATA[data caching]]></category>
		<category><![CDATA[Mysql cache]]></category>
		<category><![CDATA[table caching]]></category>

		<guid isPermaLink="false">http://niharpaitalcsql.wordpress.com/?p=283</guid>
		<description><![CDATA[Cache Table Information The -S option is used to get the cache table information. If it is used with any specific table name, which has been cached, then only that table information will be displayed. $cachetable -U root -P manager -S $cachetable -U root -P manager -t &#60;TableName&#62; -S Example: $ cachetable -t t1 -c [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=niharpaitalcsql.wordpress.com&amp;blog=4786654&amp;post=283&amp;subd=niharpaitalcsql&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Cache Table Information</strong><br />
The -S option is used to get the cache table information. If it is used with any specific table name, which has been cached, then only that table information will be displayed.<br />
$cachetable -U root -P manager -S<br />
$cachetable -U root -P manager -t &lt;TableName&gt; -S</p>
<p>Example:</p>
<p><strong><span style="color:#333300;">$ cachetable -t t1 -c &#8220;f1&lt;=2&#8243;;<br />
</span></strong></p>
<p><strong><span style="color:#333300;">$ cachetable -S</span></strong></p>
<p><img class="alignleft size-full wp-image-284" title="cache_table_info" src="http://niharpaitalcsql.files.wordpress.com/2009/10/cache_table_info.jpg?w=450" alt="cache_table_info"   /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/niharpaitalcsql.wordpress.com/283/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/niharpaitalcsql.wordpress.com/283/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/niharpaitalcsql.wordpress.com/283/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/niharpaitalcsql.wordpress.com/283/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/niharpaitalcsql.wordpress.com/283/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/niharpaitalcsql.wordpress.com/283/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/niharpaitalcsql.wordpress.com/283/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/niharpaitalcsql.wordpress.com/283/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/niharpaitalcsql.wordpress.com/283/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/niharpaitalcsql.wordpress.com/283/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/niharpaitalcsql.wordpress.com/283/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/niharpaitalcsql.wordpress.com/283/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/niharpaitalcsql.wordpress.com/283/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/niharpaitalcsql.wordpress.com/283/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=niharpaitalcsql.wordpress.com&amp;blog=4786654&amp;post=283&amp;subd=niharpaitalcsql&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://niharpaitalcsql.wordpress.com/2009/10/24/show-cached-table-information-in-csql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f4051ee189f970200d2577aac6620d73?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Papu</media:title>
		</media:content>

		<media:content url="http://niharpaitalcsql.files.wordpress.com/2009/10/cache_table_info.jpg" medium="image">
			<media:title type="html">cache_table_info</media:title>
		</media:content>
	</item>
		<item>
		<title>&#8220;cache table&#8221; caches tables through interactive csql tool</title>
		<link>http://niharpaitalcsql.wordpress.com/2009/10/23/cache-table-caches-tables-through-interactive-csql-tool/</link>
		<comments>http://niharpaitalcsql.wordpress.com/2009/10/23/cache-table-caches-tables-through-interactive-csql-tool/#comments</comments>
		<pubDate>Fri, 23 Oct 2009 12:37:07 +0000</pubDate>
		<dc:creator>niharcsql</dc:creator>
				<category><![CDATA[CSQL]]></category>
		<category><![CDATA[caching]]></category>
		<category><![CDATA[csql cache]]></category>
		<category><![CDATA[data caching]]></category>
		<category><![CDATA[Mysql cache]]></category>
		<category><![CDATA[table caching]]></category>

		<guid isPermaLink="false">http://niharpaitalcsql.wordpress.com/?p=279</guid>
		<description><![CDATA[cachetable tool worked at command prompt for all caching purposes. Programmatically, using SQL, JDBC and ODBC interfaces, cache statements can be executed to give flexibility to the application developer and also for administrator to cache the table and do any caching related operations. Syntax: Cache a table CACHE TABLE &#60;Table Name&#62; [ CONDITION "&#60;Record Condition [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=niharpaitalcsql.wordpress.com&amp;blog=4786654&amp;post=279&amp;subd=niharpaitalcsql&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>cachetable</strong> tool worked at command prompt for all caching purposes. Programmatically, using SQL, JDBC and ODBC interfaces, cache statements can be executed to give flexibility to the application developer and also for administrator to cache the table and do any caching related operations.</p>
<p>Syntax: Cache a table</p>
<p>CACHE TABLE &lt;Table Name&gt;<br />
[ CONDITION "&lt;Record Condition &gt;"<br />
FIELDLIST "&lt;Field Condition&gt;"<br />
PK &lt;Field Name&gt;  DIRECT<br />
DSN &lt;Dsn Name&gt;  NO SCHEMA] ;</p>
<p>Syntax: Uncache a table</p>
<p>UNCACHE TABLE &lt;Table Name&gt;;</p>
<p>Examples: cache a table</p>
<p>The below statement will cache a table.</p>
<p>CSQL&gt;cache table t1;</p>
<p>Example: Uncache a table</p>
<p>CSQL&gt;uncache table t1;</p>
<p>Example: cache a table with condition The below command is record level caching.</p>
<p>CSQL&gt;cache table t1 condition “f1=10”;</p>
<p>Example 4: cache table with selected fields.</p>
<p>CSQL&gt;cache table t1 FIELDLIST “f1,f2” ;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/niharpaitalcsql.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/niharpaitalcsql.wordpress.com/279/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/niharpaitalcsql.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/niharpaitalcsql.wordpress.com/279/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/niharpaitalcsql.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/niharpaitalcsql.wordpress.com/279/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/niharpaitalcsql.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/niharpaitalcsql.wordpress.com/279/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/niharpaitalcsql.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/niharpaitalcsql.wordpress.com/279/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/niharpaitalcsql.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/niharpaitalcsql.wordpress.com/279/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/niharpaitalcsql.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/niharpaitalcsql.wordpress.com/279/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=niharpaitalcsql.wordpress.com&amp;blog=4786654&amp;post=279&amp;subd=niharpaitalcsql&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://niharpaitalcsql.wordpress.com/2009/10/23/cache-table-caches-tables-through-interactive-csql-tool/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f4051ee189f970200d2577aac6620d73?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Papu</media:title>
		</media:content>
	</item>
		<item>
		<title>csqltable.conf file plays an important role in Csql-Cache</title>
		<link>http://niharpaitalcsql.wordpress.com/2009/10/22/csqltable-conf-file-plays-an-important-role-in-csql-cache/</link>
		<comments>http://niharpaitalcsql.wordpress.com/2009/10/22/csqltable-conf-file-plays-an-important-role-in-csql-cache/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 14:15:57 +0000</pubDate>
		<dc:creator>niharcsql</dc:creator>
				<category><![CDATA[CSQL]]></category>
		<category><![CDATA[caching]]></category>
		<category><![CDATA[csql cache]]></category>
		<category><![CDATA[data caching]]></category>
		<category><![CDATA[Mysql cache]]></category>
		<category><![CDATA[table caching]]></category>

		<guid isPermaLink="false">http://niharpaitalcsql.wordpress.com/?p=271</guid>
		<description><![CDATA[Description about the csqltable.conf file It holds 6 information a) Mode b) Table to be cached c) Primary Key d) Condition e) Field List f) DSN of Target DB a) Mode Different types of modes are there which depends upon various caching options. 1 : Simple caching : (cachetable -U root -P manager -t &#60;table [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=niharpaitalcsql.wordpress.com&amp;blog=4786654&amp;post=271&amp;subd=niharpaitalcsql&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h3><strong>Description about the csqltable.conf file</strong></h3>
<p><strong> </strong></p>
<p>It holds 6 information<br />
a) Mode<br />
b) Table to be cached<br />
c) Primary Key<br />
d) Condition<br />
e) Field List<br />
f) DSN of Target DB</p>
<p><strong><span style="text-decoration:underline;">a) Mode</span></strong><br />
Different types of modes are there which depends upon various caching options.</p>
<p>1 : Simple caching : (cachetable -U root -P manager -t &lt;table name&gt;)<br />
2  : Conditional Caching : (cachetable -U root -P manager -t &lt;table name&gt; -c &#8220;&lt;condition&gt;&#8221;)<br />
4  : Field Level Caching : (cachetable -U root -P manager -t &lt;table name&gt; -f &#8220;&lt;field list&gt;&#8221;)<br />
8 : Direct Caching : (cachetable -U root -P manager -t &lt;table name&gt; -D)<br />
14 : Combination of 2,4,8 modes : (cachetable -U root -P manager -t &lt;table name&gt; -c &#8220;&lt;condition&gt;&#8221; -f &#8220;&lt;field list&gt;&#8221; -D)</p>
<p><strong><span style="text-decoration:underline;">b) Table to be cached</span></strong><br />
This is the table name from which is cached to csql from Target DB.</p>
<p><strong><span style="text-decoration:underline;">c) Primary Key</span></strong><br />
This indicates the primary key field name, if you choose bidirectional cache option.</p>
<p><strong><span style="text-decoration:underline;">d) Condition</span></strong><br />
This indicates the condition , bases on which you cahed the table.</p>
<p><strong><span style="text-decoration:underline;">e) Field List</span></strong><br />
This indicates the field list of the table, bases on which you cahed the table.</p>
<p><strong><span style="text-decoration:underline;">f) DSN of Target DB</span></strong><br />
DSN of the target DB</p>
<p>Use cachetable tool for cache the table from target database.<br />
use &#8220;cachetable -?&#8221; to find help for cachetable tool</p>
<p><strong>Sample:</strong><br />
$ cachetable -U root -P manager -t t1 -c &#8220;f1=11&#8243; -f &#8220;f1,f2&#8243; -D<br />
This command will put the entry into csqltable.conf as:<br />
&#8220;14 t1 NULL f1=11 f1,f2 myodbc3&#8243;<br />
The above entry shows that f1 and f2 fields of t1 table is cached using direct option with condition f1=11. Here &#8220;-D&#8221; indicates that Caching is direct.</p>
<p><strong><span style="text-decoration:underline;">Direct Cache</span></strong><br />
In this cache mode, updates to cache directly go to the target database table and will not update the cached table. This mode is useful in cases where scalar functions or auto increment key is used during DML operations. In such cases, bi-directional cache mode should be turned on so that updates directly goes to target database and comes back to cache eventually within cache receiver wait seconds maintaining the data consistency between cache and target database. Use -D option to cache table in this mode.</p>
<p><strong><br />
</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/niharpaitalcsql.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/niharpaitalcsql.wordpress.com/271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/niharpaitalcsql.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/niharpaitalcsql.wordpress.com/271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/niharpaitalcsql.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/niharpaitalcsql.wordpress.com/271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/niharpaitalcsql.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/niharpaitalcsql.wordpress.com/271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/niharpaitalcsql.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/niharpaitalcsql.wordpress.com/271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/niharpaitalcsql.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/niharpaitalcsql.wordpress.com/271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/niharpaitalcsql.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/niharpaitalcsql.wordpress.com/271/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=niharpaitalcsql.wordpress.com&amp;blog=4786654&amp;post=271&amp;subd=niharpaitalcsql&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://niharpaitalcsql.wordpress.com/2009/10/22/csqltable-conf-file-plays-an-important-role-in-csql-cache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f4051ee189f970200d2577aac6620d73?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Papu</media:title>
		</media:content>
	</item>
		<item>
		<title>csqlds tool plays important role in csql-cache</title>
		<link>http://niharpaitalcsql.wordpress.com/2009/10/21/csqlds-tool-plays-important-role-in-csql-cache/</link>
		<comments>http://niharpaitalcsql.wordpress.com/2009/10/21/csqlds-tool-plays-important-role-in-csql-cache/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 13:36:13 +0000</pubDate>
		<dc:creator>niharcsql</dc:creator>
				<category><![CDATA[CSQL]]></category>
		<category><![CDATA[caching]]></category>
		<category><![CDATA[csql cache]]></category>
		<category><![CDATA[data caching]]></category>
		<category><![CDATA[Mysql cache]]></category>
		<category><![CDATA[table caching]]></category>

		<guid isPermaLink="false">http://niharpaitalcsql.wordpress.com/?p=264</guid>
		<description><![CDATA[csqlds tool helps to populate csqlds.conf file Before caching a table from Target database to csql you need to put entry into csqlds.conf file. It keeps the DSN information of the target database. This blog gives details about csqlds.conf file &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; Description about the csqlds.conf file &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; It holds 4 information 1: DSN of target [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=niharpaitalcsql.wordpress.com&amp;blog=4786654&amp;post=264&amp;subd=niharpaitalcsql&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>csqlds tool helps to populate csqlds.conf file<br />
</strong></p>
<p>Before caching a table from Target database to csql you need to put entry into csqlds.conf file. It keeps the DSN information of the target database.</p>
<p>This blog gives  details about csqlds.conf file</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
Description about the csqlds.conf file<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>It holds 4 information<br />
1: DSN  of target database<br />
2: user name<br />
3: password for the user<br />
4: DB name of target database.</p>
<p>these informations you can get from your ~/.odbc.ini file<br />
You can populate this file using a tool provided by csql called &#8220;csqlds&#8221;</p>
<p>$ csqlds [-U username] [-P passwd] [-D dsnname] [-N tdbname] -a</p>
<p>Example Sample:<br />
$ csqlds root root123 myodbc3 mysql -a<br />
After execution of this command, the entries for ‘myodbc3’ data source will be present in csqlds.conf file, which will be used by the cachetable tool to cache the table from this Data source<br />
This command will put entry to your csqlds.conf file as<br />
&#8220;myodbc3 root root123 mysql&#8221;</p>
<p>then proceed with cachetable tool for work with cache feature of csql</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/niharpaitalcsql.wordpress.com/264/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/niharpaitalcsql.wordpress.com/264/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/niharpaitalcsql.wordpress.com/264/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/niharpaitalcsql.wordpress.com/264/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/niharpaitalcsql.wordpress.com/264/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/niharpaitalcsql.wordpress.com/264/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/niharpaitalcsql.wordpress.com/264/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/niharpaitalcsql.wordpress.com/264/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/niharpaitalcsql.wordpress.com/264/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/niharpaitalcsql.wordpress.com/264/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/niharpaitalcsql.wordpress.com/264/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/niharpaitalcsql.wordpress.com/264/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/niharpaitalcsql.wordpress.com/264/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/niharpaitalcsql.wordpress.com/264/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=niharpaitalcsql.wordpress.com&amp;blog=4786654&amp;post=264&amp;subd=niharpaitalcsql&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://niharpaitalcsql.wordpress.com/2009/10/21/csqlds-tool-plays-important-role-in-csql-cache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f4051ee189f970200d2577aac6620d73?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Papu</media:title>
		</media:content>
	</item>
		<item>
		<title>Configuring CSQL for replication</title>
		<link>http://niharpaitalcsql.wordpress.com/2009/10/21/configuring-csql-for-replication/</link>
		<comments>http://niharpaitalcsql.wordpress.com/2009/10/21/configuring-csql-for-replication/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 13:22:30 +0000</pubDate>
		<dc:creator>niharcsql</dc:creator>
				<category><![CDATA[CSQL]]></category>
		<category><![CDATA[caching]]></category>
		<category><![CDATA[csql cache]]></category>
		<category><![CDATA[data caching]]></category>
		<category><![CDATA[Mysql cache]]></category>
		<category><![CDATA[table caching]]></category>

		<guid isPermaLink="false">http://niharpaitalcsql.wordpress.com/?p=260</guid>
		<description><![CDATA[CSQL Replication offers complete data protection through automated, real-time, zero-latency fail over and recovery with high availability and load balancing cluster for CSQL MMDB. It provides both synchronous and asynchronous transaction propagation to peer instances. It enables scaling application throughput by sharing the read load across replicated CSQL instances. Operational Restrictions Replication imposes the following [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=niharpaitalcsql.wordpress.com&amp;blog=4786654&amp;post=260&amp;subd=niharpaitalcsql&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<blockquote><p><strong>CSQL Replication</strong> offers complete data protection through automated, real-time, zero-latency fail over and recovery with high availability and load balancing cluster for CSQL MMDB. It provides both synchronous and asynchronous transaction propagation to peer instances. It enables scaling application throughput by sharing the read load across replicated CSQL instances.</p>
<p><strong>Operational Restrictions</strong><br />
Replication imposes the following operational Restrictions:</p>
<ul>
<li>Replication is supported between CSQL instances</li>
<li>A CSQL server instance can participate in only one quorum.</li>
</ul>
<p>Once a table is replicated DDL statements cannot be executed on that table.</p>
<ul>
<li> DROP TABLE</li>
</ul>
<p>The following additional restrictions also apply to tables defined for replication:</p>
<ul>
<li>The Primary key constraint not to be removed.</li>
<li>Column not to be dropped or added.</li>
<li>The Primary key column not to be modified.</li>
</ul>
<p>The following SQL statements are permitted:</p>
<ul>
<li>ADD INDEX</li>
<li>DROP INDEX</li>
</ul>
<p><strong>Configuration Parameter</strong><br />
The database server configuration file (csql.conf) under CSQL root directory includes eleven configuration parameters that affect the behavior of Replication.<strong></strong></p>
<p><strong>Replication Configuration parameters:</strong></p>
<blockquote><p>SITE_ID<br />
REPLICATION<br />
REPLICATION_SITES<br />
NETWORK_CONFIG_FILE<br />
CONFL_RESOL_FILE<br />
MSG_KEY<br />
ASYNC_MSGMAX<br />
MAX_QUEUE_LOGSNetwork Configuration Parameters:<br />
CSQL_SQL_SERVER<br />
PORT</p></blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote></blockquote>
</blockquote>
</blockquote>
</blockquote>
<p><strong>Setting up parameters in csql.conf file</strong><br />
The configuration file, csql.conf has eleven parameters that need to be set up for<br />
replication. Some of the parameters are present in Cache Section and most are present in<br />
SQL Network Server Section in csql.conf file.</p>
<ul>
<li>REPLICATION</li>
</ul>
</blockquote>
<blockquote><p>This is a Boolean parameter and should be set to true to enable replication across site.</p></blockquote>
<blockquote>
<ul>
<li>SITE_ID</li>
</ul>
<p>This is an integer parameter and it identifies a CSQL instance in a quorum.Set this to a unique value for all the nodes in the quorum. For example, this           parameter will be set to 1 for CSQL Instance-1 and will be set to 2 for CSQL Instance-2 and so on.</p>
<ul>
<li>CSQL_SQL_SERVER</li>
</ul>
<p>This is a Boolean parameter and should be set to true when replication is turned on.</p>
<ul>
<li>PORT</li>
</ul>
<p>This is an integer parameter to set the port for network access, by default it is set to the number 5678.</p>
<ul>
<li>NETWORK_CONFIG_FILE</li>
</ul>
<p>This is a string parameter, which contains the complete path to the file, which holds the complete information about the peer site information in the quorum.</p>
<ul>
<li> MSG_KEY</li>
</ul>
</blockquote>
<p>This is an integer parameter is used for creating message queue for MsgQueue server. It is used when replication mode is Asynchronous only. This is an internal parameter  and user need not modify this value.</p>
<p>The two instances of CSQL should work in two different machines, for that we have to configure the replication and set up the network file which contains the information about the peer site.<br />
Based on this deployment, CSQL Instance-1 is considered as Source site or Active Site, CSQL Instance –2 is considered as Destination Site or Standby Site. The Replication<br />
configuration is made accordingly both in csql.conf file and csqlnw.conf file.</p>
<p><strong>Configure csql.conf file for CSQL Instance – 1. </strong></p>
<p>The replication configuration parameters are as follows.</p>
<blockquote><p>SYS_DB_KEY=3001<br />
USER_DB_KEY=4001<br />
LOG_FILE=/tmp/SITE1/log/csql/log.out<br />
DATABASE_FILE=/tmp/SITE1/csql/db<br />
SITE_ID=1<br />
TABLE_CONFIG_FILE=/tmp/SITE1/csqltable.conf<br />
DS_CONFIG_FILE=/tmp/SITE1/csql/csqlds.conf<br />
CONFL_RESOL_FILE=/tmp/SITE1/csql/conflResoFile.txt<br />
CACHE_MODE=SYNC<br />
CSQL_SQL_SERVER=true<br />
PORT=5001<br />
REPLICATION=true<br />
MSG_KEY=2531<br />
ID_SHM_KEY=1951<br />
NETWORK_CONFIG_FILE=/tmp/SITE1/csqlnw.conf</p></blockquote>
<p><strong>Configure csql.conf file for CSQL Instance – 2<br />
</strong>The replication configuration parameters are as follows.</p>
<blockquote><p>SYS_DB_KEY=3002<br />
USER_DB_KEY=4002<br />
LOG_FILE=/tmp/SITE2/log/csql/log.out<br />
DATABASE_FILE=/tmp/SITE2/csql/db<br />
SITE_ID=2<br />
TABLE_CONFIG_FILE=/tmp/SITE2/csqltable.conf<br />
DS_CONFIG_FILE=/tmp/SITE2/csql/csqlds.conf<br />
CONFL_RESOL_FILE=/tmp/SITE2/csql/conflResoFile.txt<br />
CACHE_MODE=SYNC<br />
CSQL_SQL_SERVER=true<br />
PORT=5002<br />
REPLICATION=true<br />
MSG_KEY=2532<br />
ID_SHM_KEY=1952<br />
NETWORK_CONFIG_FILE=/tmp/SITE2/csqlnw.conf</p></blockquote>
<p><strong>Configure csqlnw.conf file for each instance:</strong><br />
The network configuration file should contain the information about both the CSQL Instances and it should contain the below specified information. The file path has to be mentioned in the NETWORK_CONFIG_FILE parameter in csql.conf file.<br />
File Format:</p>
<blockquote><p>ID : IP_address : Port : Repl_Mode</p></blockquote>
<p><strong>Synchronous Replication</strong><br />
In case of synchronous mode, source site transaction commits return only after the transaction is committed at source instance and other destination instances in the quorum.<br />
<strong>Information in csqlnw.conf file at Instance-1</strong></p>
<blockquote><p>1:localhost:5001:SYNC<br />
2:localhost:5002:SYNC</p></blockquote>
<p><strong>Information in csqlnw.conf file at Instance-2</strong></p>
<blockquote><p>1:localhost:5001:SYNC<br />
2:localhost:5002:SYNC</p></blockquote>
<p><strong>Steps to replicate table :</strong><br />
Follow the below steps to replicate data from Instance-1 to Instance-2. Before beginning with operations, Start the CSQL Server in two hosts with all necessary<br />
configuration parameters in csql.conf file.</p>
<p><strong>Start the CSQL Server at both the Instances.</strong><br />
The below contents shows that all the required servers are running and it should match at<br />
both the Sites except Server’s PID value.<br />
<span style="color:#333300;"><strong></strong></span></p>
<blockquote><p><span style="color:#333300;"><strong>$csqlserver</strong></span><br />
Sys_DB [Size=0001MB]<br />
User_DB [Size=0010MB]<br />
Network Server Started [PID=21640]<br />
Replication Server Started [PID=21641]<br />
Database Server Started&#8230;</p></blockquote>
<p><strong>Replicate the table at Instance-1 using “repltable” tool</strong><br />
Assume that the “emp” table is present at the Instance-1 with some records. Use repltable tool to replicate the table.</p>
<p>$csql</p>
<p>CSQL&gt; create table emp(f1 int, f2 int);</p>
<p><span style="color:#333300;"><strong>$ repltable –t emp</strong></span><br />
After executing this command entry will be made into the csqltable.conf file.</p>
<p><strong>Replicate the table at Instance-2</strong><br />
By executing the below command the table is replicated at Instance-2 and the entry is made in csqltable.conf file.<br />
<span style="color:#333300;"><strong>$ repltable –t emp</strong></span><br />
Now the table ‘t1’ is present in Source Site as well as in Destination Site. Insert some records using csql tool with -r option at Instance-1 and it will be replicated to<br />
Instance-2.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/niharpaitalcsql.wordpress.com/260/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/niharpaitalcsql.wordpress.com/260/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/niharpaitalcsql.wordpress.com/260/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/niharpaitalcsql.wordpress.com/260/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/niharpaitalcsql.wordpress.com/260/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/niharpaitalcsql.wordpress.com/260/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/niharpaitalcsql.wordpress.com/260/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/niharpaitalcsql.wordpress.com/260/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/niharpaitalcsql.wordpress.com/260/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/niharpaitalcsql.wordpress.com/260/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/niharpaitalcsql.wordpress.com/260/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/niharpaitalcsql.wordpress.com/260/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/niharpaitalcsql.wordpress.com/260/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/niharpaitalcsql.wordpress.com/260/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=niharpaitalcsql.wordpress.com&amp;blog=4786654&amp;post=260&amp;subd=niharpaitalcsql&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://niharpaitalcsql.wordpress.com/2009/10/21/configuring-csql-for-replication/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f4051ee189f970200d2577aac6620d73?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Papu</media:title>
		</media:content>
	</item>
		<item>
		<title>repltable tool in CSQL</title>
		<link>http://niharpaitalcsql.wordpress.com/2009/10/21/repltable-tool-in-csql/</link>
		<comments>http://niharpaitalcsql.wordpress.com/2009/10/21/repltable-tool-in-csql/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 12:16:12 +0000</pubDate>
		<dc:creator>niharcsql</dc:creator>
				<category><![CDATA[CSQL]]></category>
		<category><![CDATA[caching]]></category>
		<category><![CDATA[csql cache]]></category>
		<category><![CDATA[data caching]]></category>
		<category><![CDATA[Mysql cache]]></category>
		<category><![CDATA[table caching]]></category>

		<guid isPermaLink="false">http://niharpaitalcsql.wordpress.com/?p=256</guid>
		<description><![CDATA[repltable tool The repltable tool is used to replicate table between sites. To do so, the source site needs to publish the table so that other sites can subscribe it. Syntax: repltable [-U username] [-P password] [ -t &#60;TableName&#62; [-E] [-u] ] [?] -U username This is a optional argument and its required for authentication. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=niharpaitalcsql.wordpress.com&amp;blog=4786654&amp;post=256&amp;subd=niharpaitalcsql&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>repltable tool</strong><br />
The repltable tool is used to replicate table between sites. To do so, the source site needs to publish the table so that other sites can subscribe it.<br />
Syntax:<br />
repltable [-U username] [-P password] [ -t &lt;TableName&gt; [-E] [-u] ] [?]<br />
<strong>-U username</strong><br />
This is a optional argument and its required for authentication.<br />
<strong>-P password</strong><br />
This is a optional argument also required for authentication.<br />
<strong>-t tablename</strong><br />
The specified table name will be replicated with this –t option.<br />
<strong>-u</strong><br />
To keep the table unpublished and as a normal table.<br />
<strong>-E</strong><br />
To change the table statues from cached to replicated.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/niharpaitalcsql.wordpress.com/256/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/niharpaitalcsql.wordpress.com/256/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/niharpaitalcsql.wordpress.com/256/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/niharpaitalcsql.wordpress.com/256/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/niharpaitalcsql.wordpress.com/256/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/niharpaitalcsql.wordpress.com/256/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/niharpaitalcsql.wordpress.com/256/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/niharpaitalcsql.wordpress.com/256/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/niharpaitalcsql.wordpress.com/256/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/niharpaitalcsql.wordpress.com/256/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/niharpaitalcsql.wordpress.com/256/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/niharpaitalcsql.wordpress.com/256/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/niharpaitalcsql.wordpress.com/256/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/niharpaitalcsql.wordpress.com/256/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=niharpaitalcsql.wordpress.com&amp;blog=4786654&amp;post=256&amp;subd=niharpaitalcsql&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://niharpaitalcsql.wordpress.com/2009/10/21/repltable-tool-in-csql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f4051ee189f970200d2577aac6620d73?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Papu</media:title>
		</media:content>
	</item>
		<item>
		<title>replverify tool in CSQL</title>
		<link>http://niharpaitalcsql.wordpress.com/2009/10/21/replverify-tool-in-csql/</link>
		<comments>http://niharpaitalcsql.wordpress.com/2009/10/21/replverify-tool-in-csql/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 11:02:12 +0000</pubDate>
		<dc:creator>niharcsql</dc:creator>
				<category><![CDATA[CSQL]]></category>
		<category><![CDATA[caching]]></category>
		<category><![CDATA[csql cache]]></category>
		<category><![CDATA[data caching]]></category>
		<category><![CDATA[Mysql cache]]></category>
		<category><![CDATA[table caching]]></category>

		<guid isPermaLink="false">http://niharpaitalcsql.wordpress.com/?p=226</guid>
		<description><![CDATA[replverify tool replverify tool displays the missing records in the specified replicated table in either sites, if any. This tool should be used only when CSQL_SQL_SERVER=true is set in the csql.conf file. Syntax: replverify [-U username] [-P passwd] -t &#60;tablename&#62; -i &#60;siteID&#62; [-p] [-f] [?] Help Description: username -&#62; username to connect with csql. passwd [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=niharpaitalcsql.wordpress.com&amp;blog=4786654&amp;post=226&amp;subd=niharpaitalcsql&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="color:#333300;"><strong>replverify tool</strong><br />
replverify tool displays the missing records in the specified replicated table in either<br />
sites, if any. This tool should be used only when CSQL_SQL_SERVER=true is set in the<br />
csql.conf file.<br />
Syntax:<br />
replverify<br />
[-U username]<br />
[-P passwd]<br />
-t &lt;tablename&gt;<br />
-i &lt;siteID&gt;<br />
[-p]<br />
[-f]<br />
[?] Help</span></p>
<p><span style="color:#333300;"><strong>Description</strong>:<br />
username -&gt; username to connect with csql.<br />
passwd -&gt; password for the above username to connect with csql.<br />
tablename -&gt; replicated table name which is replicated in quorum.<br />
siteID -&gt; sitedID of remote site.<br />
p -&gt; verification at primary key field level<br />
f -&gt; verification at record level<br />
? -&gt; help</span></p>
<p><span style="color:#333300;"><strong>1. Verification based on number of records<br />
<span style="color:#333300;"> [SITE1]$ replverify -U root -P manager -t t1 -i 2</span></strong><br />
</span></p>
<p style="padding-left:120px;"><img class="alignleft size-full wp-image-233" title="p1" src="http://niharpaitalcsql.files.wordpress.com/2009/10/p11.jpg?w=450" alt="p1"   /></p>
<p><span style="color:#333300;"><br />
<strong> </strong></span></p>
<p>The above table shows that there are 4 records in both the sites in the quorum.</p>
<p><span style="color:#333300;"><strong>2. Find missing records using -p option with replverify<br />
<span style="color:#333300;"> [SITE1]$ replverify -U root -P manager -t t1 -i 2 -p</span></strong><br />
</span></p>
<p style="padding-left:60px;"><span style="color:#333300;"> </span></p>
<p style="padding-left:120px;"><img class="alignleft size-full wp-image-243" title="p2" src="http://niharpaitalcsql.files.wordpress.com/2009/10/p22.jpg?w=450" alt="p2"   /></p>
<p style="padding-left:60px;">
<p style="padding-left:60px;">
<p style="padding-left:60px;">
<p style="padding-left:60px;">
<p style="padding-left:60px;">
<p style="padding-left:60px;">
<p style="padding-left:60px;">
<p style="padding-left:60px;">
<p style="padding-left:60px;">
<p>The above table shows that There is no missing records in either of the sites in the quorum.</p>
<p><strong>3. Find mismatching field values using -f option with replverify<br />
[<span style="color:#333300;">S</span><span style="color:#333300;">ITE1]$ replverify -U root -P manager -t t1 -i 2 -f</span></strong></p>
<p style="padding-left:60px;">
<p style="padding-left:120px;"><img class="alignleft size-full wp-image-245" title="p3" src="http://niharpaitalcsql.files.wordpress.com/2009/10/p35.jpg?w=450&#038;h=378" alt="p3" width="450" height="378" /></p>
<p style="padding-left:60px;">
<p style="padding-left:60px;">
<p style="padding-left:60px;">
<p style="padding-left:60px;">
<p style="padding-left:60px;">
<p style="padding-left:60px;">
<p style="padding-left:60px;">
<p style="padding-left:60px;">
<p style="padding-left:60px;">
<p style="padding-left:60px;">
<p style="padding-left:60px;">
<p style="padding-left:60px;">
<p><strong>Example:</strong><br />
If any record/records are missing from any/both of the sites, or any mismatching field values are there in either of the sites<br />
<span style="text-decoration:underline;">Records in table t1 at SITE1</span></p>
<p><!-- 		@page { size: 8.5in 11in; margin: 0.79in } 		P { margin-bottom: 0.08in } --></p>
<p style="margin-bottom:0;"><span style="font-size:x-small;"> </span></p>
<p style="margin-bottom:0;"><span style="color:#333300;"><span style="font-size:x-small;"><strong>CSQL&gt;select * from t1;</strong> </span></span></p>
<p><!-- 		@page { size: 8.5in 11in; margin: 0.79in } 		P { margin-bottom: 0.08in } --></p>
<p style="padding-left:120px;"><img class="alignleft size-full wp-image-246" title="p4" src="http://niharpaitalcsql.files.wordpress.com/2009/10/p41.jpg?w=450" alt="p4"   /></p>
<p style="padding-left:60px;">
<p style="padding-left:60px;">
<p style="padding-left:60px;">
<p style="padding-left:60px;">
<p style="padding-left:60px;">
<p><span style="text-decoration:underline;">Records in table t1 at SITE2</span></p>
<p style="margin-bottom:0;"><span style="font-size:x-small;"> </span></p>
<p style="margin-bottom:0;"><strong><span style="color:#333300;"><span style="font-size:x-small;">CSQL&gt;select * from t1; </span></span></strong></p>
<p><!-- 		@page { size: 8.5in 11in; margin: 0.79in } 		P { margin-bottom: 0.08in } --></p>
<p style="padding-left:120px;"><img class="alignleft size-full wp-image-247" title="p5" src="http://niharpaitalcsql.files.wordpress.com/2009/10/p51.jpg?w=450" alt="p5"   /></p>
<p style="padding-left:60px;">
<p style="padding-left:60px;">
<p style="padding-left:60px;">
<p style="padding-left:60px;">
<p style="padding-left:60px;">
<p><!-- 		@page { size: 8.5in 11in; margin: 0.79in } 		P { margin-bottom: 0.08in } --></p>
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;"><span style="color:#333300;"><strong><span style="font-size:small;">[SITE1]$ replverify -t t1 -i 2 -f</span></strong></span></p>
<p style="margin-bottom:0;padding-left:120px;"><span style="font-size:small;"><img class="alignleft size-full wp-image-248" title="p6" src="http://niharpaitalcsql.files.wordpress.com/2009/10/p61.jpg?w=450&#038;h=422" alt="p6" width="450" height="422" /></span></p>
<p style="margin-bottom:0;padding-left:60px;">
<p style="margin-bottom:0;padding-left:60px;">
<p style="margin-bottom:0;padding-left:60px;">
<p style="margin-bottom:0;padding-left:60px;">
<p style="margin-bottom:0;padding-left:60px;">
<p style="margin-bottom:0;padding-left:60px;">
<p style="margin-bottom:0;padding-left:60px;">
<p style="margin-bottom:0;padding-left:60px;">
<p style="margin-bottom:0;padding-left:60px;">
<p style="margin-bottom:0;padding-left:60px;">
<p style="margin-bottom:0;padding-left:60px;">
<p style="margin-bottom:0;padding-left:60px;">
<p style="margin-bottom:0;padding-left:60px;">
<p style="margin-bottom:0;padding-left:60px;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">The above output shows that the record having primary key value 1 has the value 10 in f2 at SITE1 and 15 in f2 at SITE2. The record having primary key value 5 has the value 55 in f2 at SITE1 and 50 in f2 at SITE2</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/niharpaitalcsql.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/niharpaitalcsql.wordpress.com/226/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/niharpaitalcsql.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/niharpaitalcsql.wordpress.com/226/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/niharpaitalcsql.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/niharpaitalcsql.wordpress.com/226/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/niharpaitalcsql.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/niharpaitalcsql.wordpress.com/226/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/niharpaitalcsql.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/niharpaitalcsql.wordpress.com/226/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/niharpaitalcsql.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/niharpaitalcsql.wordpress.com/226/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/niharpaitalcsql.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/niharpaitalcsql.wordpress.com/226/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=niharpaitalcsql.wordpress.com&amp;blog=4786654&amp;post=226&amp;subd=niharpaitalcsql&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://niharpaitalcsql.wordpress.com/2009/10/21/replverify-tool-in-csql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f4051ee189f970200d2577aac6620d73?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Papu</media:title>
		</media:content>

		<media:content url="http://niharpaitalcsql.files.wordpress.com/2009/10/p11.jpg" medium="image">
			<media:title type="html">p1</media:title>
		</media:content>

		<media:content url="http://niharpaitalcsql.files.wordpress.com/2009/10/p22.jpg" medium="image">
			<media:title type="html">p2</media:title>
		</media:content>

		<media:content url="http://niharpaitalcsql.files.wordpress.com/2009/10/p35.jpg" medium="image">
			<media:title type="html">p3</media:title>
		</media:content>

		<media:content url="http://niharpaitalcsql.files.wordpress.com/2009/10/p41.jpg" medium="image">
			<media:title type="html">p4</media:title>
		</media:content>

		<media:content url="http://niharpaitalcsql.files.wordpress.com/2009/10/p51.jpg" medium="image">
			<media:title type="html">p5</media:title>
		</media:content>

		<media:content url="http://niharpaitalcsql.files.wordpress.com/2009/10/p61.jpg" medium="image">
			<media:title type="html">p6</media:title>
		</media:content>
	</item>
		<item>
		<title>csql&#8217;s cacheverify tool</title>
		<link>http://niharpaitalcsql.wordpress.com/2009/10/16/cacheverify-tool-in-csql/</link>
		<comments>http://niharpaitalcsql.wordpress.com/2009/10/16/cacheverify-tool-in-csql/#comments</comments>
		<pubDate>Fri, 16 Oct 2009 14:20:38 +0000</pubDate>
		<dc:creator>niharcsql</dc:creator>
				<category><![CDATA[CSQL]]></category>
		<category><![CDATA[caching]]></category>
		<category><![CDATA[csql cache]]></category>
		<category><![CDATA[data caching]]></category>
		<category><![CDATA[Mysql cache]]></category>
		<category><![CDATA[table caching]]></category>

		<guid isPermaLink="false">http://niharpaitalcsql.wordpress.com/?p=186</guid>
		<description><![CDATA[Cacheverify tool displays the missing records in the specified cached table either in CSQL or in target database, if any. This tool should be used only when CACHE_TABLE option is set in the csql.conf file. Syntax: $ cacheverify [-U username] [-P passwd] -t tablename [-p] [-f] -U username Username for authentication -P passwd password for [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=niharpaitalcsql.wordpress.com&amp;blog=4786654&amp;post=186&amp;subd=niharpaitalcsql&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Cacheverify</strong> tool displays the missing records in the specified cached table either in CSQL or in target database, if any. This tool should be used only when CACHE_TABLE<br />
option is set in the csql.conf file.</p>
<h4>Syntax:</h4>
<blockquote><p><span style="color:#003300;"><strong>$ cacheverify</strong><br />
<strong>[-U username]<br />
[-P passwd]<br />
-t tablename<br />
[-p]<br />
[-f]</strong></span></p></blockquote>
<blockquote><p><strong>-U username</strong><br />
Username for authentication<br />
<strong>-P passwd</strong><br />
password for authentication also.<br />
<strong>-t tablename</strong><br />
cached table name in csql from target db.<br />
<strong>-p</strong><br />
verification at primary key field level<br />
<strong>-f</strong><br />
verification at record level<br />
<strong>?</strong><br />
help</p></blockquote>
<p><strong>Table t1 in Target database</strong></p>
<p><strong>sql&gt;  create table t1(f1 int,f2 int, primary key(f1));</strong></p>
<p><!-- 		@page { size: 8.5in 11in; margin: 0.79in } 		P { margin-bottom: 0.08in } --><strong>sql&gt; select * from t1;</strong></p>
<p style="padding-left:90px;"><strong><img class="size-full wp-image-201 alignnone" title="a1" src="http://niharpaitalcsql.files.wordpress.com/2009/10/a1.jpg?w=450" alt="a1"   /></strong></p>
<p><strong><span id="more-186"></span>1. Verification based on number of records</strong></p>
<blockquote><p><span style="color:#003300;"><strong>$cacheverify -t t1</strong></span></p></blockquote>
<blockquote>
<p style="text-align:center;"><span style="color:#003300;"><strong><img class="size-full wp-image-202 aligncenter" title="a2" src="http://niharpaitalcsql.files.wordpress.com/2009/10/a2.jpg?w=450" alt="a2"   /></strong></span></p>
</blockquote>
<blockquote><p><strong>2. </strong><strong>Find missing records using -p option with replverify</strong></p></blockquote>
<blockquote><p><span style="color:#003300;"><strong>$ cacheverify -U root -P manager -t t1 -p</strong></span></p>
<p><img class="aligncenter size-full wp-image-215" title="a3" src="http://niharpaitalcsql.files.wordpress.com/2009/10/a33.jpg?w=450" alt="a3"   /></p>
<p><span style="color:#003300;"><strong><br />
</strong></span></p></blockquote>
<blockquote>
<p style="text-align:left;"><strong>3.Find mismatching field values</strong></p>
</blockquote>
<blockquote>
<p style="padding-left:120px;"><span style="color:#003300;"><strong> </strong></span></p>
</blockquote>
<p style="text-align:left;">
<p style="text-align:left;">
<p style="text-align:left;">
<p style="text-align:left;">
<p style="text-align:left;">
<p style="text-align:left;">
<p style="text-align:left;">
<p style="text-align:left;">
<p style="text-align:left;">
<p style="text-align:left;">
<p style="text-align:left;">
<p style="text-align:left;">
<p style="text-align:left;">
<p style="text-align:left;">
<p style="text-align:left;">
<p style="text-align:left;">
<p style="text-align:left;">
<blockquote><p><span style="color:#003300;"><strong>$ cacheverify -U root -P manager -t t1 -f</strong></span></p>
<p><span style="color:#003300;"><strong><img class="aligncenter size-full wp-image-216" title="a4" src="http://niharpaitalcsql.files.wordpress.com/2009/10/a43.jpg?w=450" alt="a4"   /></strong></span></p></blockquote>
<blockquote><p><strong>Example:</strong><br />
If any record/records are missing from any/both of the sites, or any mismatching field values are there in either of the sites<br />
<strong>Records in table t1 at CSQL</strong><br />
CSQL&gt;select * from t1;</p></blockquote>
<blockquote><p><img class="aligncenter size-full wp-image-219" title="a5" src="http://niharpaitalcsql.files.wordpress.com/2009/10/a5.jpg?w=450" alt="a5"   /></p></blockquote>
<blockquote><p><strong>Records in table t1 at Target DB</strong></p></blockquote>
<blockquote><p>SQL&gt;select * from t1;</p></blockquote>
<blockquote><p><img class="aligncenter size-full wp-image-220" title="a6" src="http://niharpaitalcsql.files.wordpress.com/2009/10/a6.jpg?w=450" alt="a6"   /></p></blockquote>
<blockquote><p><strong><span style="color:#003300;">$ replverify -U root -P manager -t t1 -i 2 -f</span></strong></p></blockquote>
<blockquote><p><strong><span style="color:#003300;"><img class="aligncenter size-full wp-image-221" title="a7" src="http://niharpaitalcsql.files.wordpress.com/2009/10/a7.jpg?w=450" alt="a7"   /><br />
</span></strong></p></blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/niharpaitalcsql.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/niharpaitalcsql.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/niharpaitalcsql.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/niharpaitalcsql.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/niharpaitalcsql.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/niharpaitalcsql.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/niharpaitalcsql.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/niharpaitalcsql.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/niharpaitalcsql.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/niharpaitalcsql.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/niharpaitalcsql.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/niharpaitalcsql.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/niharpaitalcsql.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/niharpaitalcsql.wordpress.com/186/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=niharpaitalcsql.wordpress.com&amp;blog=4786654&amp;post=186&amp;subd=niharpaitalcsql&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://niharpaitalcsql.wordpress.com/2009/10/16/cacheverify-tool-in-csql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f4051ee189f970200d2577aac6620d73?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Papu</media:title>
		</media:content>

		<media:content url="http://niharpaitalcsql.files.wordpress.com/2009/10/a1.jpg" medium="image">
			<media:title type="html">a1</media:title>
		</media:content>

		<media:content url="http://niharpaitalcsql.files.wordpress.com/2009/10/a2.jpg" medium="image">
			<media:title type="html">a2</media:title>
		</media:content>

		<media:content url="http://niharpaitalcsql.files.wordpress.com/2009/10/a33.jpg" medium="image">
			<media:title type="html">a3</media:title>
		</media:content>

		<media:content url="http://niharpaitalcsql.files.wordpress.com/2009/10/a43.jpg" medium="image">
			<media:title type="html">a4</media:title>
		</media:content>

		<media:content url="http://niharpaitalcsql.files.wordpress.com/2009/10/a5.jpg" medium="image">
			<media:title type="html">a5</media:title>
		</media:content>

		<media:content url="http://niharpaitalcsql.files.wordpress.com/2009/10/a6.jpg" medium="image">
			<media:title type="html">a6</media:title>
		</media:content>

		<media:content url="http://niharpaitalcsql.files.wordpress.com/2009/10/a7.jpg" medium="image">
			<media:title type="html">a7</media:title>
		</media:content>
	</item>
		<item>
		<title>CSQL supports Partial Table Caching</title>
		<link>http://niharpaitalcsql.wordpress.com/2009/10/16/csql-supports-partial-table-caching/</link>
		<comments>http://niharpaitalcsql.wordpress.com/2009/10/16/csql-supports-partial-table-caching/#comments</comments>
		<pubDate>Fri, 16 Oct 2009 10:31:14 +0000</pubDate>
		<dc:creator>niharcsql</dc:creator>
				<category><![CDATA[CSQL]]></category>
		<category><![CDATA[caching]]></category>
		<category><![CDATA[csql cache]]></category>
		<category><![CDATA[data caching]]></category>
		<category><![CDATA[Mysql cache]]></category>
		<category><![CDATA[table caching]]></category>

		<guid isPermaLink="false">http://niharpaitalcsql.wordpress.com/?p=162</guid>
		<description><![CDATA[CSQL introduces two types of Partial Caching. * Record Level (Horizontal Cache) * Column Level (Vertical Cache) Records in Target Database CSQL&#62;select * from t1; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- f1 f2 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- 1 Hello World 2 Hi 3 Ram 4 CSQL 5 Lakshya Record Level Cache: Use -c option to specify the condition for partial caching. Records, which [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=niharpaitalcsql.wordpress.com&amp;blog=4786654&amp;post=162&amp;subd=niharpaitalcsql&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>CSQL introduces two types of Partial Caching.</p>
<blockquote><p>* <strong>Record Level (Horizontal Cache)</strong><br />
* <strong>Column Level (Vertical Cache)</strong></p></blockquote>
<p><strong>Records in Target Database</strong></p>
<h4>CSQL&gt;select * from t1;</h4>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<blockquote><p>f1		f2</p></blockquote>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<blockquote><p>1		Hello World<br />
2		Hi<br />
3		Ram<br />
4		CSQL<br />
5		Lakshya</p></blockquote>
<h3>Record Level Cache:</h3>
<p>Use -c option to specify the condition for partial caching. Records, which satisfy the condition, will be cached in CSQL from the target database.</p>
<h4>$cachetable -U root  -P  manager -t  t1 -c &#8220;f1 &lt; 3&#8243; CSQL&gt;select * from t1;</h4>
<h4>CSQL&gt;select * from t1;</h4>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<blockquote><p>f1      f2</p></blockquote>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<blockquote><p>1       Hello World<br />
2       Hi</p></blockquote>
<h3>Column Level Cache:</h3>
<p>Use -f option for specifying the field name list to retrieve only values of those fields from the original table</p>
<h4>$cachetable –U root  -P manager  -t t1  -f &#8220;f1&#8243;</h4>
<h4>CSQL&gt;select * from t1;</h4>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<blockquote><p>f1</p></blockquote>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<blockquote><p>1<br />
2<br />
3<br />
4<br />
5</p></blockquote>
<p>It caches only record values for ‘f1’ field in table ‘t1’ from the target database.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/niharpaitalcsql.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/niharpaitalcsql.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/niharpaitalcsql.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/niharpaitalcsql.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/niharpaitalcsql.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/niharpaitalcsql.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/niharpaitalcsql.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/niharpaitalcsql.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/niharpaitalcsql.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/niharpaitalcsql.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/niharpaitalcsql.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/niharpaitalcsql.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/niharpaitalcsql.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/niharpaitalcsql.wordpress.com/162/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=niharpaitalcsql.wordpress.com&amp;blog=4786654&amp;post=162&amp;subd=niharpaitalcsql&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://niharpaitalcsql.wordpress.com/2009/10/16/csql-supports-partial-table-caching/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f4051ee189f970200d2577aac6620d73?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Papu</media:title>
		</media:content>
	</item>
		<item>
		<title>Cachetable tools in CSQL</title>
		<link>http://niharpaitalcsql.wordpress.com/2009/10/16/cachetable-tools-in-csql/</link>
		<comments>http://niharpaitalcsql.wordpress.com/2009/10/16/cachetable-tools-in-csql/#comments</comments>
		<pubDate>Fri, 16 Oct 2009 07:47:12 +0000</pubDate>
		<dc:creator>niharcsql</dc:creator>
				<category><![CDATA[CSQL]]></category>
		<category><![CDATA[caching]]></category>
		<category><![CDATA[csql cache]]></category>
		<category><![CDATA[data caching]]></category>
		<category><![CDATA[Mysql cache]]></category>
		<category><![CDATA[table caching]]></category>

		<guid isPermaLink="false">http://niharpaitalcsql.wordpress.com/?p=147</guid>
		<description><![CDATA[CSQL Cache enables customers to significantly Improve Application Response times and throughput. Based on the CSQL In-Memory DBMS, the CSQL Cache option delivers a real-time, dynamic, updatable cache for frequently accessed data in the Disk residence DBMSs (DRDBMS) like MySql, Postgres, Oracle, DB2, Sybase. cachetable tool The cachetable tool is used to cache table from [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=niharpaitalcsql.wordpress.com&amp;blog=4786654&amp;post=147&amp;subd=niharpaitalcsql&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>CSQL Cache enables customers to significantly Improve Application Response times and throughput. Based on the CSQL In-Memory DBMS, the CSQL Cache option delivers a real-time, dynamic, updatable cache for frequently accessed data in the Disk residence DBMSs (DRDBMS)  like MySql, Postgres, Oracle, DB2, Sybase.</p>
<h2>cachetable tool</h2>
<p>The <strong>cachetable</strong> tool is used to cache table from target database with the specified mode.</p>
<h3>Example:</h3>
<h4><span style="color:#800000;"><strong><span style="color:#333333;">$</span> <span style="color:#333300;">cachetable -t Employee</span></strong></span></h4>
<p>In this example, cachetable is used with -t argument to cache the &#8220;Employee&#8221; table from target database. -t argument is mandatory for cachetable tool. Besides this one other<br />
arguments are there, these can be chosen and used as per the application requirement. You can see all the options of <strong>cachetable</strong> tool using the help command given below. Except -t option all other options are optional from the list of options given below.</p>
<h4><strong><span style="color:#800000;"><span style="color:#333333;">$</span> <span style="color:#333300;">cachetable -?</span></span></strong></h4>
<p style="text-align:justify;"><span style="color:#666699;">Usage: cachetable [ -U &lt;username&gt; ] [ -P &lt;password&gt; ]<br />
[ -t &lt;tblName&gt; [-D] [ -c "condition" ]<br />
[-f "fieldListToCache"]<br />
[ -p &lt;fieldName&gt; [-F] ]<br />
[ -u [-s] ]<br />
[ -s | -r | -E ] ]<br />
[ -S | -R ]</span></p>
<p><span style="color:#666699;">U -&gt; Username to connect with csql.<br />
P -&gt; Password for above username.<br />
t -&gt; Table name to be cached in csql from target db.<br />
D -&gt; Enable direct access option to target database.<br />
c -&gt; Conditional expression used in std SQL WHERE clause.<br />
f -&gt; List of field names to be cached. Comma separated.<br />
p -&gt; Not Null unique index field name for Bidirectional<br />
caching on which trigger needs to be run.<br />
F -&gt; Forceful caching.<br />
s -&gt; Load only the records from target db.<br />
Assumes table is already created in csql.<br />
u -&gt; Unload the table. If used with -s option,<br />
removes only records and preserves the schema.<br />
r -&gt; Reload the table. Get the latest image of table from target db.<br />
E -&gt; Elevate table status from Replicated to Cached and Replicated.<br />
S -&gt; Cache Description for cached tables.<br />
R -&gt; Recover all cached tables from the target database.</span></p>
<p>Before using <strong>cachetable</strong> set the following environment variables in csql.conf</p>
<p><span style="color:#666699;">CACHE_TABLE=true </span></p>
<p><span style="color:#666699;">DS_CONFIG_FILE=/tmp/csql/csqlds.conf </span> [this path you can set of your own, which is suitable to you]                                                                                                                         <span style="color:#666699;"> </span></p>
<p><span style="color:#666699;">TABLE_CONFIG_FILE=/tmp/csql/csqltable.conf</span> [this path you can set of your own, which is suitable to you]</p>
<p>Populate csqlds.conf file with &lt;target db DSN&gt; &lt;username&gt; &lt;password&gt; &lt;target ddb name&gt;</p>
<p>You can use <strong>csqlds</strong> to papulate csqlds.conf file also as follows</p>
<h4><strong>$ <span style="color:#333300;">csqlds [-U username] [-P passwd] [-D tdb dsnname] [-N tdbname] [-a]</span></strong></h4>
<p><span style="color:#333300;">Now Use </span><strong><span style="color:#333300;">cachetable</span></strong><span style="color:#333300;"> tool . The below are some examples given how to use </span><strong><span style="color:#333300;">cachetable</span></strong><span style="color:#333300;"> tool with different options.</span><strong><span style="color:#333300;"><br />
</span></strong></p>
<p><strong>1. cache a table from target database</strong></p>
<h4><span style="color:#333300;">$cachetable -U root -P manager -t t1</span></h4>
<p><strong>2. Unload the cache table using -u option</strong></p>
<h4><span style="color:#333300;">$ cachetable -U root -P manager -t t1 -u</span></h4>
<p><strong>3. Cache records, which satisfy condition</strong></p>
<h4><span style="color:#333300;">$cachetable -U root -P manager -t t1 -c &#8220;f1&lt;3&#8243;</span></h4>
<p><strong>4. Cache only specified fields</strong></p>
<h4><span style="color:#333300;">$cachetable -U root -P manager -t t1 -f &#8220;f1&#8243;</span></h4>
<p><strong>5. Reloading the Cache table</strong></p>
<h4><span style="color:#333300;">$cachetable -U root -P manager -t t1 -r</span></h4>
<h4><span style="color:#333300;"> </span></h4>
<p><strong>5.</strong><span style="color:#666699;"> <span style="color:#000000;">Caching table using Direct Option</span></span></p>
<h4><span style="color:#333300;">$cachetable -U root -P manager -t t1 -D</span></h4>
<p><strong>7. Cache Table Information</strong><br />
The -S option is used to get the cache table information. If it is used with any specific table name, which has been cached, then only that table information will be displayed.</p>
<h4><span style="color:#333300;">$cachetable -U root -P manager -S</span></h4>
<h4><span style="color:#333300;">$cachetable -U root -P manager -t &lt;TableName&gt; -S</span></h4>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/niharpaitalcsql.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/niharpaitalcsql.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/niharpaitalcsql.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/niharpaitalcsql.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/niharpaitalcsql.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/niharpaitalcsql.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/niharpaitalcsql.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/niharpaitalcsql.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/niharpaitalcsql.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/niharpaitalcsql.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/niharpaitalcsql.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/niharpaitalcsql.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/niharpaitalcsql.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/niharpaitalcsql.wordpress.com/147/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=niharpaitalcsql.wordpress.com&amp;blog=4786654&amp;post=147&amp;subd=niharpaitalcsql&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://niharpaitalcsql.wordpress.com/2009/10/16/cachetable-tools-in-csql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f4051ee189f970200d2577aac6620d73?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Papu</media:title>
		</media:content>
	</item>
	</channel>
</rss>
