IBM Support

JR27746: PUBLIC NOT GRANTED PERMISSION TO EXECUTE SYSIBM.SQLERRM_EXT INTERNAL FUNCTION

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Attempts to use the short form of the SQLERRM function will fail
    with -551, while the long form of the SQLERRM function works
    just fine. For example:
    
       VALUES (SYSPROC.SQLERRM (1042))
    
    fails with a -551. while
    
       VALUES (SYSPROC.SQLERRM ('SQL551',
       'AYYANG;UPDATE;SYSCAT.TABLES', ';', 'en_US', 1))
    
    works.
    

Local fix

  • Local Fix:
    
    Grant execute on sqlerrm_ext to public.
    
    
    Work Around:
    
    Use the long form of the function, eg.
       SQLERRM ('SQL1042', '','','',1)
    instead of SQLERRM(1042).
    

Problem summary

  • Users Affected:
    All users of the long form of the SYSPROC.SQLERRM function
    
    Problem Description:
    PUBLIC is not granted any permissions on SYSPROC.SQLERRM_EXT.
    This means that attempts to call the long form of
    SYSPROC.SQLERRM will fail with SQL0551
    
    Problem Summary:
    Calls to the long form of SYSPROC.SQLERRM fail with SQL0551,
    while using the short form is successful.
    

Problem conclusion

  • Problem first fixed in DB2 v9.1 FP5
    

Temporary fix

  • Manually grant PUBLIC execute privilege on SYSPROC.SQLERRM_EXT
    

Comments

APAR Information

  • APAR number

    JR27746

  • Reported component name

    DB2 CEE WINDOWS

  • Reported component ID

    5765F3001

  • Reported release

    910

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2007-11-01

  • Closed date

    2008-07-08

  • Last modified date

    2008-07-08

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

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

    JR27765

Fix information

  • Fixed component name

    DB2 CEE WINDOWS

  • Fixed component ID

    5765F3001

Applicable component levels

  • R910 PSY

       UP

[{"Line of Business":{"code":"LOB10","label":"Data and AI"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSEPGG","label":"DB2 for Linux- UNIX and Windows"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"910"}]

Document Information

Modified date:
07 October 2021