DB2 - Problembeschreibung
Problem IC97845 | Status: Geschlossen |
IN DB2CC, SQL0104N AN UNEXPECTED TOKEN "VARCHAR" WAS FOUND WHEN REVOKING EXECUTE PRIVILEGE ON A PROCEDURE | |
Produkt: | |
DB2 FOR LUW / DB2FORLUW / 970 - DB2 | |
Problembeschreibung: | |
I you REVOKE EXECUTE on a procedure containing a VARCHAR as input parameter using Control Center, it may result in producing an incorrect SQL statement to run resulting in a SQL0104N error. Here is an example on how you could get this error: 1. Open the 'Control Center'. 2. Expand the SAMPLE database and go to: 'Application Objects --> User Defined Functions' 3. Right-click on 'MON_GET_BUFFERPOOL' from schema SYSPROC and select 'Privileges...' to open the dialog box. 4. Click 'Add User...', choose a username and click 'OK'. 5. Select the added user and choose 'YES' from the fly-out menu under 'Privileges: EXECUTE'. 6. Click 'Apply' to apply the changes to the user. 7. Leave the dialog box with 'Cancel'. 8. Right-click on 'MON_GET_BUFFERPOOL' and select 'Privileges...' to open the dialog box again. 9. Select the added user and choose 'NO' from the fly-out menu under 'Privileges: EXECUTE' to revoke the previously granted privilege. 10. Click 'Apply' to apply the changes to the user and you will receive above mentioned SQL0104N: [IBM][CLI Driver][DB2/NT64] SQL0104N An unexpected token "VARCHAR" was found following "BUFFERPOOL("SYSIBM".". Expected tokens may include: "LONG". SQLSTATE=42601 If you do not take steps 7. and 8. (which means as long as you don't close the dialog box) then the SQL0104N will not occur. The 'Show SQL' button returns different results for these two cases. Working SQL: REVOKE EXECUTE ON FUNCTION SYSPROC.MON_GET_BUFFERPOOL(VARCHAR(),INTEGER)FROM USER DB2TEST RESTRICT; Non-working SQL: REVOKE EXECUTE ON FUNCTION "SYSPROC".MON_GET_BUFFERPOOL("SYSIBM".VARCHAR,"SYSIBM".INTEGER)F ROM USER DB2TEST RESTRICT; | |
Problem-Zusammenfassung: | |
**************************************************************** * USERS AFFECTED: * * all * **************************************************************** * PROBLEM DESCRIPTION: * * See Error Description * **************************************************************** * RECOMMENDATION: * * upgrade to version 9.7 fix pack 10 * **************************************************************** | |
Local-Fix: | |
Lösung | |
First fixed in version 9.7 fix pack 10 | |
Workaround | |
keiner bekannt / siehe Local-Fix | |
Weitere Daten | |
Datum - Problem gemeldet : Datum - Problem geschlossen : Datum - der letzten Änderung: | 21.11.2013 10.11.2014 10.11.2014 |
Problem behoben ab folgender Versionen (IBM BugInfos) | |
9.7.FP10 | |
Problem behoben lt. FixList in der Version | |
9.7.0.10 |