<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>orapunk.com</title>
	<atom:link href="http://orapunk.com/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://orapunk.com</link>
	<description>oracle, punk, anarchy, database, bi, solution, pl/sql, sql, edge</description>
	<pubDate>Wed, 25 Aug 2010 13:38:43 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.5</generator>
	<language>en</language>
			<item>
		<title>How to add days, hours or minutes to a date</title>
		<link>http://orapunk.com/?p=94</link>
		<comments>http://orapunk.com/?p=94#comments</comments>
		<pubDate>Wed, 25 Aug 2010 13:27:35 +0000</pubDate>
		<dc:creator>orapunk</dc:creator>
		
		<category><![CDATA[Scripts]]></category>

		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://orapunk.com/?p=94</guid>
		<description><![CDATA[


Now
SYSDATE


Tomorow/ next day
SYSDATE + 1


Seven days from now
SYSDATE + 7


One hour from now
SYSDATE + 1/24


Three hours from now
SYSDATE + 3/24


An half hour from now
SYSDATE + 1/48


10 minutes from now
SYSDATE + 10/1440


1 minute from now
SYSDATE + 1/1440


Tomorrow at 12 midnight
TRUNC(SYSDATE + 1)


Tomorrow at 10 AM
TRUNC(SYSDATE + 1) + 10/24



]]></description>
			<content:encoded><![CDATA[<table style="font-size: 8pt;" border="1">
<tbody>
<tr>
<td>Now</td>
<td>SYSDATE</td>
</tr>
<tr>
<td>Tomorow/ next day</td>
<td>SYSDATE + 1</td>
</tr>
<tr>
<td>Seven days from now</td>
<td>SYSDATE + 7</td>
</tr>
<tr>
<td>One hour from now</td>
<td>SYSDATE + 1/24</td>
</tr>
<tr>
<td>Three hours from now</td>
<td>SYSDATE + 3/24</td>
</tr>
<tr>
<td>An half hour from now</td>
<td>SYSDATE + 1/48</td>
</tr>
<tr>
<td>10 minutes from now</td>
<td>SYSDATE + 10/1440</td>
</tr>
<tr>
<td>1 minute from now</td>
<td>SYSDATE + 1/1440</td>
</tr>
<tr>
<td>Tomorrow at 12 midnight</td>
<td>TRUNC(SYSDATE + 1)</td>
</tr>
<tr>
<td>Tomorrow at 10 AM</td>
<td>TRUNC(SYSDATE + 1) + 10/24</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://orapunk.com/?feed=rss2&amp;p=94</wfw:commentRss>
		</item>
		<item>
		<title>download OBIEE 11g NOW!!!</title>
		<link>http://orapunk.com/?p=92</link>
		<comments>http://orapunk.com/?p=92#comments</comments>
		<pubDate>Mon, 16 Aug 2010 17:31:41 +0000</pubDate>
		<dc:creator>orapunk</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://orapunk.com/?p=92</guid>
		<description><![CDATA[Hello hello hello,
See here what we were waiting for, the new OBIEE 11g.
]]></description>
			<content:encoded><![CDATA[<p>Hello hello hello,</p>
<p>See <a href="http://www.oracle.com/technetwork/middleware/bi-enterprise-edition/downloads/bus-intelligence-11g-165436.html" target="_blank">here</a> what we were waiting for, the new OBIEE 11g.</p>
]]></content:encoded>
			<wfw:commentRss>http://orapunk.com/?feed=rss2&amp;p=92</wfw:commentRss>
		</item>
		<item>
		<title>Reset SYSTEM password</title>
		<link>http://orapunk.com/?p=90</link>
		<comments>http://orapunk.com/?p=90#comments</comments>
		<pubDate>Sun, 01 Aug 2010 15:45:14 +0000</pubDate>
		<dc:creator>orapunk</dc:creator>
		
		<category><![CDATA[Database]]></category>

		<category><![CDATA[Oracle 10g]]></category>

		<category><![CDATA[password]]></category>

		<category><![CDATA[pwd]]></category>

		<category><![CDATA[reset]]></category>

		<category><![CDATA[system]]></category>

		<guid isPermaLink="false">http://orapunk.com/?p=90</guid>
		<description><![CDATA[For the ones who wants to reset the SYSTEM pwd:
operfcfg.exe -U SYSTEM -P password -D tns_entry_name
]]></description>
			<content:encoded><![CDATA[<p>For the ones who wants to reset the SYSTEM pwd:</p>
<p>operfcfg.exe -U SYSTEM -P password -D tns_entry_name</p>
]]></content:encoded>
			<wfw:commentRss>http://orapunk.com/?feed=rss2&amp;p=90</wfw:commentRss>
		</item>
		<item>
		<title>Time for some humor</title>
		<link>http://orapunk.com/?p=88</link>
		<comments>http://orapunk.com/?p=88#comments</comments>
		<pubDate>Fri, 30 Jul 2010 22:30:59 +0000</pubDate>
		<dc:creator>orapunk</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://orapunk.com/?p=88</guid>
		<description><![CDATA[Q. What if your Dad loses his car keys?
A. &#8216;Parent keys not found!&#8217;
Q. What if your old girl friend spots you with your new one?
A. &#8216;Duplicate value on index!&#8217;
Q. What if the golf ball doesn&#8217;t get into the hole at all?
A. &#8216;Value larger than specified precision!&#8217;
Q. What if you try to have fun with somebody [...]]]></description>
			<content:encoded><![CDATA[<p>Q. What if your Dad loses his car keys?<br />
A. &#8216;Parent keys not found!&#8217;</p>
<p>Q. What if your old girl friend spots you with your new one?<br />
A. &#8216;Duplicate value on index!&#8217;</p>
<p>Q. What if the golf ball doesn&#8217;t get into the hole at all?<br />
A. &#8216;Value larger than specified precision!&#8217;</p>
<p>Q. What if you try to have fun with somebody else&#8217;s girlfriend and get kicked out?<br />
A. &#8216;Insufficient privileges on the specified object!&#8217;</p>
<p>Q. What if you don&#8217;t get any response from the girl next door?<br />
A. &#8216;No data found!&#8217; or &#8216; Query caused no rows retrieved!&#8217;</p>
<p>Q. What if you get response from the girl next door and her Mom too?<br />
A. &#8216;SELECT INTO returns too many rows!&#8217;</p>
<p>Q. What if you dial a wrong number?<br />
A. &#8216;Invalid number&#8217; or &#8216; Object doesn&#8217;t exist!&#8217;</p>
<p>Q. What if you try to beat your own trumpet?<br />
A. &#8216;Object is found mutating!&#8217;</p>
<p>Q. What if you are too late to office and the boss catches you?<br />
A. &#8216;Discrete transaction failed!&#8217;</p>
<p>Q. What if you see &#8216;theatre full&#8217; when you go to a movie?<br />
A. &#8216;Maximum number of users exceeded!&#8217;</p>
<p>Q. What if you don&#8217;t get table in the lunch room?<br />
A. &#8216;System out of tablespace!&#8217;</p>
]]></content:encoded>
			<wfw:commentRss>http://orapunk.com/?feed=rss2&amp;p=88</wfw:commentRss>
		</item>
		<item>
		<title>OBIEE 11G new version released</title>
		<link>http://orapunk.com/?p=86</link>
		<comments>http://orapunk.com/?p=86#comments</comments>
		<pubDate>Fri, 30 Jul 2010 22:25:49 +0000</pubDate>
		<dc:creator>orapunk</dc:creator>
		
		<category><![CDATA[OBIEE]]></category>

		<category><![CDATA[11g]]></category>

		<guid isPermaLink="false">http://orapunk.com/?p=86</guid>
		<description><![CDATA[Yes finally after 3 years of product tuning, there is finally the new and adult version of OBIEE. Called of course 11G (something else would have been a big surprise).
You can check some more information on the following Oracel website:
http://www.oracle.com/oms/businessintelligence11g/business-insight-075567.html
]]></description>
			<content:encoded><![CDATA[<p>Yes finally after 3 years of product tuning, there is finally the new and adult version of OBIEE. Called of course 11G (something else would have been a big surprise).</p>
<p>You can check some more information on the following Oracel website:</p>
<p><a href="http://www.oracle.com/oms/businessintelligence11g/business-insight-075567.html" target="_blank">http://www.oracle.com/oms/businessintelligence11g/business-insight-075567.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://orapunk.com/?feed=rss2&amp;p=86</wfw:commentRss>
		</item>
		<item>
		<title>max(ROWID) =&gt; something to remember</title>
		<link>http://orapunk.com/?p=84</link>
		<comments>http://orapunk.com/?p=84#comments</comments>
		<pubDate>Thu, 22 Apr 2010 17:19:40 +0000</pubDate>
		<dc:creator>orapunk</dc:creator>
		
		<category><![CDATA[Database]]></category>

		<guid isPermaLink="false">http://orapunk.com/?p=84</guid>
		<description><![CDATA[Sometimes we forget some basic concepts. So do I (sometimes).
To retrieve the latest record of a table it&#8217;s not ALWAYS correct to use the max(rowid) of a table.
The rowid is an ID generated based on file/block/slot .
The only method to make sure we take the last record is a having a column with a timestamp [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes we forget some basic concepts. So do I (sometimes).</p>
<p>To retrieve the latest record of a table it&#8217;s not ALWAYS correct to use the max(rowid) of a table.</p>
<p>The rowid is an ID generated based on file/block/slot .</p>
<p>The only method to make sure we take the last record is a having a column with a timestamp or a sequence.</p>
]]></content:encoded>
			<wfw:commentRss>http://orapunk.com/?feed=rss2&amp;p=84</wfw:commentRss>
		</item>
		<item>
		<title>SQL*LOADER control file generator</title>
		<link>http://orapunk.com/?p=82</link>
		<comments>http://orapunk.com/?p=82#comments</comments>
		<pubDate>Fri, 26 Mar 2010 09:30:58 +0000</pubDate>
		<dc:creator>orapunk</dc:creator>
		
		<category><![CDATA[Sql*Loader]]></category>

		<guid isPermaLink="false">http://orapunk.com/?p=82</guid>
		<description><![CDATA[set echo off ver off feed off pages 0
accept tname prompt &#8216;Enter Name of Table: &#8216;
accept dformat prompt &#8216;Enter Format to Use for Date Columns: &#8216;
spool &#38;tname..ctl
select &#8216;LOAD DATA&#8217;&#124;&#124; chr (10) &#124;&#124;
&#8216;INFILE &#8221;&#8217; &#124;&#124; lower (table_name) &#124;&#124; &#8216;.dat&#8221;&#8217; &#124;&#124; chr (10) &#124;&#124;
&#8216;INTO TABLE &#8216;&#124;&#124; table_name &#124;&#124; chr (10)&#124;&#124;
&#8216;FIELDS TERMINATED BY &#8221;,&#8221;&#8217;&#124;&#124;chr (10)&#124;&#124;
&#8216;TRAILING NULLCOLS&#8217; &#124;&#124; chr [...]]]></description>
			<content:encoded><![CDATA[<p>set echo off ver off feed off pages 0<br />
accept tname prompt &#8216;Enter Name of Table: &#8216;<br />
accept dformat prompt &#8216;Enter Format to Use for Date Columns: &#8216;</p>
<p>spool &amp;tname..ctl</p>
<p>select &#8216;LOAD DATA&#8217;|| chr (10) ||<br />
&#8216;INFILE &#8221;&#8217; || lower (table_name) || &#8216;.dat&#8221;&#8217; || chr (10) ||<br />
&#8216;INTO TABLE &#8216;|| table_name || chr (10)||<br />
&#8216;FIELDS TERMINATED BY &#8221;,&#8221;&#8217;||chr (10)||<br />
&#8216;TRAILING NULLCOLS&#8217; || chr (10) || &#8216;(&#8217;<br />
from   user_tables<br />
where  table_name = upper (&#8217;&amp;tname&#8217;);</p>
<p>select decode (rownum, 1, &#8216;   &#8216;, &#8216; , &#8216;) ||<br />
rpad (column_name, 33, &#8216; &#8216;)      ||<br />
decode (data_type,<br />
&#8216;VARCHAR2&#8242;, &#8216;CHAR NULLIF (&#8217;||column_name||&#8217;=BLANKS)&#8217;,<br />
&#8216;FLOAT&#8217;,    &#8216;DECIMAL EXTERNAL NULLIF(&#8217;||column_name||&#8217;=BLANKS)&#8217;,<br />
&#8216;NUMBER&#8217;,   decode (data_precision, 0,<br />
&#8216;INTEGER EXTERNAL NULLIF (&#8217;||column_name||<br />
&#8216;=BLANKS)&#8217;, decode (data_scale, 0,<br />
&#8216;INTEGER EXTERNAL NULLIF (&#8217;||<br />
column_name||&#8217;=BLANKS)&#8217;,<br />
&#8216;DECIMAL EXTERNAL NULLIF (&#8217;||<br />
column_name||&#8217;=BLANKS)&#8217;)),<br />
&#8216;DATE&#8217;,     &#8216;DATE &#8220;&amp;dformat&#8221; NULLIF (&#8217;||column_name||&#8217;=BLANKS)&#8217;, null)<br />
from   user_tab_columns<br />
where  table_name = upper (&#8217;&amp;tname&#8217;)<br />
order  by column_id;</p>
<p>select &#8216;)&#8217; from dual;</p>
<p>spool off</p>
]]></content:encoded>
			<wfw:commentRss>http://orapunk.com/?feed=rss2&amp;p=82</wfw:commentRss>
		</item>
		<item>
		<title>new APEX group at LinkedIn</title>
		<link>http://orapunk.com/?p=79</link>
		<comments>http://orapunk.com/?p=79#comments</comments>
		<pubDate>Tue, 23 Mar 2010 13:20:17 +0000</pubDate>
		<dc:creator>orapunk</dc:creator>
		
		<category><![CDATA[APEX]]></category>

		<guid isPermaLink="false">http://orapunk.com/?p=79</guid>
		<description><![CDATA[http://www.linkedin.com/groups?home=&#38;gid=2784198&#38;trk=anet_ug_hm
]]></description>
			<content:encoded><![CDATA[<p><a title="Apex linked In" href="http://www.linkedin.com/groups?home=&amp;gid=2784198&amp;trk=anet_ug_hm" target="_blank">http://www.linkedin.com/groups?home=&amp;gid=2784198&amp;trk=anet_ug_hm</a></p>
]]></content:encoded>
			<wfw:commentRss>http://orapunk.com/?feed=rss2&amp;p=79</wfw:commentRss>
		</item>
	</channel>
</rss>
