IBM Support

SI65420 - OSP-DB-OTHER-MSGSQL0204 A MSGSQL0204 MAY OCCUR WHEN QUERYING

PTF Cover Letter


PTF ( Program Temporary Fixes ) Cover letter


Order this fix

Abstract

OSP-DB-OTHER-MSGSQL0204 A MSGSQL0204 MAY OCCUR WHEN QUERYING


Pre/Co-Requisite PTF / Fix List

REQ  LICENSED      PTF/FIX  LEVEL

TYPE PROGRAM  REL  NUMBER   MIN/MAX  OPTION
---- -------- ---  -------  -------  ------
PRE  5770999  710  MF60179   00/00    0000
CO   5770SS1  710  SI59705   00/00    0000
CO   5770SS1  710  SI52856   00/00    0000
CO   5770SS1  710  SI52857   00/00    0000
CO   5770SS1  710  SI46353   00/00    0000
CO   5770SS1  710  SI44496   00/00    0000
DIST 5770999  710  MF60241   00/00    0000
DIST 5770SS1  710  SI49222   00/00    0000
DIST 5770999  710  MF56590   00/00    0000



NOTICE:
-------
Application of this PTF may disable or render ineffective programs that
use system memory addresses not generated by the IBM translator,
including programs that circumvent control technology designed to limit
interactive capacity to purchased levels.  This PTF may be a prerequisite
for future PTFs.  By applying this PTF you authorize and agree to the
foregoing.

This PTF is subject to the terms of the license agreement which
accompanied, or was contained in, the Program for which you are obtaining
the PTF.  You are not authorized to install or use the PTF except as part
of a Program for which you have a valid Proof of Entitlement.

SUBJECT TO ANY WARRANTIES WHICH CAN NOT BE EXCLUDED OR EXCEPT AS EXPLICITLY
AGREED TO IN THE APPLICABLE LICENSE AGREEMENT OR AN APPLICABLE SUPPORT
AGREEMENT, IBM MAKES NO WARRANTIES OR CONDITIONS EITHER EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OR CONDITIONS OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON INFRINGEMENT,
REGARDING THE PTF.

The applicable license agreement may have been provided to you in printed
form and/or may be viewed using the Work with Software Agreements (WRKSFWAGR)
CL command.





APAR Error Description / Circumvention

-----------------------------------------------
After a series of MOVOBJ and CRTDUPOBJ steps - where one moves
tables, SQL Views, etc., from one schema (library) to another
and back again - a msgSQL0204, referencing the underlying
tables) may occur when querying the SQL View

CORRECTION FOR APAR SE67723 :
-----------------------------
Problem is with Views that has Global Variable(s).  If the
global variable(s) exist in a library not specified in the
originating library of the view (FROMLIB on CRTDUPOBJ command),
the view tables may still reference the FROMLIB library. Problem
has been fixed.

CIRCUMVENTION FOR APAR SE67723 :
--------------------------------
None.


Activation Instructions


None.




Special Instructions


********************************************************************
THE FOLLOWING ARE SUPERSEDED SPECIAL INSTRUCTIONS. IF THE SUPERSEDED
PTF HAS ALREADY BEEN APPLIED AND ITS SPECIAL INSTRUCTION FOLLOWED,
IT IS NOT NECESSARY TO FOLLOW THAT SPECIAL INSTRUCTION AGAIN.
********************************************************************

SPECIAL INSTRUCTIONS FOR SUPERSEDED PTF SI42909 :
=================================================

This PTF will not fix any currently existing SQL indexes created over
columns that reference fieldprocs and that specify derived keys, the
WHERE clause, or the RCDFMT clause.  These indexes must be recreated
after this PTF has been applied.


To ensure the fix goes into effect immediately, use the command:

ENDPJ SBS(QSYSWRK) PGM(QSYS/QSQSRVR)

before doing an immediate apply of the PTF.

STRPJ SBS(QSYSWRK) PGM(QSYS/QSQSRVR)

After the PTF has been applied to restart the QSQSRVR prestart jobs.

To ensure the fix goes into effect immediately, use the command:

ENDPJ SBS(QSYSWRK) PGM(QSQSRVR)

before doing an immediate apply of the PTF.

To properly enable this PTF for prestarted server jobs,
you will need to stop and restart the SQL server jobs,
the Directory Services server jobs, the DRDA TCPIP server
jobs, and the host server jobs.  Otherwise,
the prestarted server jobs may continue to use older versions
of programs and unexpected results may occur.  Applying this
PTF as delayed would achieve the same results.

To stop and restart the SQL server jobs, run the following:

