<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" xml:lang="en" xml:base="http://blog.ramin-hossaini.com/wp-atom.php">
	<title type="text">Ramin Hossaini (blog)</title>
	<subtitle type="text" />

	<updated>2010-06-28T21:20:37Z</updated>

	<link rel="alternate" type="text/html" href="http://blog.ramin-hossaini.com" />
	<id>http://blog.ramin-hossaini.com/feed/atom/</id>
	

	<generator uri="http://wordpress.org/" version="3.0">WordPress</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/RaminHossaini" /><feedburner:info uri="raminhossaini" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>RaminHossaini</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><entry>
		<author>
			<name>Ramin Hossaini</name>
						<uri>http://www.ramin-hossaini.com</uri>
					</author>
		<title type="html"><![CDATA[Linux: Tar and Zip]]></title>
		<link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RaminHossaini/~3/VNWHFSR1v8M/" />
		<id>http://blog.ramin-hossaini.com/?p=803</id>
		<updated>2010-06-28T21:20:37Z</updated>
		<published>2010-06-28T21:20:37Z</published>
		<category scheme="http://blog.ramin-hossaini.com" term="General" />		<summary type="html"><![CDATA[Compress: z: Compress using GZIP c: Create an archive (as opposed to the 'x' parameter to extract) v: Verbose mode f: Archive's filename $ tar -zcvf filename.tar.gz /directory Extract: $ tar -zxvf filename.tar.gz Related posts:Turning Archive-log mode on and off Simple MySQL backup-script Search through files for a string (Linux)


Related posts:<ol><li><a href='http://blog.ramin-hossaini.com/2010/02/16/turning-archive-log-mode-on-and-off/' rel='bookmark' title='Permanent Link: Turning Archive-log mode on and off'>Turning Archive-log mode on and off</a></li>
<li><a href='http://blog.ramin-hossaini.com/2008/03/23/simple-mysql-backup-script/' rel='bookmark' title='Permanent Link: Simple MySQL backup-script'>Simple MySQL backup-script</a></li>
<li><a href='http://blog.ramin-hossaini.com/2009/11/04/search-through-files-for-a-string/' rel='bookmark' title='Permanent Link: Search through files for a string (Linux)'>Search through files for a string (Linux)</a></li>
</ol>]]></summary>
		<content type="html" xml:base="http://blog.ramin-hossaini.com/2010/06/28/linux-tar-and-zip/">&lt;h2&gt;Compress:&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;z: Compress using GZIP&lt;/li&gt;
&lt;li&gt;c: Create an archive (as opposed to the 'x' parameter to extract)&lt;/li&gt;
&lt;li&gt;v: Verbose mode&lt;/li&gt;
&lt;li&gt;f: Archive's filename&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="wp_syntax"&gt;&lt;div class="code"&gt;&lt;pre class="bash" style="font-family:monospace;"&gt;$ &lt;span style="color: #c20cb9; font-weight: bold;"&gt;tar&lt;/span&gt; &lt;span style="color: #660033;"&gt;-zcvf&lt;/span&gt; filename.tar.gz &lt;span style="color: #000000; font-weight: bold;"&gt;/&lt;/span&gt;directory&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2&gt;Extract:&lt;/h2&gt;

&lt;div class="wp_syntax"&gt;&lt;div class="code"&gt;&lt;pre class="bash" style="font-family:monospace;"&gt;$ &lt;span style="color: #c20cb9; font-weight: bold;"&gt;tar&lt;/span&gt; &lt;span style="color: #660033;"&gt;-zxvf&lt;/span&gt; filename.tar.gz&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;



&lt;p&gt;Related posts:&lt;ol&gt;&lt;li&gt;&lt;a href='http://blog.ramin-hossaini.com/2010/02/16/turning-archive-log-mode-on-and-off/' rel='bookmark' title='Permanent Link: Turning Archive-log mode on and off'&gt;Turning Archive-log mode on and off&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://blog.ramin-hossaini.com/2008/03/23/simple-mysql-backup-script/' rel='bookmark' title='Permanent Link: Simple MySQL backup-script'&gt;Simple MySQL backup-script&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://blog.ramin-hossaini.com/2009/11/04/search-through-files-for-a-string/' rel='bookmark' title='Permanent Link: Search through files for a string (Linux)'&gt;Search through files for a string (Linux)&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RaminHossaini/~4/VNWHFSR1v8M" height="1" width="1"/&gt;</content>
		<link rel="replies" type="text/html" href="http://blog.ramin-hossaini.com/2010/06/28/linux-tar-and-zip/#comments" thr:count="0" />
		<link rel="replies" type="application/atom+xml" href="http://blog.ramin-hossaini.com/2010/06/28/linux-tar-and-zip/feed/atom/" thr:count="0" />
		<thr:total>0</thr:total>
	<feedburner:origLink>http://blog.ramin-hossaini.com/2010/06/28/linux-tar-and-zip/</feedburner:origLink></entry>
		<entry>
		<author>
			<name>Ramin Hossaini</name>
						<uri>http://www.ramin-hossaini.com</uri>
					</author>
		<title type="html"><![CDATA[Ridding Twitter of Annoyances]]></title>
		<link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RaminHossaini/~3/DtWyGvFXfvM/" />
		<id>http://blog.ramin-hossaini.com/?p=766</id>
		<updated>2010-06-07T17:22:44Z</updated>
		<published>2010-06-05T15:32:31Z</published>
		<category scheme="http://blog.ramin-hossaini.com" term="How-to" /><category scheme="http://blog.ramin-hossaini.com" term="Rants" /><category scheme="http://blog.ramin-hossaini.com" term="Twitter" />		<summary type="html"><![CDATA[Fact: Life is tough when you're easily irritated online. Twitter is an amazing service (if used properly). It's a great way of getting news quickly, and personally, I find it to be a great place to find entertaining people. It definitely has its uses. With that said, I have to say that every one of [...]


Related posts:<ol><li><a href='http://blog.ramin-hossaini.com/2008/12/04/how-to-get-a-stuck-filter-off-a-lens/' rel='bookmark' title='Permanent Link: How to get a stuck-filter off a lens'>How to get a stuck-filter off a lens</a></li>
<li><a href='http://blog.ramin-hossaini.com/2008/12/05/finding-new-photos-on-flickr-almost-effortlessly/' rel='bookmark' title='Permanent Link: Finding new photos on Flickr (almost effortlessly)'>Finding new photos on Flickr (almost effortlessly)</a></li>
<li><a href='http://blog.ramin-hossaini.com/2009/09/24/how-to-get-rid-of-your-captcha-and-still-avoid-spam/' rel='bookmark' title='Permanent Link: How to get rid of your CAPTCHA and still avoid spam'>How to get rid of your CAPTCHA and still avoid spam</a></li>
</ol>]]></summary>
		<content type="html" xml:base="http://blog.ramin-hossaini.com/2010/06/05/ridding-twitter-of-annoyances/">&lt;p&gt;Fact: Life is tough when you're easily irritated online.&lt;/p&gt;
