SQLCODE -551
SQL0551 Not authorized to object
- IBM message text
- Not authorized to object &1 in &2 type *&3.
- SQLCODE
- -551
- SQLSTATE
- 42501
Most common cause
The user lacks the authority needed on the table, view or routine.
Other causes
- Authority is missing on the library.
- For a logical file, authority is missing on its based-on physical files.
- The connection uses a different profile from the one you expect (the JDBC pool user).
How to fix it
Grant authority with GRANT or GRTOBJAUT to the profile the connection really uses.
Related errors
Text and codes from IBM documentation for 7.6. Checked on .