 <?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.lhep.unibe.ch/index.php?action=history&amp;feed=atom&amp;title=Cristiano%27s_mail_from_17_July</id>
	<title>Cristiano&#039;s mail from 17 July - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.lhep.unibe.ch/index.php?action=history&amp;feed=atom&amp;title=Cristiano%27s_mail_from_17_July"/>
	<link rel="alternate" type="text/html" href="https://wiki.lhep.unibe.ch/index.php?title=Cristiano%27s_mail_from_17_July&amp;action=history"/>
	<updated>2026-05-14T16:33:11Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wiki.lhep.unibe.ch/index.php?title=Cristiano%27s_mail_from_17_July&amp;diff=153&amp;oldid=prev</id>
		<title>Lhep: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://wiki.lhep.unibe.ch/index.php?title=Cristiano%27s_mail_from_17_July&amp;diff=153&amp;oldid=prev"/>
		<updated>2015-03-18T07:49:24Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 09:49, 18 March 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Lhep</name></author>
	</entry>
	<entry>
		<id>https://wiki.lhep.unibe.ch/index.php?title=Cristiano%27s_mail_from_17_July&amp;diff=152&amp;oldid=prev</id>
		<title>Lhep: New page: &lt;pre&gt;  Reply 	Reply 	Reply to all 	Reply to all 	Forward 	Forward 		Move 	Copy 	Delete 		Previous Item 	Next Item 		Close 			 Help 	   From:  	 LUTTER Guillaume [guillaume.lutter@unine.ch]...</title>
		<link rel="alternate" type="text/html" href="https://wiki.lhep.unibe.ch/index.php?title=Cristiano%27s_mail_from_17_July&amp;diff=152&amp;oldid=prev"/>
		<updated>2008-07-19T08:37:27Z</updated>

		<summary type="html">&lt;p&gt;New page: &amp;lt;pre&amp;gt;  Reply 	Reply 	Reply to all 	Reply to all 	Forward 	Forward 		Move 	Copy 	Delete 		Previous Item 	Next Item 		Close 			 Help 	   From:  	 LUTTER Guillaume [guillaume.lutter@unine.ch]...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
 Reply 	Reply 	Reply to all 	Reply to all 	Forward 	Forward 		Move 	Copy 	Delete 		Previous Item 	Next Item 		Close 			 Help 	 &lt;br /&gt;
 From:  	 LUTTER Guillaume [guillaume.lutter@unine.ch] 	 Sent:  	 Thu 7/17/2008 10:40 PM&lt;br /&gt;
 To:  	 Igor Kreslo&lt;br /&gt;
 Cc:  	 &lt;br /&gt;
 Subject:  	 TR : Errata corrige for pp_download_predictions&lt;br /&gt;
 Attachments:  	&lt;br /&gt;
