<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>OraTech &#187; SQL y PL/SQL</title>
	<atom:link href="http://lscheng.wordpress.com/category/sql-y-plsql/feed/" rel="self" type="application/rss+xml" />
	<link>http://lscheng.wordpress.com</link>
	<description>Oracle Technology</description>
	<lastBuildDate>Wed, 11 Nov 2009 00:50:24 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='lscheng.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/0a8f14dfcf12d0efd508dae03f0be3a4?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>OraTech &#187; SQL y PL/SQL</title>
		<link>http://lscheng.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://lscheng.wordpress.com/osd.xml" title="OraTech" />
		<item>
		<title>Trigger sobre eventos de DDL</title>
		<link>http://lscheng.wordpress.com/2008/07/26/trigger-sobre-eventos-de-ddl/</link>
		<comments>http://lscheng.wordpress.com/2008/07/26/trigger-sobre-eventos-de-ddl/#comments</comments>
		<pubDate>Sat, 26 Jul 2008 17:24:46 +0000</pubDate>
		<dc:creator>lscheng</dc:creator>
				<category><![CDATA[SQL y PL/SQL]]></category>

		<guid isPermaLink="false">http://lscheng.wordpress.com/?p=39</guid>
		<description><![CDATA[Al querer monitorizar las operaciones de DDL en una base de datos he encontrado un bug muy grave.
He creado 3 triggers para capturar las operaciones DROP, TRUNCATE y ALTER. Al parecer si esta activado el trigger de ALTER provoca errores de este tipo
SQL&#62; drop table dept;
drop table dept
        [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lscheng.wordpress.com&blog=600261&post=39&subd=lscheng&ref=&feed=1" />]]></description>
		<wfw:commentRss>http://lscheng.wordpress.com/2008/07/26/trigger-sobre-eventos-de-ddl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d7e0936c176c60fc2d440617c16066d1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lscheng</media:title>
		</media:content>
	</item>
		<item>
		<title>JDBC 9.x y las variables de Timestamp de Java</title>
		<link>http://lscheng.wordpress.com/2007/10/12/jdbc-9x-y-las-variables-de-timestamp-de-java/</link>
		<comments>http://lscheng.wordpress.com/2007/10/12/jdbc-9x-y-las-variables-de-timestamp-de-java/#comments</comments>
		<pubDate>Fri, 12 Oct 2007 18:16:47 +0000</pubDate>
		<dc:creator>lscheng</dc:creator>
				<category><![CDATA[Performance]]></category>
		<category><![CDATA[SQL y PL/SQL]]></category>

		<guid isPermaLink="false">http://lscheng.wordpress.com/2007/10/12/jdbc-9x-y-las-variables-de-timestamp-de-java/</guid>
		<description><![CDATA[Yo personalmente no programo en Java, lo hice hace casi 10 años y desde hace 8 no lo he vuelto a hacer asi que la verdad es que ni se exactamente como se declara una variable de fechas en Java.
Hace poco en un cliente donde tenian bastantes problemas de rendimiento en una de sus aplicaciones [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lscheng.wordpress.com&blog=600261&post=29&subd=lscheng&ref=&feed=1" />]]></description>
		<wfw:commentRss>http://lscheng.wordpress.com/2007/10/12/jdbc-9x-y-las-variables-de-timestamp-de-java/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d7e0936c176c60fc2d440617c16066d1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lscheng</media:title>
		</media:content>
	</item>
		<item>
		<title>Adaptive Cursor Sharing II</title>
		<link>http://lscheng.wordpress.com/2007/08/31/adaptive-cursor-sharing-ii/</link>
		<comments>http://lscheng.wordpress.com/2007/08/31/adaptive-cursor-sharing-ii/#comments</comments>
		<pubDate>Fri, 31 Aug 2007 21:40:24 +0000</pubDate>
		<dc:creator>lscheng</dc:creator>
				<category><![CDATA[Oracle 11g]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[SQL y PL/SQL]]></category>

		<guid isPermaLink="false">http://lscheng.wordpress.com/2007/08/31/adaptive-cursor-sharing-ii/</guid>
		<description><![CDATA[Siguiendo con el post anterior he probado con otra distribucion de datos y pasando las variables de STATE del 0 al 10:

     STATE CNT_PER_STATE STATE_PERCENT
---------- ------------- -------------
         0         10000       [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lscheng.wordpress.com&blog=600261&post=25&subd=lscheng&ref=&feed=1" />]]></description>
		<wfw:commentRss>http://lscheng.wordpress.com/2007/08/31/adaptive-cursor-sharing-ii/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d7e0936c176c60fc2d440617c16066d1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lscheng</media:title>
		</media:content>
	</item>
		<item>
		<title>Adaptive Cursor Sharing I (ACS)</title>
		<link>http://lscheng.wordpress.com/2007/08/31/adaptive-cursor-sharing-acs/</link>
		<comments>http://lscheng.wordpress.com/2007/08/31/adaptive-cursor-sharing-acs/#comments</comments>
		<pubDate>Fri, 31 Aug 2007 17:04:50 +0000</pubDate>
		<dc:creator>lscheng</dc:creator>
				<category><![CDATA[Oracle 11g]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[SQL y PL/SQL]]></category>

		<guid isPermaLink="false">http://lscheng.wordpress.com/2007/08/31/adaptive-cursor-sharing-acs/</guid>
		<description><![CDATA[Esta semana que he estado probando lo de Adaptive Cursor Sharing mencionado en Mas alla de Bind Peeking. Hace cosas raras, hay que estudiarlo mas a fondo pero funciona, ahora lo veremos.
Generamos datos para tener una distribucion de datos no-uniforme:

SQL&#62; @create
SQL&#62; drop table t1;   

Table dropped.   

SQL&#62;
SQL&#62; create table t1
  [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lscheng.wordpress.com&blog=600261&post=24&subd=lscheng&ref=&feed=1" />]]></description>
		<wfw:commentRss>http://lscheng.wordpress.com/2007/08/31/adaptive-cursor-sharing-acs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d7e0936c176c60fc2d440617c16066d1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lscheng</media:title>
		</media:content>
	</item>
		<item>
		<title>Mas alla de Bind Peeking</title>
		<link>http://lscheng.wordpress.com/2007/08/17/mas-alla-de-bind-peeking/</link>
		<comments>http://lscheng.wordpress.com/2007/08/17/mas-alla-de-bind-peeking/#comments</comments>
		<pubDate>Fri, 17 Aug 2007 22:10:52 +0000</pubDate>
		<dc:creator>lscheng</dc:creator>
				<category><![CDATA[Oracle 11g]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[SQL y PL/SQL]]></category>

		<guid isPermaLink="false">http://lscheng.wordpress.com/2007/08/17/mas-alla-de-bind-peeking/</guid>
		<description><![CDATA[Estoy seguro que muchos de nosotros hemos tenido algun problema de mayor o menor escala con Bind Peeking introducido en Oracle 9i, especialmente los que migramos hace años de 8i a 9i.
Lo que hace bind peeking es si se utiliza las variables bind el primer parsing de un cursor (sentencia SQL) la variable se sustituye [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lscheng.wordpress.com&blog=600261&post=21&subd=lscheng&ref=&feed=1" />]]></description>
		<wfw:commentRss>http://lscheng.wordpress.com/2007/08/17/mas-alla-de-bind-peeking/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d7e0936c176c60fc2d440617c16066d1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lscheng</media:title>
		</media:content>
	</item>
		<item>
		<title>Cursor Sharing e Histogramas</title>
		<link>http://lscheng.wordpress.com/2007/01/04/cursor-sharing-e-histogramas/</link>
		<comments>http://lscheng.wordpress.com/2007/01/04/cursor-sharing-e-histogramas/#comments</comments>
		<pubDate>Thu, 04 Jan 2007 15:47:55 +0000</pubDate>
		<dc:creator>lscheng</dc:creator>
				<category><![CDATA[Performance]]></category>
		<category><![CDATA[SQL y PL/SQL]]></category>

		<guid isPermaLink="false">http://lscheng.wordpress.com/2007/01/04/cursor-sharing-e-histogramas/</guid>
		<description><![CDATA[Hace poco vi una base de datos que daba servicio a un Call Center y es una aplicación que se desarrolló a medida. La aplicación corre sobre Oracle 10gR2 en UNIX y el nivel de concurrencia era considerable, en horas de pico llegaba a 1500 usuarios y una media de 1000.
La base de datos tiene [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lscheng.wordpress.com&blog=600261&post=13&subd=lscheng&ref=&feed=1" />]]></description>
		<wfw:commentRss>http://lscheng.wordpress.com/2007/01/04/cursor-sharing-e-histogramas/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d7e0936c176c60fc2d440617c16066d1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lscheng</media:title>
		</media:content>
	</item>
		<item>
		<title>Orden de los registros y el Order By</title>
		<link>http://lscheng.wordpress.com/2007/01/03/orden-de-los-registros-y-el-order-by/</link>
		<comments>http://lscheng.wordpress.com/2007/01/03/orden-de-los-registros-y-el-order-by/#comments</comments>
		<pubDate>Wed, 03 Jan 2007 22:35:34 +0000</pubDate>
		<dc:creator>lscheng</dc:creator>
				<category><![CDATA[SQL y PL/SQL]]></category>

		<guid isPermaLink="false">http://lscheng.wordpress.com/2007/01/03/orden-de-los-registros-y-el-order-by/</guid>
		<description><![CDATA[Cuando lanzas una query y quieres que te devuelva los datos en una orden específica se utiliza la clausula Order By. Creía que esto era lógico hasta ayer, cuando un cliente empezó a quejarse de que su aplicación dejó de funcionar después de aplicar el Patchset 9.2.0.8 en su base de datos 9.2.0.1.
Los datos son [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lscheng.wordpress.com&blog=600261&post=11&subd=lscheng&ref=&feed=1" />]]></description>
		<wfw:commentRss>http://lscheng.wordpress.com/2007/01/03/orden-de-los-registros-y-el-order-by/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d7e0936c176c60fc2d440617c16066d1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lscheng</media:title>
		</media:content>
	</item>
		<item>
		<title>Como evitar join 2000 veces</title>
		<link>http://lscheng.wordpress.com/2006/12/11/como-evitar-join-2000-veces/</link>
		<comments>http://lscheng.wordpress.com/2006/12/11/como-evitar-join-2000-veces/#comments</comments>
		<pubDate>Mon, 11 Dec 2006 21:41:58 +0000</pubDate>
		<dc:creator>lscheng</dc:creator>
				<category><![CDATA[SQL y PL/SQL]]></category>

		<guid isPermaLink="false">http://lscheng.wordpress.com/2006/12/11/como-evitar-join-2000-veces/</guid>
		<description><![CDATA[Hace un par de semanas se me quejaron los usuarios que les iba a pedales la aplicacion, un ERP que lee datos de otro CRM.
Esta era la consulta:
 
SELECT COUNT(*)
FROM VSA_PARTIES_V PARTIES,
     VGIA_SOLICITUDES_V SOLICITUDES
WHERE PARTIES.CUST_ACCOUNT_ID = SOLICITUDES.CLIENTE_ID
AND   PARTIES.JGZZ_FISCAL_CODE = :b1
AND SOLICITUDES.SOL_ESTADO NOT IN ('Cerrada','Anulada' )

15   14  [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lscheng.wordpress.com&blog=600261&post=8&subd=lscheng&ref=&feed=1" />]]></description>
		<wfw:commentRss>http://lscheng.wordpress.com/2006/12/11/como-evitar-join-2000-veces/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d7e0936c176c60fc2d440617c16066d1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lscheng</media:title>
		</media:content>
	</item>
	</channel>
</rss>