<?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-03-09T13:45:06Z</updated>
	<generator uri="http://wordpress.org/" version="abc">WordPress</generator>

	<link rel="alternate" type="text/html" href="http://blog.ramin-hossaini.com" />
	<id>http://blog.ramin-hossaini.com/feed/atom/</id>
	

			<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[Enabling Trace]]></title>
		<link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RaminHossaini/~3/ZuV6dDPCblM/" />
		<id>http://blog.ramin-hossaini.com/?p=641</id>
		<updated>2010-03-09T13:45:06Z</updated>
		<published>2010-03-09T13:44:50Z</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="Trace" />		<summary type="html"><![CDATA[The TRACE_ENABLED parameter allows you to trace the execution history of Oracle. It should be set to TRUE by default.
The information gathered is stored in the following locations:

#User:
/usr/oracle/admin/sid/udump
#Background:
/usr/oracle/admin/sid/bdump
#Core:
/usr/oracle/admin/sid/cdump

These locations could be different depending on what’s set in your PFILE.
Check if trace is enabled:

SHOW parameter trace_enabled;

Sample output:

SQL&#62; show parameter trace_enabled;
&#160;
NAME       [...]


Related posts:<ol><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/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/2008/10/28/funny-old-school-videos/' rel='bookmark' title='Permanent Link: Funny old school videos'>Funny old school videos</a></li>
</ol>]]></summary>
		<content type="html" xml:base="http://blog.ramin-hossaini.com/2010/03/09/enabling-trace/">&lt;p&gt;The TRACE_ENABLED parameter allows you to trace the execution history of Oracle. It should be set to TRUE by default.&lt;/p&gt;
&lt;p&gt;The information gathered is stored in the following locations:&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: #666666; font-style: italic;"&gt;#User:&lt;/span&gt;
&lt;span style="color: #000000; font-weight: bold;"&gt;/&lt;/span&gt;usr&lt;span style="color: #000000; font-weight: bold;"&gt;/&lt;/span&gt;oracle&lt;span style="color: #000000; font-weight: bold;"&gt;/&lt;/span&gt;admin&lt;span style="color: #000000; font-weight: bold;"&gt;/&lt;/span&gt;sid&lt;span style="color: #000000; font-weight: bold;"&gt;/&lt;/span&gt;udump
&lt;span style="color: #666666; font-style: italic;"&gt;#Background:&lt;/span&gt;
&lt;span style="color: #000000; font-weight: bold;"&gt;/&lt;/span&gt;usr&lt;span style="color: #000000; font-weight: bold;"&gt;/&lt;/span&gt;oracle&lt;span style="color: #000000; font-weight: bold;"&gt;/&lt;/span&gt;admin&lt;span style="color: #000000; font-weight: bold;"&gt;/&lt;/span&gt;sid&lt;span style="color: #000000; font-weight: bold;"&gt;/&lt;/span&gt;bdump
&lt;span style="color: #666666; font-style: italic;"&gt;#Core:&lt;/span&gt;
&lt;span style="color: #000000; font-weight: bold;"&gt;/&lt;/span&gt;usr&lt;span style="color: #000000; font-weight: bold;"&gt;/&lt;/span&gt;oracle&lt;span style="color: #000000; font-weight: bold;"&gt;/&lt;/span&gt;admin&lt;span style="color: #000000; font-weight: bold;"&gt;/&lt;/span&gt;sid&lt;span style="color: #000000; font-weight: bold;"&gt;/&lt;/span&gt;cdump&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;These locations could be different depending on what’s set in your PFILE.&lt;/p&gt;
&lt;p&gt;Check if trace 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 trace_enabled;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Sample output:&lt;/p&gt;

&lt;div class="wp_syntax"&gt;&lt;div class="code"&gt;&lt;pre class="oracle11" style="font-family:monospace;"&gt;SQL&lt;span style="color: #66cc66;"&gt;&amp;gt;&lt;/span&gt; show parameter trace_enabled;
&amp;nbsp;
NAME                      &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;TYPE&lt;/span&gt;      &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;VALUE&lt;/span&gt;
&lt;span style="color: #808080; font-style: italic;"&gt;------------------------- --------  --------------&lt;/span&gt;
trace_enabled             &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;BOOLEAN&lt;/span&gt;   &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;TRUE&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;And if it isn’t enabled, enable it using:&lt;/p&gt;

&lt;div class="wp_syntax"&gt;&lt;div class="code"&gt;&lt;pre class="oracle" style="font-family:monospace;"&gt;ALTER SYSTEM SET trace_enabled = TRUE;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Note: Prior to version Oracle 9i, this parameter was: &lt;strong&gt;_trace_enabled&lt;/strong&gt;&lt;/p&gt;


