IBM Support

[Db2] DATAACCESS 権限を保持していても SQL が SQL4707N で失敗することがあります

Question & Answer


Question

実行ユーザーに DATAACCESS 権限を付与しているにもかかわらず、照会から SQL4707N が戻されデータにアクセスできません。
$ db2 "select * from test1"
SQL4707N ワークロード "SYSDEFAULTUSERWORKLOAD" は、データベースへのアクセスが許可されていないか、
あるいは無効になっているため、 要求を保守できません。理由コード: "" SQLSTATE=5U020

[{"Type":"MASTER","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"},"ARM Category":[{"code":"a8m0z00000006paAAA","label":"Administrative Tools-\u003EWLM"},{"code":"a8m500000008PlOAAU","label":"Security and Plug-Ins-\u003EAuthorization and Privilege"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions"}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
30 April 2025

UID

swg21571939