DB2 Error Code 311 – The optimizer could not find a unique index which it could use to scan table ‘%s’ for cursor ‘jconnect_implicit_%d’
In this post, you’ll learn about the DB2 error 311-The optimizer could not find a unique index which it could use to scan table ‘%s’ for cursor ‘jconnect_implicit_%d’ and the reason why you are receiving the error message and how to fix it
How does this Error Message Looks like
311 – The optimizer could not find a unique index which it could use to scan table ‘%s’ for cursor ‘jconnect_implicit_%d’
Reason for the Error & Solution
A pessimistic lock was attempted on a table that does not have a primary key (or other unique index). By default, the Kodo mapping tool does not create primary keys for join tables. In order to use datastore locking for relations, an IDENTITY column should be added to any tables that do not already have them.
Share this:
Tags : Database Error Messages
Tags
.NET Errors
App
C#
C# Errors
C# programs
COBOL Error Messages
csharp
database
Database Error Messages
DB2 Error Messages
Delphi Errors
Erply API
F#
Google Play
guide
How to
IBM Application Discovery and Delivery Intelligence
IBM InfoSphere Information Server
IBM QRadar
IBM Workload Automation
InterSystems IRIS Errors
Java
Javascript
Lab programs
LINQ
List
MariaDB Errors
MS SQL Server Error Codes
Oracle Errors
python tutorials
SQL Server
tips
tricks
TroubleShoot SQLite Errors
tutorial
tutorials
visual studio 2015
Windows
Windows 10
Windows Errors
Windows Phone
Windows Phone 8
Windows System Errors
wp8
XAML
Leave Your Comment