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

<channel>
	<title>Glotzfisch.de &#187; Oracle</title>
	<atom:link href="http://www.glotzfisch.de/category/databases/oracle/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.glotzfisch.de</link>
	<description>If something does not work out the way you want it to - try something different</description>
	<lastBuildDate>Wed, 26 May 2010 08:43:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Oracle &gt; Write logfile</title>
		<link>http://www.glotzfisch.de/oracle-write-logfile/</link>
		<comments>http://www.glotzfisch.de/oracle-write-logfile/#comments</comments>
		<pubDate>Wed, 19 Mar 2008 14:21:48 +0000</pubDate>
		<dc:creator>Gabi</dc:creator>
				<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://www.glotzfisch.de/oracle-write-logfile/</guid>
		<description><![CDATA[CREATE OR REPLACE PROCEDURE write_log (
   error_id IN NUMBER
   ,msg     IN VARCHAR2
)
IS
PRAGMA AUTONOMOUS_TRANSACTION;

BEGIN
  insert into zzz_errors (timestamp, error_code, message) VALUES (SYSDATE,error_id,msg);
  commit;
END write_log;
]]></description>
			<content:encoded><![CDATA[<pre>CREATE OR REPLACE PROCEDURE write_log (
   error_id IN NUMBER
   ,msg     IN VARCHAR2
)
IS
PRAGMA AUTONOMOUS_TRANSACTION;

BEGIN
  insert into zzz_errors (timestamp, error_code, message) VALUES (SYSDATE,error_id,msg);
  commit;
END write_log;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.glotzfisch.de/oracle-write-logfile/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle &gt; Update &#8211; Select</title>
		<link>http://www.glotzfisch.de/oracle-update-select/</link>
		<comments>http://www.glotzfisch.de/oracle-update-select/#comments</comments>
		<pubDate>Wed, 19 Mar 2008 14:19:57 +0000</pubDate>
		<dc:creator>Gabi</dc:creator>
				<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://www.glotzfisch.de/oracle-update-select/</guid>
		<description><![CDATA[update (
   SELECT * FROM temp_dim tableIn,
                 temp_dates dates1,
	         temp_dates dates2
   WHERE dates1.ID = tableIn.VALID_FROM
   AND   dates2.ID = tableIn.valid_to
   AND SYSDATE [...]]]></description>
			<content:encoded><![CDATA[<pre>update (
   SELECT * FROM temp_dim tableIn,
                 temp_dates dates1,
	         temp_dates dates2
   WHERE dates1.ID = tableIn.VALID_FROM
   AND   dates2.ID = tableIn.valid_to
   AND SYSDATE BETWEEN dates1.FULL_DATE AND dates2.full_date
           )
set valid_flag = 1</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.glotzfisch.de/oracle-update-select/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle &gt; print out more than 255 chars</title>
		<link>http://www.glotzfisch.de/oracle-print-out-more-than-255-chars/</link>
		<comments>http://www.glotzfisch.de/oracle-print-out-more-than-255-chars/#comments</comments>
		<pubDate>Tue, 05 Apr 2005 09:36:34 +0000</pubDate>
		<dc:creator>Gabi</dc:creator>
				<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://www.glotzfisch.de/oracle-print-out-more-than-255-chars/</guid>
		<description><![CDATA[ CREATE OR REPLACE PROCEDURE ausgabe (text IN VARCHAR2?)
   IS
	  n NUMBER;
	  m NUMBER;
	  i NUMBER;
	  j NUMBER;
   BEGIN
	  n := length(text);
	  IF n &#60; 256 THEN
		 dbms_output.put_line(text);
	  ELSE
		 m := trunc(n/255);
		 FOR i IN 0 .. m
			LOOP
			   j := i*255+1;
			  [...]]]></description>
			<content:encoded><![CDATA[<pre> CREATE OR REPLACE PROCEDURE ausgabe (text IN <span class="createlink">VARCHAR2</span><a href="http://wiki.glotzfisch.de/index.php/Oracle/VARCHAR2?action=edit" class="createlink">?</a>)
   IS
	  n NUMBER;
	  m NUMBER;
	  i NUMBER;
	  j NUMBER;
   BEGIN
	  n := length(text);
	  IF n &lt; 256 THEN
		 dbms_output.put_line(text);
	  ELSE
		 m := trunc(n/255);
		 FOR i IN 0 .. m
			LOOP
			   j := i*255+1;
			   dbms_output.put_line(substr(text,j,255));
			END LOOP;
	  END IF;
 END ausgabe;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.glotzfisch.de/oracle-print-out-more-than-255-chars/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle &gt; Union and group by</title>
		<link>http://www.glotzfisch.de/oracle-union-and-group-by/</link>
		<comments>http://www.glotzfisch.de/oracle-union-and-group-by/#comments</comments>
		<pubDate>Tue, 01 Mar 2005 09:35:46 +0000</pubDate>
		<dc:creator>Gabi</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://www.glotzfisch.de/oracle-union-and-group-by/</guid>
		<description><![CDATA[ select
 eff_date,
 sum(number_of_items)
 from
 (select
    to_char(effective_report_date,'mmyyyy') as eff_date,
    count(*) number_of_items
    from dm1
    where to_char(effective_report_date,'mmyyyy') = '082004'
    group by to_char(effective_report_date,'mmyyyy')
  union all
    select
    to_char(effective_report_date,'mmyyyy') as eff_date,
    sum( number_of_items)
   [...]]]></description>
			<content:encoded><![CDATA[<pre> select
 eff_date,
 sum(number_of_items)
 from
 (select
    to_char(effective_report_date,'mmyyyy') as eff_date,
    count(*) number_of_items
    from dm1
    where to_char(effective_report_date,'mmyyyy') = '082004'
    group by to_char(effective_report_date,'mmyyyy')
  union all
    select
    to_char(effective_report_date,'mmyyyy') as eff_date,
    sum( number_of_items)
    from dm2
    where to_char(effective_report_date,'mmyyyy') = '082004'
    group by to_char(effective_report_date,'mmyyyy')
 )
 group by eff_date</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.glotzfisch.de/oracle-union-and-group-by/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