ENDPJ SBS(QSYSWRK) PGM(QSQSRVR)
STRPJ SBS(QSYSWRK) PGM(QSQSRVR)

To stop and restart the DRDA server jobs, run the following:

ENDPJ SBS(QUSRWRK) PGM(QRWTSRVR)
STRPJ SBS(QUSRWRK) PGM(QRWTSRVR)

To stop and restart the DRDA TCPIP server jobs, run the following:

ENDTCPSVR SERVER(*DDM)
STRTCPSVR SERVER(*DDM)

To stop and restart the Directory Services server job,
run the following:

ENDTCPSVR SERVER(*DIRSRV)
STRTCPSVR SERVER(*DIRSRV)

To stop and restart the host server jobs, the following directions
must be followed.

The database server prestart jobs (QZDAINIT, QZDASOINIT, and
QZDASSINIT) by default are shipped to run in subsystem QSERVER
(QZDAINIT) and QUSRWRK (QZDASOINIT and QZDASSINIT).  However,
systems
can be customized to allow the database server prestart jobs to run
in other subsystems.

SYSTEMS WITH DEFAULT CONFIGURATION (database server prestart jobs
run
ONLY in the QSERVER and QUSRWRK subsystems).

---------------------------------------------------------------------

1) To ensure that the database server prestart jobs are ended,
issue the requests:

QSYS/ENDPJ SBS(QSERVER) PGM(QSYS/QZDAINIT) OPTION(*IMMED)
and
QSYS/ENDPJ SBS(QUSRWRK) PGM(QSYS/QZDASOINIT) OPTION(*IMMED)
and
QSYS/ENDPJ SBS(QUSRWRK) PGM(QSYS/QZDASSINIT) OPTION(*IMMED)

If the above commands fail with CPF0922, nothing more needs
to be done (the prestarted jobs are already inactive).

2) To re-enable the function after the PTF is applied, issue the
requests:

QSYS/STRPJ SBS(QSERVER) PGM(QSYS/QZDAINIT)
and
QSYS/STRPJ SBS(QUSRWRK) PGM(QSYS/QZDASOINIT)
and
QSYS/STRPJ SBS(QUSRWRK) PGM(QSYS/QZDASSINIT)

If the above commands fail with CPF0921, nothing more needs
to be done (the prestarted jobs are already active).

3) To re-enable the function for each subsystem "subsystem-name"
identified, issue the following requests after the PTF is
applied:

