<?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>luauf.com &#187; Oracle</title>
	<atom:link href="http://luauf.com/category/bases-de-datos/oracle/feed/" rel="self" type="application/rss+xml" />
	<link>http://luauf.com</link>
	<description>Sistemas Operativos, Bases de Datos, Programación y Redes</description>
	<lastBuildDate>Mon, 14 May 2012 01:15:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Oracle SQL Developer 2.1</title>
		<link>http://luauf.com/2009/10/07/oracle-sql-developer-2-1/</link>
		<comments>http://luauf.com/2009/10/07/oracle-sql-developer-2-1/#comments</comments>
		<pubDate>Thu, 08 Oct 2009 02:20:10 +0000</pubDate>
		<dc:creator>Luciano</dc:creator>
				<category><![CDATA[Bases de Datos]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[jdbc]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://luauf.com/?p=1102</guid>
		<description><![CDATA[Oracle SQL Developer es una herramienta gratuita para desarrolladores disponible para Windows, Mac y Linux que permite manipular bases de datos Oracle y de terceros, como DB2, Access o MySQL por medio de...]]></description>
			<content:encoded><![CDATA[<p>Oracle SQL Developer es una herramienta gratuita para desarrolladores disponible para Windows, Mac y Linux que permite manipular bases de datos <strong>Oracle</strong> y de terceros, como <strong>DB2</strong>, <strong>Access</strong> o <strong>MySQL</strong> por medio de un driver <strong>JDBC</strong>.</p>
<p style="text-align: center;"><a href="http://luauf.com/wp-content/uploads/2009/10/splash.png"><img class="alignnone size-medium wp-image-1103" title="splash" src="http://luauf.com/wp-content/uploads/2009/10/splash-300x183.png" alt="splash" width="300" height="183" /></a></p>
<p>La última versión disponible de este cliente es la 2.1 y puede descargarse gratuitamente, previo registro <a href="http://go2.wordpress.com/?id=725X1342&amp;site=ubuntulife.wordpress.com&amp;url=http%3A%2F%2Fwww.oracle.com%2Ftechnology%2Fsoftware%2Fproducts%2Fsql%2Findex21_EA1.html">aquí</a>. Para ver la lista de características de la aplicación puedes hacer clic <a href="http://go2.wordpress.com/?id=725X1342&amp;site=ubuntulife.wordpress.com&amp;url=http%3A%2F%2Fwww.oracle.com%2Ftechnology%2Fproducts%2Fdatabase%2Fsql_developer%2Ffiles%2Fnewfeaturelist21.htm">aquí</a>.</p>
<p><span id="more-1102"></span><br />
A pesar de que la herramienta tiene su fuerte en Oracle, se puede utilizar para otras bases de datos, como mencionamos y son varios los usuarios de MySQL que la utilizan por sobre las herramientas que ofrece MySQL.</p>
<p style="text-align: center;"><a href="http://luauf.com/wp-content/uploads/2009/10/OracleSQLDeveloper.png"><img class="alignnone size-medium wp-image-1104" title="OracleSQLDeveloper" src="http://luauf.com/wp-content/uploads/2009/10/OracleSQLDeveloper-300x168.png" alt="OracleSQLDeveloper" width="300" height="168" /></a></p>
<p>La descarga, instalación y ejecución es sencilla y el único requerimiento es el JDK de Java 1.6.11 o superior. A modo de ayuda los pasos a seguir son:</p>
<ul>
<li>Descargar <a href="http://www.oracle.com/technology/software/products/sql/index21_EA1.html">SQL Developer 2.1</a>, en mi caso fue la versión &#8220;<em>Oracle SQL Developer for other platforms (This zip does not include a JDK)</em>&#8221; y descomprimir</li>
<li>Verificar la versión del JDK instalado, primero verificando los paquetes de Java instalados (<strong>dpkg &#8211;get-selections | grep java</strong>), la información del paquete (<strong>dpkg -s sun-java6-jdk</strong>) que incluye su versión y finalmente el path donde se encuentra instalado (<strong>dpkg -L sun-java6-jdk</strong>)</li>
<li>Luego, desde una consola, ubicarse en el directorio ./sqldeveloper  y ejecutar el script sqldeveloper.sh (<strong>sh sqldeveloper.sh</strong>)</li>
<li>Iniciado el script y solicitado path del J2SE, ingresar el obtenido dos pasos atrás, en mi caso: <strong>/usr/lib/jvm/java-6-sun-1.6.0.16</strong></li>
</ul>
<div class="syntax_hilite">
<div id="code-2">
<div class="code">Type the full pathname of a J2SE installation <span style="color:#006600; font-weight:bold;">&#40;</span>or Ctrl-C to quit<span style="color:#006600; font-weight:bold;">&#41;</span>, the path will be stored in ~/.<span style="">sqldeveloper</span>/jdk<br />
/usr/lib/jvm/java-<span style="color:#800000;">6</span>-sun-<span style="color:#800000;">1</span>.<span style="color:#800000;">6</span>.<span style="color:#800000;">0</span>.<span style="color:#800000;">16</span></div>
</div>
</div>
<p></p>
<ul>
<li>Finalmente, si quieres conectarte a otra base de datos distinta de Oracle, desde Herramientas (Tools), Preferencias (Preferences) debes buscar la rama &#8220;Base de Datos \ Controladores JDBC de Terceros&#8221; del árbol y agregar el path del mismo (en el caso de MySQL no recomiendan el 5.1, sino el 5.0.4)</li>
</ul>
<p>Vía: <a href="http://ubuntulife.wordpress.com/2009/09/27/sql-developer-2-1-disponible/">Ubuntu Life</a></p>
]]></content:encoded>
			<wfw:commentRss>http://luauf.com/2009/10/07/oracle-sql-developer-2-1/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Trasponer tabla en Oracle con cláusula PIVOT</title>
		<link>http://luauf.com/2008/05/26/trasponer-tabla-en-oracle-con-clausula-pivot/</link>
		<comments>http://luauf.com/2008/05/26/trasponer-tabla-en-oracle-con-clausula-pivot/#comments</comments>
		<pubDate>Mon, 26 May 2008 23:27:09 +0000</pubDate>
		<dc:creator>Luciano</dc:creator>
				<category><![CDATA[Bases de Datos]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://luauf.com/?p=325</guid>
		<description><![CDATA[La versión 11g de la base de datos Oracle incorpora la cl&#225;usula PIVOT que resuelve, en parte, un problema que alguna vez se me presentó y que tuve que resolver con una consulta...]]></description>
			<content:encoded><![CDATA[<p>La versión 11g de la base de datos Oracle incorpora la cl&aacute;usula PIVOT que resuelve, en parte, un problema que alguna vez se me presentó y que tuve que resolver con una consulta poco intuitiva y limitada.</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-326" title="oracle_11g_logo" src="http://luauf.com/wp-content/uploads/2008/05/oracle_11g_logo.jpg" alt="" width="120" height="36" /></p>
<p>Paso a explicar el tema en detalle con el siguiente ejemplo:</p>
<p><span id="more-325"></span></p>
<p>Supongamos una tabla donde se guarde el total de las ventas mensuales por distintas compañías:</p>
<p><code></p>
<div class="syntax_hilite">
<div id="sql-8">
<div class="sql"><span style="color: #993333; font-weight: bold;">DROP</span> <span style="color: #993333; font-weight: bold;">TABLE</span> test;</p>
<p><span style="color: #993333; font-weight: bold;">CREATE</span> <span style="color: #993333; font-weight: bold;">TABLE</span> test <span style="color:#006600; font-weight:bold;">&#40;</span><br />
&nbsp; company &nbsp; varchar<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #cc66cc;">12</span><span style="color:#006600; font-weight:bold;">&#41;</span>,<br />
&nbsp; monthy &nbsp; &nbsp;char<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #cc66cc;">7</span><span style="color:#006600; font-weight:bold;">&#41;</span>,<br />
&nbsp; sales &nbsp; &nbsp; number<br />
<span style="color:#006600; font-weight:bold;">&#41;</span>;</p>
<p><span style="color: #993333; font-weight: bold;">INSERT</span> <span style="color: #993333; font-weight: bold;">INTO</span> test <span style="color: #993333; font-weight: bold;">VALUES</span> <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #ff0000;">'CMP1'</span>,<span style="color: #ff0000;">'2008-06'</span>, <span style="color: #cc66cc;">10</span><span style="color:#006600; font-weight:bold;">&#41;</span>;<br />
<span style="color: #993333; font-weight: bold;">INSERT</span> <span style="color: #993333; font-weight: bold;">INTO</span> test <span style="color: #993333; font-weight: bold;">VALUES</span> <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #ff0000;">'CMP1'</span>,<span style="color: #ff0000;">'2008-07'</span>, <span style="color: #cc66cc;">29</span><span style="color:#006600; font-weight:bold;">&#41;</span>;<br />
<span style="color: #993333; font-weight: bold;">INSERT</span> <span style="color: #993333; font-weight: bold;">INTO</span> test <span style="color: #993333; font-weight: bold;">VALUES</span> <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #ff0000;">'CMP1'</span>,<span style="color: #ff0000;">'2008-08'</span>, <span style="color: #cc66cc;">39</span><span style="color:#006600; font-weight:bold;">&#41;</span>;<br />
<span style="color: #993333; font-weight: bold;">INSERT</span> <span style="color: #993333; font-weight: bold;">INTO</span> test <span style="color: #993333; font-weight: bold;">VALUES</span> <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #ff0000;">'CMP1'</span>,<span style="color: #ff0000;">'2008-09'</span>, <span style="color: #cc66cc;">41</span><span style="color:#006600; font-weight:bold;">&#41;</span>;<br />
<span style="color: #993333; font-weight: bold;">INSERT</span> <span style="color: #993333; font-weight: bold;">INTO</span> test <span style="color: #993333; font-weight: bold;">VALUES</span> <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #ff0000;">'CMP1'</span>,<span style="color: #ff0000;">'2008-10'</span>, <span style="color: #cc66cc;">22</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</p>
<p><span style="color: #993333; font-weight: bold;">INSERT</span> <span style="color: #993333; font-weight: bold;">INTO</span> test <span style="color: #993333; font-weight: bold;">VALUES</span> <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #ff0000;">'CMP2'</span>,<span style="color: #ff0000;">'2008-06'</span>, <span style="color: #cc66cc;">13</span><span style="color:#006600; font-weight:bold;">&#41;</span>;<br />
<span style="color: #993333; font-weight: bold;">INSERT</span> <span style="color: #993333; font-weight: bold;">INTO</span> test <span style="color: #993333; font-weight: bold;">VALUES</span> <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #ff0000;">'CMP2'</span>,<span style="color: #ff0000;">'2008-07'</span>, <span style="color: #cc66cc;">17</span><span style="color:#006600; font-weight:bold;">&#41;</span>;<br />
<span style="color: #993333; font-weight: bold;">INSERT</span> <span style="color: #993333; font-weight: bold;">INTO</span> test <span style="color: #993333; font-weight: bold;">VALUES</span> <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #ff0000;">'CMP2'</span>,<span style="color: #ff0000;">'2008-08'</span>, <span style="color: #cc66cc;">61</span><span style="color:#006600; font-weight:bold;">&#41;</span>;<br />
<span style="color: #993333; font-weight: bold;">INSERT</span> <span style="color: #993333; font-weight: bold;">INTO</span> test <span style="color: #993333; font-weight: bold;">VALUES</span> <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #ff0000;">'CMP2'</span>,<span style="color: #ff0000;">'2008-09'</span>, <span style="color: #cc66cc;">55</span><span style="color:#006600; font-weight:bold;">&#41;</span>;<br />
<span style="color: #993333; font-weight: bold;">INSERT</span> <span style="color: #993333; font-weight: bold;">INTO</span> test <span style="color: #993333; font-weight: bold;">VALUES</span> <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #ff0000;">'CMP2'</span>,<span style="color: #ff0000;">'2008-10'</span>, <span style="color: #cc66cc;">71</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</p>
<p><span style="color: #993333; font-weight: bold;">INSERT</span> <span style="color: #993333; font-weight: bold;">INTO</span> test <span style="color: #993333; font-weight: bold;">VALUES</span> <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #ff0000;">'CMP3'</span>,<span style="color: #ff0000;">'2008-06'</span>, <span style="color: #cc66cc;">33</span><span style="color:#006600; font-weight:bold;">&#41;</span>;<br />
<span style="color: #993333; font-weight: bold;">INSERT</span> <span style="color: #993333; font-weight: bold;">INTO</span> test <span style="color: #993333; font-weight: bold;">VALUES</span> <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #ff0000;">'CMP3'</span>,<span style="color: #ff0000;">'2008-07'</span>, <span style="color: #cc66cc;">18</span><span style="color:#006600; font-weight:bold;">&#41;</span>;<br />
<span style="color: #993333; font-weight: bold;">INSERT</span> <span style="color: #993333; font-weight: bold;">INTO</span> test <span style="color: #993333; font-weight: bold;">VALUES</span> <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #ff0000;">'CMP3'</span>,<span style="color: #ff0000;">'2008-08'</span>, <span style="color: #cc66cc;">27</span><span style="color:#006600; font-weight:bold;">&#41;</span>;<br />
<span style="color: #993333; font-weight: bold;">INSERT</span> <span style="color: #993333; font-weight: bold;">INTO</span> test <span style="color: #993333; font-weight: bold;">VALUES</span> <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #ff0000;">'CMP3'</span>,<span style="color: #ff0000;">'2008-09'</span>,&nbsp; <span style="color: #cc66cc;">5</span><span style="color:#006600; font-weight:bold;">&#41;</span>;<br />
<span style="color: #993333; font-weight: bold;">INSERT</span> <span style="color: #993333; font-weight: bold;">INTO</span> test <span style="color: #993333; font-weight: bold;">VALUES</span> <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #ff0000;">'CMP3'</span>,<span style="color: #ff0000;">'2008-10'</span>, <span style="color: #cc66cc;">32</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</div>
</div>
<p>
</code></p>
<p>Para obtener lo totales de ventas por compañía, podemos escribir algo así:</p>
<p><code></p>
<div class="syntax_hilite">
<div id="sql-9">
<div class="sql"><span style="color: #993333; font-weight: bold;">SELECT</span>&nbsp; &nbsp; company, monthy,SUM<span style="color:#006600; font-weight:bold;">&#40;</span>sales<span style="color:#006600; font-weight:bold;">&#41;</span><br />
<span style="color: #993333; font-weight: bold;">FROM</span>&nbsp; &nbsp; &nbsp; &nbsp; test<br />
<span style="color: #993333; font-weight: bold;">GROUP</span> <span style="color: #993333; font-weight: bold;">BY</span>&nbsp; &nbsp; company, monthy</div>
</div>
</div>
<p>
</code></p>
<p>Si nuestra intención es disponer estos datos de forma traspuesta, y obtener un listado donde:</p>
<ul>
<li>Cada fila represente una compañía</li>
<li>Cada columna represente un valor los meses totalizados</li>
</ul>
<p>podemos escribir algo así:</p>
<p><code></p>
<div class="syntax_hilite">
<div id="sql-10">
<div class="sql"><span style="color: #993333; font-weight: bold;">SELECT</span>&nbsp; &nbsp; &nbsp; company,jul,ago,sep<br />
<span style="color: #993333; font-weight: bold;">FROM</span> &nbsp; &nbsp;&nbsp; &nbsp;<span style="color:#006600; font-weight:bold;">&#40;</span>&nbsp; <span style="color: #993333; font-weight: bold;">SELECT</span>&nbsp; &nbsp; &nbsp; &nbsp; company,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SUM<span style="color:#006600; font-weight:bold;">&#40;</span>case when monthy=<span style="color: #ff0000;">'2003-07'</span> then sales else <span style="color: #993333; font-weight: bold;">NULL</span> end<span style="color:#006600; font-weight:bold;">&#41;</span> jul,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SUM<span style="color:#006600; font-weight:bold;">&#40;</span>case when monthy=<span style="color: #ff0000;">'2003-08'</span> then sales else <span style="color: #993333; font-weight: bold;">NULL</span> end<span style="color:#006600; font-weight:bold;">&#41;</span> ago,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SUM<span style="color:#006600; font-weight:bold;">&#40;</span>case when monthy=<span style="color: #ff0000;">'2003-09'</span> then sales else <span style="color: #993333; font-weight: bold;">NULL</span> end<span style="color:#006600; font-weight:bold;">&#41;</span> sep<br />
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; <span style="color: #993333; font-weight: bold;">FROM</span>&nbsp; &nbsp; &nbsp; &nbsp; test<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993333; font-weight: bold;">GROUP</span> <span style="color: #993333; font-weight: bold;">BY</span>&nbsp; &nbsp; company <span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</div>
</div>
<p>
</code></p>
<p>Donde obtendríamos:</p>
<p><code></p>
<div class="syntax_hilite">
<div id="code-11">
<div class="code">company&nbsp; &nbsp; &nbsp; jul&nbsp; &nbsp; &nbsp; &nbsp; ago&nbsp; &nbsp; &nbsp; &nbsp; sep&nbsp; &nbsp; <br />
-------- ---------- ---------- ---------- <br />
CMP1&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color:#800000;">29</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color:#800000;">39</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color:#800000;">41</span><br />
CMP2&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color:#800000;">17</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color:#800000;">61</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color:#800000;">55</span>&nbsp; &nbsp; <br />
CMP3&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color:#800000;">18</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color:#800000;">27</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#800000;">5</span></div>
</div>
</div>
<p>
</code></p>
<p>Si bien, la consulta anterior funciona, no es muy intuitiva. Con la cl&aacute;usula PIVOT podemos escribir la misma consulta de manera más sencilla y entendible:</p>
<p><code></p>
<div class="syntax_hilite">
<div id="sql-12">
<div class="sql"><span style="color: #993333; font-weight: bold;">SELECT</span> &nbsp;&nbsp;*<br />
<span style="color: #993333; font-weight: bold;">FROM</span> &nbsp; &nbsp;&nbsp; &nbsp;<span style="color:#006600; font-weight:bold;">&#40;</span>&nbsp; <span style="color: #993333; font-weight: bold;">SELECT</span> &nbsp; &nbsp;&nbsp; &nbsp;company, monthy, sales<br />
&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<span style="color: #993333; font-weight: bold;">FROM</span>&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; test <span style="color:#006600; font-weight:bold;">&#41;</span> S<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PIVOT <span style="color:#006600; font-weight:bold;">&#40;</span>SUM<span style="color:#006600; font-weight:bold;">&#40;</span>sales<span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color: #993333; font-weight: bold;">FOR</span> monthy <span style="color: #993333; font-weight: bold;">IN</span> <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #ff0000;">'ABC123'</span>,<span style="color: #ff0000;">'DEF456'</span>,<span style="color: #ff0000;">'XYZ987'</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span><br />
<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span>&nbsp; &nbsp; company;</div>
</div>
</div>
<p>
</code></p>
<p>Esto es solo un comienzo, dejo a vuestra imaginación y uso todas las combinaciones posibles que podemos escribir con esta cl&aacute;usula.</p>
<p>Vía: <a href="http://www.plsql.biz/2008/05/oracle-11g-y-la-clusula-pivot-como.html" target="_blank">Programación PL/SQL</a></p>
]]></content:encoded>
			<wfw:commentRss>http://luauf.com/2008/05/26/trasponer-tabla-en-oracle-con-clausula-pivot/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Conectando NetBeans 6 con Oracle 10g y SQL Server 2005</title>
		<link>http://luauf.com/2008/04/25/conectando-netbeans-6-con-oracle-10g-y-sql-server-2005/</link>
		<comments>http://luauf.com/2008/04/25/conectando-netbeans-6-con-oracle-10g-y-sql-server-2005/#comments</comments>
		<pubDate>Fri, 25 Apr 2008 17:19:13 +0000</pubDate>
		<dc:creator>Luciano</dc:creator>
				<category><![CDATA[Bases de Datos]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Programación]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://luauf.com/?p=191</guid>
		<description><![CDATA[En la instalación de NetBeans no viene por defecto el driver de Oracle, por lo tanto, es necesario bajarlo de la página de drivers de oracle, el cual escogemos ojdbc14.jar. Luego para hacer...]]></description>
			<content:encoded><![CDATA[<p>En la instalación de NetBeans no viene por defecto el driver de Oracle, por lo tanto, es necesario bajarlo de la <a href="http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/jdbc_10201.html" target="_blank">página de drivers de oracle</a>, el cual escogemos <a href="http://download.oracle.com/otn/utilities_drivers/jdbc/10203/ojdbc14.jar" target="_blank">ojdbc14.jar</a>. Luego para hacer la conexión a Oracle necesitamos el puerto (por default 1521), hostname y  el sid (service id).</p>
<p>Finalmente, desde NetBeans, en la pestaña de servicios, en el nodo de <strong>Databases</strong>, <strong>Drivers</strong>, botón derecho del mouse “<strong>new driver</strong>”, seleccionar el driver y con eso lo tenemos instalado.</p>
<p>Si conectarse con SQL Server 2005, hay que realizar el mismo procedimiento, pero descargando el <a href="http://msdn2.microsoft.com/es-ar/data/aa937724(en-us).aspx" target="_blank">Microsoft SQL Server 2005 JDBC Driver</a></p>
<p>Basado en el texto original de <a href="http://paindev.wordpress.com/2008/04/19/conectando-netbeans-6-con-oracle-10g-xe/" target="_blank">Pain Dev</a></p>
<div></div>
<div></div>
]]></content:encoded>
			<wfw:commentRss>http://luauf.com/2008/04/25/conectando-netbeans-6-con-oracle-10g-y-sql-server-2005/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Instalar Oracle XE en Ubuntu</title>
		<link>http://luauf.com/2008/04/13/instalar-oracle-xe-en-ubuntu/</link>
		<comments>http://luauf.com/2008/04/13/instalar-oracle-xe-en-ubuntu/#comments</comments>
		<pubDate>Mon, 14 Apr 2008 00:13:59 +0000</pubDate>
		<dc:creator>Luciano</dc:creator>
				<category><![CDATA[Bases de Datos]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://luauf.com/?p=131</guid>
		<description><![CDATA[Instalar Oracle Database Express Edition en Ubuntu (o más bien, en Debian) es muy fácil, a continuación detallo los pasos realizados: Agregar a /etc/apt/sources.list el repositorio de Oracle: deb http://oss.oracle.com/debian unstable main non-free...]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="aligncenter size-full wp-image-132" title="oxe" src="http://luauf.com/wp-content/uploads/2008/04/oxe.bmp" alt="" /></p>
<p>Instalar Oracle Database Express Edition en Ubuntu (o más bien, en Debian) es muy fácil, a continuación detallo los pasos realizados:</p>
<ul>
<li>Agregar a <strong>/etc/apt/sources.list </strong>el repositorio de Oracle: <strong>deb http://oss.oracle.com/debian unstable main non-free</strong></li>
<li>Ejecutar:</li>
</ul>
<p><span id="more-131"></span></p>
<div class="syntax_hilite">
<div id="code-14">
<div class="code"># wget http:<span style="color:#FF9933; font-style:italic;">//oss.oracle.com/el4/RPM-GPG-KEY-oracle&nbsp; -O- | sudo apt-key add -</span><br />
# apt-get update<br />
# apt-get install oracle-xe<br />
Leyendo lista de paquetes&#8230; <span style="">Hecho</span><br />
Creando árbol de dependencias<br />
Leyendo la información de estado&#8230; <span style="">Hecho</span><br />
Se instalarán los siguientes paquetes extras:<br />
libaio<br />
Se instalarán los siguientes paquetes NUEVOS:<br />
libaio oracle-xe<br />
<span style="color:#800000;">0</span> actualizados, <span style="color:#800000;">2</span> se instalarán, <span style="color:#800000;">0</span> para eliminar y <span style="color:#800000;">224</span> no actualizados.<br />
<span style="">Necesito</span> descargar 221MB de archivos.<br />
<span style="">Se</span> utilizarán 405MB de espacio de disco adicional después de desempaquetar.<br />
¿Desea continuar <span style="color:#006600; font-weight:bold;">&#91;</span>S/n<span style="color:#006600; font-weight:bold;">&#93;</span>?</div>
</div>
</div>
<p></p>
<p><strong>Observaciones</strong>:</p>
<ul>
<li>Para ejecutar los comandos es necesario tener permiso de administrador, por ello hay que estar logueado como root o bien anteponer a los comandos <strong>sudo</strong>.</li>
<li>La versión instalada ha sido la Oracle XE 10.2.0.1-1.1 sobre Ubuntu 8.04 beta 3.</li>
</ul>
<p>Así termina la instalación, prometo tratar la configuración en una próxima entrega.</p>
]]></content:encoded>
			<wfw:commentRss>http://luauf.com/2008/04/13/instalar-oracle-xe-en-ubuntu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

