DB2 Error Code – -601 the name of the object to be created is identical to the existing name name of the object type obj type

In this post, you’ll learn about the error message -601 the name of the object to be created is identical to the existing name name of the object type obj type in the IBM DB2 database , the reason why it occurs along with the solution to fix it

IBM DB2 Error Message

-601 the name of the object to be created is identical to the existing name name of the object type obj type

Reason for the Error

The CREATE statement sought to create an object ‘name’ of type ‘obj type’ when there is already an object of that type with the same name defined in the DB2 subsystem.� If ‘obj type’ is constraint, the ‘name’ was specified in the FOREIGN KEY clause of either a CREATE or ALTER TABLE statement.

Solution

Either the existing object must be dropped or another name must be chosen for the new object.� If ‘obj type’ is data set, an IDCAMS DELETE of the data set must be done before the CREATE is retried.

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