&lt;p&gt;Twitter is an amazing service (if used properly). It's a great way of getting news quickly, and personally, I find it to be a great place to find entertaining people. It definitely has its uses.&lt;/p&gt;
&lt;p&gt;With that said, I have to say that every one of us have been annoying to someone, somewhere, at some time. It happens. However, with certain folks, it happens more regularly than others. Look - that's fine. That's what makes us all different. It's also what makes me find you annoying. &lt;/p&gt;
&lt;p&gt;The most common solution is unfollowing someone (or taking it a step further by blocking and reporting them for spam). Easier said than done. Sometimes you have a couple conversations with a person and fool yourself into thinking you're friends. It happens. So what to do?&lt;/p&gt;
&lt;p&gt;TweetDeck has recently (version 0.34+) implemented an amazing feature: Global filter&lt;/p&gt;
&lt;p&gt;&lt;img src="http://blog.ramin-hossaini.com/wp-content/uploads/2010/06/2010-06-05_151200.png" alt="" title="2010-06-05_151200" width="482" height="415" class="alignnone size-full wp-image-767" /&gt;&lt;/p&gt;
&lt;h2&gt;A Couple Essentials&lt;/h2&gt;
&lt;h3&gt;Bieber&lt;/h3&gt;
&lt;p&gt;&lt;img src="http://blog.ramin-hossaini.com/wp-content/uploads/2010/06/2010-06-05_152514.png" alt="" title="2010-06-05_152514" width="540" height="64" class="alignnone size-full wp-image-769" /&gt;&lt;/p&gt;
&lt;p&gt;Let's face it. Justin Bieber exists. He also commands an legion of hormone-crazed teenagers online. Add his name to that filter list, as shown above, and you should be alright though. It's actually a fortunate thing that he has a unique name. So you should be safe to filter it as a word completely.&lt;/p&gt;
&lt;h3&gt;Formspring&lt;/h3&gt;
&lt;p&gt;&lt;img src="http://blog.ramin-hossaini.com/wp-content/uploads/2010/06/2010-06-05_152920.png" alt="" title="2010-06-05_152920" width="540" height="70" class="alignnone size-full wp-image-771" /&gt;&lt;/p&gt;
&lt;p&gt;Formspring is a service that allows people to ask questions anonymously. Seems very popular. I've noticed that this happens among people who seem to think they're more famous than they actually are. I don't have any intention of asking you anything.&lt;/p&gt;
&lt;p&gt;The easiest solution is to add "www.formspring" as a keyword.&lt;/p&gt;
&lt;h3&gt;Knitting&lt;/h3&gt;
&lt;p&gt;&lt;img src="http://blog.ramin-hossaini.com/wp-content/uploads/2010/06/2010-06-05_153738.png" alt="" title="2010-06-05_153738" width="534" height="85" class="alignnone size-full wp-image-773" /&gt;&lt;/p&gt;
&lt;p&gt;No real explanation needed for this one. Just block that keyword and be done with it.&lt;/p&gt;
&lt;h2&gt;Exaggeration and Excess-Enthusiasm&lt;/h2&gt;
&lt;p&gt;&lt;img src="http://blog.ramin-hossaini.com/wp-content/uploads/2010/06/2010-06-05_154318.png" alt="" title="2010-06-05_154318" width="539" height="75" class="alignnone size-full wp-image-775" /&gt;&lt;/p&gt;
&lt;p&gt;It's a tough one figuring out the ideal number of exclamation-marks. Which number is ideal? I'm not entirely sure, but 6 has worked well for me (!!!!!!)&lt;/p&gt;
&lt;p&gt;&lt;img src="http://blog.ramin-hossaini.com/wp-content/uploads/2010/06/2010-06-05_154459.png" alt="" title="2010-06-05_154459" width="533" height="64" class="alignnone size-full wp-image-776" /&gt;&lt;/p&gt;
&lt;p&gt;Again, it's tough to say how many is the ideal number to filter here. My studies have shown that 5-S's (sssss) is too much. &lt;/p&gt;
&lt;p&gt;&lt;img src="http://blog.ramin-hossaini.com/wp-content/uploads/2010/06/2010-06-05_155633.png" alt="" title="2010-06-05_155633" width="542" height="74" class="alignnone size-full wp-image-781" /&gt;&lt;/p&gt;
&lt;p&gt;This is usually an indication that you should probably be following more mature Tweeters. Otherwise, "meeee" is a great keyword to filter.&lt;/p&gt;
&lt;h2&gt;Affection&lt;/h2&gt;
&lt;p&gt;&lt;img src="http://blog.ramin-hossaini.com/wp-content/uploads/2010/06/2010-06-05_155046.png" alt="" title="2010-06-05_155046" width="547" height="88" class="alignnone size-full wp-image-778" /&gt;&lt;/p&gt;
&lt;p&gt;"&lt;3": You're better off unfollowing this person completely.&lt;/p&gt;
&lt;p&gt;&lt;img src="http://blog.ramin-hossaini.com/wp-content/uploads/2010/06/2010-06-05_155231.png" alt="" title="2010-06-05_155231" width="534" height="86" class="alignnone size-full wp-image-779" /&gt;&lt;/p&gt;
&lt;p&gt;"♥": I wish I could block this, but TweetDeck seems to have some sort of unicode limitations - you might have to put up with this kind of Tweet for the time being.&lt;/p&gt;
&lt;h2&gt;People using Twitter as an IM service&lt;/h2&gt;
&lt;p&gt;You've seen this happen. Mutual-friends reply back and forth, then keep going for about 30 or 40 tweets. Amazing. I hate you. Solution: Add both their names to the keyword filter-list with an '@' as a prefix. For example: @AnnoyingPerson&lt;/p&gt;
&lt;h2&gt;Sources worth filtering&lt;/h2&gt;
&lt;h3&gt;Foursquare&lt;/h3&gt;
&lt;p&gt;&lt;img src="http://blog.ramin-hossaini.com/wp-content/uploads/2010/06/2010-06-05_110610.png" alt="" title="2010-06-05_110610" width="540" height="68" class="alignnone size-full wp-image-772" /&gt;&lt;/p&gt;
&lt;p&gt;Foursquare is a service that allows people to act exactly like dogs pissing on trees marking their territory. Everybody fights for the "Mayor" position at a restaurant by "checking-in" regularly. &lt;/p&gt;
&lt;p&gt;Block it by adding "foursquare" to your 'sources' filter-list.&lt;/p&gt;
&lt;h3&gt;Twitterfeed&lt;/h3&gt;
&lt;p&gt;Some Twitter accounts are linked to blogs. Each time a new article is published, a Tweet is published at the same time. I have an RSS reader, and I'm not scared to use it.&lt;/p&gt;
&lt;h3&gt;API&lt;/h3&gt;
&lt;p&gt;&lt;img src="http://blog.ramin-hossaini.com/wp-content/uploads/2010/06/2010-06-05_160314.png" alt="" title="2010-06-05_160314" width="543" height="68" class="alignnone size-full wp-image-783" /&gt;&lt;/p&gt;
&lt;p&gt;API almost always is a post by a bot.&lt;/p&gt;
&lt;h2&gt;Remaining Challenges&lt;/h2&gt;
&lt;h3&gt;"your" versus "you're"&lt;/h3&gt;
&lt;p&gt;Also known as the Inability to understand the difference between "your" and "you're". If done consistently, this serves as a sure-fire way of determining a person's intellectual capacity. Unfortunately, I haven't been able to find a way of filtering this kind of stupidity other than unfollowing the person completely.&lt;/p&gt;
&lt;h3&gt;High-frequency Tweeters&lt;/h3&gt;
&lt;p&gt;Again, I have no solution for this. You might just have to add them to the from-people-list. &lt;/p&gt;
&lt;h2&gt;Conclusion&lt;/h2&gt;
&lt;p&gt;This is by no means an exhaustive list. Your annoyance-threshold may vary. If you have more suggestions, please leave a comment below.&lt;/p&gt;


&lt;p&gt;Related posts:&lt;ol&gt;&lt;li&gt;&lt;a href='http://blog.ramin-hossaini.com/2008/12/04/how-to-get-a-stuck-filter-off-a-lens/' rel='bookmark' title='Permanent Link: How to get a stuck-filter off a lens'&gt;How to get a stuck-filter off a lens&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://blog.ramin-hossaini.com/2008/12/05/finding-new-photos-on-flickr-almost-effortlessly/' rel='bookmark' title='Permanent Link: Finding new photos on Flickr (almost effortlessly)'&gt;Finding new photos on Flickr (almost effortlessly)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://blog.ramin-hossaini.com/2009/09/24/how-to-get-rid-of-your-captcha-and-still-avoid-spam/' rel='bookmark' title='Permanent Link: How to get rid of your CAPTCHA and still avoid spam'&gt;How to get rid of your CAPTCHA and still avoid spam&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RaminHossaini/~4/DtWyGvFXfvM" height="1" width="1"/&gt;</content>
		<link rel="replies" type="text/html" href="http://blog.ramin-hossaini.com/2010/06/05/ridding-twitter-of-annoyances/#comments" thr:count="2" />
		<link rel="replies" type="application/atom+xml" href="http://blog.ramin-hossaini.com/2010/06/05/ridding-twitter-of-annoyances/feed/atom/" thr:count="2" />
		<thr:total>2</thr:total>
	<feedburner:origLink>http://blog.ramin-hossaini.com/2010/06/05/ridding-twitter-of-annoyances/</feedburner:origLink></entry>
		<entry>
		<author>
			<name>Ramin Hossaini</name>
						<uri>http://www.ramin-hossaini.com</uri>
					</author>
		<title type="html"><![CDATA[Ubuntu: Installing Apache, PHP 5, and MySQL 5]]></title>
		<link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RaminHossaini/~3/9BCnWU4GvU8/" />
		<id>http://blog.ramin-hossaini.com/?p=762</id>
		<updated>2010-06-01T10:02:06Z</updated>
		<published>2010-06-01T10:02:06Z</published>
		<category scheme="http://blog.ramin-hossaini.com" term="How-to" /><category scheme="http://blog.ramin-hossaini.com" term="Apache" /><category scheme="http://blog.ramin-hossaini.com" term="Linux" /><category scheme="http://blog.ramin-hossaini.com" term="MySQL" /><category scheme="http://blog.ramin-hossaini.com" term="PHP" /><category scheme="http://blog.ramin-hossaini.com" term="Reference" /><category scheme="http://blog.ramin-hossaini.com" term="Ubuntu" />		<summary type="html"><![CDATA[Apache sudo apt-get install apache2 Locations: HTML directory: /var/www Apache2 conf: /etc/apache2/apache2.conf PHP 5 Install PHP, and also enable the PHP and Rewrite module in Apache: sudo apt-get install php5 sudo a2enmod php5 sudo a2enmod rewrite Locations: php.ini: /etc/php5/apache2/php.ini MySQL 5 sudo apt-get install mysql-server sudo apt-get install php5-mysql Restart Apache sudo /etc/init.d/apache2 restart Related [...]


Related posts:<ol><li><a href='http://blog.ramin-hossaini.com/2008/03/23/simple-mysql-backup-script/' rel='bookmark' title='Permanent Link: Simple MySQL backup-script'>Simple MySQL backup-script</a></li>
<li><a href='http://blog.ramin-hossaini.com/2010/04/25/mysql-batch-update-of-all-entries-in-table-that-match-condition/' rel='bookmark' title='Permanent Link: [MySQL] Batch update of all entries in table that match condition'>[MySQL] Batch update of all entries in table that match condition</a></li>
<li><a href='http://blog.ramin-hossaini.com/2008/10/28/performing-wordpress-upgrades-linux/' rel='bookmark' title='Permanent Link: Performing WordPress upgrades (Linux)'>Performing WordPress upgrades (Linux)</a></li>
</ol>]]></summary>
		<content type="html" xml:base="http://blog.ramin-hossaini.com/2010/06/01/ubuntu-installing-apache-php-5-and-mysql-5/">&lt;h2&gt;Apache&lt;/h2&gt;

