Cannot delete service template. Service instance(s) are associated to this template.

This week I was trying to delete a "Service Template" in Oracle Enterprise Manager Cloud Control 12c that I used to create a "Schema as a Service" scenario.

Before doing that, I deleted all the Service Instances associated and my EM showed none associated, like the picture below.

However, even though when I tried to delete it I was receiving the error through a popup:

Starting deletion of 1 service template(s).

Service Template MyServiceTemplate deletion failed.
Cannot delete service template 'Dev Schema'. Service instance(s) are associated to this template.


Delete operation on selected service template(s) failed.

Very strange, how could I have a Service Instance associated if the panel showed none after the deletions?

So, after digging deeper, I've found out that I still had some "Schema Service" in my "All Targets" screen. This was the only place where those itens could be found:

After removing all the targets above, I went back to the Service Template screen and than I could finally remove it!

 

Have you enjoyed? Please leave a comment or give a 👍!

1 comments

    • kiran bapuji on April 19, 2016 at 14:33
    • Reply

    Useful info!

Leave a Reply

Your email address will not be published.