<?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>Samet Kilictas&#039;s Blog &#187; SQL</title>
	<atom:link href="http://samet.kilictas.com/tag/sql/feed/" rel="self" type="application/rss+xml" />
	<link>http://samet.kilictas.com</link>
	<description>J2E, PHP, Linux, PL/SQL and other random rants</description>
	<lastBuildDate>Sun, 06 Nov 2011 04:36:58 +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>Actual size of tables for tablespaces</title>
		<link>http://samet.kilictas.com/actual-size-of-tables-for-tablespaces/</link>
		<comments>http://samet.kilictas.com/actual-size-of-tables-for-tablespaces/#comments</comments>
		<pubDate>Sat, 05 Nov 2011 15:05:20 +0000</pubDate>
		<dc:creator>Samet Kilictas</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[oracle table size]]></category>
		<category><![CDATA[segment]]></category>
		<category><![CDATA[table]]></category>
		<category><![CDATA[table size]]></category>
		<category><![CDATA[tablespace]]></category>
		<category><![CDATA[user_segments]]></category>

		<guid isPermaLink="false">http://samet.kilictas.com/?p=522</guid>
		<description><![CDATA[The size of a table can be found using oracle&#8217;s segment tables. Basically following code block returns a result of table size within related tablespaces in terms of MB and GB: SELECT tablespace_name, segment_name AS TABLENAME, trunc((sum(BYTES) / 1024 / 1024), 2) MB, trunc((sum(BYTES) / 1024 / 1024 / 1024), 2) GB FROM user_segments GROUP [...]]]></description>
			<content:encoded><![CDATA[<p>The size of a table can be found using oracle&#8217;s segment tables. Basically following code block returns a result of table size within related tablespaces in terms of MB and GB:</p>
<pre class="brush: sql">
   SELECT tablespace_name,
          segment_name AS TABLENAME,
          trunc((sum(BYTES) / 1024 / 1024), 2) MB,
          trunc((sum(BYTES) / 1024 / 1024 / 1024), 2) GB
     FROM user_segments
 GROUP BY tablespace_name, segment_name
</pre>
<p>This way you may access only the tablespaces of logged in user</p>
<a href='http://twitter.com/share?url=http%3A%2F%2Fsamet.kilictas.com%2F%3Fp%3D522&count=vertical&related=&text=Actual%20size%20of%20tables%20for%20tablespaces' class='twitter-share-button' data-text='Actual size of tables for tablespaces' data-url='http://samet.kilictas.com/?p=522' data-counturl='http://samet.kilictas.com/actual-size-of-tables-for-tablespaces/' data-count='vertical' data-via='sametkilictas'>Tweet</a>]]></content:encoded>
			<wfw:commentRss>http://samet.kilictas.com/actual-size-of-tables-for-tablespaces/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Backup and Restore a MySQL Database</title>
		<link>http://samet.kilictas.com/how-to-backup-and-restore-a-mysql-database/</link>
		<comments>http://samet.kilictas.com/how-to-backup-and-restore-a-mysql-database/#comments</comments>
		<pubDate>Sun, 07 Jun 2009 08:42:54 +0000</pubDate>
		<dc:creator>Samet Kilictas</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://samet.kilictas.com/?p=334</guid>
		<description><![CDATA[To make a database backup using the MySQL command-line utilities, execute the following command: $ mysqldump -u username -p &#8211;opt dbname &#62; dump.sql It will ask you for password because we used -p paramater over there. If the MySQL programs are not in your path, you will need to manually specify the location of the [...]]]></description>
			<content:encoded><![CDATA[<p>To make a database backup using the MySQL command-line utilities, execute the following command:</p>
<blockquote><p>$ mysqldump -u username -p &#8211;opt dbname &gt; dump.sql</p></blockquote>
<p>It will ask you for password because we used -p paramater over there. If the MySQL programs are not in your path, you will need to manually specify the location of the mysqldump program:</p>
<blockquote><p>$ /<span style="text-decoration: line-through;">path-to-your-mysql-bin</span>/mysqldump -u username -p &#8211;opt dbname &gt; dump.sql</p></blockquote>
<p>Download the dump.sql and keep it in a safe place (CDR, Zip disk, etc).</p>
<p>If you need to restore your database, you can do so like this:</p>
<blockquote><p>$ mysql -u username -p dbname &lt; dump.sql</p></blockquote>
<p>This is the simples way to restore and backup your database.</p>
<a href='http://twitter.com/share?url=http%3A%2F%2Fsamet.kilictas.com%2F%3Fp%3D334&count=vertical&related=&text=How%20to%20Backup%20and%20Restore%20a%20MySQL%20Database' class='twitter-share-button' data-text='How to Backup and Restore a MySQL Database' data-url='http://samet.kilictas.com/?p=334' data-counturl='http://samet.kilictas.com/how-to-backup-and-restore-a-mysql-database/' data-count='vertical' data-via='sametkilictas'>Tweet</a>]]></content:encoded>
			<wfw:commentRss>http://samet.kilictas.com/how-to-backup-and-restore-a-mysql-database/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