&lt;div class="wp_syntax"&gt;&lt;div class="code"&gt;&lt;pre class="bash" style="font-family:monospace;"&gt;&lt;span style="color: #c20cb9; font-weight: bold;"&gt;sudo&lt;/span&gt; &lt;span style="color: #c20cb9; font-weight: bold;"&gt;apt-get&lt;/span&gt; &lt;span style="color: #c20cb9; font-weight: bold;"&gt;install&lt;/span&gt; apache2&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Locations:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;HTML directory: /var/www&lt;/li&gt;
&lt;li&gt;Apache2 conf: /etc/apache2/apache2.conf&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;PHP 5&lt;/h2&gt;
&lt;p&gt;Install PHP, and also enable the PHP and Rewrite module in Apache:&lt;/p&gt;

&lt;div class="wp_syntax"&gt;&lt;div class="code"&gt;&lt;pre class="bash" style="font-family:monospace;"&gt;&lt;span style="color: #c20cb9; font-weight: bold;"&gt;sudo&lt;/span&gt; &lt;span style="color: #c20cb9; font-weight: bold;"&gt;apt-get&lt;/span&gt; &lt;span style="color: #c20cb9; font-weight: bold;"&gt;install&lt;/span&gt; php5
&lt;span style="color: #c20cb9; font-weight: bold;"&gt;sudo&lt;/span&gt; a2enmod php5
&lt;span style="color: #c20cb9; font-weight: bold;"&gt;sudo&lt;/span&gt; a2enmod rewrite&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Locations:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;php.ini: /etc/php5/apache2/php.ini&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;MySQL 5&lt;/h2&gt;

&lt;div class="wp_syntax"&gt;&lt;div class="code"&gt;&lt;pre class="bash" style="font-family:monospace;"&gt;&lt;span style="color: #c20cb9; font-weight: bold;"&gt;sudo&lt;/span&gt; &lt;span style="color: #c20cb9; font-weight: bold;"&gt;apt-get&lt;/span&gt; &lt;span style="color: #c20cb9; font-weight: bold;"&gt;install&lt;/span&gt; mysql-server
&lt;span style="color: #c20cb9; font-weight: bold;"&gt;sudo&lt;/span&gt; &lt;span style="color: #c20cb9; font-weight: bold;"&gt;apt-get&lt;/span&gt; &lt;span style="color: #c20cb9; font-weight: bold;"&gt;install&lt;/span&gt; php5-mysql&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2&gt;Restart Apache&lt;/h2&gt;

&lt;div class="wp_syntax"&gt;&lt;div class="code"&gt;&lt;pre class="bash" style="font-family:monospace;"&gt;&lt;span style="color: #c20cb9; font-weight: bold;"&gt;sudo&lt;/span&gt; &lt;span style="color: #000000; font-weight: bold;"&gt;/&lt;/span&gt;etc&lt;span style="color: #000000; font-weight: bold;"&gt;/&lt;/span&gt;init.d&lt;span style="color: #000000; font-weight: bold;"&gt;/&lt;/span&gt;apache2 restart&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;



&lt;p&gt;Related posts:&lt;ol&gt;&lt;li&gt;&lt;a href='http://blog.ramin-hossaini.com/2008/03/23/simple-mysql-backup-script/' rel='bookmark' title='Permanent Link: Simple MySQL backup-script'&gt;Simple MySQL backup-script&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://blog.ramin-hossaini.com/2010/04/25/mysql-batch-update-of-all-entries-in-table-that-match-condition/' rel='bookmark' title='Permanent Link: [MySQL] Batch update of all entries in table that match condition'&gt;[MySQL] Batch update of all entries in table that match condition&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://blog.ramin-hossaini.com/2008/10/28/performing-wordpress-upgrades-linux/' rel='bookmark' title='Permanent Link: Performing WordPress upgrades (Linux)'&gt;Performing WordPress upgrades (Linux)&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RaminHossaini/~4/9BCnWU4GvU8" height="1" width="1"/&gt;</content>
		<link rel="replies" type="text/html" href="http://blog.ramin-hossaini.com/2010/06/01/ubuntu-installing-apache-php-5-and-mysql-5/#comments" thr:count="0" />
		<link rel="replies" type="application/atom+xml" href="http://blog.ramin-hossaini.com/2010/06/01/ubuntu-installing-apache-php-5-and-mysql-5/feed/atom/" thr:count="0" />
		<thr:total>0</thr:total>
	<feedburner:origLink>http://blog.ramin-hossaini.com/2010/06/01/ubuntu-installing-apache-php-5-and-mysql-5/</feedburner:origLink></entry>
		<entry>
		<author>
			<name>Ramin Hossaini</name>
						<uri>http://www.ramin-hossaini.com</uri>
					</author>
		<title type="html"><![CDATA[Oracle: Recovering a Tablespace]]></title>
		<link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RaminHossaini/~3/lYH2ymjcHKE/" />
		<id>http://blog.ramin-hossaini.com/?p=753</id>
		<updated>2010-05-22T22:57:37Z</updated>
		<published>2010-05-22T22:57:37Z</published>
		<category scheme="http://blog.ramin-hossaini.com" term="How-to" /><category scheme="http://blog.ramin-hossaini.com" term="Oracle" /><category scheme="http://blog.ramin-hossaini.com" term="Recovery" /><category scheme="http://blog.ramin-hossaini.com" term="Tablespace" />		<summary type="html"><![CDATA[The situation: The database was not shutdown cleanly and a tablespace needed recovery because of an outstanding transaction that wasn’t committed. If you simply STARTUP the database, the tablespace will still be in RECOVER mode and won’t be available. First, startup the database in restrict mode: 1 SQL&#62; startup restrict List all tablespaces and check [...]


Related posts:<ol><li><a href='http://blog.ramin-hossaini.com/2010/03/14/backing-up-an-oracle-database-without-rman/' rel='bookmark' title='Permanent Link: Backing up an Oracle database without RMAN'>Backing up an Oracle database without RMAN</a></li>
<li><a href='http://blog.ramin-hossaini.com/2010/02/16/turning-archive-log-mode-on-and-off/' rel='bookmark' title='Permanent Link: Turning Archive-log mode on and off'>Turning Archive-log mode on and off</a></li>
<li><a href='http://blog.ramin-hossaini.com/2010/05/22/oracle-forcing-a-checkpoint/' rel='bookmark' title='Permanent Link: Oracle: Forcing a checkpoint'>Oracle: Forcing a checkpoint</a></li>
</ol>]]></summary>
		<content type="html" xml:base="http://blog.ramin-hossaini.com/2010/05/22/oracle-recovering-a-tablespace/">&lt;h2&gt;The situation:&lt;/h2&gt;
