---
name: codeengine-ts-sb-DB2createfails
title: Why does my service binding to a Db2 Enterprise instance fail?
description: You cannot create a Code Engine service binding with a Db2 Enterprise service instance when you use the CLI or API. You receive a failed error message.
last-updated: 2023-02-01
---

> ## Documentation Index
> The table of contents for this documentation set is at https://cloud.ibm.com/docs/codeengine?format=markdown
> The index for all IBM Cloud docs is at: https://cloud.ibm.com/docs/llms.txt
> Use these files to discover more information as needed.

# Why does my service binding to a Db2 Enterprise instance fail?
{: #ts-sb-db2createfails}
{: troubleshoot}

You cannot create a Code Engine service binding with a Db2 Enterprise service instance when you use the CLI or API. You receive a failed error message.
{: tsSymptoms}

Db2 Enterprise does not support the IBM writer role that is used by default for Code Engine service bindings.
{: tsCauses}


Try one of these solutions.
{: tsResolve}

1. If you are using the CLI to create the service binding with the Db2 Enterprise service instance to your Code Engine app or job, use the `--role Manager` option when you run the [**`ibmcloud ce application bind`**](https://cloud.ibm.com/docs/codeengine?topic=codeengine-cli&format=markdown#cli-application-bind) command or the [**`ibmcloud ce job bind`**](https://cloud.ibm.com/docs/codeengine?topic=codeengine-cli&format=markdown#cli-job-bind) command.

2. Use the console to create the service binding with the Db2 Enterprise service instance to your Code Engine app or job, and specify the role of `Manager`.