QSYS/STRPJ SBS("subsystem-name") PGM(QSYS/QZDAINIT)
and
QSYS/STRPJ SBS("subsystem-name") PGM(QSYS/QZDASOINIT)
and
QSYS/STRPJ SBS("subsystem-name") PGM(QSYS/QZDASSINIT

ENDPJ SBS(QUSRWRK) PGM(QSYS/QZDASOINIT)
STRPJ SBS(QUSRWRK) PGM(QSYS/QZDASOINIT)


Default Instructions

THIS PTF CAN BE APPLIED IMMEDIATE OR DELAYED.



Supersedes

PTF/FIX NO(S).  APAR TITLE LINE
--------------  ------------------------------------------------------------
   SI63865      OSP-DB-OTHER-F/DBSTMDDADDATASPACECONCRETE-T/QQQOOODBOP- MSGM
   SI60295      OSP-DB-OTHER-F/QQQOOODBOP-T/QQQOOOXTOC-MSGMCH3601 MCH3601 F/
   SI59985      OSP-DB Internal Database Maintenance
   SI57728      OSP-DB-OTHER-F/QQQOPTIM-T/QQQOPTIM-MSGMCH1210 HA SOFTWARE IS
   SI57535      OSP-DB-OTHER-T/QDZXDBX/02F3-MSGCPF5109 UPDATING FIELD PROC A
   SI57221      OSP-DB-OTHER Extended Unicode Support for UPPER and LOWER Sc
   SI57073      OSP-INCORROUT RESTORE OF LIBRARY TO DIFFERENT LIBRARY - VIEW
   SI56825      OSP-DB-OTHER-F/QQQOPTIM-T/QQQOPTIM-MSGMCH3601 MSGMCH3601 F/Q
   SI55554      OSP-DB-MSGMCH0601 f/stringHighUse4K t/QQQVFMT for query with
   SI54332      OSP-DB-OTHER-INCORROUT A SELECT QUERY WITH A SUBSELECT MAY C
   SI53609      OSP-LOOP JOB IS LOOPING ON QQQTSORT
   SI53150      OSP-DB-OTHER-F/QQQQUERY-T/QSQOPEN-RC11-MSGCPD438C Query with
   SI53088      OSP-DB-OTHER-T/QDBCRTMEX/-MSGMCH5601X/1368 CREATE INDEX OVER
   SI52858      OSP-DB-MSGCPD4301 f/QQQVFMT t/QSQRUN3 running query with lat
   SI52697      OSP-DB-MSGMCH5601 F/#DBCINX T/QDBCRTME when restoring an SQL
   SI52483      OSP-DB-OTHER-INCORROUT WHEN OVERRIDING A TABLE TO ANOTHER TA
   SI50977      OSP-DB-MSGCPD4311 - Query format record length to long
   SI50976      OSP-DB-OTHER-LOOP RUNNING A CREATE VIEW LOOPS IN QQQOPTIM
   SI50823      OSP-DB-MSGMCH1210 when using DBMON with Filter
   SI50742      OSP-DB-OTHER-PERFM ENDJOB AND ENDJOBABN ISSUED AGAINST A JOB
   SI50596      F/QQQVALID-MSGMCH3601 POINTER NOT SET IN QUERY VALIDATION CO
   SI50500      OSP-DB-MSGMCH3203 F/#DBRESEQ T/QDBGETM SQL query with scalar
   SI50336      OSP-DB-OTHER-MSGSQL0332 IN SQLRPGLE COMPILED WITH SRTSEQ(*JO
   SI49830      OSP-DB-OTHER-F/QQQVSEL-T/QDBOPEN-RC3-MSGCPD4324 CPYF OR OPND
   SI49314      OSP-DB-OTHER-F/QQQSRVI1-T/QQQIMPLE-MSGCPF9898 CPYF USING A S
   SI49273      F/QQQQUERY-MSGCPF4204 SELECT DISTINCT FAILS WHEN 17 OR MORE
   SI49242      SQL-DB-PERFM Index advise for ORed predicates
   SI48068      OSP-DB-OTHER Changes to Parallel_Degree *OPTIMIZE percentage
   SI47796      OSP-DB-MSGMCH3601 - Update/Insert with partition file and da
   SI47413      OSP-DB-INCORROUT WITH DERIVED KEY INDEX
   SI47384      OSP-DB-OTHER-F/QQQSRVI1-T/QQQOPTIM-MSGCPF9898 INDEX MAINTENA
   SI47098      OSP-DB-OTHER-F/QQQSVRTN-T/QQQSVRTN-MSGMCH3601 SHOWCASE QUERY
   SI46869      OSP-DB MCH1820 F/EXSNDPM T/QQQQUERY X/14911
   SI46570      OSP-DB-OTHER-F/QDBCRTFI-T/QSQRUN3-MSGCPF3230 MSGCPF3230 F/QD
   SI46570      OSP-DB-OTHER-F/#DBMATIX-T/QQQOPTIM-MSGMCH3203 AFTER HARWARE
   SI46489      OSP-DB-MSGSQ20058 CREATE MQT over XMLTABLE
   SI46356      OSP-DB-INCORROUT SYSIXADV table has bad data in MTI columns
   SI46352      OSP-DB-MSGSQL0104 XMLTABLE support
   SI46375      OSP-DB MSGSQL0901 CREATE OR REPLACE view failure
   SI45646      OSP-DB-OTHER-F/QQQUPDVW-T/QQQUPDVW-MSGMCH1210 CRTDUPOBJ TO C
   SI45364      OSP-DB-OTHER-F/QQQVFMT-T/QSQRUN1-MSGCPD4301 A MSGCPD4301 MAY
   SI44493      OSP-DB Use MTIs as a source of statistics
   SI44150      OSP-DB-OTHER-F/QQQVFMT-T/QSQRUN3-MSGCPD4301 COMMON TABLE EXP
   SI44074      OSP-DB-OTHER-F/QQQVFMT-T/QSQRUN3-RC1-MSGCPD439C MSGCPD439C M
   SI44074      OSP-DB-OTHER-INCORROUT INCORRECT OUTPUT WHEN SUBQUERY IN THE
   SI42909      OSP-DB-INCORROUT - FieldProc program not called while doing
   SI42966      OSP-DB Connect By support
   SI40813      OSP-DB-MSGCPD4301 F/QQQVFMT T/QSQRUN3 COMPLEX SQL STATEMENT
   SI40813      OSP-DB-OTHER-F/QQQSRVI1-T/QQQPDCMP-MSGCPF9898 COMPLEX QUERIE
   SI38340      OSP-DB-OTHER-F/QQQPDCMP-T/QQQPDCMP-MSGMCH1210 AN INTERNAL QU
   SI38340      OSP-DB-OTHER-F/#CCEXCEP-T/QQQVSEL-MSGMCH5003 MSGMCH5003 WITH
   SI42663      OSP-DB MCH3601 RSTLIB 7.1 TR2 MCH3601 T/QQQUPDVW  during RST
   SI42812      OSP-DB-MSGSQL0901 T\QSQOPEN CPF5173 and CPF4273 select faili
   SI42711      OSP-DB-OTHER-PERFM JOIN ORDER CHANGED RESULTING IN POOR PERF
   SI42498      OSP-DB-MSGCPF4387 insert a date into a view with instead of
   SI42129      OSP-DB SQE Support of Multi dataspace logical
   SI41888      OSP-DB-MSGMCH3601 from QDBOPEN
   SI41854      OSP-DB Parameter marker support in TRANSLATE scalar function
   SI41670      F/QQQOPTIM-MSGMCH0601 MSGMCH0601 F/QQQOPTIM
   SI41580      OSP-DB-MSGMCH1884 from #dbenfcn on DELETE
   SI41446      OSP-DB Internal Maintenance
   SI41439      OSP-DB-OTHER-F/QQQIMPLE-T/QQQIMPLE-MSGMCH3601 MCH3601 DURING
   SI41439      OSP-DB-OTHER-F/QQQIMPLE-T/QQQIMPLE-MSGMCH0601 RPG PROGRAM AC
   SI41439      OSP-DB-MSGMCH0601 From QQQIMPLE
   SI41439      OSP-DB-OTHER-F/QSQRUN3-T/QSQRUN3-RC6-MSGSQL0952 MSGSQL0952 F
   SI41359      OSP-DB OVRDBF function to support buffer length for query
   SI41018      OSP-DB-MSGMCH1210 from QQQITEMP
   SI40826      OSP-DB-INCORROUT OPNQRYF of JLF with FieldProcs
   SI40405      OSP-DB-INCORROUT FieldProcs and Lobs when CQE
   SI40108      OSP-DB CREATE VIEW OVER A LARGE PARTITIONED TABLE WITH MANY
   SI39845      OSP-DB-INCORROUT CQE Union query and VARCHAR Data with Field
   SI39546      OSP-DB-MSGCPD5036 Data mapping error when Logical file and f
   SI39308      OSP-DB-MSGCPF503E on query with omnifind function
   SI39192      OSP-DB QQQIMPLE is failed to compile
   SI39165      OSP-DB Internal Maintenance
   SI39021      OSP-DB-MSGMCH1819 CQE queries using fieldprocs
   SI38954      OSP-DB-MSGCPF5173 f/QDBSIGEX t/QSQRUN2/QSQFETCH
   SI38604      OSP-DB Internal Maintenance
   SI38199      OSP-DB No WHERE selection for SQL index and ICU srtseq
   SI36850      OSP-DB-OTHER-F/QQQIMPLE-MSGCPI432C OPTIMIZER RECOMMENDS AN I
   SI38574      OSP-DB-MSGSQL901 Drop of partition preceded by MSGCPF7304
   SI38445      OSP DBMON HAS EXTRA 3006 ROWS
   SI38060      OSP-DB-MSGCPD4019 using STROBJCVN
   SI37798      OSP-DB-OTHER-INCORROUT DBMON DOES NOT CREATE 3010 RECORD FOR
   SI37798      OSP-DB-OTHER-INCORROUT SQL SELECT STMT RETURNS ROWS, WHERE 0
   SI37524      OSP-DB-MSGMCH1820 creating derived key index over the partit
   SI37401      OSP-DB-MSGMCH1819 when creating derived key index
   SI37150      OSP-DB Longer Schema Support

Summary Information

System..............................i
Models..............................
Release.............................V7R1M0
Licensed Program...............5770SS1
APAR Fixed..........................View details for APAR SE67723
Superseded by:......................
Recompile...........................N
Library.............................QSYS
MRI Feature ........................NONE
Cum Level...........................NONE


System i Support

IBM disclaims all warranties, whether express or implied, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose. By furnishing this document, IBM grants no licenses to any related patents or copyrights. Copyright © 1996,1997,1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017 IBM Corporation. Any trademarks and product or brand names referenced in this document are the property of their respective owners. Consult the Terms of use link for trademark information.

[{"Type":"MASTER","Line of Business":{"code":"LOB57","label":"Power"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG60","label":"IBM i"},"Platform":[{"code":"PF012","label":"IBM i"}],"Version":"7.1.0"},{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG15V","label":"PTF Cover Letters - OS\/400 General"},"Component":"","ARM Category":[],"Platform":[{"code":"PF012","label":"IBM i"}],"Version":"V7R1M0","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
16 August 2017