&lt;p&gt;The database was not shutdown cleanly and a tablespace needed recovery because of an outstanding transaction that wasn’t committed.&lt;/p&gt;
&lt;p&gt;If you simply STARTUP the database, the tablespace will still be in RECOVER mode and won’t be available.&lt;/p&gt;
&lt;p&gt;First, startup the database in restrict mode:&lt;/p&gt;

&lt;div class="wp_syntax"&gt;&lt;table&gt;&lt;tr&gt;&lt;td class="line_numbers"&gt;&lt;pre&gt;1
&lt;/pre&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;pre class="oracle11" style="font-family:monospace;"&gt;SQL&lt;span style="color: #66cc66;"&gt;&amp;gt;&lt;/span&gt; startup restrict&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;List all tablespaces and check the ONLINE_STATUS:&lt;/p&gt;

&lt;div class="wp_syntax"&gt;&lt;table&gt;&lt;tr&gt;&lt;td class="line_numbers"&gt;&lt;pre&gt;1
2
3
4
5
6
7
8
9
10
11
&lt;/pre&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;pre class="oracle11" style="font-family:monospace;"&gt;SQL&lt;span style="color: #66cc66;"&gt;&amp;gt;&lt;/span&gt; &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;SELECT&lt;/span&gt; tablespace_name&lt;span style="color: #66cc66;"&gt;,&lt;/span&gt; online_status &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;FROM&lt;/span&gt; dba_data_files;
&amp;nbsp;
TABLESPACE_NAME                ONLINE_STATUS
&lt;span style="color: #808080; font-style: italic;"&gt;------------------------------ ---------------&lt;/span&gt;
USERS                          &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;ONLINE&lt;/span&gt;
UNDOTBS1                       &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;ONLINE&lt;/span&gt;
SYSAUX                         &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;ONLINE&lt;/span&gt;
&lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;SYSTEM&lt;/span&gt;                         &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;SYSTEM&lt;/span&gt;
TEST                           RECOVER
&amp;nbsp;
&lt;span style="color: #cc66cc;"&gt;5&lt;/span&gt; &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;ROWS&lt;/span&gt; selected.&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;In this case, the TEST tablespace requires recovery:&lt;/p&gt;

&lt;div class="wp_syntax"&gt;&lt;table&gt;&lt;tr&gt;&lt;td class="line_numbers"&gt;&lt;pre&gt;1
2
3
&lt;/pre&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;pre class="oracle11" style="font-family:monospace;"&gt;SQL&lt;span style="color: #66cc66;"&gt;&amp;gt;&lt;/span&gt; RECOVER &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;TABLESPACE&lt;/span&gt; TEST;
&amp;nbsp;
Media recovery complete.&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Check tablespaces again:&lt;/p&gt;

&lt;div class="wp_syntax"&gt;&lt;table&gt;&lt;tr&gt;&lt;td class="line_numbers"&gt;&lt;pre&gt;1
2
3
4
5
6
7
8
9
10
11
&lt;/pre&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;pre class="oracle11" style="font-family:monospace;"&gt;SQL&lt;span style="color: #66cc66;"&gt;&amp;gt;&lt;/span&gt; &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;SELECT&lt;/span&gt; tablespace_name&lt;span style="color: #66cc66;"&gt;,&lt;/span&gt; online_status &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;FROM&lt;/span&gt; dba_data_files;
&amp;nbsp;
TABLESPACE_NAME                ONLINE_STATUS
&lt;span style="color: #808080; font-style: italic;"&gt;------------------------------ --------------&lt;/span&gt;
USERS                          &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;ONLINE&lt;/span&gt;
UNDOTBS1                       &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;ONLINE&lt;/span&gt;
SYSAUX                         &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;ONLINE&lt;/span&gt;
&lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;SYSTEM&lt;/span&gt;                         &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;SYSTEM&lt;/span&gt;
TEST                           &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;OFFLINE&lt;/span&gt;
&amp;nbsp;
&lt;span style="color: #cc66cc;"&gt;5&lt;/span&gt; &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;ROWS&lt;/span&gt; selected.&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The tablespace doesn’t need further recovery at this stage and can be placed ONLINE:&lt;/p&gt;

&lt;div class="wp_syntax"&gt;&lt;table&gt;&lt;tr&gt;&lt;td class="line_numbers"&gt;&lt;pre&gt;1
2
3
&lt;/pre&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;pre class="oracle11" style="font-family:monospace;"&gt;SQL&lt;span style="color: #66cc66;"&gt;&amp;gt;&lt;/span&gt; &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;ALTER&lt;/span&gt; &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;TABLESPACE&lt;/span&gt; TEST &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;ONLINE&lt;/span&gt;;
&amp;nbsp;
&lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;TABLESPACE&lt;/span&gt; altered.&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Get the database out of restrict mode:&lt;/p&gt;

&lt;div class="wp_syntax"&gt;&lt;table&gt;&lt;tr&gt;&lt;td class="line_numbers"&gt;&lt;pre&gt;1
2
3
&lt;/pre&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;pre class="oracle11" style="font-family:monospace;"&gt;SQL&lt;span style="color: #66cc66;"&gt;&amp;gt;&lt;/span&gt; &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;ALTER&lt;/span&gt; &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;SYSTEM&lt;/span&gt; DISABLE RESTRICTED &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;SESSION&lt;/span&gt;;
&amp;nbsp;
&lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;SYSTEM&lt;/span&gt; altered.&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;



&lt;p&gt;Related posts:&lt;ol&gt;&lt;li&gt;&lt;a href='http://blog.ramin-hossaini.com/2010/03/14/backing-up-an-oracle-database-without-rman/' rel='bookmark' title='Permanent Link: Backing up an Oracle database without RMAN'&gt;Backing up an Oracle database without RMAN&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://blog.ramin-hossaini.com/2010/02/16/turning-archive-log-mode-on-and-off/' rel='bookmark' title='Permanent Link: Turning Archive-log mode on and off'&gt;Turning Archive-log mode on and off&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://blog.ramin-hossaini.com/2010/05/22/oracle-forcing-a-checkpoint/' rel='bookmark' title='Permanent Link: Oracle: Forcing a checkpoint'&gt;Oracle: Forcing a checkpoint&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RaminHossaini/~4/lYH2ymjcHKE" height="1" width="1"/&gt;</content>
		<link rel="replies" type="text/html" href="http://blog.ramin-hossaini.com/2010/05/22/oracle-recovering-a-tablespace/#comments" thr:count="0" />
		<link rel="replies" type="application/atom+xml" href="http://blog.ramin-hossaini.com/2010/05/22/oracle-recovering-a-tablespace/feed/atom/" thr:count="0" />
		<thr:total>0</thr:total>
	<feedburner:origLink>http://blog.ramin-hossaini.com/2010/05/22/oracle-recovering-a-tablespace/</feedburner:origLink></entry>
		<entry>
		<author>
			<name>Ramin Hossaini</name>
						<uri>http://www.ramin-hossaini.com</uri>
					</author>
		<title type="html"><![CDATA[Oracle: Forcing a checkpoint]]></title>
		<link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RaminHossaini/~3/efzbGEwAe1E/" />
		<id>http://blog.ramin-hossaini.com/?p=751</id>
		<updated>2010-05-22T22:53:02Z</updated>
		<published>2010-05-22T22:53:02Z</published>
		<category scheme="http://blog.ramin-hossaini.com" term="How-to" /><category scheme="http://blog.ramin-hossaini.com" term="Oracle" /><category scheme="http://blog.ramin-hossaini.com" term="Checkpoint" />		<summary type="html"><![CDATA[A checkpoint makes sure that all changes to the database (that are still in buffers) are written to the datafiles. 1 2 3 SQL&#62; ALTER SYSTEM CHECKPOINT; &#160; SYSTEM altered. Related posts:Oracle: Recovering a Tablespace Backing up an Oracle database without RMAN Listing key Oracle Database files


Related posts:<ol><li><a href='http://blog.ramin-hossaini.com/2010/05/22/oracle-recovering-a-tablespace/' rel='bookmark' title='Permanent Link: Oracle: Recovering a Tablespace'>Oracle: Recovering a Tablespace</a></li>
<li><a href='http://blog.ramin-hossaini.com/2010/03/14/backing-up-an-oracle-database-without-rman/' rel='bookmark' title='Permanent Link: Backing up an Oracle database without RMAN'>Backing up an Oracle database without RMAN</a></li>
<li><a href='http://blog.ramin-hossaini.com/2010/02/16/listing-key-oracle-database-files/' rel='bookmark' title='Permanent Link: Listing key Oracle Database files'>Listing key Oracle Database files</a></li>
</ol>]]></summary>
		<content type="html" xml:base="http://blog.ramin-hossaini.com/2010/05/22/oracle-forcing-a-checkpoint/">&lt;p&gt;A checkpoint makes sure that all changes to the database (that are still in buffers) are written to the datafiles.&lt;/p&gt;

