 <?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=Problem_solving_log_is_here</id>
	<title>Problem solving log is here - 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=Problem_solving_log_is_here"/>
	<link rel="alternate" type="text/html" href="https://wiki.lhep.unibe.ch/index.php?title=Problem_solving_log_is_here&amp;action=history"/>
	<updated>2026-05-14T00:25:29Z</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=Problem_solving_log_is_here&amp;diff=395&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=Problem_solving_log_is_here&amp;diff=395&amp;oldid=prev"/>
		<updated>2015-03-18T07:49:28Z</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=Problem_solving_log_is_here&amp;diff=394&amp;oldid=prev</id>
		<title>Lhep at 16:25, 26 August 2008</title>
		<link rel="alternate" type="text/html" href="https://wiki.lhep.unibe.ch/index.php?title=Problem_solving_log_is_here&amp;diff=394&amp;oldid=prev"/>
		<updated>2008-08-26T16:25:11Z</updated>

		<summary type="html">&lt;p&gt;&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;
Dear Igor,&lt;br /&gt;
&lt;br /&gt;
sorry for the late answer, I still have a few holidays, so I can read e-mail&lt;br /&gt;
only at some times in the day.&lt;br /&gt;
Not looking directly at your DB, but having to &amp;quot;hypothesize&amp;quot;, I believe that&lt;br /&gt;
you are copying data using the OPERAPUB account, but OPERA (or some other&lt;br /&gt;
account). If so, this is the opposite of what I always recommend. OPERA is&lt;br /&gt;
an administrative account and should be used as such, not for common tasks.&lt;br /&gt;
The explanation for this hypothesis is the following:&lt;br /&gt;
IDs in TB_PROGRAMSETTINGS are automatically generated by Oracle using proper&lt;br /&gt;
triggers, as is the case for many other tables (as documented in the DB&lt;br /&gt;
documentation). This happens every time you INSERT rows there by using an&lt;br /&gt;
account that is not a registered publisher (as OPERAPUB is). Then, you&lt;br /&gt;
should ensure that:&lt;br /&gt;
1) you are logged on as OPERAPUB when you copy/publish data.&lt;br /&gt;
2) OPERAPUB is listed in LZ_PUBLISHERS (you can see this from the OPERA&lt;br /&gt;
account)&lt;br /&gt;
In order to fix your inconsistency, first try this:&lt;br /&gt;
&lt;br /&gt;
update tb_programsettings a set id = (select id from&lt;br /&gt;
tb_programsettings@opita b where a.description = b.description)&lt;br /&gt;
&lt;br /&gt;
This statement WILL NOT work if you have process operations attached to&lt;br /&gt;
these program settings. If this is the case, we have to try a three-step&lt;br /&gt;
fixup, by first disabling all constraints, then correcting them, finally&lt;br /&gt;
re-enabling the constraints.&lt;br /&gt;
Best regards&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;Igor Kreslo&amp;quot; &amp;lt;Igor.Kreslo@cern.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: Sunday, August 24, 2008 10:26 PM&lt;br /&gt;
Subject: RE: Contact&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Cristiano, it seems, that our DB didn&amp;#039;t conserve programsettings ID from&lt;br /&gt;
OPITA, but generated it&amp;#039;s own.&lt;br /&gt;
So now there are 101 clashes.&lt;br /&gt;
How this could happen and what I can do to fix it?&lt;br /&gt;
Regards,&lt;br /&gt;
Igor.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-----Original Message-----&lt;br /&gt;
From: Cristiano Bozza [mailto:kryss@sa.infn.it]&lt;br /&gt;
Sent: Sun 8/24/2008 9:25 PM&lt;br /&gt;
To: Igor Kreslo&lt;br /&gt;
Subject: Re: Contact&lt;br /&gt;
&lt;br /&gt;
Dear Igor,&lt;br /&gt;
&lt;br /&gt;
the primary key for tb_programsettings is not the Id but the Description.&lt;br /&gt;
Hence, if you did the following, you have the clash:&lt;br /&gt;
1) delete a local programsetting&lt;br /&gt;
2) create a new programsetting (so with a different ID)&lt;br /&gt;
3) use for the new programsetting the same description as for an old one,&lt;br /&gt;
published in OPITA&lt;br /&gt;
You can easily discover this:&lt;br /&gt;
&lt;br /&gt;
select a.id, a.description, b.id, b.description from&lt;br /&gt;
(select id, description from tb_programsettings) a&lt;br /&gt;
inner join&lt;br /&gt;
(select id, description from tb_programsettings@opita) b&lt;br /&gt;
on (a.description = b.description and a.id &amp;lt;&amp;gt; b.id)&lt;br /&gt;
&lt;br /&gt;
To solve the clash, change the description for the local programsetting that&lt;br /&gt;
clashes with the remote one.&lt;br /&gt;
Best regards&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;Igor Kreslo&amp;quot; &amp;lt;Igor.Kreslo@cern.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: Saturday, August 23, 2008 12:17 PM&lt;br /&gt;
Subject: RE: Contact&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Dear Cristiano,&lt;br /&gt;
something strange..&lt;br /&gt;
&lt;br /&gt;
When trying to syncronize programsettings:&lt;br /&gt;
&lt;br /&gt;
SQL&amp;gt; insert into tb_programsettings (select * from&lt;br /&gt;
tb_programsettings@OPITA01 a where not exists (select * from&lt;br /&gt;
tb_programsettings b where a.id=b.id));&lt;br /&gt;
insert into tb_programsettings (select * from tb_programsettings@OPITA01 a&lt;br /&gt;
where not exists (select * from tb_programsettings b where a.id=b.id))&lt;br /&gt;
*&lt;br /&gt;
ERROR at line 1:&lt;br /&gt;
ORA-00001: unique constraint (OPERA.PK_PROGRAMSETTINGS) violated&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Content of tables:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Remote:&lt;br /&gt;
SQL&amp;gt; select id_programsettings from tb_proc_operations@OPITA01 where&lt;br /&gt;
id_eventbrick=3088929;&lt;br /&gt;
&lt;br /&gt;
  ID_PROGRAMSETTINGS&lt;br /&gt;
