IBM Support

IT25884: SQL STATEMENTS FROM IBM STERLING FILE GATEWAY UI SEARCHES PERFORM A FULL TABLE SCAN

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • SQL statements  from IBM Sterling File Gateway UI searches
    perform a full table scans because it cannot use this index:
    MODIFYTS due to implicit conversion, and thus causing full table
    scans.
    
    SELECT /*YANTRA*/ count(1) from FG_ARRIVEDFILE
    FG_ARRIVEDFILE , FG_ROUTE FG_ROUTE WHERE
    FG_ARRIVEDFILE.MODIFYTS >= :1 AND FG_ARRIVEDFILE.STATE
    IN('Routed', 'Failed', 'Ignored') AND
    FG_ARRIVEDFILE.ARRIVEDFILE_KEY = FG_ROUTE.ARRIVEDFILE_KEY
    
    SELECT /*YANTRA*/ count(1) from FG_ARRIVEDFILE FG_ARRIVEDFILE
    WHERE FG_ARRIVEDFILE.MODIFYTS >= :1 AND FG_ARRIVEDFILE.STATE
    IN('Routed', 'Failed', 'Ignored') AND NOT EXISTS (SELECT * FROM
    FG_ROUTE WHERE FG_ROUTE.ARRIVEDFILE_KEY =
    FG_ARRIVEDFILE.ARRIVEDFILE_KEY)
    
    SELECT /*YANTRA*/ count(1) from FG_ARRIVEDFILE
    FG_ARRIVEDFILE , FG_ROUTE FG_ROUTE WHERE
    FG_ARRIVEDFILE.MODIFYTS >= :1 AND FG_ARRIVEDFILE.STATE =
    'Routed' AND FG_ARRIVEDFILE.ARRIVEDFILE_KEY =
    FG_ROUTE.ARRIVEDFILE_KEY
    
    SELECT /*YANTRA*/ count(1) from FG_ARRIVEDFILE FG_ARRIVEDFILE
    WHERE FG_ARRIVEDFILE.MODIFYTS >= :1 AND FG_ARRIVEDFILE.STATE
    IN('Routed', 'Failed', 'Ignored')
    
    The predicate "FG_ARRIVEDFILE"."MODIFYTS">=:B1 used at line ID
    3 of the execution plan contains an implicit data type
    conversion on indexed column
    
    
    "MODIFYTS". This implicit data type conversion prevents the
    optimizer from selecting indices on table
    "BFG_SFG_OWNER"."FG_ARRIVEDFILE".
    

Local fix

  • RTC ID: 573500
    No workaround.
    

Problem summary

  • Users Affected:
    Oracle Database Users Running IBM Sterling File Gateway
    
    Problem Description:
    Oracle queries cause a full table scan due to implicit
    conversion:
    SELECT /*YANTRA*/ count(1) from FG_ARRIVEDFILE FG_ARRIVEDFILE ,
    FG_ROUTE FG_ROUTE WHERE FG_ARRIVEDFILE.MODIFYTS >= :1 AND
    FG_ARRIVEDFILE.STATE IN('Routed', 'Failed', 'Ignored') AND
    FG_ARRIVEDFILE.ARRIVEDFILE_KEY = FG_ROUTE.ARRIVEDFILE_KEY
    
    SELECT /*YANTRA*/ count(1) from FG_ARRIVEDFILE FG_ARRIVEDFILE
    WHERE FG_ARRIVEDFILE.MODIFYTS >= :1 AND FG_ARRIVEDFILE.STATE
    IN('Routed', 'Failed', 'Ignored') AND NOT EXISTS (SELECT * FROM
    FG_ROUTE WHERE FG_ROUTE.ARRIVEDFILE_KEY =
    FG_ARRIVEDFILE.ARRIVEDFILE_KEY)
    
    SELECT /*YANTRA*/ count(1) from FG_ARRIVEDFILE FG_ARRIVEDFILE ,
    FG_ROUTE FG_ROUTE WHERE FG_ARRIVEDFILE.MODIFYTS >= :1 AND
    FG_ARRIVEDFILE.STATE = 'Routed' AND
    FG_ARRIVEDFILE.ARRIVEDFILE_KEY = FG_ROUTE.ARRIVEDFILE_KEY
    
    SELECT /*YANTRA*/ count(1) from FG_ARRIVEDFILE FG_ARRIVEDFILE
    WHERE FG_ARRIVEDFILE.MODIFYTS >= :1 AND FG_ARRIVEDFILE.STATE
    IN('Routed', 'Failed', 'Ignored')
    
    Platforms Affected:
    Oracle
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    SELECT /*YANTRA*/ count(1) from FG_ARRIVEDFILE FG_ARRIVEDFILE
    WHERE FG_ARRIVEDFILE.MODIFYTS >= :1 AND FG_ARRIVEDFILE.STATE
    IN('Routed', 'Failed', 'Ignored')
    

Problem conclusion

  • Resolution Summary:
    
    A code fix is provided.
    
    Delivered in:
    5020603_7
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT25884

  • Reported component name

    STR FILE GATEWA

  • Reported component ID

    5725D0700

  • Reported release

    226

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2018-08-02

  • Closed date

    2018-10-03

  • Last modified date

    2019-02-05

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    STR FILE GATEWA

  • Fixed component ID

    5725D0700

Applicable component levels

[{"Line of Business":{"code":"LOB02","label":"AI Applications"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SS4TGX","label":"IBM Sterling File Gateway"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"2.2"}]

Document Information

Modified date:
03 March 2021