&lt;div class="wp_syntax"&gt;&lt;table&gt;&lt;tr&gt;&lt;td class="line_numbers"&gt;&lt;pre&gt;1
2
3
&lt;/pre&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;pre class="oracle11" style="font-family:monospace;"&gt;SQL&lt;span style="color: #66cc66;"&gt;&amp;gt;&lt;/span&gt; &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;ALTER&lt;/span&gt; &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;SYSTEM&lt;/span&gt; CHECKPOINT;
&amp;nbsp;
&lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;SYSTEM&lt;/span&gt; altered.&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;



&lt;p&gt;Related posts:&lt;ol&gt;&lt;li&gt;&lt;a href='http://blog.ramin-hossaini.com/2010/05/22/oracle-recovering-a-tablespace/' rel='bookmark' title='Permanent Link: Oracle: Recovering a Tablespace'&gt;Oracle: Recovering a Tablespace&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://blog.ramin-hossaini.com/2010/03/14/backing-up-an-oracle-database-without-rman/' rel='bookmark' title='Permanent Link: Backing up an Oracle database without RMAN'&gt;Backing up an Oracle database without RMAN&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://blog.ramin-hossaini.com/2010/02/16/listing-key-oracle-database-files/' rel='bookmark' title='Permanent Link: Listing key Oracle Database files'&gt;Listing key Oracle Database files&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RaminHossaini/~4/efzbGEwAe1E" height="1" width="1"/&gt;</content>
		<link rel="replies" type="text/html" href="http://blog.ramin-hossaini.com/2010/05/22/oracle-forcing-a-checkpoint/#comments" thr:count="0" />
		<link rel="replies" type="application/atom+xml" href="http://blog.ramin-hossaini.com/2010/05/22/oracle-forcing-a-checkpoint/feed/atom/" thr:count="0" />
		<thr:total>0</thr:total>
	<feedburner:origLink>http://blog.ramin-hossaini.com/2010/05/22/oracle-forcing-a-checkpoint/</feedburner:origLink></entry>
		<entry>
		<author>
			<name>Ramin Hossaini</name>
						<uri>http://www.ramin-hossaini.com</uri>
					</author>
		<title type="html"><![CDATA[Oracle: Basic user-logon auditing]]></title>
		<link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RaminHossaini/~3/cXleUTSILK4/" />
		<id>http://blog.ramin-hossaini.com/?p=747</id>
		<updated>2010-05-22T22:51:28Z</updated>
		<published>2010-05-22T22:51:28Z</published>
		<category scheme="http://blog.ramin-hossaini.com" term="How-to" /><category scheme="http://blog.ramin-hossaini.com" term="Oracle" /><category scheme="http://blog.ramin-hossaini.com" term="Auditing" />		<summary type="html"><![CDATA[Oracle 8i introduced logon-triggers which could be used for auditing. To start, create a table which will store your audit-logs (I usually do this as SYSTEM): 1 2 3 4 5 6 7 8 9 10 CREATE TABLE AUDIT$user_logs &#40; user_id VARCHAR2&#40;30&#41;, session_id NUMBER&#40;8&#41;, host VARCHAR2&#40;30&#41;, logon_day DATE, logon_time VARCHAR2&#40;10&#41; &#41;; &#160; TABLE created. Next, [...]


Related posts:<ol><li><a href='http://blog.ramin-hossaini.com/2010/05/15/basic-auditing-in-oracle/' rel='bookmark' title='Permanent Link: Basic Auditing in Oracle'>Basic Auditing in Oracle</a></li>
<li><a href='http://blog.ramin-hossaini.com/2010/05/18/oracle-list-all-database-links/' rel='bookmark' title='Permanent Link: Oracle: List all database-links'>Oracle: List all database-links</a></li>
<li><a href='http://blog.ramin-hossaini.com/2010/03/14/backing-up-an-oracle-database-without-rman/' rel='bookmark' title='Permanent Link: Backing up an Oracle database without RMAN'>Backing up an Oracle database without RMAN</a></li>
</ol>]]></summary>
		<content type="html" xml:base="http://blog.ramin-hossaini.com/2010/05/22/oracle-basic-user-logon-auditing/">&lt;p&gt;Oracle 8i introduced logon-triggers which could be used for auditing.&lt;/p&gt;
&lt;p&gt;To start, create a table which will store your audit-logs (I usually do this as SYSTEM):&lt;/p&gt;

&lt;div class="wp_syntax"&gt;&lt;table&gt;&lt;tr&gt;&lt;td class="line_numbers"&gt;&lt;pre&gt;1
2
3
4
5
6
7
8
9
10
&lt;/pre&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;pre class="oracle11" style="font-family:monospace;"&gt;&lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;CREATE&lt;/span&gt; &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;TABLE&lt;/span&gt; &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;AUDIT&lt;/span&gt;$user_logs
 &lt;span style="color: #66cc66;"&gt;&amp;#40;&lt;/span&gt;
    user_id           &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;VARCHAR2&lt;/span&gt;&lt;span style="color: #66cc66;"&gt;&amp;#40;&lt;/span&gt;&lt;span style="color: #cc66cc;"&gt;30&lt;/span&gt;&lt;span style="color: #66cc66;"&gt;&amp;#41;&lt;/span&gt;&lt;span style="color: #66cc66;"&gt;,&lt;/span&gt;
    session_id        &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;NUMBER&lt;/span&gt;&lt;span style="color: #66cc66;"&gt;&amp;#40;&lt;/span&gt;&lt;span style="color: #cc66cc;"&gt;8&lt;/span&gt;&lt;span style="color: #66cc66;"&gt;&amp;#41;&lt;/span&gt;&lt;span style="color: #66cc66;"&gt;,&lt;/span&gt;
    host              &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;VARCHAR2&lt;/span&gt;&lt;span style="color: #66cc66;"&gt;&amp;#40;&lt;/span&gt;&lt;span style="color: #cc66cc;"&gt;30&lt;/span&gt;&lt;span style="color: #66cc66;"&gt;&amp;#41;&lt;/span&gt;&lt;span style="color: #66cc66;"&gt;,&lt;/span&gt;
    logon_day         &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;DATE&lt;/span&gt;&lt;span style="color: #66cc66;"&gt;,&lt;/span&gt;
    logon_time        &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;VARCHAR2&lt;/span&gt;&lt;span style="color: #66cc66;"&gt;&amp;#40;&lt;/span&gt;&lt;span style="color: #cc66cc;"&gt;10&lt;/span&gt;&lt;span style="color: #66cc66;"&gt;&amp;#41;&lt;/span&gt;
 &lt;span style="color: #66cc66;"&gt;&amp;#41;&lt;/span&gt;;
&amp;nbsp;
&lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;TABLE&lt;/span&gt; created.&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Next, create the trigger to capture the data:&lt;/p&gt;

&lt;div class="wp_syntax"&gt;&lt;table&gt;&lt;tr&gt;&lt;td class="line_numbers"&gt;&lt;pre&gt;1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
&lt;/pre&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;pre class="oracle11" style="font-family:monospace;"&gt;&lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;CREATE&lt;/span&gt; &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;OR&lt;/span&gt; &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;REPLACE&lt;/span&gt; &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;TRIGGER&lt;/span&gt;
 logon_audit_trigger
 AFTER LOGON &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;ON&lt;/span&gt; &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;DATABASE&lt;/span&gt;
 &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;BEGIN&lt;/span&gt;
 &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;INSERT&lt;/span&gt; &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;INTO&lt;/span&gt; &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;AUDIT&lt;/span&gt;$user_logs &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;VALUES&lt;/span&gt;&lt;span style="color: #66cc66;"&gt;&amp;#40;&lt;/span&gt;
    &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;USER&lt;/span&gt;&lt;span style="color: #66cc66;"&gt;,&lt;/span&gt;
    &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;SYS_CONTEXT&lt;/span&gt;&lt;span style="color: #66cc66;"&gt;&amp;#40;&lt;/span&gt;&lt;span style="color: #ff0000;"&gt;'USERENV'&lt;/span&gt;&lt;span style="color: #66cc66;"&gt;,&lt;/span&gt;&lt;span style="color: #ff0000;"&gt;'SESSIONID'&lt;/span&gt;&lt;span style="color: #66cc66;"&gt;&amp;#41;&lt;/span&gt;&lt;span style="color: #66cc66;"&gt;,&lt;/span&gt;
    &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;SYS_CONTEXT&lt;/span&gt;&lt;span style="color: #66cc66;"&gt;&amp;#40;&lt;/span&gt;&lt;span style="color: #ff0000;"&gt;'USERENV'&lt;/span&gt;&lt;span style="color: #66cc66;"&gt;,&lt;/span&gt;&lt;span style="color: #ff0000;"&gt;'HOST'&lt;/span&gt;&lt;span style="color: #66cc66;"&gt;&amp;#41;&lt;/span&gt;&lt;span style="color: #66cc66;"&gt;,&lt;/span&gt;
    &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;SYSDATE&lt;/span&gt;&lt;span style="color: #66cc66;"&gt;,&lt;/span&gt;
    &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;TO_CHAR&lt;/span&gt;&lt;span style="color: #66cc66;"&gt;&amp;#40;&lt;/span&gt;&lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;SYSDATE&lt;/span&gt;&lt;span style="color: #66cc66;"&gt;,&lt;/span&gt; &lt;span style="color: #ff0000;"&gt;'hh24:mi:ss'&lt;/span&gt;&lt;span style="color: #66cc66;"&gt;&amp;#41;&lt;/span&gt;
 &lt;span style="color: #66cc66;"&gt;&amp;#41;&lt;/span&gt;;
 &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;END&lt;/span&gt;;
 &lt;span style="color: #66cc66;"&gt;/&lt;/span&gt;
