home clear 64x64
en blue 200x116 de orange 200x116 info letter User
suche 36x36
Neueste VersionenFixList
15.0.xC1.2 FixList
14.10.xC13.3 FixList
12.10.xC16.X5 FixList
11.70.xC9.XB FixList
11.50.xC9.X2 FixList
11.10.xC3.W5 FixList
Haben Sie Probleme? - Kontaktieren Sie uns.
Kostenlos registrieren anmeldung-x26
Kontaktformular kontakt-x26

Informix - Problembeschreibung

Problem IT03174 Status: Geschlossen

RUNNING A PROCEDURE WHICH CONTAINS MULTIPLE SUB-QUERIES ON VIEWS CAN RETURN
ERROR -5849 OR -640 WITH NO_SUBQF SET

Produkt:
INFORMIX SERVER / 5725A3900 / C10 - IDS 12.10
Problembeschreibung:
Running a complex stored procedure with multiple sub queries 
against views can fail with error -5849 
 
  -5849   The sub-query flattening settings for the query plan 
and the current 
  value of NO_SUBQF environment variable do not match. 
 
Setting NO_SUBQF in the environment does not help, as the same 
query then fails with error -640 
 
  -640    QPlan sanity failure line-number. 
 
This is observed after a fresh dbimport of the database. Running 
update statistics does not correct the problem. 
 
If you set a trap for error -5849 using 'onmode -I -5849', you 
will observe the following stack in the AF file it generates: 
 
  (oninit) afstack 
  (oninit) afhandler 
  (oninit) affail_interface 
  (oninit) check_traperror 
  (oninit) sqerr 
  (oninit) sqerr1 
  (oninit) d_qplan 
  (oninit) qd_getqplan 
  (oninit) ip_evalsql 
  (oninit) runproc 
  (oninit) udrlm_spl_execute 
  (oninit) udrlm_exec_routine 
  (oninit) udr_execute 
  (oninit) exroutine 
  (oninit) execproc 
  (oninit) aud_execproc 
  (oninit) excommand 
  (oninit) sq_execute 
  (oninit) sqmain 
  (oninit) spawn_thread 
  (oninit) th_init_initgls 
  (oninit) startup
Problem-Zusammenfassung:
**************************************************************** 
* USERS AFFECTED:                                              * 
* Users of 12.10.xC1 through 12.10.xC4.                        * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* Execution of a stored procedure may return -5849 or -640     * 
* errors under the following conditions:                       * 
*   - a SQL statement inside the stored procedure references a * 
* view that is materialized into a temp table                  * 
*   - the view definition has a correlated subquery that is    * 
* internally transformed into a join (subquery does not        * 
* contain any complex operations such as group by,             * 
* aggregation, remote references, references to VTI/VII, etc)  * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Update to IDS-12.10.xC5                                      * 
****************************************************************
Local-Fix:
Lösung
Problem Fixed In IDS-12.10.xC5
Workaround
keiner bekannt / siehe Local-Fix
Weitere Daten
Datum - Problem gemeldet    :
Datum - Problem geschlossen :
Datum - der letzten Änderung:
15.07.2014
16.10.2015
16.10.2015
Problem behoben ab folgender Versionen (IBM BugInfos)
Problem behoben lt. FixList in der Version
12.10.xC5 FixList
12.10.xC5.W1 FixList