View As Web Page&lt;br /&gt;
&lt;br /&gt;
________________________________________&lt;br /&gt;
De : Cristiano Bozza [kryss@sa.infn.it]&lt;br /&gt;
Date d&amp;#039;envoi : jeudi 17 juillet 2008 17:52&lt;br /&gt;
À : LUTTER Guillaume&lt;br /&gt;
Objet : Re: Errata corrige for pp_download_predictions&lt;br /&gt;
&lt;br /&gt;
Yes, as I wrote to Igor, the account BERN on OPITA was rebuilt, so the&lt;br /&gt;
password was reset.&lt;br /&gt;
I already sent him instructions to set the BERN password to what it was&lt;br /&gt;
before.&lt;br /&gt;
If you can&amp;#039;t manage to do, I can reset the password once again, but then you&lt;br /&gt;
will have to rebuild the DBLink...&lt;br /&gt;
Cheers&lt;br /&gt;
&lt;br /&gt;
Cristiano&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----- Original Message -----&lt;br /&gt;
From: &amp;quot;LUTTER Guillaume&amp;quot; &amp;lt;guillaume.lutter@unine.ch&amp;gt;&lt;br /&gt;
To: &amp;quot;Cristiano Bozza&amp;quot; &amp;lt;kryss@sa.infn.it&amp;gt;&lt;br /&gt;
Sent: Thursday, July 17, 2008 5:33 PM&lt;br /&gt;
Subject: RE : Errata corrige for pp_download_predictions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now it compiles&lt;br /&gt;
&lt;br /&gt;
but I have now :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
SQL&amp;gt; call pp_download_predictions(3034730,&amp;#039;OPITA01&amp;#039;);&lt;br /&gt;
call pp_download_predictions(3034730,&amp;#039;OPITA01&amp;#039;)&lt;br /&gt;
     *&lt;br /&gt;
ERROR at line 1:&lt;br /&gt;
ORA-01017: invalid username/password; logon denied&lt;br /&gt;
ORA-02063: preceding line from OPITA01&lt;br /&gt;
ORA-06512: at &amp;quot;OPERAPUB.PP_DOWNLOAD_PREDICTIONS&amp;quot;, line 8&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
is it comming from the link to opita ?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
________________________________________&lt;br /&gt;
De : Cristiano Bozza [kryss@sa.infn.it]&lt;br /&gt;
Date d&amp;#039;envoi : jeudi 17 juillet 2008 17:26&lt;br /&gt;
À : LUTTER Guillaume; opera-scanonline@cern.ch&lt;br /&gt;
Objet : Errata corrige for pp_download_predictions&lt;br /&gt;
&lt;br /&gt;
Dear OPERA members,&lt;br /&gt;
&lt;br /&gt;
in the version of pp_download_predictions I sent around a few days ago there&lt;br /&gt;
were some remnants of testing, so it would in any case try to connect to a&lt;br /&gt;
DBLink named &amp;#039;OPITA&amp;#039;.&lt;br /&gt;
Please execute the script below to fix this.&lt;br /&gt;
Best regards&lt;br /&gt;
&lt;br /&gt;
Cristiano&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-----------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
create or replace&lt;br /&gt;
procedure          pp_download_predictions(i_id_eventbrick integer, i_dblink&lt;br /&gt;
varchar2) as&lt;br /&gt;
 type typcur is ref cursor;&lt;br /&gt;
 pc typcur;&lt;br /&gt;
 v_procid integer;&lt;br /&gt;
 v_rootid integer;&lt;br /&gt;
begin&lt;br /&gt;
 execute immediate &amp;#039;select distinct id_processoperation from&lt;br /&gt;
tb_cs_candidates@&amp;#039; || i_dblink || &amp;#039; zb where (zb.id_eventbrick, zb.id) in&lt;br /&gt;
   (select id_eventbrick, id_candidate from tb_cs_candidate_validation@&amp;#039; ||&lt;br /&gt;
i_dblink || &amp;#039; zc where id_eventbrick = &amp;#039; || i_id_eventbrick || &amp;#039; and valid =&lt;br /&gt;
&amp;#039;&amp;#039;Y&amp;#039;&amp;#039;)&amp;#039; into v_rootid;&lt;br /&gt;
 v_procid := v_rootid;&lt;br /&gt;
 while v_procid is not NULL loop&lt;br /&gt;
  v_rootid := v_procid;&lt;br /&gt;
  execute immediate &amp;#039;select id_parent_operation from tb_proc_operations@&amp;#039; ||&lt;br /&gt;
i_dblink || &amp;#039; where id = &amp;#039; || v_rootid into v_procid;&lt;br /&gt;
 end loop;&lt;br /&gt;
 dbms_output.put_line(&amp;#039;ROOT: &amp;#039; || v_rootid);&lt;br /&gt;
&lt;br /&gt;
 execute immediate &amp;#039;insert into tb_eventbricks (select * from&lt;br /&gt;
tb_eventbricks@&amp;#039; || i_dblink || &amp;#039; where id = i_id_eventbrick)&amp;#039;;&lt;br /&gt;
 execute immediate &amp;#039;insert into tb_plates (select * from tb_plates@&amp;#039; ||&lt;br /&gt;
i_dblink || &amp;#039; where id_eventbrick = i_id_eventbrick)&amp;#039;;&lt;br /&gt;
 execute immediate &amp;#039;insert into tb_templatemarksets (select * from&lt;br /&gt;
tb_templatemarksets@&amp;#039; || i_dblink || &amp;#039; where id_eventbrick =&lt;br /&gt;
i_id_eventbrick)&amp;#039;;&lt;br /&gt;
&lt;br /&gt;
 open pc for &amp;#039;select id from tb_proc_operations@&amp;#039; || i_dblink || &amp;#039; connect&lt;br /&gt;
by id_parent_operation = prior id start with id = &amp;#039; || v_rootid;&lt;br /&gt;
 loop&lt;br /&gt;
  fetch pc into v_procid;&lt;br /&gt;
  exit when pc%notfound;&lt;br /&gt;
  dbms_output.put_line(&amp;#039;PROCOP: &amp;#039; || v_procid);&lt;br /&gt;
  execute immediate &amp;#039;insert into tb_proc_operations (select * from&lt;br /&gt;
tb_proc_operations@&amp;#039; || i_dblink || &amp;#039; where id = &amp;#039; || v_procid || &amp;#039;)&amp;#039;;&lt;br /&gt;
  execute immediate &amp;#039;insert into tb_proc_operations (select * from&lt;br /&gt;
tb_proc_operations@&amp;#039; || i_dblink || &amp;#039; p where id in (select&lt;br /&gt;
id_processoperation from tb_predicted_events@&amp;#039; || i_dblink || &amp;#039; where id in&lt;br /&gt;
(select id_event from tb_cs_candidates@&amp;#039; || i_dblink || &amp;#039; ca where&lt;br /&gt;
id_eventbrick = &amp;#039; || i_id_eventbrick || &amp;#039; and id_processoperation = &amp;#039; ||&lt;br /&gt;
v_procid || &amp;#039; and exists (select * from tb_cs_candidate_validation@&amp;#039; ||&lt;br /&gt;
i_dblink || &amp;#039; cb where ca.id_eventbrick = cb.id_eventbrick and ca.id =&lt;br /&gt;
cb.id_candidate and cb.VALID = &amp;#039;&amp;#039;Y&amp;#039;&amp;#039;))) and not exists (select * from&lt;br /&gt;
tb_proc_operations q where p.id = q.id)  )&amp;#039;;&lt;br /&gt;
  execute immediate &amp;#039;insert into tb_predicted_events (select * from&lt;br /&gt;
tb_predicted_events@&amp;#039; || i_dblink || &amp;#039; where id in (select id_event from&lt;br /&gt;
tb_cs_candidates@&amp;#039; || i_dblink || &amp;#039; ca where id_eventbrick = &amp;#039; ||&lt;br /&gt;
i_id_eventbrick || &amp;#039; and id_processoperation = &amp;#039; || v_procid || &amp;#039; and exists&lt;br /&gt;
(select * from tb_cs_candidate_validation@&amp;#039; || i_dblink || &amp;#039; cb where&lt;br /&gt;
ca.id_eventbrick = cb.id_eventbrick and ca.id = cb.id_candidate and cb.VALID&lt;br /&gt;
= &amp;#039;&amp;#039;Y&amp;#039;&amp;#039;)))&amp;#039;;&lt;br /&gt;
  execute immediate &amp;#039;insert into tb_predicted_tracks (select * from&lt;br /&gt;
tb_predicted_tracks@&amp;#039; || i_dblink || &amp;#039; where id_event in (select id_event&lt;br /&gt;
from tb_cs_candidates@&amp;#039; || i_dblink || &amp;#039; ca where id_eventbrick = &amp;#039; ||&lt;br /&gt;
i_id_eventbrick || &amp;#039; and id_processoperation = &amp;#039; || v_procid || &amp;#039; and exists&lt;br /&gt;
(select * from tb_cs_candidate_validation@&amp;#039; || i_dblink || &amp;#039; cb where&lt;br /&gt;
ca.id_eventbrick = cb.id_eventbrick and ca.id = cb.id_candidate and cb.VALID&lt;br /&gt;
= &amp;#039;&amp;#039;Y&amp;#039;&amp;#039;)))&amp;#039;;&lt;br /&gt;
  execute immediate &amp;#039;insert into tb_cs_candidates (select * from&lt;br /&gt;
tb_cs_candidates@&amp;#039; || i_dblink || &amp;#039; ca where id_eventbrick = &amp;#039; ||&lt;br /&gt;
i_id_eventbrick || &amp;#039;and id_processoperation = &amp;#039; || v_procid || &amp;#039; and exists&lt;br /&gt;
(select * from tb_cs_candidate_validation@&amp;#039; || i_dblink || &amp;#039; cb where&lt;br /&gt;
ca.id_eventbrick = cb.id_eventbrick and ca.id = cb.id_candidate and cb.VALID&lt;br /&gt;
= &amp;#039;&amp;#039;Y&amp;#039;&amp;#039;))&amp;#039;;&lt;br /&gt;
 end loop;&lt;br /&gt;
 close pc;&lt;br /&gt;
&lt;br /&gt;
 open pc for &amp;#039;select id from tb_proc_operations connect by&lt;br /&gt;
id_parent_operation = prior id start with id = &amp;#039; || v_rootid;&lt;br /&gt;
 loop&lt;br /&gt;
  fetch pc into v_procid;&lt;br /&gt;
  exit when pc%notfound;&lt;br /&gt;
  execute immediate &amp;#039;insert into tb_zones (select * from tb_zones@&amp;#039; ||&lt;br /&gt;
i_dblink || &amp;#039; p where id_eventbrick = &amp;#039; || i_id_eventbrick || &amp;#039; and&lt;br /&gt;
id_processoperation = &amp;#039; || v_procid || &amp;#039; and exists (select * from&lt;br /&gt;
tb_cs_candidate_tracks@&amp;#039; || i_dblink || &amp;#039; q where p.id_eventbrick =&lt;br /&gt;
q.id_eventbrick and p.id = q.id_zone))&amp;#039;;&lt;br /&gt;
  execute immediate &amp;#039;insert into tb_views (select * from tb_views@&amp;#039; ||&lt;br /&gt;
i_dblink || &amp;#039; p where (id_eventbrick, id_zone) in (select id_eventbrick, id&lt;br /&gt;
from tb_zones where id_eventbrick = &amp;#039; || i_id_eventbrick || &amp;#039; and&lt;br /&gt;
id_processoperation = &amp;#039; || v_procid || &amp;#039;))&amp;#039;;&lt;br /&gt;
 end loop;&lt;br /&gt;
 close pc;&lt;br /&gt;
&lt;br /&gt;
 open pc for &amp;#039;select id from tb_proc_operations connect by&lt;br /&gt;
id_parent_operation = prior id start with id = &amp;#039; || v_rootid;&lt;br /&gt;
 loop&lt;br /&gt;
  fetch pc into v_procid;&lt;br /&gt;
  exit when pc%notfound;&lt;br /&gt;
  execute immediate &amp;#039;insert into tb_mipmicrotracks (select * from&lt;br /&gt;
tb_mipmicrotracks@&amp;#039; || i_dblink || &amp;#039; where (id_eventbrick, id_zone, side,&lt;br /&gt;
id) in (select id_eventbrick, id_zone, side, id_microtrack from&lt;br /&gt;
tb_cs_candidate_tracks@&amp;#039; || i_dblink || &amp;#039; where (id_eventbrick,&lt;br /&gt;
id_candidate) in (select id_eventbrick, id from tb_cs_candidates where&lt;br /&gt;
id_eventbrick = &amp;#039; || i_id_eventbrick || &amp;#039; and id_processoperation = &amp;#039; ||&lt;br /&gt;
v_procid || &amp;#039;)))&amp;#039;;&lt;br /&gt;
 end loop;&lt;br /&gt;
 close pc;&lt;br /&gt;
&lt;br /&gt;
 open pc for &amp;#039;select id from tb_proc_operations connect by&lt;br /&gt;
id_parent_operation = prior id start with id = &amp;#039; || v_rootid;&lt;br /&gt;
 loop&lt;br /&gt;
  fetch pc into v_procid;&lt;br /&gt;
  exit when pc%notfound;&lt;br /&gt;
   execute immediate &amp;#039;insert into tb_cs_candidate_tracks (select * from&lt;br /&gt;
tb_cs_candidate_tracks@&amp;#039; || i_dblink || &amp;#039; where (id_eventbrick,&lt;br /&gt;
id_candidate) in (select id_eventbrick, id from tb_cs_candidates where&lt;br /&gt;
id_eventbrick = &amp;#039; || i_id_eventbrick || &amp;#039; and id_processoperation = &amp;#039; ||&lt;br /&gt;
v_procid || &amp;#039;))&amp;#039;;&lt;br /&gt;
   execute immediate &amp;#039;insert into tb_cs_candidate_checks (select * from&lt;br /&gt;
tb_cs_candidate_checks@&amp;#039; || i_dblink || &amp;#039; where (id_eventbrick,&lt;br /&gt;
id_candidate) in (select id_eventbrick, id from tb_cs_candidates where&lt;br /&gt;
id_eventbrick = &amp;#039; || i_id_eventbrick || &amp;#039; and id_processoperation = &amp;#039; ||&lt;br /&gt;
v_procid || &amp;#039;))&amp;#039;;&lt;br /&gt;
 end loop;&lt;br /&gt;
 close pc;&lt;br /&gt;
&lt;br /&gt;
end;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Lhep</name></author>
	</entry>
</feed>