&amp;nbsp;
&lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;TRIGGER&lt;/span&gt; created.&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;Display Audit-data:&lt;/h2&gt;

&lt;div class="wp_syntax"&gt;&lt;table&gt;&lt;tr&gt;&lt;td class="line_numbers"&gt;&lt;pre&gt;1
2
3
4
5
6
7
&lt;/pre&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;pre class="oracle11" style="font-family:monospace;"&gt;SQL&lt;span style="color: #66cc66;"&gt;&amp;gt;&lt;/span&gt; &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;SELECT&lt;/span&gt; &lt;span style="color: #66cc66;"&gt;*&lt;/span&gt; &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;FROM&lt;/span&gt; &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;AUDIT&lt;/span&gt;$user_logs;
&amp;nbsp;
USER_ID         SESSION_ID HOST               LOGON_DAY LOGON_TIME
&lt;span style="color: #808080; font-style: italic;"&gt;--------------- ---------- ------------------ --------- ----------&lt;/span&gt;
DBSNMP              &lt;span style="color: #cc66cc;"&gt;123716&lt;/span&gt; HOST               01&lt;span style="color: #66cc66;"&gt;-&lt;/span&gt;OCT&lt;span style="color: #66cc66;"&gt;-&lt;/span&gt;08 &lt;span style="color: #cc66cc;"&gt;10&lt;/span&gt;:&lt;span style="color: #cc66cc;"&gt;21&lt;/span&gt;:&lt;span style="color: #cc66cc;"&gt;32&lt;/span&gt;
&lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;SYSTEM&lt;/span&gt;              &lt;span style="color: #cc66cc;"&gt;123717&lt;/span&gt; DOMAIN\PCNUMBER    01&lt;span style="color: #66cc66;"&gt;-&lt;/span&gt;OCT&lt;span style="color: #66cc66;"&gt;-&lt;/span&gt;08 &lt;span style="color: #cc66cc;"&gt;10&lt;/span&gt;:&lt;span style="color: #cc66cc;"&gt;21&lt;/span&gt;:&lt;span style="color: #cc66cc;"&gt;53&lt;/span&gt;
SYSMAN                   &lt;span style="color: #cc66cc;"&gt;0&lt;/span&gt; HOST               01&lt;span style="color: #66cc66;"&gt;-&lt;/span&gt;OCT&lt;span style="color: #66cc66;"&gt;-&lt;/span&gt;08 &lt;span style="color: #cc66cc;"&gt;10&lt;/span&gt;:&lt;span style="color: #cc66cc;"&gt;21&lt;/span&gt;:&lt;span style="color: #cc66cc;"&gt;58&lt;/span&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;Disable and Enable Logon-auditing:&lt;/h2&gt;

&lt;div class="wp_syntax"&gt;&lt;table&gt;&lt;tr&gt;&lt;td class="line_numbers"&gt;&lt;pre&gt;1
2
3
4
&lt;/pre&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;pre class="oracle11" style="font-family:monospace;"&gt;&lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;ALTER&lt;/span&gt; &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;TRIGGER&lt;/span&gt; &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;SYSTEM&lt;/span&gt;.LOGON_AUDIT_TRIGGER DISABLE
&lt;span style="color: #66cc66;"&gt;/&lt;/span&gt;
&lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;ALTER&lt;/span&gt; &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;TRIGGER&lt;/span&gt; &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;SYSTEM&lt;/span&gt;.LOGON_AUDIT_TRIGGER ENABLE
&lt;span style="color: #66cc66;"&gt;/&lt;/span&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;To purge audit-data:&lt;/h2&gt;

&lt;div class="wp_syntax"&gt;&lt;table&gt;&lt;tr&gt;&lt;td class="line_numbers"&gt;&lt;pre&gt;1
&lt;/pre&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;pre class="oracle11" style="font-family:monospace;"&gt;&lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;TRUNCATE&lt;/span&gt; &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;TABLE&lt;/span&gt; &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;AUDIT&lt;/span&gt;$user_logs&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;



&lt;p&gt;Related posts:&lt;ol&gt;&lt;li&gt;&lt;a href='http://blog.ramin-hossaini.com/2010/05/15/basic-auditing-in-oracle/' rel='bookmark' title='Permanent Link: Basic Auditing in Oracle'&gt;Basic Auditing in Oracle&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://blog.ramin-hossaini.com/2010/05/18/oracle-list-all-database-links/' rel='bookmark' title='Permanent Link: Oracle: List all database-links'&gt;Oracle: List all database-links&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://blog.ramin-hossaini.com/2010/03/14/backing-up-an-oracle-database-without-rman/' rel='bookmark' title='Permanent Link: Backing up an Oracle database without RMAN'&gt;Backing up an Oracle database without RMAN&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RaminHossaini/~4/cXleUTSILK4" height="1" width="1"/&gt;</content>
		<link rel="replies" type="text/html" href="http://blog.ramin-hossaini.com/2010/05/22/oracle-basic-user-logon-auditing/#comments" thr:count="0" />
		<link rel="replies" type="application/atom+xml" href="http://blog.ramin-hossaini.com/2010/05/22/oracle-basic-user-logon-auditing/feed/atom/" thr:count="0" />
		<thr:total>0</thr:total>
	<feedburner:origLink>http://blog.ramin-hossaini.com/2010/05/22/oracle-basic-user-logon-auditing/</feedburner:origLink></entry>
		<entry>
		<author>
			<name>Ramin Hossaini</name>
						<uri>http://www.ramin-hossaini.com</uri>
					</author>
		<title type="html"><![CDATA[Oracle: List all database-links]]></title>
		<link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RaminHossaini/~3/lMyjYBSn8sM/" />
		<id>http://blog.ramin-hossaini.com/?p=744</id>
		<updated>2010-05-18T17:02:03Z</updated>
		<published>2010-05-18T17:02:03Z</published>
		<category scheme="http://blog.ramin-hossaini.com" term="How-to" /><category scheme="http://blog.ramin-hossaini.com" term="Oracle" />		<summary type="html"><![CDATA[To list all db-links (must be a user with permission to select from sys.dba_db_links) in a database: SELECT * FROM DBA_DB_LINKS; Sample output: 1 2 3 4 5 6 SQL&#62; SELECT * FROM DBA_DB_LINKS; &#160; OWNER DB_LINK USERNAME HOST CREATED ------- ---------- ---------- ------- ---------- SYSTEM TEST_LINK SCOTT TST11 26-SEP-08 SCOTT HR_LINK HR TST11 26-SEP-08 [...]


Related posts:<ol><li><a href='http://blog.ramin-hossaini.com/2010/05/22/oracle-basic-user-logon-auditing/' rel='bookmark' title='Permanent Link: Oracle: Basic user-logon auditing'>Oracle: Basic user-logon auditing</a></li>
<li><a href='http://blog.ramin-hossaini.com/2010/02/16/listing-key-oracle-database-files/' rel='bookmark' title='Permanent Link: Listing key Oracle Database files'>Listing key Oracle Database files</a></li>
<li><a href='http://blog.ramin-hossaini.com/2010/05/22/oracle-recovering-a-tablespace/' rel='bookmark' title='Permanent Link: Oracle: Recovering a Tablespace'>Oracle: Recovering a Tablespace</a></li>
</ol>]]></summary>
		<content type="html" xml:base="http://blog.ramin-hossaini.com/2010/05/18/oracle-list-all-database-links/">&lt;p&gt;To list all db-links (must be a user with permission to select from sys.dba_db_links) in a database:&lt;/p&gt;