&lt;p&gt;Related posts:&lt;ol&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/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/2008/10/28/funny-old-school-videos/' rel='bookmark' title='Permanent Link: Funny old school videos'&gt;Funny old school videos&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RaminHossaini/~4/ZuV6dDPCblM" height="1" width="1"/&gt;</content>
		<link rel="replies" type="text/html" href="http://blog.ramin-hossaini.com/2010/03/09/enabling-trace/#comments" thr:count="0" />
		<link rel="replies" type="application/atom+xml" href="http://blog.ramin-hossaini.com/2010/03/09/enabling-trace/feed/atom/" thr:count="0" />
		<thr:total>0</thr:total>
	<feedburner:origLink>http://blog.ramin-hossaini.com/2010/03/09/enabling-trace/</feedburner:origLink></entry>
		<entry>
		<author>
			<name>Ramin Hossaini</name>
						<uri>http://www.ramin-hossaini.com</uri>
					</author>
		<title type="html"><![CDATA[Starting, stopping, and Status of Oracle Enterprise Manager (EM)]]></title>
		<link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RaminHossaini/~3/rGrL_0_H9pg/" />
		<id>http://blog.ramin-hossaini.com/?p=638</id>
		<updated>2010-03-08T20:34:51Z</updated>
		<published>2010-03-08T20:34:51Z</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="10g" /><category scheme="http://blog.ramin-hossaini.com" term="EM" />		<summary type="html"><![CDATA[To start the Oracle Enterprise Manager Database Control (from the command-line):

emctl start dbconsole

To get the status:

emctl status dbconsole

To stop the dbconsole

emctl stop dbconsole

To access the EM (with default settings):

http://hostname:5500/em



Related posts:Listing key Oracle Database files
Turning Archive-log mode on and off
Enabling Trace



Related posts:<ol><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/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/03/09/enabling-trace/' rel='bookmark' title='Permanent Link: Enabling Trace'>Enabling Trace</a></li>
</ol>]]></summary>
		<content type="html" xml:base="http://blog.ramin-hossaini.com/2010/03/08/starting-stopping-and-status-of-oracle-enterprise-manager-em/">&lt;p&gt;To start the Oracle Enterprise Manager Database Control (from the command-line):&lt;/p&gt;

&lt;div class="wp_syntax"&gt;&lt;div class="code"&gt;&lt;pre class="bash" style="font-family:monospace;"&gt;emctl start dbconsole&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;To get the status:&lt;/p&gt;

&lt;div class="wp_syntax"&gt;&lt;div class="code"&gt;&lt;pre class="bash" style="font-family:monospace;"&gt;emctl status dbconsole&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;To stop the dbconsole&lt;/p&gt;

&lt;div class="wp_syntax"&gt;&lt;div class="code"&gt;&lt;pre class="bash" style="font-family:monospace;"&gt;emctl stop dbconsole&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;To access the EM (with default settings):&lt;/p&gt;

