<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ca">
		<id>http://wikiserver.infomerce.es/index.php?action=history&amp;feed=atom&amp;title=P7-Gesti%C3%B3_d%27excepcions</id>
		<title>P7-Gestió d'excepcions - Historial de revisió</title>
		<link rel="self" type="application/atom+xml" href="http://wikiserver.infomerce.es/index.php?action=history&amp;feed=atom&amp;title=P7-Gesti%C3%B3_d%27excepcions"/>
		<link rel="alternate" type="text/html" href="http://wikiserver.infomerce.es/index.php?title=P7-Gesti%C3%B3_d%27excepcions&amp;action=history"/>
		<updated>2026-04-19T14:21:12Z</updated>
		<subtitle>Historial de revisió per a aquesta pàgina del wiki</subtitle>
		<generator>MediaWiki 1.28.0</generator>

	<entry>
		<id>http://wikiserver.infomerce.es/index.php?title=P7-Gesti%C3%B3_d%27excepcions&amp;diff=3131&amp;oldid=prev</id>
		<title>Jreixach a 16:27, 1 des 2014</title>
		<link rel="alternate" type="text/html" href="http://wikiserver.infomerce.es/index.php?title=P7-Gesti%C3%B3_d%27excepcions&amp;diff=3131&amp;oldid=prev"/>
				<updated>2014-12-01T16:27:31Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='ca'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Versió més antiga&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revisió del 16:27, 1 des 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l27&quot; &gt;Línia 27:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línia 27:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;ejecutado correctamente. La salida es la siguiente:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;ejecutado correctamente. La salida es la siguiente:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Fitxer:.png|500px|casos]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;8) Cambie el valor inicializado de v_emp_sal a 2000 y vuelva a ejecutar. La salida es&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;8) Cambie el valor inicializado de v_emp_sal a 2000 y vuelva a ejecutar. La salida es&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;la siguiente:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;la siguiente:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jreixach</name></author>	</entry>

	<entry>
		<id>http://wikiserver.infomerce.es/index.php?title=P7-Gesti%C3%B3_d%27excepcions&amp;diff=3130&amp;oldid=prev</id>
		<title>Jreixach: Es crea la pàgina amb «==1) Manejo de Excepciones Predefinidas==   En esta práctica escribirá un bloque PL/SQL que aplique una excepción predefinida para   procesar un único registro a la v…».</title>
		<link rel="alternate" type="text/html" href="http://wikiserver.infomerce.es/index.php?title=P7-Gesti%C3%B3_d%27excepcions&amp;diff=3130&amp;oldid=prev"/>
				<updated>2014-12-01T16:26:06Z</updated>
		
		<summary type="html">&lt;p&gt;Es crea la pàgina amb «==1) Manejo de Excepciones Predefinidas==   En esta práctica escribirá un bloque PL/SQL que aplique una excepción predefinida para   procesar un único registro a la v…».&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Pàgina nova&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==1) Manejo de Excepciones Predefinidas==&lt;br /&gt;
  En esta práctica escribirá un bloque PL/SQL que aplique una excepción predefinida para&lt;br /&gt;
  procesar un único registro a la vez. El bloque PL/SQL seleccionará el nombre del&lt;br /&gt;
  empleado con un valor de salario determinado.&lt;br /&gt;
1) Ejecute el comando en el archivo lab_05_01.sql para volver a crear la tabla&lt;br /&gt;
messages.&lt;br /&gt;
&lt;br /&gt;
2) En la sección de declaraciones, declare dos variables: v_ename del tipo employees.last_name y v_emp_sal del tipo employees.salary. Inicialice la última en 6000.&lt;br /&gt;
&lt;br /&gt;
3) En la sección ejecutable, recupere los apellidos de los empleados cuyos salarios son&lt;br /&gt;
iguales al valor de v_emp_sal. Si el salario introducido devuelve sólo una fila,&lt;br /&gt;
inserte en la tabla messages el nombre y el importe del salario del empleado.&lt;br /&gt;
Nota: no utilice cursores explícitos.&lt;br /&gt;
&lt;br /&gt;
4) Si el salario introducido no devuelve ninguna fila, maneje la excepción con un&lt;br /&gt;
manejador de excepciones adecuado e inserte en la tabla messages el mensaje “No&lt;br /&gt;
employee with a salary of &amp;lt;salary&amp;gt;”.&lt;br /&gt;
&lt;br /&gt;
5) Si el salario introducido devuelve varias filas, maneje la excepción con un manejador&lt;br /&gt;
de excepciones adecuado e inserte en la tabla messages el mensaje “More than one&lt;br /&gt;
employee with a salary of &amp;lt;salary&amp;gt;”.&lt;br /&gt;
&lt;br /&gt;
6) Maneje cualquier otra excepción con un manejador de excepciones adecuado e inserte&lt;br /&gt;
en la tabla messages el mensaje “Some other error occurred”.&lt;br /&gt;
&lt;br /&gt;
7) Muestre las filas de la tabla messages para comprobar si el bloque PL/SQL se ha&lt;br /&gt;
ejecutado correctamente. La salida es la siguiente:&lt;br /&gt;
&lt;br /&gt;
8) Cambie el valor inicializado de v_emp_sal a 2000 y vuelva a ejecutar. La salida es&lt;br /&gt;
la siguiente:&lt;br /&gt;
2) Manejo de Excepciones de Oracle Server Estándar&lt;br /&gt;
&lt;br /&gt;
== 2) Manejo de Excepciones de Oracle Server Estándar ==&lt;br /&gt;
  En esta práctica, escribirá un bloque PL/SQL que declare una excepción para el error de&lt;br /&gt;
  Oracle Server ORA-02292 (integrity constraint violated – child&lt;br /&gt;
  record found). El bloque comprobará la excepción y mostrará el mensaje de error.&lt;br /&gt;
1) En la sección de declaraciones, declare una excepción e_childrecord_exists.&lt;br /&gt;
Asocie la excepción declarada al error de Oracle Server estándar –02292.&lt;br /&gt;
&lt;br /&gt;
2) En la sección ejecutable, muestre “Deleting department 40....” Incluya una sentencia&lt;br /&gt;
DELETE para suprimir el departamento con department_id 40.&lt;br /&gt;
&lt;br /&gt;
3) Incluya una sección de excepciones para manejar la excepción&lt;br /&gt;
e_childrecord_exists y muestre el mensaje adecuado.&lt;br /&gt;
La salida de ejemplo es la siguiente:&lt;/div&gt;</summary>
		<author><name>Jreixach</name></author>	</entry>

	</feed>