{"id":2099,"date":"2016-03-08T00:34:43","date_gmt":"2016-03-08T03:34:43","guid":{"rendered":"http:\/\/www.dbarj.com.br\/en\/?p=2099"},"modified":"2016-03-08T00:34:43","modified_gmt":"2016-03-08T03:34:43","slug":"cannot-delete-service-template-instance-associated","status":"publish","type":"post","link":"https:\/\/www.dbarj.com.br\/en\/2016\/03\/cannot-delete-service-template-instance-associated\/","title":{"rendered":"Cannot delete service template. Service instance(s) are associated to this template."},"content":{"rendered":"<p>This week I was trying to delete a &#8220;Service Template&#8221; in Oracle Enterprise Manager Cloud Control 12c that I used to create a &#8220;Schema as a Service&#8221; scenario.<\/p>\n<p>Before doing that, I deleted all the <strong>Service Instances<\/strong> associated and\u00a0my EM\u00a0showed none\u00a0associated, like the picture below.<\/p>\n<p id=\"NSrKKhs\"><img loading=\"lazy\" decoding=\"async\" width=\"1116\" height=\"594\" class=\"alignnone size-full wp-image-2100 \" src=\"http:\/\/www.dbarj.com.br\/wp-content\/uploads\/2016\/03\/img_56ddd948d8296.png\" alt=\"\" srcset=\"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2016\/03\/img_56ddd948d8296.png 1116w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2016\/03\/img_56ddd948d8296-300x160.png 300w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2016\/03\/img_56ddd948d8296-768x409.png 768w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2016\/03\/img_56ddd948d8296-1024x545.png 1024w\" sizes=\"auto, (max-width: 1116px) 100vw, 1116px\" \/><\/p>\n<p>However, even though when I tried to delete it I was receiving the error through a popup:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">Starting deletion of 1 service template(s).\r\n\r\nService Template MyServiceTemplate deletion failed.\r\nCannot delete service template 'Dev Schema'. Service instance(s) are associated to this template.\r\n\r\n\r\nDelete operation on selected service template(s) failed.<\/pre>\n<p>Very strange, how could I have a <strong>Service Instance<\/strong> associated if the panel showed none after the deletions?<\/p>\n<p>So, after digging deeper, I&#8217;ve found out that I still had some &#8220;<strong>Schema Service<\/strong>&#8221;\u00a0in my &#8220;<strong>All Targets<\/strong>&#8221; screen. This was the only place where those itens could be found:<\/p>\n<p id=\"OXCmqSz\"><img loading=\"lazy\" decoding=\"async\" width=\"1115\" height=\"593\" class=\"alignnone size-full wp-image-2102 \" src=\"http:\/\/www.dbarj.com.br\/wp-content\/uploads\/2016\/03\/img_56de45322db16.png\" alt=\"\" srcset=\"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2016\/03\/img_56de45322db16.png 1115w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2016\/03\/img_56de45322db16-300x160.png 300w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2016\/03\/img_56de45322db16-768x408.png 768w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2016\/03\/img_56de45322db16-1024x545.png 1024w\" sizes=\"auto, (max-width: 1115px) 100vw, 1115px\" \/><\/p>\n<p>After removing all the targets above, I went back to the Service Template screen and than I could finally remove it!<\/p>\n<p>&nbsp;<\/p>\n<b>Have you enjoyed? Please leave a comment or give a \ud83d\udc4d!<\/b>\n<p id=\"ESFiAPt\">\n<div class='watch-action'><div class='watch-position align-left'><div class='action-like'><a class='lbg-style2 like-2099 jlk' href='javascript:void(0)' data-task='like' data-post_id='2099' data-nonce='de4404f630' rel='nofollow'><img class='wti-pixel' src='https:\/\/www.dbarj.com.br\/wp-content\/plugins\/wti-like-post\/images\/pixel.gif' title='Like' \/><span class='lc-2099 lc'>+2<\/span><\/a><\/div><\/div> <div class='status-2099 status align-left'><\/div><\/div><div class='wti-clear'><\/div>","protected":false},"excerpt":{"rendered":"<p>This week I was trying to delete a &#8220;Service Template&#8221; in Oracle Enterprise Manager Cloud Control 12c that I used to create a &#8220;Schema as a Service&#8221; scenario. Before doing that, I deleted all the Service Instances associated and\u00a0my EM\u00a0showed none\u00a0associated, like the picture below. However, even though when I tried to delete it I &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"https:\/\/www.dbarj.com.br\/en\/2016\/03\/cannot-delete-service-template-instance-associated\/\">Continue reading<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43],"tags":[],"class_list":["post-2099","post","type-post","status-publish","format-standard","hentry","category-oracle-cloud-en","item-wrap"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Cannot delete service template. Service instance(s) are associated to this template. - DBA - Rodrigo Jorge - Oracle Tips and Guides<\/title>\n<meta name=\"description\" content=\"How to delete a Service Template when Oracle Enterprise Manager complains that Service Instances are still associated even though they were removed.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dbarj.com.br\/en\/2016\/03\/cannot-delete-service-template-instance-associated\/\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DBA RJ\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2016\\\/03\\\/cannot-delete-service-template-instance-associated\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2016\\\/03\\\/cannot-delete-service-template-instance-associated\\\/\"},\"author\":{\"name\":\"DBA RJ\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#\\\/schema\\\/person\\\/28a44ca3a6633fe4156ad1ea209d40a9\"},\"headline\":\"Cannot delete service template. Service instance(s) are associated to this template.\",\"datePublished\":\"2016-03-08T03:34:43+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2016\\\/03\\\/cannot-delete-service-template-instance-associated\\\/\"},\"wordCount\":152,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#\\\/schema\\\/person\\\/28a44ca3a6633fe4156ad1ea209d40a9\"},\"image\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2016\\\/03\\\/cannot-delete-service-template-instance-associated\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/www.dbarj.com.br\\\/wp-content\\\/uploads\\\/2016\\\/03\\\/img_56ddd948d8296.png\",\"articleSection\":[\"Oracle Cloud\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2016\\\/03\\\/cannot-delete-service-template-instance-associated\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2016\\\/03\\\/cannot-delete-service-template-instance-associated\\\/\",\"url\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2016\\\/03\\\/cannot-delete-service-template-instance-associated\\\/\",\"name\":\"Cannot delete service template. Service instance(s) are associated to this template. - DBA - Rodrigo Jorge - Oracle Tips and Guides\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2016\\\/03\\\/cannot-delete-service-template-instance-associated\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2016\\\/03\\\/cannot-delete-service-template-instance-associated\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/www.dbarj.com.br\\\/wp-content\\\/uploads\\\/2016\\\/03\\\/img_56ddd948d8296.png\",\"datePublished\":\"2016-03-08T03:34:43+00:00\",\"description\":\"How to delete a Service Template when Oracle Enterprise Manager complains that Service Instances are still associated even though they were removed.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2016\\\/03\\\/cannot-delete-service-template-instance-associated\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2016\\\/03\\\/cannot-delete-service-template-instance-associated\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2016\\\/03\\\/cannot-delete-service-template-instance-associated\\\/#primaryimage\",\"url\":\"http:\\\/\\\/www.dbarj.com.br\\\/wp-content\\\/uploads\\\/2016\\\/03\\\/img_56ddd948d8296.png\",\"contentUrl\":\"http:\\\/\\\/www.dbarj.com.br\\\/wp-content\\\/uploads\\\/2016\\\/03\\\/img_56ddd948d8296.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2016\\\/03\\\/cannot-delete-service-template-instance-associated\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Cannot delete service template. Service instance(s) are associated to this template.\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/\",\"name\":\"DBA - Rodrigo Jorge - Oracle Tips and Guides\",\"description\":\"Blog about Databases, Security and High Availability\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#\\\/schema\\\/person\\\/28a44ca3a6633fe4156ad1ea209d40a9\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#\\\/schema\\\/person\\\/28a44ca3a6633fe4156ad1ea209d40a9\",\"name\":\"DBA RJ\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/wp-content\\\/uploads\\\/2019\\\/09\\\/RodrigoJorgePOUG19.png\",\"url\":\"https:\\\/\\\/www.dbarj.com.br\\\/wp-content\\\/uploads\\\/2019\\\/09\\\/RodrigoJorgePOUG19.png\",\"contentUrl\":\"https:\\\/\\\/www.dbarj.com.br\\\/wp-content\\\/uploads\\\/2019\\\/09\\\/RodrigoJorgePOUG19.png\",\"width\":712,\"height\":712,\"caption\":\"DBA RJ\"},\"logo\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/wp-content\\\/uploads\\\/2019\\\/09\\\/RodrigoJorgePOUG19.png\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Cannot delete service template. Service instance(s) are associated to this template. - DBA - Rodrigo Jorge - Oracle Tips and Guides","description":"How to delete a Service Template when Oracle Enterprise Manager complains that Service Instances are still associated even though they were removed.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dbarj.com.br\/en\/2016\/03\/cannot-delete-service-template-instance-associated\/","twitter_misc":{"Written by":"DBA RJ","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbarj.com.br\/en\/2016\/03\/cannot-delete-service-template-instance-associated\/#article","isPartOf":{"@id":"https:\/\/www.dbarj.com.br\/en\/2016\/03\/cannot-delete-service-template-instance-associated\/"},"author":{"name":"DBA RJ","@id":"https:\/\/www.dbarj.com.br\/en\/#\/schema\/person\/28a44ca3a6633fe4156ad1ea209d40a9"},"headline":"Cannot delete service template. Service instance(s) are associated to this template.","datePublished":"2016-03-08T03:34:43+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbarj.com.br\/en\/2016\/03\/cannot-delete-service-template-instance-associated\/"},"wordCount":152,"commentCount":1,"publisher":{"@id":"https:\/\/www.dbarj.com.br\/en\/#\/schema\/person\/28a44ca3a6633fe4156ad1ea209d40a9"},"image":{"@id":"https:\/\/www.dbarj.com.br\/en\/2016\/03\/cannot-delete-service-template-instance-associated\/#primaryimage"},"thumbnailUrl":"http:\/\/www.dbarj.com.br\/wp-content\/uploads\/2016\/03\/img_56ddd948d8296.png","articleSection":["Oracle Cloud"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbarj.com.br\/en\/2016\/03\/cannot-delete-service-template-instance-associated\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbarj.com.br\/en\/2016\/03\/cannot-delete-service-template-instance-associated\/","url":"https:\/\/www.dbarj.com.br\/en\/2016\/03\/cannot-delete-service-template-instance-associated\/","name":"Cannot delete service template. Service instance(s) are associated to this template. - DBA - Rodrigo Jorge - Oracle Tips and Guides","isPartOf":{"@id":"https:\/\/www.dbarj.com.br\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.dbarj.com.br\/en\/2016\/03\/cannot-delete-service-template-instance-associated\/#primaryimage"},"image":{"@id":"https:\/\/www.dbarj.com.br\/en\/2016\/03\/cannot-delete-service-template-instance-associated\/#primaryimage"},"thumbnailUrl":"http:\/\/www.dbarj.com.br\/wp-content\/uploads\/2016\/03\/img_56ddd948d8296.png","datePublished":"2016-03-08T03:34:43+00:00","description":"How to delete a Service Template when Oracle Enterprise Manager complains that Service Instances are still associated even though they were removed.","breadcrumb":{"@id":"https:\/\/www.dbarj.com.br\/en\/2016\/03\/cannot-delete-service-template-instance-associated\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbarj.com.br\/en\/2016\/03\/cannot-delete-service-template-instance-associated\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbarj.com.br\/en\/2016\/03\/cannot-delete-service-template-instance-associated\/#primaryimage","url":"http:\/\/www.dbarj.com.br\/wp-content\/uploads\/2016\/03\/img_56ddd948d8296.png","contentUrl":"http:\/\/www.dbarj.com.br\/wp-content\/uploads\/2016\/03\/img_56ddd948d8296.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbarj.com.br\/en\/2016\/03\/cannot-delete-service-template-instance-associated\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.dbarj.com.br\/en\/"},{"@type":"ListItem","position":2,"name":"Cannot delete service template. Service instance(s) are associated to this template."}]},{"@type":"WebSite","@id":"https:\/\/www.dbarj.com.br\/en\/#website","url":"https:\/\/www.dbarj.com.br\/en\/","name":"DBA - Rodrigo Jorge - Oracle Tips and Guides","description":"Blog about Databases, Security and High Availability","publisher":{"@id":"https:\/\/www.dbarj.com.br\/en\/#\/schema\/person\/28a44ca3a6633fe4156ad1ea209d40a9"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbarj.com.br\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.dbarj.com.br\/en\/#\/schema\/person\/28a44ca3a6633fe4156ad1ea209d40a9","name":"DBA RJ","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/09\/RodrigoJorgePOUG19.png","url":"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/09\/RodrigoJorgePOUG19.png","contentUrl":"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/09\/RodrigoJorgePOUG19.png","width":712,"height":712,"caption":"DBA RJ"},"logo":{"@id":"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/09\/RodrigoJorgePOUG19.png"}}]}},"_links":{"self":[{"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/posts\/2099","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/comments?post=2099"}],"version-history":[{"count":0,"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/posts\/2099\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/media?parent=2099"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/categories?post=2099"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/tags?post=2099"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}