--------------------&lt;br /&gt;
    9000000021003522&lt;br /&gt;
    9000000021003519&lt;br /&gt;
    9000000021003519&lt;br /&gt;
    9000000000044123&lt;br /&gt;
    9000000023703562&lt;br /&gt;
&lt;br /&gt;
Local:&lt;br /&gt;
SQL&amp;gt; select id from tb_programsettings where id=9000000021003522;&lt;br /&gt;
&lt;br /&gt;
no rows selected&lt;br /&gt;
&lt;br /&gt;
SQL&amp;gt; select id from tb_programsettings where id=9000000021003519;&lt;br /&gt;
&lt;br /&gt;
no rows selected&lt;br /&gt;
&lt;br /&gt;
SQL&amp;gt; select id from tb_programsettings where id=9000000000044123;&lt;br /&gt;
&lt;br /&gt;
                  ID&lt;br /&gt;
--------------------&lt;br /&gt;
    9000000000044123&lt;br /&gt;
&lt;br /&gt;
SQL&amp;gt; select id from tb_programsettings where id=9000000023703562;&lt;br /&gt;
&lt;br /&gt;
no rows selected&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Settings 9000000000044123 have child operations, so can&amp;#039;t be deleted.&lt;br /&gt;
What can I do to solve this clash?&lt;br /&gt;
&lt;br /&gt;
This happened first time, for other four bricks there were no problem!&lt;br /&gt;
Maybe data in OPITA01 for this brick is corrupted?&lt;br /&gt;
&lt;br /&gt;
Regards,&lt;br /&gt;
Igor.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-----Original Message-----&lt;br /&gt;
From: Cristiano Bozza [mailto:kryss@sa.infn.it]&lt;br /&gt;
Sent: Fri 8/22/2008 9:28 PM&lt;br /&gt;
To: Igor Kreslo&lt;br /&gt;
Subject: Re: Contact&lt;br /&gt;
&lt;br /&gt;
Dear Igor,&lt;br /&gt;
&lt;br /&gt;
FK_PROGSETS_PROCOPS ties process operations and program settings. Making&lt;br /&gt;
predictions, or scanning CS, are both operations, and they have settings.&lt;br /&gt;
You should PP_COPY_SYSTEM from OperaPublicationManager, or, alternatively,&lt;br /&gt;
update your&lt;br /&gt;
TB_SITES&lt;br /&gt;
TB_USERS&lt;br /&gt;
TB_MACHINES&lt;br /&gt;
TB_PROGRAMSETTINGS&lt;br /&gt;
(in the order) with all the rows that are in OPITA and that you don&amp;#039;t have&lt;br /&gt;
in your local DB.&lt;br /&gt;
Something like:&lt;br /&gt;
&lt;br /&gt;
insert into tb_sites (select * from tb_sites@opita a where not exists&lt;br /&gt;
(select * from tb_sites b where a.id = b.id));&lt;br /&gt;
insert into tb_machines (select * from tb_machines@opita a where not exists&lt;br /&gt;
(select * from tb_machines  b where a.id = b.id));&lt;br /&gt;
insert into tb_users (select * from tb_users@opita a where not exists&lt;br /&gt;
(select * from tb_users  b where a.id = b.id));&lt;br /&gt;
insert into tb_programsettings (select * from tb_programsettings@opita a&lt;br /&gt;
where not exists (select * from tb_programsettings  b where a.id = b.id));&lt;br /&gt;
&lt;br /&gt;
Best regards&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;Igor Kreslo&amp;quot; &amp;lt;Igor.Kreslo@cern.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: venerdì 22 agosto 2008 17.57.14 (GMT+0100) Europe/Berlin&lt;br /&gt;
Subject: RE: Contact&lt;br /&gt;
&lt;br /&gt;
Dear Cristiano,&lt;br /&gt;
another problem appeared.&lt;br /&gt;
During attempt to downbload CS predictions:&lt;br /&gt;
&lt;br /&gt;
Error starting at line 1 in command:&lt;br /&gt;
call pp_download_predictions(3088929,&amp;#039;OPITA01&amp;#039;)&lt;br /&gt;
Error report:&lt;br /&gt;
SQL Error: ORA-02291: integrity constraint (OPERA.FK_PROGSETS_PROCOPS)&lt;br /&gt;
violated - parent key not found&lt;br /&gt;
ORA-06512: at &amp;quot;OPERAPUB.PP_DOWNLOAD_PREDICTIONS&amp;quot;, line 39&lt;br /&gt;
02291. 00000 - &amp;quot;integrity constraint (%s.%s) violated - parent key not&lt;br /&gt;
found&amp;quot;&lt;br /&gt;
*Cause:    A foreign key value has no matching primary key value.&lt;br /&gt;
*Action:   Delete the foreign key or add a matching primary key.&lt;br /&gt;
&lt;br /&gt;
Never happened before. What can be wrong?&lt;br /&gt;
Best regards,&lt;br /&gt;
Igor.&lt;br /&gt;
&lt;br /&gt;
________________________________&lt;br /&gt;
&lt;br /&gt;
From: Cristiano Bozza [mailto:kryss@sa.infn.it]&lt;br /&gt;
Sent: Fri 8/22/2008 9:34 AM&lt;br /&gt;
To: Igor Kreslo&lt;br /&gt;
Subject: Contact&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Dear Igor,&lt;br /&gt;
&lt;br /&gt;
you can find me today till 12:30 at +39 089965344 (Lab).&lt;br /&gt;
Best regards&lt;br /&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:  	 Cristiano Bozza [kryss@sa.infn.it] 	 Sent:  	 Mon 8/25/2008 11:48 PM&lt;br /&gt;
 To:  	 Igor Kreslo&lt;br /&gt;
 Cc:  	 &lt;br /&gt;
 Subject:  	 Re: Contact&lt;br /&gt;
 Attachments:  	&lt;br /&gt;
View As Web Page&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Cristiano&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 Then I realized that there are duplicate Descriptions of Programsettings already in OPITA01, so probably&lt;br /&gt;
 the constraint PK_PROGRAMSETTINGS is already disabled!!&lt;br /&gt;
 So I disabled it in the local DB.&lt;br /&gt;
&lt;br /&gt;
 After  that:&lt;br /&gt;
  SQL&amp;gt; insert into tb_programsettings (select * from&lt;br /&gt;
  2  tb_programsettings@OPITA01 a where not exists (select * from&lt;br /&gt;
  3  tb_programsettings b where a.id=b.id));&lt;br /&gt;
  157 rows created.&lt;br /&gt;
  commit;&lt;br /&gt;
&lt;br /&gt;
 After that &lt;br /&gt;
 call pp_download_predictions(88929,&amp;#039;OPITA01&amp;#039;); &lt;br /&gt;
 worked well;&lt;/div&gt;</summary>
		<author><name>Lhep</name></author>
	</entry>
</feed>