DB2 Error Code – -817 the insert, update, delete, ddl, or authorization statement cannot be executed because the ims/vs transaction is inquiry only

In this post, you’ll learn about the error message -817 the insert, update, delete, ddl, or authorization statement cannot be executed because the ims/vs transaction is inquiry only in the IBM DB2 database , the reason why it occurs along with the solution to fix it

IBM DB2 Error Message

-817 the insert, update, delete, ddl, or authorization statement cannot be executed because the ims/vs transaction is inquiry only

Reason for the Error

One of the following situations has occurred: 1.� An application which makes local SQL queries is running as an inquiry only transaction but has attempted to execute an INSERT, UPDATE, DELETE data definition (CREATE, ALTER, or DROP), or authorization (GRANT or REVOKE) statement.� Such statements result in updates to the user data or the subsystem catalog, and cannot be executed by an application running as an inquiry only transaction. 2.� An application which does remote unit of work SQL queries has attempted to execute an INSERT, UPDATE, DELETE data definition(CREATE, ALTER, or DROP), or authorization (GRANT or REVOKE) statement.� Such statements result in updates to the user data or the subsystem catalog, and cannot be executed by an application doing remote unit of work queries.

Solution

If the application is doing local SQL queries, see your IMS/VS system programmer about changing the inquiry only status of the transaction under which your application is running.

Share:

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

In this post, you’ll learn about the error message -411 current sqlid cannot be used in a statement that references...
  • DB2
  • December 3, 2024
In this post, you’ll learn about the error message -158 the number of columns specified for the view is not...
  • DB2
  • December 3, 2024
In this post, you’ll learn about the error message -618 operation operation is not allowed on system databases in the...
  • DB2
  • December 3, 2024