<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-26801181.post419157643495871152..comments</id><updated>2011-05-03T15:35:23.231+02:00</updated><category term='Tutorial PL/SQL'/><category term='Optimización y tuning de bases de datos'/><category term='Librerías estándar PLSQL'/><category term='Utilidades PLSQL'/><category term='Bases de datos Oracle'/><title type='text'>Comments on Programación PL/SQL y bases de datos Oracle: Tablas temporales en las bases de datos Oracle</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.plsql.biz/feeds/419157643495871152/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/419157643495871152/comments/default'/><link rel='alternate' type='text/html' href='http://www.plsql.biz/2007/03/tablas-temporales-en-las-bases-de-datos.html'/><author><name>José Luis Pérez</name><uri>https://profiles.google.com/102634062599347146150</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-4QS7hkQaOzk/AAAAAAAAAAI/AAAAAAAAGhg/FWpeXVJY9cg/s512-c/photo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>22</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-26801181.post-2423253012014592839</id><published>2011-05-03T15:35:23.231+02:00</published><updated>2011-05-03T15:35:23.231+02:00</updated><title type='text'>Muchísimas gracias Pepelu!! Me has sido de gran ay...</title><content type='html'>Muchísimas gracias Pepelu!! Me has sido de gran ayuda :)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/419157643495871152/comments/default/2423253012014592839'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/419157643495871152/comments/default/2423253012014592839'/><link rel='alternate' type='text/html' href='http://www.plsql.biz/2007/03/tablas-temporales-en-las-bases-de-datos.html?showComment=1304429723231#c2423253012014592839' title=''/><author><name>Fabi</name><uri>http://www.blogger.com/profile/16313022899069860191</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.plsql.biz/2007/03/tablas-temporales-en-las-bases-de-datos.html' ref='tag:blogger.com,1999:blog-26801181.post-419157643495871152' source='http://www.blogger.com/feeds/26801181/posts/default/419157643495871152' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1847417528'/></entry><entry><id>tag:blogger.com,1999:blog-26801181.post-273959270967748352</id><published>2011-05-02T21:14:28.190+02:00</published><updated>2011-05-02T21:14:28.190+02:00</updated><title type='text'>Hola Fabi, el funcionamiento de la tablas temporal...</title><content type='html'>Hola Fabi, el funcionamiento de la tablas temporales en las bases de datos Oracle es como lo explico en este artículo.&lt;br /&gt;&lt;br /&gt;La definición de la tabla temporal es global y cualquier usuario con los permisos adecuados puede utilizarla. Sin embargo los datos de dichas tablas sólo son visibles a nivel de transacción (ON COMMIT DELETE ROWS) o a nivel de sesión (ON COMMIT PRESERVE ROWS), por lo tanto sólo son visibles para el usuario que creo la sesión en cuestión.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/419157643495871152/comments/default/273959270967748352'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/419157643495871152/comments/default/273959270967748352'/><link rel='alternate' type='text/html' href='http://www.plsql.biz/2007/03/tablas-temporales-en-las-bases-de-datos.html?showComment=1304363668190#c273959270967748352' title=''/><author><name>Pepelu</name><uri>http://www.blogger.com/profile/00891045835734721638</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='18072941500668390493'/><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_ObxKtfPuuSQ/RZbWU_RnoqI/AAAAAAAAAFA/MVY1NBWkkFM/s200/compuntoes-caballo.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.plsql.biz/2007/03/tablas-temporales-en-las-bases-de-datos.html' ref='tag:blogger.com,1999:blog-26801181.post-419157643495871152' source='http://www.blogger.com/feeds/26801181/posts/default/419157643495871152' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1588385999'/></entry><entry><id>tag:blogger.com,1999:blog-26801181.post-7972625690852988315</id><published>2011-05-02T19:26:55.798+02:00</published><updated>2011-05-02T19:26:55.798+02:00</updated><title type='text'>Hola Pepelu! Me gustaría hacerte una pregunta. Est...</title><content type='html'>Hola Pepelu! Me gustaría hacerte una pregunta. Estoy investigando para hacer una presentación en clase (corta, de unos 15 minutos), y he encontrado que en SQL Server existen 2 tipos de tablas temporales: las globales (visibles para cualquier usuario conectado) y las locales (sólo se utilizan en la conexión en la que fueron creadas).&lt;br /&gt;&lt;br /&gt;¿En Oracle existen estos tipos? &lt;br /&gt;&lt;br /&gt;El problema es que casi todo lo que encuentro hace referencia a SQL Server, y me gustaría hacer el trabajo genérico.&lt;br /&gt;&lt;br /&gt;Muchas gracias.&lt;br /&gt;&lt;br /&gt;Un saludo!!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/419157643495871152/comments/default/7972625690852988315'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/419157643495871152/comments/default/7972625690852988315'/><link rel='alternate' type='text/html' href='http://www.plsql.biz/2007/03/tablas-temporales-en-las-bases-de-datos.html?showComment=1304357215798#c7972625690852988315' title=''/><author><name>Fabi</name><uri>http://www.blogger.com/profile/16313022899069860191</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.plsql.biz/2007/03/tablas-temporales-en-las-bases-de-datos.html' ref='tag:blogger.com,1999:blog-26801181.post-419157643495871152' source='http://www.blogger.com/feeds/26801181/posts/default/419157643495871152' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1847417528'/></entry><entry><id>tag:blogger.com,1999:blog-26801181.post-900593121802606540</id><published>2011-03-11T12:24:55.232+01:00</published><updated>2011-03-11T12:24:55.232+01:00</updated><title type='text'>@Jimmy: si no nos enseñas tu código ni nos copias ...</title><content type='html'>@Jimmy: si no nos enseñas tu código ni nos copias el mensaje de error, ¿qué esperas que te digamos?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/419157643495871152/comments/default/900593121802606540'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/419157643495871152/comments/default/900593121802606540'/><link rel='alternate' type='text/html' href='http://www.plsql.biz/2007/03/tablas-temporales-en-las-bases-de-datos.html?showComment=1299842695232#c900593121802606540' title=''/><author><name>kAlvaro</name><uri>http://alvaro.es/</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/openid16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.plsql.biz/2007/03/tablas-temporales-en-las-bases-de-datos.html' ref='tag:blogger.com,1999:blog-26801181.post-419157643495871152' source='http://www.blogger.com/feeds/26801181/posts/default/419157643495871152' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1072930843'/></entry><entry><id>tag:blogger.com,1999:blog-26801181.post-8301543347232578081</id><published>2011-03-11T12:18:26.201+01:00</published><updated>2011-03-11T12:18:26.201+01:00</updated><title type='text'>Jimmy, las tablas temporales se crean como una tab...</title><content type='html'>Jimmy, las tablas temporales se crean como una tabla normal y luego se pueden utilizar dentro de un package de oracle. La estructura de las tablas temporales se crea en la base de datos Oracle, dicha estructura no es temporal sino que se conserva, lo que son temporales son los datos que se almacenan en dicha tabla.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/419157643495871152/comments/default/8301543347232578081'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/419157643495871152/comments/default/8301543347232578081'/><link rel='alternate' type='text/html' href='http://www.plsql.biz/2007/03/tablas-temporales-en-las-bases-de-datos.html?showComment=1299842306201#c8301543347232578081' title=''/><author><name>Pepelu</name><uri>http://www.blogger.com/profile/00891045835734721638</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='18072941500668390493'/><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_ObxKtfPuuSQ/RZbWU_RnoqI/AAAAAAAAAFA/MVY1NBWkkFM/s200/compuntoes-caballo.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.plsql.biz/2007/03/tablas-temporales-en-las-bases-de-datos.html' ref='tag:blogger.com,1999:blog-26801181.post-419157643495871152' source='http://www.blogger.com/feeds/26801181/posts/default/419157643495871152' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1588385999'/></entry><entry><id>tag:blogger.com,1999:blog-26801181.post-8170457397260438305</id><published>2011-03-10T22:23:32.165+01:00</published><updated>2011-03-10T22:23:32.165+01:00</updated><title type='text'>y como creo una tabla temporal dentro de un packag...</title><content type='html'>y como creo una tabla temporal dentro de un package de oracle, pues me sale error</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/419157643495871152/comments/default/8170457397260438305'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/419157643495871152/comments/default/8170457397260438305'/><link rel='alternate' type='text/html' href='http://www.plsql.biz/2007/03/tablas-temporales-en-las-bases-de-datos.html?showComment=1299792212165#c8170457397260438305' title=''/><author><name>Jimmy</name><uri>http://www.blogger.com/profile/09637943172362730733</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.plsql.biz/2007/03/tablas-temporales-en-las-bases-de-datos.html' ref='tag:blogger.com,1999:blog-26801181.post-419157643495871152' source='http://www.blogger.com/feeds/26801181/posts/default/419157643495871152' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1096725544'/></entry><entry><id>tag:blogger.com,1999:blog-26801181.post-2071086467903941578</id><published>2010-11-05T00:36:45.544+01:00</published><updated>2010-11-05T00:36:45.544+01:00</updated><title type='text'>He posteado un ejemplo de como insertar dinamicame...</title><content type='html'>He posteado un ejemplo de como insertar dinamicamente en una tabla temporal, por si a alguien le sirve.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/419157643495871152/comments/default/2071086467903941578'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/419157643495871152/comments/default/2071086467903941578'/><link rel='alternate' type='text/html' href='http://www.plsql.biz/2007/03/tablas-temporales-en-las-bases-de-datos.html?showComment=1288913805544#c2071086467903941578' title=''/><author><name>jlrvpuma</name><uri>http://www.blogger.com/profile/16239016139522910632</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='08458676507767223963'/><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://3.bp.blogspot.com/_wp91e-x7RW0/SjcdgfnsvAI/AAAAAAAAAnA/hPjealwfQDU/S220/arco.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.plsql.biz/2007/03/tablas-temporales-en-las-bases-de-datos.html' ref='tag:blogger.com,1999:blog-26801181.post-419157643495871152' source='http://www.blogger.com/feeds/26801181/posts/default/419157643495871152' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1996677607'/></entry><entry><id>tag:blogger.com,1999:blog-26801181.post-4439459542298480079</id><published>2010-11-04T23:38:41.313+01:00</published><updated>2010-11-04T23:38:41.313+01:00</updated><title type='text'>Muchas gracias por tu respuesta, me sirvió bastant...</title><content type='html'>Muchas gracias por tu respuesta, me sirvió bastante.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/419157643495871152/comments/default/4439459542298480079'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/419157643495871152/comments/default/4439459542298480079'/><link rel='alternate' type='text/html' href='http://www.plsql.biz/2007/03/tablas-temporales-en-las-bases-de-datos.html?showComment=1288910321313#c4439459542298480079' title=''/><author><name>jlrvpuma</name><uri>http://www.blogger.com/profile/16239016139522910632</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='08458676507767223963'/><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://3.bp.blogspot.com/_wp91e-x7RW0/SjcdgfnsvAI/AAAAAAAAAnA/hPjealwfQDU/S220/arco.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.plsql.biz/2007/03/tablas-temporales-en-las-bases-de-datos.html' ref='tag:blogger.com,1999:blog-26801181.post-419157643495871152' source='http://www.blogger.com/feeds/26801181/posts/default/419157643495871152' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1996677607'/></entry><entry><id>tag:blogger.com,1999:blog-26801181.post-821430142342421146</id><published>2010-11-04T07:07:34.095+01:00</published><updated>2010-11-04T07:07:34.095+01:00</updated><title type='text'>Hola Jlrvpuma, aunque se use el mismo usuario, cad...</title><content type='html'>Hola Jlrvpuma, aunque se use el mismo usuario, cada conexión a la base de datos Oracle creará dos sesiones independientes por lo que los datos en la tabla temporal también serán independientes, es decir, el usuarios de la primera conexión verá los 10 registros que insertó y no verá los 5 que insertó el de la segunda conexión y viceversa.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/419157643495871152/comments/default/821430142342421146'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/419157643495871152/comments/default/821430142342421146'/><link rel='alternate' type='text/html' href='http://www.plsql.biz/2007/03/tablas-temporales-en-las-bases-de-datos.html?showComment=1288850854095#c821430142342421146' title=''/><author><name>Pepelu</name><uri>http://www.blogger.com/profile/00891045835734721638</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='18072941500668390493'/><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_ObxKtfPuuSQ/RZbWU_RnoqI/AAAAAAAAAFA/MVY1NBWkkFM/s200/compuntoes-caballo.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.plsql.biz/2007/03/tablas-temporales-en-las-bases-de-datos.html' ref='tag:blogger.com,1999:blog-26801181.post-419157643495871152' source='http://www.blogger.com/feeds/26801181/posts/default/419157643495871152' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1588385999'/></entry><entry><id>tag:blogger.com,1999:blog-26801181.post-4878378667002962525</id><published>2010-11-04T05:32:51.842+01:00</published><updated>2010-11-04T05:32:51.842+01:00</updated><title type='text'>Qué pasa si:
-tengo un usuario: user1
user1 se con...</title><content type='html'>Qué pasa si:&lt;br /&gt;-tengo un usuario: user1&lt;br /&gt;user1 se conecta y ejecuta un stored procedure que inserta 10 registros a la tabla temporal; simultaneamente, antes que termine la sesión o transacción user1(esta es otra persona conectandose desde otra pc, pero usa el mismo usuario) se conecta y ejecuta el mismo stored procedure e inserta 5 registros en la tabla temporal, si el el de la primera conexiòn hace un select le devolverá sólo los 10 registros que insertó o 15 registros? y al segundo que se conectó, como le va?&lt;br /&gt;Gracias por el post,muy interesante...espero que me puedas responder...</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/419157643495871152/comments/default/4878378667002962525'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/419157643495871152/comments/default/4878378667002962525'/><link rel='alternate' type='text/html' href='http://www.plsql.biz/2007/03/tablas-temporales-en-las-bases-de-datos.html?showComment=1288845171842#c4878378667002962525' title=''/><author><name>jlrvpuma</name><uri>http://www.blogger.com/profile/16239016139522910632</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='08458676507767223963'/><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://3.bp.blogspot.com/_wp91e-x7RW0/SjcdgfnsvAI/AAAAAAAAAnA/hPjealwfQDU/S220/arco.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.plsql.biz/2007/03/tablas-temporales-en-las-bases-de-datos.html' ref='tag:blogger.com,1999:blog-26801181.post-419157643495871152' source='http://www.blogger.com/feeds/26801181/posts/default/419157643495871152' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1996677607'/></entry><entry><id>tag:blogger.com,1999:blog-26801181.post-7342105075771062552</id><published>2010-09-30T07:35:28.874+02:00</published><updated>2010-09-30T07:35:28.874+02:00</updated><title type='text'>Hola Juan, no entiendo muy bien por qué utilizas e...</title><content type='html'>Hola Juan, no entiendo muy bien por qué utilizas el comando EXECUTE INMEDIATE, tampoco entiendo por qué al final haces un DROP de la tabla temporal, lo bueno de las tablas temporales es que las creas una vez y las dejas en la base de datos Oracle para utilizarlas cuando sea necesario, manteniendo datos temporales y propios de la sesión hasta que esta se cierra.&lt;br /&gt;&lt;br /&gt;Si quieres puedes contactarme por email en pepelublog[arroba]gmail[punto]com</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/419157643495871152/comments/default/7342105075771062552'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/419157643495871152/comments/default/7342105075771062552'/><link rel='alternate' type='text/html' href='http://www.plsql.biz/2007/03/tablas-temporales-en-las-bases-de-datos.html?showComment=1285824928874#c7342105075771062552' title=''/><author><name>Pepelu</name><uri>http://www.blogger.com/profile/00891045835734721638</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='18072941500668390493'/><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_ObxKtfPuuSQ/RZbWU_RnoqI/AAAAAAAAAFA/MVY1NBWkkFM/s200/compuntoes-caballo.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.plsql.biz/2007/03/tablas-temporales-en-las-bases-de-datos.html' ref='tag:blogger.com,1999:blog-26801181.post-419157643495871152' source='http://www.blogger.com/feeds/26801181/posts/default/419157643495871152' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1588385999'/></entry><entry><id>tag:blogger.com,1999:blog-26801181.post-4664173287285907180</id><published>2010-09-29T17:14:21.786+02:00</published><updated>2010-09-29T17:14:21.786+02:00</updated><title type='text'>Hola
Sabrias donde puedo encontrar un ejemplo de G...</title><content type='html'>Hola&lt;br /&gt;Sabrias donde puedo encontrar un ejemplo de GLOBAL TEMPORARY TABLE en un Store.&lt;br /&gt;&lt;br /&gt;Todo los que encuentro requieren el uso de EXECUTE IMMEDIATE y no me sirve.&lt;br /&gt;El problema del EXECUTE IMMEDIATE no esta en el CREATE, INSERT O DROPE sino el QUERY ya que &lt;br /&gt;el EXECUTE IMMEDIATE no se banca devolver mas de un valor.&lt;br /&gt;&lt;br /&gt;Detallo el problema:&lt;br /&gt;me mandan un parametro a un STORE y debo usar ese parametro en un QUERY con la funcion IN.&lt;br /&gt;&lt;br /&gt;Pense en crear una tabla temporal como en el ejemplo de lo que quiero hacer&lt;br /&gt;&lt;br /&gt; EXECUTE IMMEDIATE &amp;#39;CREATE GLOBAL TEMPORARY TABLE temp_t (c1 number) ON COMMIT DELETE ROWS&amp;#39;; &lt;br /&gt;  EXECUTE IMMEDIATE &amp;#39;INSERT INTO temp_t (c1) VALUES (51)&amp;#39;;&lt;br /&gt;  EXECUTE IMMEDIATE &amp;#39;INSERT INTO temp_t (c1) VALUES (52)&amp;#39;;&lt;br /&gt;  EXECUTE IMMEDIATE &amp;#39;INSERT INTO temp_t (c1) VALUES (53)&amp;#39;;&lt;br /&gt;  &lt;br /&gt;  SELECT COUNT(1) &lt;br /&gt;    FROM cliente c&lt;br /&gt;   WHERE c.id IN (&lt;b&gt;SELECT tt.id&lt;br /&gt;                    FROM temp_t&lt;/b&gt;);&lt;br /&gt;&lt;br /&gt; EXECUTE IMMEDIATE &amp;#39;DROP TABLE temp_t&amp;#39;;&lt;br /&gt;&lt;br /&gt;agradeceria cualquier ayuda&lt;br /&gt;&amp;quot;jbellande gmail com&amp;quot;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/419157643495871152/comments/default/4664173287285907180'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/419157643495871152/comments/default/4664173287285907180'/><link rel='alternate' type='text/html' href='http://www.plsql.biz/2007/03/tablas-temporales-en-las-bases-de-datos.html?showComment=1285773261786#c4664173287285907180' title=''/><author><name>Juan</name><uri>http://www.blogger.com/profile/17021829160510205739</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://2.bp.blogspot.com/_i3DxzapjkdU/SLhaFebm4DI/AAAAAAAAACE/ojsoDZz2XVI/S220/SinRostro.bmp'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.plsql.biz/2007/03/tablas-temporales-en-las-bases-de-datos.html' ref='tag:blogger.com,1999:blog-26801181.post-419157643495871152' source='http://www.blogger.com/feeds/26801181/posts/default/419157643495871152' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1685062151'/></entry><entry><id>tag:blogger.com,1999:blog-26801181.post-7023477191872871451</id><published>2010-04-06T20:21:53.591+02:00</published><updated>2010-04-06T20:21:53.591+02:00</updated><title type='text'>Se agradece que otros lectores se adelanten y resp...</title><content type='html'>Se agradece que otros lectores se adelanten y respondan a las preguntas antes que yo.&lt;br /&gt;&lt;br /&gt;Efectivamente KAlvaro tiene razón, la estructura de las tablas temporales se crea una sola vez y lo único realmente temporal son los datos que se insertan en las mismas.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/419157643495871152/comments/default/7023477191872871451'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/419157643495871152/comments/default/7023477191872871451'/><link rel='alternate' type='text/html' href='http://www.plsql.biz/2007/03/tablas-temporales-en-las-bases-de-datos.html?showComment=1270578113591#c7023477191872871451' title=''/><author><name>Pepelu</name><uri>http://www.blogger.com/profile/00891045835734721638</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='18072941500668390493'/><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_ObxKtfPuuSQ/RZbWU_RnoqI/AAAAAAAAAFA/MVY1NBWkkFM/s200/compuntoes-caballo.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.plsql.biz/2007/03/tablas-temporales-en-las-bases-de-datos.html' ref='tag:blogger.com,1999:blog-26801181.post-419157643495871152' source='http://www.blogger.com/feeds/26801181/posts/default/419157643495871152' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1588385999'/></entry><entry><id>tag:blogger.com,1999:blog-26801181.post-3781011142095869969</id><published>2010-04-06T18:47:02.742+02:00</published><updated>2010-04-06T18:47:02.742+02:00</updated><title type='text'>Gracias kAlvaro entonces voy a empezar a utilizar ...</title><content type='html'>Gracias kAlvaro entonces voy a empezar a utilizar para generar algunos reportes que ocupo y que tenia que esperar a que terminara, en sql server si las tenia que crear cada vez que llamaba al procedimiento, muchas gracias.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/419157643495871152/comments/default/3781011142095869969'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/419157643495871152/comments/default/3781011142095869969'/><link rel='alternate' type='text/html' href='http://www.plsql.biz/2007/03/tablas-temporales-en-las-bases-de-datos.html?showComment=1270572422742#c3781011142095869969' title=''/><author><name>julius</name><uri>http://www.blogger.com/profile/00518585126967901605</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.plsql.biz/2007/03/tablas-temporales-en-las-bases-de-datos.html' ref='tag:blogger.com,1999:blog-26801181.post-419157643495871152' source='http://www.blogger.com/feeds/26801181/posts/default/419157643495871152' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1615698483'/></entry><entry><id>tag:blogger.com,1999:blog-26801181.post-6586184931428308269</id><published>2010-04-06T18:37:50.632+02:00</published><updated>2010-04-06T18:37:50.632+02:00</updated><title type='text'>@Julius: La tabla temporal es casi igual a una tab...</title><content type='html'>@Julius: La tabla temporal es casi igual a una tabla normal: la creas una sola vez y la utilizas las que necesites. Lo único &amp;quot;temporal&amp;quot; en ella son las filas con datos.&lt;br /&gt;&lt;br /&gt;Es justo al revés que en SQL Server, donde la tabla desaparece después de usarla y la tienes que crear cada vez.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/419157643495871152/comments/default/6586184931428308269'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/419157643495871152/comments/default/6586184931428308269'/><link rel='alternate' type='text/html' href='http://www.plsql.biz/2007/03/tablas-temporales-en-las-bases-de-datos.html?showComment=1270571870632#c6586184931428308269' title=''/><author><name>kAlvaro</name><uri>http://www.blogger.com/profile/04236929274597436375</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.plsql.biz/2007/03/tablas-temporales-en-las-bases-de-datos.html' ref='tag:blogger.com,1999:blog-26801181.post-419157643495871152' source='http://www.blogger.com/feeds/26801181/posts/default/419157643495871152' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-506479093'/></entry><entry><id>tag:blogger.com,1999:blog-26801181.post-8137998977718603751</id><published>2010-04-06T17:22:47.172+02:00</published><updated>2010-04-06T17:22:47.172+02:00</updated><title type='text'>Hola que tal interesante eso de las tablas tempora...</title><content type='html'>Hola que tal interesante eso de las tablas temporales pero tengo una duda tengo que crear la tabla temporal cada vez que ejecuto un procedimiento almacenado o la tengo que crear antes de llamar el procedimiento???</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/419157643495871152/comments/default/8137998977718603751'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/419157643495871152/comments/default/8137998977718603751'/><link rel='alternate' type='text/html' href='http://www.plsql.biz/2007/03/tablas-temporales-en-las-bases-de-datos.html?showComment=1270567367172#c8137998977718603751' title=''/><author><name>julius</name><uri>http://www.blogger.com/profile/00518585126967901605</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.plsql.biz/2007/03/tablas-temporales-en-las-bases-de-datos.html' ref='tag:blogger.com,1999:blog-26801181.post-419157643495871152' source='http://www.blogger.com/feeds/26801181/posts/default/419157643495871152' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1615698483'/></entry><entry><id>tag:blogger.com,1999:blog-26801181.post-1021899154342642433</id><published>2009-09-15T19:37:16.054+02:00</published><updated>2009-09-15T19:37:16.054+02:00</updated><title type='text'>Christian, no se trata de tablas físicas, lo único...</title><content type='html'>Christian, no se trata de tablas físicas, lo único que se almacena es la definición de la tabla pero los datos almacenados son privativos de la sesión y desaparecen al terminar la misma. Lo datos se almacenan en memoria y son más rápidas que las tablas convencionales, no obstante no están enfocadas a manejar volúmenes de datos muy grandes.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/419157643495871152/comments/default/1021899154342642433'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/419157643495871152/comments/default/1021899154342642433'/><link rel='alternate' type='text/html' href='http://www.plsql.biz/2007/03/tablas-temporales-en-las-bases-de-datos.html?showComment=1253036236054#c1021899154342642433' title=''/><author><name>Pepelu</name><uri>http://www.blogger.com/profile/00891045835734721638</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='18072941500668390493'/><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_ObxKtfPuuSQ/RZbWU_RnoqI/AAAAAAAAAFA/MVY1NBWkkFM/s200/compuntoes-caballo.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.plsql.biz/2007/03/tablas-temporales-en-las-bases-de-datos.html' ref='tag:blogger.com,1999:blog-26801181.post-419157643495871152' source='http://www.blogger.com/feeds/26801181/posts/default/419157643495871152' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1588385999'/></entry><entry><id>tag:blogger.com,1999:blog-26801181.post-4211201443979348124</id><published>2009-09-15T16:53:36.471+02:00</published><updated>2009-09-15T16:53:36.471+02:00</updated><title type='text'>Ok en suma son una tablas fisicas que guarda datos...</title><content type='html'>Ok en suma son una tablas fisicas que guarda datos por sesion o nivel de transaccion, se que son otras BD pero por ejemplo en sql server e informix si se usan verdaderas tablas temporales que solo existen mientras dura la sesion que las crea luego se dropean, se crean con &amp;quot;select ....  insert into......&amp;quot; son rapidisimas por que estan en memoria, las de oracle son igual de rapidas ?, yo tengo una consulta(select) que demora mucho asi aplique join con indices, no use comodines etc, y quiero pasarla a un SP espero que se se redusca el tiempo de ejecucion.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/419157643495871152/comments/default/4211201443979348124'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/419157643495871152/comments/default/4211201443979348124'/><link rel='alternate' type='text/html' href='http://www.plsql.biz/2007/03/tablas-temporales-en-las-bases-de-datos.html?showComment=1253026416471#c4211201443979348124' title=''/><author><name>Christian</name><uri>http://www.blogger.com/profile/15687584748910292975</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.plsql.biz/2007/03/tablas-temporales-en-las-bases-de-datos.html' ref='tag:blogger.com,1999:blog-26801181.post-419157643495871152' source='http://www.blogger.com/feeds/26801181/posts/default/419157643495871152' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-127834342'/></entry><entry><id>tag:blogger.com,1999:blog-26801181.post-412433297208218980</id><published>2009-05-26T12:44:02.883+02:00</published><updated>2009-05-26T12:44:02.883+02:00</updated><title type='text'>Entiendo entonces que una tabla temporal se maneja...</title><content type='html'>Entiendo entonces que una tabla temporal se maneja igual que una tabla normal y la única diferencia es que los datos son privados a tu sesión o transacción. No puedes generarla automáticamente a partir de una cláusula SELECT como en otros gestores de bases de datos sino que la defines con el resto de tablas de la aplicación.&lt;br /&gt;&lt;br /&gt;Está bien, creo que las voy a usar :)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/419157643495871152/comments/default/412433297208218980'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/419157643495871152/comments/default/412433297208218980'/><link rel='alternate' type='text/html' href='http://www.plsql.biz/2007/03/tablas-temporales-en-las-bases-de-datos.html?showComment=1243334642883#c412433297208218980' title=''/><author><name>kAlvaro</name><uri>http://www.blogger.com/profile/04236929274597436375</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.plsql.biz/2007/03/tablas-temporales-en-las-bases-de-datos.html' ref='tag:blogger.com,1999:blog-26801181.post-419157643495871152' source='http://www.blogger.com/feeds/26801181/posts/default/419157643495871152' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-506479093'/></entry><entry><id>tag:blogger.com,1999:blog-26801181.post-2791143919770550341</id><published>2008-04-15T20:45:00.000+02:00</published><updated>2008-04-15T20:45:00.000+02:00</updated><title type='text'>Ciertamente este artículo se merecía incluir algún...</title><content type='html'>Ciertamente este artículo se merecía incluir algún ejemplo del comando a utilizar para crear una tabla temporal en una base de datos Oracle.&lt;BR/&gt;&lt;BR/&gt;Para aquellos que lo habéis pedido, ya tenéis el correspondiente ejemplo.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/419157643495871152/comments/default/2791143919770550341'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/419157643495871152/comments/default/2791143919770550341'/><link rel='alternate' type='text/html' href='http://www.plsql.biz/2007/03/tablas-temporales-en-las-bases-de-datos.html?showComment=1208285100000#c2791143919770550341' title=''/><author><name>Pepelu</name><uri>http://www.blogger.com/profile/00891045835734721638</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='18072941500668390493'/><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_ObxKtfPuuSQ/RZbWU_RnoqI/AAAAAAAAAFA/MVY1NBWkkFM/s200/compuntoes-caballo.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.plsql.biz/2007/03/tablas-temporales-en-las-bases-de-datos.html' ref='tag:blogger.com,1999:blog-26801181.post-419157643495871152' source='http://www.blogger.com/feeds/26801181/posts/default/419157643495871152' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1588385999'/></entry><entry><id>tag:blogger.com,1999:blog-26801181.post-1447892703024123549</id><published>2008-04-14T22:49:00.000+02:00</published><updated>2008-04-14T22:49:00.000+02:00</updated><title type='text'>Si nutres la informacion con ejemplos sera masa vi...</title><content type='html'>Si nutres la informacion con ejemplos sera masa visitada tu pagina.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/419157643495871152/comments/default/1447892703024123549'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/419157643495871152/comments/default/1447892703024123549'/><link rel='alternate' type='text/html' href='http://www.plsql.biz/2007/03/tablas-temporales-en-las-bases-de-datos.html?showComment=1208206140000#c1447892703024123549' title=''/><author><name>Julian Jaimes</name><uri>http://www.blogger.com/profile/17220736040817059388</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.plsql.biz/2007/03/tablas-temporales-en-las-bases-de-datos.html' ref='tag:blogger.com,1999:blog-26801181.post-419157643495871152' source='http://www.blogger.com/feeds/26801181/posts/default/419157643495871152' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1608709572'/></entry><entry><id>tag:blogger.com,1999:blog-26801181.post-3677431032165836835</id><published>2008-04-11T18:22:00.000+02:00</published><updated>2008-04-11T18:22:00.000+02:00</updated><title type='text'>esta buena la información pero falta más ejemplos,...</title><content type='html'>esta buena la información pero falta más ejemplos, no tanto texto ... gracias de todas maneras</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/419157643495871152/comments/default/3677431032165836835'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26801181/419157643495871152/comments/default/3677431032165836835'/><link rel='alternate' type='text/html' href='http://www.plsql.biz/2007/03/tablas-temporales-en-las-bases-de-datos.html?showComment=1207930920000#c3677431032165836835' title=''/><author><name>flavin</name><uri>http://www.blogger.com/profile/18277099830233767945</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp2.blogger.com/_rx1dHU9EQFY/R7iRXM4gbBI/AAAAAAAAAN0/L26xZpxKi9A/S220/avatar-pajaro3.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.plsql.biz/2007/03/tablas-temporales-en-las-bases-de-datos.html' ref='tag:blogger.com,1999:blog-26801181.post-419157643495871152' source='http://www.blogger.com/feeds/26801181/posts/default/419157643495871152' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-968867003'/></entry></feed>
