Martin82
22-10-07, 08:37
Hi,
wir haben auf unserer i5(V5R4) seit ein paar Tagen folgendes Phänomen. Bei einem insert in eine Tabelle mit 5 Feldern bricht das Statement sporadisch mit diesem Fehler ab:
SQL0150
Message Text:
View or logical file &1 in &2 read-only.
Cause Text:
Update, delete, or insert is not allowed. &1 in &2 can be used only for read operations. A view or logical file can be used only for read operations if one or more of the following conditions are true: v The view contains a DISTINCT keyword, GROUP BY clause, HAVING clause, or a column function in the outer-most subselect. v The view or logical file contains a join function. v The view contains a subquery that refers to the same table as the table of the outer-most subselect. A view of this type may be used for inserting rows. v All the columns of the view are expressions, scalar functions, constants, or special registers. v All the columns of the logical file are input only. v The select list of the view omits a column of the based on table that does not allow null values or default values. Inserting into the view is not allowed.
Recovery Text:
Change the statement to insert, delete, or update data into the base table of view &1. All columns of the table that do not allow null values or default values must
Es handelt sich hierbei aber um keine View oder logische Datei. Wir haben bereits versucht das Objekt selbst, aber auch alle abhängigen Objehte, neu zu erstellen. Ohne positivem Ergebnis.
Kann es sein dass hier irgendein temporärer erstellter Index den Fehler hervorruft? Das letzte IPL der Maschine liegt 2 Monate zurück.
Vielen Dank für eure Hilfe
Grüße
Martin82
wir haben auf unserer i5(V5R4) seit ein paar Tagen folgendes Phänomen. Bei einem insert in eine Tabelle mit 5 Feldern bricht das Statement sporadisch mit diesem Fehler ab:
SQL0150
Message Text:
View or logical file &1 in &2 read-only.
Cause Text:
Update, delete, or insert is not allowed. &1 in &2 can be used only for read operations. A view or logical file can be used only for read operations if one or more of the following conditions are true: v The view contains a DISTINCT keyword, GROUP BY clause, HAVING clause, or a column function in the outer-most subselect. v The view or logical file contains a join function. v The view contains a subquery that refers to the same table as the table of the outer-most subselect. A view of this type may be used for inserting rows. v All the columns of the view are expressions, scalar functions, constants, or special registers. v All the columns of the logical file are input only. v The select list of the view omits a column of the based on table that does not allow null values or default values. Inserting into the view is not allowed.
Recovery Text:
Change the statement to insert, delete, or update data into the base table of view &1. All columns of the table that do not allow null values or default values must
Es handelt sich hierbei aber um keine View oder logische Datei. Wir haben bereits versucht das Objekt selbst, aber auch alle abhängigen Objehte, neu zu erstellen. Ohne positivem Ergebnis.
Kann es sein dass hier irgendein temporärer erstellter Index den Fehler hervorruft? Das letzte IPL der Maschine liegt 2 Monate zurück.
Vielen Dank für eure Hilfe
Grüße
Martin82