<?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/"
	>

<channel>
	<title>StudyJava.org &#187; Database</title>
	<atom:link href="http://studyjava.org/category/database/feed" rel="self" type="application/rss+xml" />
	<link>http://studyjava.org</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Mon, 05 Apr 2010 11:49:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Drop Data Base from oracle</title>
		<link>http://studyjava.org/database/oracle/drop-data-base-from-oracle</link>
		<comments>http://studyjava.org/database/oracle/drop-data-base-from-oracle#comments</comments>
		<pubDate>Tue, 29 Sep 2009 02:46:06 +0000</pubDate>
		<dc:creator>rathi</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Drop Data Base from oracle]]></category>

		<guid isPermaLink="false">http://studyjava.org/?p=238</guid>
		<description><![CDATA[Drop Data Base from oracle DROP USER databasename cascade; //Oracle It is possible to drop a database in Oracle with the new SQL statement drop database. The command gets rid of datafiles online redo log files, controlfiles and spfile. Example to use the command shutdown abort; startup mount exclusive restrict; drop database; exit Requirements database [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Drop Data Base from oracle </strong></p>
<p>DROP USER databasename cascade; //Oracle</p>
<p>It is possible to drop a database in Oracle with the new SQL statement drop database. The command gets rid of datafiles online redo log files, controlfiles and spfile.</p>
<p><strong>Example to use the command</strong></p>
<p>shutdown abort;<br />
startup mount exclusive restrict;<br />
drop database;<br />
exit</p>
<p><strong>Requirements</strong></p>
<ul> database must be closed,<br />
exclusively mounted,<br />
restricted</ul>
<div id="st0000000001" class="st-taf"><script src="http://taf.socialtwist.com:80/taf/js/shoppr.core.js?id=0000000001"></script><img style="border:0;margin:0;padding:0;" src="http://tellafriend.socialtwist.com:80/wizard/images/tafbutton_blue16.png" onmouseout="hideHoverMap(this)" onmouseover="showHoverMap(this, '0000000001', 'http%3A%2F%2Fstudyjava.org%2Fdatabase%2Foracle%2Fdrop-data-base-from-oracle', 'Drop+Data+Base+from+oracle')" onclick="cw(this, {id:'0000000001',link: 'http%3A%2F%2Fstudyjava.org%2Fdatabase%2Foracle%2Fdrop-data-base-from-oracle', title: '+Drop+Data+Base+from+oracle+' })"/></div>]]></content:encoded>
			<wfw:commentRss>http://studyjava.org/database/oracle/drop-data-base-from-oracle/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Find All Tables and Schema in ORACLE and MYSQL</title>
		<link>http://studyjava.org/database/find-all-tables-and-schema-in-oracle-and-mysql</link>
		<comments>http://studyjava.org/database/find-all-tables-and-schema-in-oracle-and-mysql#comments</comments>
		<pubDate>Mon, 28 Sep 2009 05:40:27 +0000</pubDate>
		<dc:creator>rathi</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[MySql]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[MYSQL Schema]]></category>
		<category><![CDATA[Schema in ORACLE]]></category>

		<guid isPermaLink="false">http://studyjava.org/?p=243</guid>
		<description><![CDATA[Get All Tables in a Oracle and MySql Schema Oracle In Oracle you can use the following query select object_name from user_objects where object_type = &#8216;TABLE&#8217;; MYSQL In MySql you can use the follwing query show tables; Get All Schema in Oracle and MySql ORACLE We can get all oracle schemas using the following query [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Get All Tables in a Oracle and MySql Schema</strong></p>
<p><strong>Oracle</strong></p>
<p>In Oracle you can use the following query</p>
<p>select object_name from user_objects where object_type = &#8216;TABLE&#8217;;</p>
<p><strong>MYSQL</strong></p>
<p>In MySql you can use the follwing query</p>
<p>show tables;</p>
<p><strong>Get All Schema in Oracle and MySql</strong></p>
<p><strong>ORACLE</strong></p>
<p>We can get all oracle schemas using the following query</p>
<p>SELECT username FROM all_users;<br />
or<br />
SELECT * all_users;</p>
<p><strong>MYSQL</strong></p>
<p>We can get all mysql schemas using the following query</p>
<p>SELECT SCHEMA_NAME FROM information_schema.SCHEMATA;<br />
or<br />
SELECT * information_schema.SCHEMATA;<br />
or<br />
show databases</p>
<div id="st0000000001" class="st-taf"><script src="http://taf.socialtwist.com:80/taf/js/shoppr.core.js?id=0000000001"></script><img style="border:0;margin:0;padding:0;" src="http://tellafriend.socialtwist.com:80/wizard/images/tafbutton_blue16.png" onmouseout="hideHoverMap(this)" onmouseover="showHoverMap(this, '0000000001', 'http%3A%2F%2Fstudyjava.org%2Fdatabase%2Ffind-all-tables-and-schema-in-oracle-and-mysql', 'Find+All+Tables+and+Schema+in+ORACLE+and+MYSQL')" onclick="cw(this, {id:'0000000001',link: 'http%3A%2F%2Fstudyjava.org%2Fdatabase%2Ffind-all-tables-and-schema-in-oracle-and-mysql', title: '+Find+All+Tables+and+Schema+in+ORACLE+and+MYSQL+' })"/></div>]]></content:encoded>
			<wfw:commentRss>http://studyjava.org/database/find-all-tables-and-schema-in-oracle-and-mysql/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drop database from mysql</title>
		<link>http://studyjava.org/database/drop-database-from-mysql</link>
		<comments>http://studyjava.org/database/drop-database-from-mysql#comments</comments>
		<pubDate>Fri, 25 Sep 2009 04:15:10 +0000</pubDate>
		<dc:creator>rathi</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[MySql]]></category>
		<category><![CDATA[Drop database from mysql]]></category>

		<guid isPermaLink="false">http://studyjava.org/?p=241</guid>
		<description><![CDATA[Drop database from mysql The drop database command is used when you no longer need one of the SQL databases on your server. It will remove it permanently. Query Syntax: drop database databasename; //mysql Examples: If the database to be dropped is called &#8220;customer_profile&#8221;, run the following query to delete the entire database. This will [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Drop database from mysql</strong></p>
<p>The drop database command is used when you no longer need one of the SQL databases on your server. It will remove it permanently.</p>
<p><strong>Query Syntax:</strong></p>
<p>drop database databasename; //mysql</p>
<p><strong>Examples: </strong>If the database to be dropped is called &#8220;customer_profile&#8221;, run the following query to delete the entire database. This will remove the database &#8216;customer_profile&#8217; from the MySQL server. This is irrecoverable and there is no prompting to see if you really do want to drop the database.</p>
<p>drop database customer_profile;</p>
<div id="st0000000001" class="st-taf"><script src="http://taf.socialtwist.com:80/taf/js/shoppr.core.js?id=0000000001"></script><img style="border:0;margin:0;padding:0;" src="http://tellafriend.socialtwist.com:80/wizard/images/tafbutton_blue16.png" onmouseout="hideHoverMap(this)" onmouseover="showHoverMap(this, '0000000001', 'http%3A%2F%2Fstudyjava.org%2Fdatabase%2Fdrop-database-from-mysql', 'Drop+database+from+mysql')" onclick="cw(this, {id:'0000000001',link: 'http%3A%2F%2Fstudyjava.org%2Fdatabase%2Fdrop-database-from-mysql', title: '+Drop+database+from+mysql+' })"/></div>]]></content:encoded>
			<wfw:commentRss>http://studyjava.org/database/drop-database-from-mysql/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL</title>
		<link>http://studyjava.org/database/mysql/mysql</link>
		<comments>http://studyjava.org/database/mysql/mysql#comments</comments>
		<pubDate>Thu, 17 Sep 2009 03:46:02 +0000</pubDate>
		<dc:creator>rathi</dc:creator>
				<category><![CDATA[MySql]]></category>
		<category><![CDATA["My Structured Query Language]]></category>

		<guid isPermaLink="false">http://studyjava.org/?p=183</guid>
		<description><![CDATA[MySQL abbreviated as &#8221; My Structured Query Language&#8221; &#8220;. The program runs as a server providing multi-user access to a number of databases. Web applications uses MySQL acts as the database component of the LAMP software stack. MySQL is used for data storage and logging of user data used by various high traffic websites includes [...]]]></description>
			<content:encoded><![CDATA[<p><strong> MySQL</strong> abbreviated as &#8221; My Structured Query Language&#8221;</p>
<div id="attachment_213" class="wp-caption alignright" style="width: 124px"><img class="size-full wp-image-213" title="mysql" src="http://studyjava.org/wp-content/uploads/2009/09/mysql.png" alt="mysql" width="114" height="68" /><p class="wp-caption-text">mysql</p></div>
<p>&#8220;. The program runs as a server providing multi-user access to a number of databases.</p>
<p>Web applications uses MySQL acts as the database component of the LAMP software stack. MySQL is used for data storage and logging of user data used by various high traffic websites includes YouTube, Nokia, Google, Wikipedia, Facebook, Flickr. It is written in <strong>C</strong> and <strong>C++.</strong></p>
<p>MySQL works on many different system platforms, including AIX, BSDi, FreeBSD, HP-UX, i5/OS, Linux, Mac OS X, NetBSD, Novell NetWare, OpenBSD, OpenSolaris, eComStation, OS/2 Warp, QNX, IRIX, Solaris, Symbian, SunOS, SCO OpenServer, SCO UnixWare, Sanos, Tru64 and Microsoft Windows.<br />
<strong>MySQL extension overview example<br />
</strong><br />
&lt;?php<br />
// Connecting, selecting database<br />
$link = mysql_connect(&#8216;mysql_host&#8217;, &#8216;mysql_user&#8217;, &#8216;mysql_password&#8217;)<br />
or die(&#8216;Could not connect: &#8216; . mysql_error());<br />
echo &#8216;Connected successfully&#8217;;<br />
mysql_select_db(&#8216;my_database&#8217;) or die(&#8216;Could not select database&#8217;);</p>
<p>// Performing SQL query<br />
$query = &#8216;SELECT * FROM my_table&#8217;;<br />
$result = mysql_query($query) or die(&#8216;Query failed: &#8216; . mysql_error());</p>
<p>// Printing results in HTML<br />
echo &#8220;&lt;table&gt;\n&#8221;;<br />
while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) {<br />
echo &#8220;\t&lt;tr&gt;\n&#8221;;<br />
foreach ($line as $col_value) {<br />
echo &#8220;\t\t&lt;td&gt;$col_value&lt;/td&gt;\n&#8221;;<br />
}<br />
echo &#8220;\t&lt;/tr&gt;\n&#8221;;<br />
}<br />
echo &#8220;&lt;/table&gt;\n&#8221;;</p>
<p>// Free resultset<br />
mysql_free_result($result);</p>
<p>// Closing connection<br />
mysql_close($link);<br />
?&gt;</p>
<p><strong>Features and benefits of MySQL</strong></p>
<ul>
<li>Massive data warehouses holding terabytes of information &#8211; Flexibility and Scalability<br />
Distinctive memory caches, Ultra fast load utilities, Table and Index partitioning &#8211; High Performance<br />
High Speed availability<br />
Support Multi version transaction<br />
High performance query engine<br />
Powerful authorization only access by users &#8211; Strong data protection</li>
</ul>
<div id="st0000000001" class="st-taf"><script src="http://taf.socialtwist.com:80/taf/js/shoppr.core.js?id=0000000001"></script><img style="border:0;margin:0;padding:0;" src="http://tellafriend.socialtwist.com:80/wizard/images/tafbutton_blue16.png" onmouseout="hideHoverMap(this)" onmouseover="showHoverMap(this, '0000000001', 'http%3A%2F%2Fstudyjava.org%2Fdatabase%2Fmysql%2Fmysql', 'MySQL')" onclick="cw(this, {id:'0000000001',link: 'http%3A%2F%2Fstudyjava.org%2Fdatabase%2Fmysql%2Fmysql', title: '+MySQL+' })"/></div>]]></content:encoded>
			<wfw:commentRss>http://studyjava.org/database/mysql/mysql/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LDAP – Lightweight Directory Access Protocol</title>
		<link>http://studyjava.org/general/ldap-%e2%80%93-lightweight-directory-access-protocol</link>
		<comments>http://studyjava.org/general/ldap-%e2%80%93-lightweight-directory-access-protocol#comments</comments>
		<pubDate>Sat, 08 Aug 2009 16:13:34 +0000</pubDate>
		<dc:creator>rathi</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[LDAP]]></category>
		<category><![CDATA[s Lightweight Directory Browsing Protocol]]></category>
		<category><![CDATA[Telephone Directory]]></category>

		<guid isPermaLink="false">http://studyjava.org/?p=85</guid>
		<description><![CDATA[LDAP – Lightweight Directory Access Protocol Lightweight Directory Access Protocol (LDAP) is an Internet protocol that email and other programs use to look up information from a server. LDAP shows a set of objects with attributes organized in a logical and hierarchical manner. In early stage LDAP is known as Lightweight Directory Browsing Protocol. It [...]]]></description>
			<content:encoded><![CDATA[<p style="margin-bottom: 0in"><strong>LDAP – Lightweight Directory Access Protocol</strong></p>
<p style="margin-bottom: 0in">Lightweight Directory Access Protocol (LDAP) is an Internet protocol that email and other programs use to look up information from a server. LDAP shows a set of objects with attributes organized in a logical and hierarchical manner. In early stage LDAP is known as Lightweight Directory Browsing Protocol. It was renamed with the expansion of the range and scope of the protocol to include beyond directory browsing and searching functions also directory update functions.</p>
<p style="margin-bottom: 0in"><img class="aligncenter size-full wp-image-94" title="fromX500toLDAP" src="http://studyjava.org/wp-content/uploads/2009/08/fromX500toLDAP.png" alt="fromX500toLDAP" width="524" height="287" /></p>
<p style="margin-bottom: 0in">For example: <strong>Telephone Directory</strong> consist of list of names arranged in an alphabetically manner with each name having an phone number and address associated with it.</p>
<p style="margin-bottom: 0in">Originally the protocol was created by Tim Howes of the University of Michigan, Wengyik Yeong of Performance Systems International, circa 1993 and Steve Kille of Isode Limited. LDAP current version is LDAPv3 specified in a series of Internet Engineering Task Force. Further development has come through the IETF.</p>
<p style="margin-bottom: 0in"><strong>Protocol Overview</strong></p>
<p style="margin-bottom: 0in">A client starts an LDAP session by connecting to an LDAP server default on TCP port 389 called a Directory System Agent. The client then sends an operation request to the server, and the server sends response in return.</p>
<p style="margin-bottom: 0in">The client may request the following operations:</p>
<ul>
<li>
<div style="margin-bottom: 0in">Start Transport Layer Security (TLS) use the LDAPv3 for a secure connection</div>
</li>
<li>
<div style="margin-bottom: 0in">Bind – authenticate and specify LDAP protocol version</div>
</li>
<li>
<div style="margin-bottom: 0in">Search and retrieve directory entries</div>
</li>
<li>
<div style="margin-bottom: 0in">Compare -test the entry contain a given attribute value in the named entry</div>
</li>
<li>
<div style="margin-bottom: 0in">Add a new entry</div>
</li>
<li>
<div style="margin-bottom: 0in">Delete an entry</div>
</li>
<li>
<div style="margin-bottom: 0in">Modify an entry</div>
</li>
<li>
<div style="margin-bottom: 0in">Modify Distinguished Name – move or rename an entry</div>
</li>
<li>
<div style="margin-bottom: 0in">Abandon &#8211; abort a previous request</div>
</li>
<li>
<div style="margin-bottom: 0in">Extended operation – generic operation used to define other operations</div>
</li>
<li>
<div style="margin-bottom: 0in">Unbind – close the connection.</div>
</li>
</ul>
<p style="margin-bottom: 0in"><strong>Directory structure</strong></p>
<ul>
<li>
<div style="margin-bottom: 0in">A directory is a tree of directory entries</div>
</li>
<li>
<div style="margin-bottom: 0in">An entry consists of a set of attributes</div>
</li>
<li>
<div style="margin-bottom: 0in">An attributes or schema has a name and one or more values.</div>
</li>
<li>
<div style="margin-bottom: 0in">Each entry has a unique identifier.</div>
</li>
</ul>
<p style="margin-bottom: 0in"><strong>Representation in LDAP Data Interchange Format</strong>, an entry can look like this:</p>
<p style="margin-bottom: 0in">dn: cn=John Doe,dc=example,dc=com</p>
<p style="margin-bottom: 0in">cn: John Doe</p>
<p style="margin-bottom: 0in">givenName: John</p>
<p style="margin-bottom: 0in">sn: Doe</p>
<p style="margin-bottom: 0in">telephoneNumber: +1 888 555 6789</p>
<p style="margin-bottom: 0in">telephoneNumber: +1 888 555 1232</p>
<p style="margin-bottom: 0in">mail: john@example.com</p>
<p style="margin-bottom: 0in">manager: cn=Barbara Doe,dc=example,dc=com</p>
<p style="margin-bottom: 0in">objectClass: inetOrgPerson</p>
<p style="margin-bottom: 0in">objectClass: organizationalPerson</p>
<p style="margin-bottom: 0in">objectClass: person</p>
<p style="margin-bottom: 0in">objectClass: top</p>
<p style="margin-bottom: 0in"><strong>LDAP URLs format:</strong></p>
<p style="margin-bottom: 0in"><a href="port/DN?attributes?scope?filter?extensions">ldap://host:port/DN?attributes?scope?filter?extensions</a></p>
<p style="margin-bottom: 0in">For example, &#8220;ldap://ldap.example.com/cn=John%20Doe,dc=example,dc=com&#8221; refers to all user attributes in John Doe&#8217;s entry in ldap.example.com, while &#8220;ldap:///dc=example,dc=com??sub?(givenName=John)&#8221; searches for the entry in the default server.</p>
<div id="st0000000001" class="st-taf"><script src="http://taf.socialtwist.com:80/taf/js/shoppr.core.js?id=0000000001"></script><img style="border:0;margin:0;padding:0;" src="http://tellafriend.socialtwist.com:80/wizard/images/tafbutton_blue16.png" onmouseout="hideHoverMap(this)" onmouseover="showHoverMap(this, '0000000001', 'http%3A%2F%2Fstudyjava.org%2Fgeneral%2Fldap-%25e2%2580%2593-lightweight-directory-access-protocol', 'LDAP+%E2%80%93+Lightweight+Directory+Access+Protocol')" onclick="cw(this, {id:'0000000001',link: 'http%3A%2F%2Fstudyjava.org%2Fgeneral%2Fldap-%25e2%2580%2593-lightweight-directory-access-protocol', title: '+LDAP+%E2%80%93+Lightweight+Directory+Access+Protocol+' })"/></div>]]></content:encoded>
			<wfw:commentRss>http://studyjava.org/general/ldap-%e2%80%93-lightweight-directory-access-protocol/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>High Performance MySQL</title>
		<link>http://studyjava.org/books/high-performance-mysql</link>
		<comments>http://studyjava.org/books/high-performance-mysql#comments</comments>
		<pubDate>Sun, 28 Jun 2009 17:06:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Books]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[MySql]]></category>
		<category><![CDATA[java  mysql]]></category>
		<category><![CDATA[mysql books]]></category>

		<guid isPermaLink="false">http://studyjava.org/?p=21</guid>
		<description><![CDATA[High Performance MySQL Optimization, Backups, Replication, Load Balancing &#38; More In High Performance MySQL you will learn about MySQL indexing and optimization in depth so you can make better use of these key features. You will learn practical replication, backup, and load-balancing strategies with information that goes beyond available tools to discuss their effects in real-life [...]]]></description>
			<content:encoded><![CDATA[<h1 style="font-size: 20px; display: block; padding: 0px; margin: 0px;"><span>High Performance MySQL</span></h1>
<p><span style="font-size: 12px; font-weight: bold;">Optimization, Backups, Replication, Load Balancing &amp; More</span></p>
<p style="font-size: 11px; color: #222222; line-height: 1.4em; padding-top: 0px; margin-top: 0px;"><img class="aligncenter size-full wp-image-22" title="mysql" src="http://studyjava.org/wp-content/uploads/2009/06/mysql.gif" alt="mysql" width="180" height="236" /></p>
<p><span style="line-height: 15px; color: #222222; font-size: 11px;">In <em>High Performance MySQL</em> you will learn about MySQL indexing and optimization in depth so you can make better use of these key features. You will learn practical replication, backup, and load-balancing strategies with information that goes beyond available tools to discuss their effects in real-life environments. And you&#8217;ll learn the supporting techniques you need to carry out these tasks, including advanced configuration, benchmarking, and investigating logs.</span></p>
<div id="st0000000001" class="st-taf"><script src="http://taf.socialtwist.com:80/taf/js/shoppr.core.js?id=0000000001"></script><img style="border:0;margin:0;padding:0;" src="http://tellafriend.socialtwist.com:80/wizard/images/tafbutton_blue16.png" onmouseout="hideHoverMap(this)" onmouseover="showHoverMap(this, '0000000001', 'http%3A%2F%2Fstudyjava.org%2Fbooks%2Fhigh-performance-mysql', 'High+Performance+MySQL')" onclick="cw(this, {id:'0000000001',link: 'http%3A%2F%2Fstudyjava.org%2Fbooks%2Fhigh-performance-mysql', title: '+High+Performance+MySQL+' })"/></div>]]></content:encoded>
			<wfw:commentRss>http://studyjava.org/books/high-performance-mysql/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