&lt;div class="wp_syntax"&gt;&lt;div class="code"&gt;&lt;pre class="oracle11" style="font-family:monospace;"&gt;&lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;SELECT&lt;/span&gt; &lt;span style="color: #66cc66;"&gt;*&lt;/span&gt; &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;FROM&lt;/span&gt; DBA_DB_LINKS;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Sample output:&lt;/p&gt;

&lt;div class="wp_syntax"&gt;&lt;table&gt;&lt;tr&gt;&lt;td class="line_numbers"&gt;&lt;pre&gt;1
2
3
4
5
6
&lt;/pre&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;pre class="oracle11" style="font-family:monospace;"&gt;SQL&lt;span style="color: #66cc66;"&gt;&amp;gt;&lt;/span&gt; &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;SELECT&lt;/span&gt; &lt;span style="color: #66cc66;"&gt;*&lt;/span&gt; &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;FROM&lt;/span&gt; DBA_DB_LINKS;
&amp;nbsp;
OWNER   DB_LINK    USERNAME   HOST    CREATED
&lt;span style="color: #808080; font-style: italic;"&gt;------- ---------- ---------- ------- ----------&lt;/span&gt;
&lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;SYSTEM&lt;/span&gt;  TEST_LINK  SCOTT      TST11   &lt;span style="color: #cc66cc;"&gt;26&lt;/span&gt;&lt;span style="color: #66cc66;"&gt;-&lt;/span&gt;SEP&lt;span style="color: #66cc66;"&gt;-&lt;/span&gt;08
SCOTT   HR_LINK    HR         TST11   &lt;span style="color: #cc66cc;"&gt;26&lt;/span&gt;&lt;span style="color: #66cc66;"&gt;-&lt;/span&gt;SEP&lt;span style="color: #66cc66;"&gt;-&lt;/span&gt;08&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;



&lt;p&gt;Related posts:&lt;ol&gt;&lt;li&gt;&lt;a href='http://blog.ramin-hossaini.com/2010/05/22/oracle-basic-user-logon-auditing/' rel='bookmark' title='Permanent Link: Oracle: Basic user-logon auditing'&gt;Oracle: Basic user-logon auditing&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://blog.ramin-hossaini.com/2010/02/16/listing-key-oracle-database-files/' rel='bookmark' title='Permanent Link: Listing key Oracle Database files'&gt;Listing key Oracle Database files&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://blog.ramin-hossaini.com/2010/05/22/oracle-recovering-a-tablespace/' rel='bookmark' title='Permanent Link: Oracle: Recovering a Tablespace'&gt;Oracle: Recovering a Tablespace&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RaminHossaini/~4/lMyjYBSn8sM" height="1" width="1"/&gt;</content>
		<link rel="replies" type="text/html" href="http://blog.ramin-hossaini.com/2010/05/18/oracle-list-all-database-links/#comments" thr:count="0" />
		<link rel="replies" type="application/atom+xml" href="http://blog.ramin-hossaini.com/2010/05/18/oracle-list-all-database-links/feed/atom/" thr:count="0" />
		<thr:total>0</thr:total>
	<feedburner:origLink>http://blog.ramin-hossaini.com/2010/05/18/oracle-list-all-database-links/</feedburner:origLink></entry>
		<entry>
		<author>
			<name>Ramin Hossaini</name>
						<uri>http://www.ramin-hossaini.com</uri>
					</author>
		<title type="html"><![CDATA[Oracle: Recycle listener.log]]></title>
		<link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RaminHossaini/~3/dvBxgUkkfpo/" />
		<id>http://blog.ramin-hossaini.com/?p=741</id>
		<updated>2010-05-16T18:08:10Z</updated>
		<published>2010-05-16T18:08:10Z</published>
		<category scheme="http://blog.ramin-hossaini.com" term="How-to" /><category scheme="http://blog.ramin-hossaini.com" term="Oracle" /><category scheme="http://blog.ramin-hossaini.com" term="Listener" />		<summary type="html"><![CDATA[Oracle stores a log-file (listener.log) under $ORACLE_HOME/network/log that keeps track of all connections made to the database. Oracle keeps this file as an open file-stream, so even if you rename the file, it still keeps on growing as new connections are made. This method will let you recycle/truncate/purge listener.log without resorting to taking the listener [...]


Related posts:<ol><li><a href='http://blog.ramin-hossaini.com/2010/03/14/backing-up-an-oracle-database-without-rman/' rel='bookmark' title='Permanent Link: Backing up an Oracle database without RMAN'>Backing up an Oracle database without RMAN</a></li>
<li><a href='http://blog.ramin-hossaini.com/2010/02/16/turning-archive-log-mode-on-and-off/' rel='bookmark' title='Permanent Link: Turning Archive-log mode on and off'>Turning Archive-log mode on and off</a></li>
<li><a href='http://blog.ramin-hossaini.com/2010/05/22/oracle-basic-user-logon-auditing/' rel='bookmark' title='Permanent Link: Oracle: Basic user-logon auditing'>Oracle: Basic user-logon auditing</a></li>
</ol>]]></summary>
		<content type="html" xml:base="http://blog.ramin-hossaini.com/2010/05/16/oracle-recycle-listener-log/">&lt;p&gt;Oracle stores a log-file (listener.log) under $ORACLE_HOME/network/log that keeps track of all connections made to the database.&lt;/p&gt;
&lt;p&gt;Oracle keeps this file as an open file-stream, so even if you rename the file, it still keeps on growing as new connections are made.&lt;/p&gt;
&lt;p&gt;This method will let you recycle/truncate/purge listener.log without resorting to taking the listener down which would cause a disruption to users.&lt;/p&gt;
&lt;p&gt;The idea is to turn log_status off, create a new file, then turn log_status on again&lt;/p&gt;

&lt;div class="wp_syntax"&gt;&lt;table&gt;&lt;tr&gt;&lt;td class="line_numbers"&gt;&lt;pre&gt;1
2
3
4
&lt;/pre&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;pre class="bash" style="font-family:monospace;"&gt;$ lsnrctl &lt;span style="color: #000000; font-weight: bold;"&gt;set&lt;/span&gt; log_status off
$ &lt;span style="color: #c20cb9; font-weight: bold;"&gt;mv&lt;/span&gt; listener.log listener.log.old
$ &lt;span style="color: #c20cb9; font-weight: bold;"&gt;touch&lt;/span&gt; listener.log
$ lsnrctl &lt;span style="color: #000000; font-weight: bold;"&gt;set&lt;/span&gt; log_status on&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;



&lt;p&gt;Related posts:&lt;ol&gt;&lt;li&gt;&lt;a href='http://blog.ramin-hossaini.com/2010/03/14/backing-up-an-oracle-database-without-rman/' rel='bookmark' title='Permanent Link: Backing up an Oracle database without RMAN'&gt;Backing up an Oracle database without RMAN&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://blog.ramin-hossaini.com/2010/02/16/turning-archive-log-mode-on-and-off/' rel='bookmark' title='Permanent Link: Turning Archive-log mode on and off'&gt;Turning Archive-log mode on and off&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://blog.ramin-hossaini.com/2010/05/22/oracle-basic-user-logon-auditing/' rel='bookmark' title='Permanent Link: Oracle: Basic user-logon auditing'&gt;Oracle: Basic user-logon auditing&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RaminHossaini/~4/dvBxgUkkfpo" height="1" width="1"/&gt;</content>
		<link rel="replies" type="text/html" href="http://blog.ramin-hossaini.com/2010/05/16/oracle-recycle-listener-log/#comments" thr:count="0" />
		<link rel="replies" type="application/atom+xml" href="http://blog.ramin-hossaini.com/2010/05/16/oracle-recycle-listener-log/feed/atom/" thr:count="0" />
		<thr:total>0</thr:total>
	<feedburner:origLink>http://blog.ramin-hossaini.com/2010/05/16/oracle-recycle-listener-log/</feedburner:origLink></entry>
		<entry>
		<author>
			<name>Ramin Hossaini</name>
						<uri>http://www.ramin-hossaini.com</uri>
					</author>
		<title type="html"><![CDATA[Basic Auditing in Oracle]]></title>
		<link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RaminHossaini/~3/-rP39A2OU2s/" />
		<id>http://blog.ramin-hossaini.com/?p=738</id>
		<updated>2010-05-15T11:53:26Z</updated>
		<published>2010-05-15T11:53:26Z</published>
		<category scheme="http://blog.ramin-hossaini.com" term="How-to" /><category scheme="http://blog.ramin-hossaini.com" term="Oracle" /><category scheme="http://blog.ramin-hossaini.com" term="Auditing" />		<summary type="html"><![CDATA[To check if auditing is enabled: SHOW parameter AUDIT; To enable auditing, modify/add the following in your PFILE and restart the database: audit_trail = db; To audit SELECTs on an object: AUDIT SELECT ON object; To list all Audit data on a database: SELECT * FROM sys.aud$; Purge/delete entries from the audit table: DELETE FROM [...]


Related posts:<ol><li><a href='http://blog.ramin-hossaini.com/2010/05/22/oracle-basic-user-logon-auditing/' rel='bookmark' title='Permanent Link: Oracle: Basic user-logon auditing'>Oracle: Basic user-logon auditing</a></li>
<li><a href='http://blog.ramin-hossaini.com/2010/05/18/oracle-list-all-database-links/' rel='bookmark' title='Permanent Link: Oracle: List all database-links'>Oracle: List all database-links</a></li>
<li><a href='http://blog.ramin-hossaini.com/2010/02/16/listing-key-oracle-database-files/' rel='bookmark' title='Permanent Link: Listing key Oracle Database files'>Listing key Oracle Database files</a></li>
</ol>]]></summary>
		<content type="html" xml:base="http://blog.ramin-hossaini.com/2010/05/15/basic-auditing-in-oracle/">&lt;p&gt;To check if auditing is enabled:&lt;/p&gt;