&lt;div class="wp_syntax"&gt;&lt;div class="code"&gt;&lt;pre class="bash" style="font-family:monospace;"&gt;http:&lt;span style="color: #000000; font-weight: bold;"&gt;//&lt;/span&gt;&lt;span style="color: #c20cb9; font-weight: bold;"&gt;hostname&lt;/span&gt;:&lt;span style="color: #000000;"&gt;5500&lt;/span&gt;&lt;span style="color: #000000; font-weight: bold;"&gt;/&lt;/span&gt;em&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/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/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/03/09/enabling-trace/' rel='bookmark' title='Permanent Link: Enabling Trace'&gt;Enabling Trace&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RaminHossaini/~4/rGrL_0_H9pg" height="1" width="1"/&gt;</content>
		<link rel="replies" type="text/html" href="http://blog.ramin-hossaini.com/2010/03/08/starting-stopping-and-status-of-oracle-enterprise-manager-em/#comments" thr:count="0" />
		<link rel="replies" type="application/atom+xml" href="http://blog.ramin-hossaini.com/2010/03/08/starting-stopping-and-status-of-oracle-enterprise-manager-em/feed/atom/" thr:count="0" />
		<thr:total>0</thr:total>
	<feedburner:origLink>http://blog.ramin-hossaini.com/2010/03/08/starting-stopping-and-status-of-oracle-enterprise-manager-em/</feedburner:origLink></entry>
		<entry>
		<author>
			<name>Ramin Hossaini</name>
						<uri>http://www.ramin-hossaini.com</uri>
					</author>
		<title type="html"><![CDATA[Update statistics on all objects in a database]]></title>
		<link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RaminHossaini/~3/v4VoVlE4a50/" />
		<id>http://blog.ramin-hossaini.com/?p=635</id>
		<updated>2010-02-20T18:12:46Z</updated>
		<published>2010-02-20T18:12:46Z</published>
		<category scheme="http://blog.ramin-hossaini.com" term="Oracle" /><category scheme="http://blog.ramin-hossaini.com" term="Database" />		<summary type="html"><![CDATA[This helps Oracle choose the best execution plan for queries:

BEGIN
dbms_stats.gather_database_stats&#40;options=&#62; 'GATHER AUTO'&#41;;
END;
/



Related posts:Enabling Trace
Listing key Oracle Database files



Related posts:<ol><li><a href='http://blog.ramin-hossaini.com/2010/03/09/enabling-trace/' rel='bookmark' title='Permanent Link: Enabling Trace'>Enabling Trace</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/02/20/update-statistics-on-all-objects-in-a-database/">&lt;p&gt;This helps Oracle choose the best execution plan for queries:&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;BEGIN&lt;/span&gt;
dbms_stats.gather_database_stats&lt;span style="color: #66cc66;"&gt;&amp;#40;&lt;/span&gt;options&lt;span style="color: #66cc66;"&gt;=&amp;gt;&lt;/span&gt; &lt;span style="color: #ff0000;"&gt;'GATHER AUTO'&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;&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/03/09/enabling-trace/' rel='bookmark' title='Permanent Link: Enabling Trace'&gt;Enabling Trace&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/v4VoVlE4a50" height="1" width="1"/&gt;</content>
		<link rel="replies" type="text/html" href="http://blog.ramin-hossaini.com/2010/02/20/update-statistics-on-all-objects-in-a-database/#comments" thr:count="0" />
		<link rel="replies" type="application/atom+xml" href="http://blog.ramin-hossaini.com/2010/02/20/update-statistics-on-all-objects-in-a-database/feed/atom/" thr:count="0" />
		<thr:total>0</thr:total>
	<feedburner:origLink>http://blog.ramin-hossaini.com/2010/02/20/update-statistics-on-all-objects-in-a-database/</feedburner:origLink></entry>
		<entry>
		<author>
			<name>Ramin Hossaini</name>
						<uri>http://www.ramin-hossaini.com</uri>
					</author>
		<title type="html"><![CDATA[Turning Archive-log mode on and off]]></title>
		<link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RaminHossaini/~3/PjVZ46xi4X4/" />
		<id>http://blog.ramin-hossaini.com/?p=632</id>
		<updated>2010-02-16T19:10:40Z</updated>
		<published>2010-02-16T19:10:40Z</published>
		<category scheme="http://blog.ramin-hossaini.com" term="Oracle" /><category scheme="http://blog.ramin-hossaini.com" term="Database" />		<summary type="html"><![CDATA[You can check what mode the database is in with:

1
SELECT LOG_MODE FROM SYS.V$DATABASE;

If you do not specify an archive-log location, it will end up going to a directory like $ORACLE_HOME/dbs - which can be quite a mess.
Check where it's going:

1
SHOW PARAMETER log_archive_dest;

It would be good practice to set the location if it doesn’t show one.
To [...]


Related posts:<ol><li><a href='http://blog.ramin-hossaini.com/2010/03/09/enabling-trace/' rel='bookmark' title='Permanent Link: Enabling Trace'>Enabling Trace</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/02/16/turning-archive-log-mode-on-and-off/">&lt;p&gt;You can check what mode the database is in with:&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;&lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;SELECT&lt;/span&gt; LOG_MODE &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;FROM&lt;/span&gt; SYS.V$DATABASE;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;If you do not specify an archive-log location, it will end up going to a directory like $ORACLE_HOME/dbs - which can be quite a mess.&lt;br /&gt;
Check where it's going:&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;SHOW PARAMETER log_archive_dest;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;It would be good practice to set the location if it doesn’t show one.&lt;br /&gt;
To turn archive-log-mode on or off:&lt;/p&gt;
&lt;p&gt;shutdown database:&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;SHUTDOWN &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;IMMEDIATE&lt;/span&gt;
STARTUP RESTRICT
SHUTDOWN&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Mount the database:&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;&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;DATABASE&lt;/span&gt; MOUNT;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Then issue one of the following:&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
&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;DATABASE&lt;/span&gt; NOARCHIVELOG;
&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;DATABASE&lt;/span&gt; ARCHIVELOG;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;If the location hasn’t been set yet:&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;&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; &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;SET&lt;/span&gt; LOG_ARCHIVE_DEST &lt;span style="color: #66cc66;"&gt;=&lt;/span&gt; &lt;span style="color: #ff0000;"&gt;&amp;quot;/ARC_LOCATION&amp;quot;&lt;/span&gt;;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Then open the database:&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;&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;DATABASE&lt;/span&gt; &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;OPEN&lt;/span&gt;;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;There might also be archivelog related entries in your PFILE, which you should also make changes to.&lt;/p&gt;


&lt;p&gt;Related posts:&lt;ol&gt;&lt;li&gt;&lt;a href='http://blog.ramin-hossaini.com/2010/03/09/enabling-trace/' rel='bookmark' title='Permanent Link: Enabling Trace'&gt;Enabling Trace&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/PjVZ46xi4X4" height="1" width="1"/&gt;</content>
		<link rel="replies" type="text/html" href="http://blog.ramin-hossaini.com/2010/02/16/turning-archive-log-mode-on-and-off/#comments" thr:count="0" />
		<link rel="replies" type="application/atom+xml" href="http://blog.ramin-hossaini.com/2010/02/16/turning-archive-log-mode-on-and-off/feed/atom/" thr:count="0" />
		<thr:total>0</thr:total>
	<feedburner:origLink>http://blog.ramin-hossaini.com/2010/02/16/turning-archive-log-mode-on-and-off/</feedburner:origLink></entry>
		<entry>
		<author>
			<name>Ramin Hossaini</name>
						<uri>http://www.ramin-hossaini.com</uri>
					</author>
		<title type="html"><![CDATA[Listing key Oracle Database files]]></title>
		<link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RaminHossaini/~3/ZQmkTlqm3OU/" />
		<id>http://blog.ramin-hossaini.com/?p=627</id>
		<updated>2010-02-16T18:57:02Z</updated>
		<published>2010-02-16T18:57:02Z</published>
		<category scheme="http://blog.ramin-hossaini.com" term="Oracle" />		<summary type="html"><![CDATA[To get a list of all datafiles, redo-log files and control-files, run the following in SQL*Plus (database must be mounted):

1
2
3
SELECT MEMBER FROM V$LOGFILE;
SELECT NAME FROM V$DATAFILE;
SELECT VALUE FROM V$PARAMETER WHERE NAME = 'control_files';

An easier way of displaying your control-files is:

1
SHOW PARAMETER control_files;



Related posts:Turning Archive-log mode on and off
Simple MySQL backup-script
Enabling Trace



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/2010/03/09/enabling-trace/' rel='bookmark' title='Permanent Link: Enabling Trace'>Enabling Trace</a></li>
</ol>]]></summary>
		<content type="html" xml:base="http://blog.ramin-hossaini.com/2010/02/16/listing-key-oracle-database-files/">&lt;p&gt;To get a list of all datafiles, redo-log files and control-files, run the following in SQL*Plus (database must be mounted):&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;&lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;SELECT&lt;/span&gt; MEMBER &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;FROM&lt;/span&gt; V$LOGFILE;
&lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;SELECT&lt;/span&gt; NAME &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;FROM&lt;/span&gt; V$DATAFILE;
&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;VALUE&lt;/span&gt; &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;FROM&lt;/span&gt; V$PARAMETER &lt;span style="color: #993333; font-weight: bold; text-transform: uppercase;"&gt;WHERE&lt;/span&gt; NAME &lt;span style="color: #66cc66;"&gt;=&lt;/span&gt; &lt;span style="color: #ff0000;"&gt;'control_files'&lt;/span&gt;;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;An easier way of displaying your control-files is:&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;SHOW PARAMETER control_files;&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/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/2010/03/09/enabling-trace/' rel='bookmark' title='Permanent Link: Enabling Trace'&gt;Enabling Trace&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RaminHossaini/~4/ZQmkTlqm3OU" height="1" width="1"/&gt;</content>
		<link rel="replies" type="text/html" href="http://blog.ramin-hossaini.com/2010/02/16/listing-key-oracle-database-files/#comments" thr:count="0" />
		<link rel="replies" type="application/atom+xml" href="http://blog.ramin-hossaini.com/2010/02/16/listing-key-oracle-database-files/feed/atom/" thr:count="0" />
		<thr:total>0</thr:total>
	<feedburner:origLink>http://blog.ramin-hossaini.com/2010/02/16/listing-key-oracle-database-files/</feedburner:origLink></entry>
		<entry>
		<author>
			<name>Ramin Hossaini</name>
						<uri>http://www.ramin-hossaini.com</uri>
					</author>
		<title type="html"><![CDATA[Stop Wordpress from adding p and br tags]]></title>
		<link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RaminHossaini/~3/90Gybr7VDlU/" />
		<id>http://blog.ramin-hossaini.com/?p=619</id>
		<updated>2010-01-09T18:43:04Z</updated>
		<published>2010-01-09T18:41:30Z</published>
		<category scheme="http://blog.ramin-hossaini.com" term="Dev" /><category scheme="http://blog.ramin-hossaini.com" term="wordpress" />		<summary type="html"><![CDATA[Even without the visual-editor, Wordpress has a habit of adding &#60;p&#62; and &#60;br/&#62; tags
Add this to your templates/pages/whatever and it should take care of the problem.

&#60;?php remove_filter&#40;'the_content', 'wpautop'&#41;; ?&#62;



Related posts:My top Wordpress plug-ins
Performing Wordpress upgrades (Linux)
Wordpress 2.7 Beta 1



Related posts:<ol><li><a href='http://blog.ramin-hossaini.com/2008/03/15/my-top-wordpress-plug-ins/' rel='bookmark' title='Permanent Link: My top Wordpress plug-ins'>My top Wordpress plug-ins</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>
<li><a href='http://blog.ramin-hossaini.com/2008/11/01/wordpress-27-beta-1/' rel='bookmark' title='Permanent Link: Wordpress 2.7 Beta 1'>Wordpress 2.7 Beta 1</a></li>
</ol>]]></summary>
		<content type="html" xml:base="http://blog.ramin-hossaini.com/2010/01/09/stop-wordpress-from-adding-and-tags/">&lt;p&gt;Even without the visual-editor, Wordpress has a habit of adding &amp;lt;p&amp;gt; and &amp;lt;br/&amp;gt; tags&lt;/p&gt;
&lt;p&gt;Add this to your templates/pages/whatever and it should take care of the problem.&lt;/p&gt;

&lt;div class="wp_syntax"&gt;&lt;div class="code"&gt;&lt;pre class="php" style="font-family:monospace;"&gt;&lt;span style="color: #000000; font-weight: bold;"&gt;&amp;lt;?php&lt;/span&gt; remove_filter&lt;span style="color: #009900;"&gt;&amp;#40;&lt;/span&gt;&lt;span style="color: #0000ff;"&gt;'the_content'&lt;/span&gt;&lt;span style="color: #339933;"&gt;,&lt;/span&gt; &lt;span style="color: #0000ff;"&gt;'wpautop'&lt;/span&gt;&lt;span style="color: #009900;"&gt;&amp;#41;&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt; &lt;span style="color: #000000; font-weight: bold;"&gt;?&amp;gt;&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/2008/03/15/my-top-wordpress-plug-ins/' rel='bookmark' title='Permanent Link: My top Wordpress plug-ins'&gt;My top Wordpress plug-ins&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;li&gt;&lt;a href='http://blog.ramin-hossaini.com/2008/11/01/wordpress-27-beta-1/' rel='bookmark' title='Permanent Link: Wordpress 2.7 Beta 1'&gt;Wordpress 2.7 Beta 1&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RaminHossaini/~4/90Gybr7VDlU" height="1" width="1"/&gt;</content>
		<link rel="replies" type="text/html" href="http://blog.ramin-hossaini.com/2010/01/09/stop-wordpress-from-adding-and-tags/#comments" thr:count="0" />
		<link rel="replies" type="application/atom+xml" href="http://blog.ramin-hossaini.com/2010/01/09/stop-wordpress-from-adding-and-tags/feed/atom/" thr:count="0" />
		<thr:total>0</thr:total>
	<feedburner:origLink>http://blog.ramin-hossaini.com/2010/01/09/stop-wordpress-from-adding-and-tags/</feedburner:origLink></entry>
		<entry>
		<author>
			<name>Ramin Hossaini</name>
						<uri>http://www.ramin-hossaini.com</uri>
					</author>
		<title type="html"><![CDATA[Create bevelled text]]></title>
		<link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RaminHossaini/~3/5PtMsU1aT60/" />
		<id>http://blog.ramin-hossaini.com/?p=608</id>
		<updated>2009-12-09T16:41:30Z</updated>
		<published>2009-12-09T16:41:30Z</published>
		<category scheme="http://blog.ramin-hossaini.com" term="How-to" /><category scheme="http://blog.ramin-hossaini.com" term="Photoshop" /><category scheme="http://blog.ramin-hossaini.com" term="Typography" />		<summary type="html"><![CDATA[I might be superfluous in my method here, but it works well for me  
Add some text

Added blending-modes:



Final result





Related posts:Now publishing full-text to RSS
Photoshop: The split-toning effect



Related posts:<ol><li><a href='http://blog.ramin-hossaini.com/2009/07/13/rss-config-feed-change/' rel='bookmark' title='Permanent Link: Now publishing full-text to RSS'>Now publishing full-text to RSS</a></li>
<li><a href='http://blog.ramin-hossaini.com/2008/03/16/photoshop-the-split-toning-effect/' rel='bookmark' title='Permanent Link: Photoshop: The split-toning effect'>Photoshop: The split-toning effect</a></li>
</ol>]]></summary>
		<content type="html" xml:base="http://blog.ramin-hossaini.com/2009/12/09/create-bevelled-text/">&lt;p&gt;I might be superfluous in my method here, but it works well for me &lt;img src='http://blog.ramin-hossaini.com/wp-content/plugins/smilies-themer/adiumicons/happy.png' alt=':)' class='wp-smiley' /&gt; &lt;/p&gt;
&lt;h2&gt;Add some text&lt;/h2&gt;
&lt;p&gt;&lt;img src="http://blog.ramin-hossaini.com/wp-content/uploads/2009/12/Capture00_.PNG" alt="Capture00_" title="Capture00_" width="828" height="198" class="alignnone size-full wp-image-609" /&gt;&lt;/p&gt;
&lt;h2&gt;Added blending-modes:&lt;/h2&gt;
&lt;p&gt;&lt;img src="http://blog.ramin-hossaini.com/wp-content/uploads/2009/12/Capture01.PNG" alt="Capture01" title="Capture01" width="322" height="279" class="alignnone size-full wp-image-612" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="http://blog.ramin-hossaini.com/wp-content/uploads/2009/12/Capture02.PNG" alt="Capture02" title="Capture02" width="324" height="364" class="alignnone size-full wp-image-613" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="http://blog.ramin-hossaini.com/wp-content/uploads/2009/12/Capture03.PNG" alt="Capture03" title="Capture03" width="320" height="392" class="alignnone size-full wp-image-614" /&gt;&lt;/p&gt;
&lt;h2&gt;Final result&lt;/h2&gt;
&lt;p&gt;&lt;img src="http://blog.ramin-hossaini.com/wp-content/uploads/2009/12/Capture00.PNG" alt="Capture00" title="Capture00" width="840" height="238" class="alignnone size-full wp-image-610" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="http://blog.ramin-hossaini.com/wp-content/uploads/2009/12/Capture04.PNG" alt="Capture04" title="Capture04" width="538" height="427" class="alignnone size-full wp-image-615" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="http://blog.ramin-hossaini.com/wp-content/uploads/2009/12/Capture05.PNG" alt="Capture05" title="Capture05" width="398" height="452" class="alignnone size-full wp-image-616" /&gt;&lt;/p&gt;


&lt;p&gt;Related posts:&lt;ol&gt;&lt;li&gt;&lt;a href='http://blog.ramin-hossaini.com/2009/07/13/rss-config-feed-change/' rel='bookmark' title='Permanent Link: Now publishing full-text to RSS'&gt;Now publishing full-text to RSS&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://blog.ramin-hossaini.com/2008/03/16/photoshop-the-split-toning-effect/' rel='bookmark' title='Permanent Link: Photoshop: The split-toning effect'&gt;Photoshop: The split-toning effect&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RaminHossaini/~4/5PtMsU1aT60" height="1" width="1"/&gt;</content>
		<link rel="replies" type="text/html" href="http://blog.ramin-hossaini.com/2009/12/09/create-bevelled-text/#comments" thr:count="1" />
		<link rel="replies" type="application/atom+xml" href="http://blog.ramin-hossaini.com/2009/12/09/create-bevelled-text/feed/atom/" thr:count="1" />
		<thr:total>1</thr:total>
	<feedburner:origLink>http://blog.ramin-hossaini.com/2009/12/09/create-bevelled-text/</feedburner:origLink></entry>
		<entry>
		<author>
			<name>Ramin Hossaini</name>
						<uri>http://www.ramin-hossaini.com</uri>
					</author>
		<title type="html"><![CDATA[Making &#8216;Fairy Tales&#8217;]]></title>
		<link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RaminHossaini/~3/vUzPqHcBK1Y/" />
		<id>http://blog.ramin-hossaini.com/?p=583</id>
		<updated>2009-11-18T21:11:11Z</updated>
		<published>2009-11-18T21:11:11Z</published>
		<category scheme="http://blog.ramin-hossaini.com" term="Photography" /><category scheme="http://blog.ramin-hossaini.com" term="Photoshop" />		<summary type="html"><![CDATA[This time round, I tried to take more screenshots

Getting the different pieces:
I had this from a trip to the Etosha National Park earlier this year:

Plus some stock-photography:

Masking and positioning
There are different ways you can get this step done. You could use the pen-tool too for example. I just chose to brush out parts I didn't [...]


Related posts:<ol><li><a href='http://blog.ramin-hossaini.com/2009/10/30/surrealism-propaganda/' rel='bookmark' title='Permanent Link: Surrealism &#8220;Propaganda&#8221;'>Surrealism &#8220;Propaganda&#8221;</a></li>
<li><a href='http://blog.ramin-hossaini.com/2007/08/02/photoshop-tutorial-creating-detailed-masks-from-channels/' rel='bookmark' title='Permanent Link: Photoshop tutorial: Creating detailed-masks from channels'>Photoshop tutorial: Creating detailed-masks from channels</a></li>
</ol>]]></summary>
		<content type="html" xml:base="http://blog.ramin-hossaini.com/2009/11/18/making-fairy-tales/">&lt;p&gt;This time round, I tried to take more screenshots&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.flickr.com/photos/project_summit/4103025226/" title="Fairy Tales by Ramin Hossaini, on Flickr"&gt;&lt;img src="http://farm3.static.flickr.com/2470/4103025226_a50db5b397.jpg" width="500" height="500" alt="Fairy Tales" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Getting the different pieces:&lt;/h2&gt;
&lt;p&gt;I had this from a trip to the Etosha National Park earlier this year:&lt;/p&gt;
&lt;p&gt;&lt;img src="http://blog.ramin-hossaini.com/wp-content/uploads/2009/11/composite2.jpg" alt="composite2" title="composite2" width="486" height="324" class="alignnone size-full wp-image-584" /&gt;&lt;/p&gt;
&lt;p&gt;Plus some stock-photography:&lt;/p&gt;
&lt;p&gt;&lt;img src="http://blog.ramin-hossaini.com/wp-content/uploads/2009/11/composite1.jpg" alt="composite1" title="composite1" width="200" height="304" class="alignnone size-full wp-image-585" /&gt;&lt;/p&gt;
&lt;h2&gt;Masking and positioning&lt;/h2&gt;
&lt;p&gt;There are different ways you can get this step done. You could use the pen-tool too for example. I just chose to brush out parts I didn't need.&lt;/p&gt;
&lt;p&gt;&lt;img src="http://blog.ramin-hossaini.com/wp-content/uploads/2009/11/Step1.jpg" alt="Step1" title="Step1" width="400" height="285" class="alignnone size-full wp-image-588" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="http://blog.ramin-hossaini.com/wp-content/uploads/2009/11/step2.jpg" alt="step2" title="step2" width="400" height="301" class="alignnone size-full wp-image-589" /&gt;&lt;/p&gt;
&lt;h2&gt;Preparing the background&lt;/h2&gt;
&lt;p&gt;Converted the image to black &amp;#038; white:&lt;/p&gt;
&lt;p&gt;&lt;img src="http://blog.ramin-hossaini.com/wp-content/uploads/2009/11/step3.jpg" alt="step3" title="step3" width="400" height="342" class="alignnone size-full wp-image-590" /&gt;&lt;/p&gt;
&lt;p&gt;Added some clouds - just because I can &lt;img src='http://blog.ramin-hossaini.com/wp-content/plugins/smilies-themer/adiumicons/happy.png' alt=':)' class='wp-smiley' /&gt; &lt;/p&gt;
&lt;p&gt;&lt;img src="http://blog.ramin-hossaini.com/wp-content/uploads/2009/11/step4.jpg" alt="step4" title="step4" width="400" height="343" class="alignnone size-full wp-image-591" /&gt;&lt;/p&gt;
&lt;p&gt;And came up with this...&lt;/p&gt;
&lt;p&gt;&lt;img src="http://blog.ramin-hossaini.com/wp-content/uploads/2009/11/step5.jpg" alt="step5" title="step5" width="400" height="324" class="alignnone size-full wp-image-592" /&gt;&lt;/p&gt;
&lt;h2&gt;Putting it together&lt;/h2&gt;
&lt;p&gt;This was the hardest step really. I try to re-draw light in the image and try to draw the attention of the viewer to certain areas of the picture&lt;/p&gt;
&lt;p&gt;&lt;img src="http://blog.ramin-hossaini.com/wp-content/uploads/2009/11/step6.jpg" alt="step6" title="step6" width="400" height="345" class="alignnone size-full wp-image-593" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="http://blog.ramin-hossaini.com/wp-content/uploads/2009/11/step7.jpg" alt="step7" title="step7" width="400" height="382" class="alignnone size-full wp-image-594" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="http://blog.ramin-hossaini.com/wp-content/uploads/2009/11/step8.jpg" alt="step8" title="step8" width="400" height="372" class="alignnone size-full wp-image-602" /&gt;&lt;/p&gt;
&lt;p&gt;The mask resulted in some hard-edges, so I gaussian blurred it a little&lt;/p&gt;
&lt;p&gt;&lt;img src="http://blog.ramin-hossaini.com/wp-content/uploads/2009/11/step9.jpg" alt="step9" title="step9" width="450" height="399" class="alignnone size-full wp-image-596" /&gt;&lt;/p&gt;
&lt;p&gt;Added noise:&lt;/p&gt;
&lt;p&gt;&lt;img src="http://blog.ramin-hossaini.com/wp-content/uploads/2009/11/step10.jpg" alt="step10" title="step10" width="400" height="357" class="alignnone size-full wp-image-597" /&gt;&lt;/p&gt;
&lt;p&gt;And gave it a cyan-tint&lt;/p&gt;
&lt;p&gt;&lt;img src="http://blog.ramin-hossaini.com/wp-content/uploads/2009/11/step10_.jpg" alt="step10_" title="step10_" width="400" height="400" class="alignnone size-full wp-image-600" /&gt;&lt;/p&gt;
&lt;h2&gt;Some magic&lt;/h2&gt;
&lt;p&gt;I used a couple of brushes to make this&lt;/p&gt;
&lt;p&gt;&lt;img src="http://blog.ramin-hossaini.com/wp-content/uploads/2009/11/step11.jpg" alt="step11" title="step11" width="400" height="430" class="alignnone size-full wp-image-598" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="http://blog.ramin-hossaini.com/wp-content/uploads/2009/11/step12.jpg" alt="step12" title="step12" width="400" height="315" class="alignnone size-full wp-image-599" /&gt;&lt;/p&gt;
&lt;h2&gt;The final image&lt;/h2&gt;
&lt;p&gt;And a little bit of tweaking later... &lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.flickr.com/photos/project_summit/4103025226/" title="Fairy Tales by Ramin Hossaini, on Flickr"&gt;&lt;img src="http://farm3.static.flickr.com/2470/4103025226_a50db5b397.jpg" width="500" height="500" alt="Fairy Tales" /&gt;&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;Related posts:&lt;ol&gt;&lt;li&gt;&lt;a href='http://blog.ramin-hossaini.com/2009/10/30/surrealism-propaganda/' rel='bookmark' title='Permanent Link: Surrealism &amp;#8220;Propaganda&amp;#8221;'&gt;Surrealism &amp;#8220;Propaganda&amp;#8221;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://blog.ramin-hossaini.com/2007/08/02/photoshop-tutorial-creating-detailed-masks-from-channels/' rel='bookmark' title='Permanent Link: Photoshop tutorial: Creating detailed-masks from channels'&gt;Photoshop tutorial: Creating detailed-masks from channels&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RaminHossaini/~4/vUzPqHcBK1Y" height="1" width="1"/&gt;</content>
		<link rel="replies" type="text/html" href="http://blog.ramin-hossaini.com/2009/11/18/making-fairy-tales/#comments" thr:count="1" />
		<link rel="replies" type="application/atom+xml" href="http://blog.ramin-hossaini.com/2009/11/18/making-fairy-tales/feed/atom/" thr:count="1" />
		<thr:total>1</thr:total>
	<feedburner:origLink>http://blog.ramin-hossaini.com/2009/11/18/making-fairy-tales/</feedburner:origLink></entry>
		<entry>
		<author>
			<name>Ramin Hossaini</name>
						<uri>http://www.ramin-hossaini.com</uri>
					</author>
		<title type="html"><![CDATA[Search through files for a string (Linux)]]></title>
		<link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RaminHossaini/~3/qkeqo3AMHsg/" />
		<id>http://blog.ramin-hossaini.com/?p=580</id>
		<updated>2009-11-04T16:12:09Z</updated>
		<published>2009-11-04T16:12:09Z</published>
		<category scheme="http://blog.ramin-hossaini.com" term="How-to" /><category scheme="http://blog.ramin-hossaini.com" term="Linux" />		<summary type="html"><![CDATA[To search a directory recursively for specific text or a string, use:

find . -exec grep &#34;string to find&#34; '{}' \; -print



Related posts:Performing Wordpress upgrades (Linux)
Wubi &#8211; An easy way to Linux
Facebook lacks a simple feature



Related posts:<ol><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>
<li><a href='http://blog.ramin-hossaini.com/2007/06/23/wubi-an-easy-way-to-linux/' rel='bookmark' title='Permanent Link: Wubi &#8211; An easy way to Linux'>Wubi &#8211; An easy way to Linux</a></li>
<li><a href='http://blog.ramin-hossaini.com/2009/08/10/facebook-lacks-a-simple-feature/' rel='bookmark' title='Permanent Link: Facebook lacks a simple feature'>Facebook lacks a simple feature</a></li>
</ol>]]></summary>
		<content type="html" xml:base="http://blog.ramin-hossaini.com/2009/11/04/search-through-files-for-a-string/">&lt;p&gt;To search a directory recursively for specific text or a string, use:&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;find&lt;/span&gt; . &lt;span style="color: #660033;"&gt;-exec&lt;/span&gt; &lt;span style="color: #c20cb9; font-weight: bold;"&gt;grep&lt;/span&gt; &lt;span style="color: #ff0000;"&gt;&amp;quot;string to find&amp;quot;&lt;/span&gt; &lt;span style="color: #ff0000;"&gt;'{}'&lt;/span&gt; \; &lt;span style="color: #660033;"&gt;-print&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/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;li&gt;&lt;a href='http://blog.ramin-hossaini.com/2007/06/23/wubi-an-easy-way-to-linux/' rel='bookmark' title='Permanent Link: Wubi &amp;#8211; An easy way to Linux'&gt;Wubi &amp;#8211; An easy way to Linux&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://blog.ramin-hossaini.com/2009/08/10/facebook-lacks-a-simple-feature/' rel='bookmark' title='Permanent Link: Facebook lacks a simple feature'&gt;Facebook lacks a simple feature&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RaminHossaini/~4/qkeqo3AMHsg" height="1" width="1"/&gt;</content>
		<link rel="replies" type="text/html" href="http://blog.ramin-hossaini.com/2009/11/04/search-through-files-for-a-string/#comments" thr:count="2" />
		<link rel="replies" type="application/atom+xml" href="http://blog.ramin-hossaini.com/2009/11/04/search-through-files-for-a-string/feed/atom/" thr:count="2" />
		<thr:total>2</thr:total>
	<feedburner:origLink>http://blog.ramin-hossaini.com/2009/11/04/search-through-files-for-a-string/</feedburner:origLink></entry>
		<entry>
		<author>
			<name>Ramin Hossaini</name>
						<uri>http://www.ramin-hossaini.com</uri>
					</author>
		<title type="html"><![CDATA[Surrealism &#8220;Propaganda&#8221;]]></title>
		<link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RaminHossaini/~3/k4GE0d1_dWg/" />
		<id>http://blog.ramin-hossaini.com/?p=565</id>
		<updated>2009-10-30T14:17:05Z</updated>
		<published>2009-10-30T14:15:39Z</published>
		<category scheme="http://blog.ramin-hossaini.com" term="Photography" /><category scheme="http://blog.ramin-hossaini.com" term="Photoshop" />		<summary type="html"><![CDATA[I had this idea for a couple of days and finally decided to do it yesterday. This was the process (very very roughly)
Step 1: Getting the initial photos
This is the embarassing part. You'll look silly almost no matter what - trying to get a self-portrait in a suitable position that you envision. A camera on [...]


Related posts:<ol><li><a href='http://blog.ramin-hossaini.com/2009/11/18/making-fairy-tales/' rel='bookmark' title='Permanent Link: Making &#8216;Fairy Tales&#8217;'>Making &#8216;Fairy Tales&#8217;</a></li>
<li><a href='http://blog.ramin-hossaini.com/2009/01/02/photo-retouching-before-and-after/' rel='bookmark' title='Permanent Link: Photo Retouching &#8211; Before and After'>Photo Retouching &#8211; Before and After</a></li>
</ol>]]></summary>
		<content type="html" xml:base="http://blog.ramin-hossaini.com/2009/10/30/surrealism-propaganda/">&lt;p&gt;I had this idea for a couple of days and finally decided to do it yesterday. This was the process (very very roughly)&lt;/p&gt;
&lt;h2&gt;Step 1: Getting the initial photos&lt;/h2&gt;
&lt;p&gt;This is the embarassing part. You'll look silly almost no matter what - trying to get a self-portrait in a suitable position that you envision. A camera on tripod, remote control and bounce-flash later though (thanks, I like my bedsheets too):&lt;/p&gt;
&lt;p&gt;&lt;img src="http://blog.ramin-hossaini.com/wp-content/uploads/2009/10/step1.jpg" alt="step1" title="step1" width="400" height="275" class="alignnone size-full wp-image-566" /&gt;&lt;/p&gt;
&lt;p&gt;Got some stock-photography from &lt;a href="http://py.deviantart.com/art/Old-TV-Set-STOCK-130064266"&gt;Pierre&lt;/a&gt; on DeviantArt&lt;/p&gt;
&lt;p&gt;&lt;img src="http://blog.ramin-hossaini.com/wp-content/uploads/2009/10/step1_stock.jpg" alt="step1_stock" title="step1_stock" width="400" height="267" class="alignnone size-full wp-image-567" /&gt;&lt;/p&gt;
&lt;h2&gt;Step 2: Putting the 2 together&lt;/h2&gt;
&lt;p&gt;I had to give the photo a bit more room at the top, so I photoshopped some more wall there. With composites, sometimes I'll mask out the individual parts as precisely as I can initially and save the respective masks in my channels. In this case, I put them together first and then masked it all together. I think that's a mistake and I should have masked the subject first (me) then masked the television. Could have saved myself quite a bit of time afterwards. &lt;/p&gt;
&lt;p&gt;&lt;img src="http://blog.ramin-hossaini.com/wp-content/uploads/2009/10/step2.jpg" alt="step2" title="step2" width="400" height="400" class="alignnone size-full wp-image-568" /&gt;&lt;/p&gt;
&lt;h2&gt;Step 3: Magic&lt;/h2&gt;
&lt;p&gt;OK, so I skipped a lot of steps - my bad - I didn't take any screenshots. I was too busy wondering "how the hell am I going to get this to blend". I guess there's &lt;em&gt;always&lt;/em&gt; a point in these highly-processed photos where I say "I should stop right now, this is just not working", but I keep on going because it's taken so much effort already. Eventually, there's a point where I say "oh, I might have something here". I suppose that makes it all the more rewarding in the end.&lt;/p&gt;
&lt;p&gt;I use a lot of different filters and textures and try to burn-and-dodge a lot.&lt;/p&gt;
&lt;p&gt;&lt;img src="http://blog.ramin-hossaini.com/wp-content/uploads/2009/10/step3.jpg" alt="step3" title="step3" width="400" height="400" class="alignnone size-full wp-image-569" /&gt;&lt;/p&gt;
&lt;h2&gt;Step 4: Colouring and painting light&lt;/h2&gt;
&lt;p&gt;I hate masking and I love "painting-light" and manipulating it. I think that if I actually loved masking, I could have some really amazing work.&lt;/p&gt;
&lt;p&gt;At this point, I also did a bit of liquifying and stretched/distorted parts of the photo.&lt;/p&gt;
&lt;p&gt;Almost 3 hours later, this was the final shot:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.flickr.com/photos/project_summit/4056259086/"&gt;&lt;img src="http://blog.ramin-hossaini.com/wp-content/uploads/2009/10/step4.jpg" alt="step4" title="step4" width="400" height="400" class="alignnone size-full wp-image-570" /&gt;&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;Related posts:&lt;ol&gt;&lt;li&gt;&lt;a href='http://blog.ramin-hossaini.com/2009/11/18/making-fairy-tales/' rel='bookmark' title='Permanent Link: Making &amp;#8216;Fairy Tales&amp;#8217;'&gt;Making &amp;#8216;Fairy Tales&amp;#8217;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href='http://blog.ramin-hossaini.com/2009/01/02/photo-retouching-before-and-after/' rel='bookmark' title='Permanent Link: Photo Retouching &amp;#8211; Before and After'&gt;Photo Retouching &amp;#8211; Before and After&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RaminHossaini/~4/k4GE0d1_dWg" height="1" width="1"/&gt;</content>
		<link rel="replies" type="text/html" href="http://blog.ramin-hossaini.com/2009/10/30/surrealism-propaganda/#comments" thr:count="3" />
		<link rel="replies" type="application/atom+xml" href="http://blog.ramin-hossaini.com/2009/10/30/surrealism-propaganda/feed/atom/" thr:count="3" />
		<thr:total>3</thr:total>
	<feedburner:origLink>http://blog.ramin-hossaini.com/2009/10/30/surrealism-propaganda/</feedburner:origLink></entry>
	</feed><!-- Dynamic page generated in 3.162 seconds. --><!-- Cached page generated by WP-Super-Cache on 2010-03-10 06:48:08 -->