&lt;div class="wp_syntax"&gt;&lt;div class="code"&gt;&lt;pre class="oracle11" style="font-family:monospace;"&gt;SHOW parameter &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;AUDIT&lt;/span&gt;;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;To enable auditing, modify/add the following in your PFILE and restart the database:&lt;/p&gt;

&lt;div class="wp_syntax"&gt;&lt;div class="code"&gt;&lt;pre class="oracle11" style="font-family:monospace;"&gt;audit_trail &lt;span style="color: #66cc66;"&gt;=&lt;/span&gt; db;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;To audit SELECTs on an object:&lt;/p&gt;

&lt;div class="wp_syntax"&gt;&lt;div class="code"&gt;&lt;pre class="oracle11" style="font-family:monospace;"&gt;&lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;AUDIT&lt;/span&gt; &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;SELECT&lt;/span&gt; &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;ON&lt;/span&gt; object;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;To list all Audit data on a database:&lt;/p&gt;

&lt;div class="wp_syntax"&gt;&lt;div class="code"&gt;&lt;pre class="oracle11" style="font-family:monospace;"&gt;&lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;SELECT&lt;/span&gt; &lt;span style="color: #66cc66;"&gt;*&lt;/span&gt; &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;FROM&lt;/span&gt; sys.aud$;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Purge/delete entries from the audit table:&lt;/p&gt;

&lt;div class="wp_syntax"&gt;&lt;div class="code"&gt;&lt;pre class="oracle11" style="font-family:monospace;"&gt;&lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;DELETE&lt;/span&gt; &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;FROM&lt;/span&gt; sys.aud$;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;To view audit data:&lt;/p&gt;

&lt;div class="wp_syntax"&gt;&lt;div class="code"&gt;&lt;pre class="oracle11" style="font-family:monospace;"&gt;&lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;SELECT&lt;/span&gt; &lt;span style="color: #66cc66;"&gt;*&lt;/span&gt; &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;FROM&lt;/span&gt; sys.aud$;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;To disable auditing:&lt;/p&gt;

&lt;div class="wp_syntax"&gt;&lt;div class="code"&gt;&lt;pre class="oracle11" style="font-family:monospace;"&gt;&lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;NOAUDIT&lt;/span&gt; &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;SELECT&lt;/span&gt; &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;ANY&lt;/span&gt; &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;TABLE&lt;/span&gt;;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;



&lt;p&gt;Related posts:&lt;ol&gt;&lt;li&gt;&lt;a href='http://blog.ramin-hossaini.com/2010/05/22/oracle-basic-user-logon-auditing/' rel='bookmark' title='Permanent Link: Oracle: Basic user-logon auditing'&gt;Oracle: Basic user-logon auditing&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://blog.ramin-hossaini.com/2010/05/18/oracle-list-all-database-links/' rel='bookmark' title='Permanent Link: Oracle: List all database-links'&gt;Oracle: List all database-links&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://blog.ramin-hossaini.com/2010/02/16/listing-key-oracle-database-files/' rel='bookmark' title='Permanent Link: Listing key Oracle Database files'&gt;Listing key Oracle Database files&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RaminHossaini/~4/-rP39A2OU2s" height="1" width="1"/&gt;</content>
		<link rel="replies" type="text/html" href="http://blog.ramin-hossaini.com/2010/05/15/basic-auditing-in-oracle/#comments" thr:count="0" />
		<link rel="replies" type="application/atom+xml" href="http://blog.ramin-hossaini.com/2010/05/15/basic-auditing-in-oracle/feed/atom/" thr:count="0" />
		<thr:total>0</thr:total>
	<feedburner:origLink>http://blog.ramin-hossaini.com/2010/05/15/basic-auditing-in-oracle/</feedburner:origLink></entry>
		<entry>
		<author>
			<name>Ramin Hossaini</name>
						<uri>http://www.ramin-hossaini.com</uri>
					</author>
		<title type="html"><![CDATA[Google Calendar SMS notifications available in Namibia]]></title>
		<link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RaminHossaini/~3/UeQI6l21_cc/" />
		<id>http://blog.ramin-hossaini.com/?p=729</id>
		<updated>2010-05-05T14:53:43Z</updated>
		<published>2010-05-05T14:53:43Z</published>
		<category scheme="http://blog.ramin-hossaini.com" term="General" /><category scheme="http://blog.ramin-hossaini.com" term="Calendar" /><category scheme="http://blog.ramin-hossaini.com" term="Google" /><category scheme="http://blog.ramin-hossaini.com" term="Mobile" /><category scheme="http://blog.ramin-hossaini.com" term="Notifications" /><category scheme="http://blog.ramin-hossaini.com" term="SMS" />		<summary type="html"><![CDATA[It really is the little things in life that matter most. Namibia is moving up in the World. Related posts:Synchronize Google Calendar on iPhone World Population


Related posts:<ol><li><a href='http://blog.ramin-hossaini.com/2009/10/24/synchronize-google-calendar-on-iphone/' rel='bookmark' title='Permanent Link: Synchronize Google Calendar on iPhone'>Synchronize Google Calendar on iPhone</a></li>
<li><a href='http://blog.ramin-hossaini.com/2008/05/11/world-population/' rel='bookmark' title='Permanent Link: World Population'>World Population</a></li>
</ol>]]></summary>
		<content type="html" xml:base="http://blog.ramin-hossaini.com/2010/05/05/google-calendar-sms-notifications-available-in-namibia/">&lt;p&gt;&lt;img src="http://blog.ramin-hossaini.com/wp-content/uploads/2010/05/2010-05-05_154617.png" alt="" title="2010-05-05_154617" width="578" height="88" class="alignnone size-full wp-image-730" /&gt;&lt;/p&gt;
&lt;p&gt;It really is the little things in life that matter most.&lt;/p&gt;
&lt;p&gt;Namibia is moving up in the World.&lt;/p&gt;


&lt;p&gt;Related posts:&lt;ol&gt;&lt;li&gt;&lt;a href='http://blog.ramin-hossaini.com/2009/10/24/synchronize-google-calendar-on-iphone/' rel='bookmark' title='Permanent Link: Synchronize Google Calendar on iPhone'&gt;Synchronize Google Calendar on iPhone&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://blog.ramin-hossaini.com/2008/05/11/world-population/' rel='bookmark' title='Permanent Link: World Population'&gt;World Population&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RaminHossaini/~4/UeQI6l21_cc" height="1" width="1"/&gt;</content>
		<link rel="replies" type="text/html" href="http://blog.ramin-hossaini.com/2010/05/05/google-calendar-sms-notifications-available-in-namibia/#comments" thr:count="0" />
		<link rel="replies" type="application/atom+xml" href="http://blog.ramin-hossaini.com/2010/05/05/google-calendar-sms-notifications-available-in-namibia/feed/atom/" thr:count="0" />
		<thr:total>0</thr:total>
	<feedburner:origLink>http://blog.ramin-hossaini.com/2010/05/05/google-calendar-sms-notifications-available-in-namibia/</feedburner:origLink></entry>
	</feed>
