{"id":13918,"date":"2020-04-08T14:36:20","date_gmt":"2020-04-08T12:36:20","guid":{"rendered":"https:\/\/www.dbi-services.com\/blog\/cleanup-a-failed-oracle-xe-installation-on-linux-mint\/"},"modified":"2020-04-08T14:36:20","modified_gmt":"2020-04-08T12:36:20","slug":"cleanup-a-failed-oracle-xe-installation-on-linux-mint","status":"publish","type":"post","link":"https:\/\/www.dbi-services.com\/blog\/cleanup-a-failed-oracle-xe-installation-on-linux-mint\/","title":{"rendered":"Cleanup a failed Oracle XE installation on Linux Mint"},"content":{"rendered":"<p>On <a href=\"https:\/\/www.dbi-services.com\/blog\/setup-oracle-xe-on-linux-mint-a-funny-exercise\">this Blog<\/a> I described on how to install Oracle XE on a current Linux Mint version (19.3. Tricia when writing the Blog). After the conversion of the Oracle provided rpm to a deb installation file with the tool alien, you can install the Oracle XE software with a simple command<\/p>\n<pre><code>\nroot@clemens-TravelMate:\/opt\/distr# dpkg -i oracle-database-xe-18c_1.0-2_amd64.deb\n<\/code><\/pre>\n<p>If the installation fails or the XE database cannot be created with the configuration script later on, then you have to be able to remove the software again and do the cleanup on the system. However, this is often not possible that easily with &#8220;dpkg -r oracle-database-xe-18c&#8221;, because the pre-removal script or post-removal script may fail leaving the deb-repository untouched.<\/p>\n<p>To remove the software you may follow the steps below:<\/p>\n<p>REMARK: It is assumed here that there is no other Oracle installation in the oraInventory.<\/p>\n<p>1.) Make sure the Listener and the XE database is stopped<\/p>\n<p>If there is no other way then you may kill the listener and pmon process with e.g.<\/p>\n<pre><code>\nroot@clemens-TravelMate:~# kill -9 $(ps -ef | grep tnslsnr | grep -v grep | tr -s \" \" | cut -d \" \" -f2)\nroot@clemens-TravelMate:~# kill -9 $(ps -ef | grep pmon | grep -v grep | tr -s \" \" | cut -d \" \" -f2)\n<\/code><\/pre>\n<p>2.) Skip the pre-removal skript by just putting an &#8220;exit 0&#8221; at the beginning of it<\/p>\n<pre><code>\nroot@clemens-TravelMate:~# vi \/var\/lib\/dpkg\/info\/oracle-database-xe-18c.prerm\n...\nroot@clemens-TravelMate:~# head -2 \/var\/lib\/dpkg\/info\/oracle-database-xe-18c.prerm\n#!\/bin\/bash\nexit 0\n<\/code><\/pre>\n<p>3.) Remove the Oracle installation<\/p>\n<pre><code>\nroot@clemens-TravelMate:~# rm \/etc\/oratab \/etc\/oraInst.loc\nroot@clemens-TravelMate:~# rm -rf \/opt\/oracle\/*\n<\/code><\/pre>\n<p>Remark: Removing the oraInst.loc ensures that the postrm-script \/var\/lib\/dpkg\/info\/oracle-database-xe-18c.postrm is skipped.<\/p>\n<p>4.) Remove the deb-package<\/p>\n<pre><code>\nroot@clemens-TravelMate:~# dpkg --purge --force-all oracle-database-xe-18c\n<\/code><\/pre>\n<p>5.) Cleanup some other files<\/p>\n<pre><code>\nroot@clemens-TravelMate:~# rm -rf \/var\/tmp\/.oracle\nroot@clemens-TravelMate:~# rm -rf \/opt\/ORCLfmap\/\n<\/code><\/pre>\n<p>Done.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>On this Blog I described on how to install Oracle XE on a current Linux Mint version (19.3. Tricia when writing the Blog). After the conversion of the Oracle provided rpm to a deb installation file with the tool alien, you can install the Oracle XE software with a simple command root@clemens-TravelMate:\/opt\/distr# dpkg -i oracle-database-xe-18c_1.0-2_amd64.deb [&hellip;]<\/p>\n","protected":false},"author":35,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[59],"tags":[1894,1893,1895],"type_dbi":[],"class_list":["post-13918","post","type-post","status-publish","format-standard","hentry","category-oracle","tag-cleanup","tag-linux-mint","tag-oracle-xe"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.2 (Yoast SEO v27.2) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Cleanup a failed Oracle XE installation on Linux Mint - dbi Blog<\/title>\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.dbi-services.com\/blog\/cleanup-a-failed-oracle-xe-installation-on-linux-mint\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Cleanup a failed Oracle XE installation on Linux Mint\" \/>\n<meta property=\"og:description\" content=\"On this Blog I described on how to install Oracle XE on a current Linux Mint version (19.3. Tricia when writing the Blog). After the conversion of the Oracle provided rpm to a deb installation file with the tool alien, you can install the Oracle XE software with a simple command root@clemens-TravelMate:\/opt\/distr# dpkg -i oracle-database-xe-18c_1.0-2_amd64.deb [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dbi-services.com\/blog\/cleanup-a-failed-oracle-xe-installation-on-linux-mint\/\" \/>\n<meta property=\"og:site_name\" content=\"dbi Blog\" \/>\n<meta property=\"article:published_time\" content=\"2020-04-08T12:36:20+00:00\" \/>\n<meta name=\"author\" content=\"Clemens Bleile\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@ifgtxD2SrQ8r!YuXj\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Clemens Bleile\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/cleanup-a-failed-oracle-xe-installation-on-linux-mint\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/cleanup-a-failed-oracle-xe-installation-on-linux-mint\/\"},\"author\":{\"name\":\"Clemens Bleile\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/0ac04011f60f2e93c115358d0789c2da\"},\"headline\":\"Cleanup a failed Oracle XE installation on Linux Mint\",\"datePublished\":\"2020-04-08T12:36:20+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/cleanup-a-failed-oracle-xe-installation-on-linux-mint\/\"},\"wordCount\":217,\"commentCount\":0,\"keywords\":[\"cleanup\",\"linux mint\",\"oracle xe\"],\"articleSection\":[\"Oracle\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/cleanup-a-failed-oracle-xe-installation-on-linux-mint\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/cleanup-a-failed-oracle-xe-installation-on-linux-mint\/\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/cleanup-a-failed-oracle-xe-installation-on-linux-mint\/\",\"name\":\"Cleanup a failed Oracle XE installation on Linux Mint - dbi Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\"},\"datePublished\":\"2020-04-08T12:36:20+00:00\",\"author\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/0ac04011f60f2e93c115358d0789c2da\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/cleanup-a-failed-oracle-xe-installation-on-linux-mint\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/cleanup-a-failed-oracle-xe-installation-on-linux-mint\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/cleanup-a-failed-oracle-xe-installation-on-linux-mint\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\/\/www.dbi-services.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Cleanup a failed Oracle XE installation on Linux Mint\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/\",\"name\":\"dbi Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/0ac04011f60f2e93c115358d0789c2da\",\"name\":\"Clemens Bleile\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/1f596609fc67cb28ed714e7bccc81ed4cd73b8582a8148a490c77daeb2fde21a?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/1f596609fc67cb28ed714e7bccc81ed4cd73b8582a8148a490c77daeb2fde21a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/1f596609fc67cb28ed714e7bccc81ed4cd73b8582a8148a490c77daeb2fde21a?s=96&d=mm&r=g\",\"caption\":\"Clemens Bleile\"},\"description\":\"Clemens Bleile has more than 30 years of IT experience, thirteen in Oracle Support and fifteen in Oracle Consulting. He is specialized in Oracle Database Performance Tuning (SQL Tuning, DB Tuning) and developing an Oracle DB IT architecture (highly available, low-maintenance, cost efficient storage of data). He is an expert in problem analysis and resolution. Prior to joining dbi services, Clemens Bleile was Manager of the EMEA Database Performance team at the Oracle Global Customer Support Services. Clemens Bleile is Oracle Certified Professional 11g, 12c and Oracle Certified Expert for Performance Management and Tuning and holds a Master Degree, Business Information Systems from the Fachhochschule Furtwangen, Germany.\",\"sameAs\":[\"https:\/\/www.dbi-services.com\",\"https:\/\/x.com\/ifgtxD2SrQ8r!YuXj\"],\"url\":\"https:\/\/www.dbi-services.com\/blog\/author\/clemens-bleile\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Cleanup a failed Oracle XE installation on Linux Mint - dbi Blog","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.dbi-services.com\/blog\/cleanup-a-failed-oracle-xe-installation-on-linux-mint\/","og_locale":"en_US","og_type":"article","og_title":"Cleanup a failed Oracle XE installation on Linux Mint","og_description":"On this Blog I described on how to install Oracle XE on a current Linux Mint version (19.3. Tricia when writing the Blog). After the conversion of the Oracle provided rpm to a deb installation file with the tool alien, you can install the Oracle XE software with a simple command root@clemens-TravelMate:\/opt\/distr# dpkg -i oracle-database-xe-18c_1.0-2_amd64.deb [&hellip;]","og_url":"https:\/\/www.dbi-services.com\/blog\/cleanup-a-failed-oracle-xe-installation-on-linux-mint\/","og_site_name":"dbi Blog","article_published_time":"2020-04-08T12:36:20+00:00","author":"Clemens Bleile","twitter_card":"summary_large_image","twitter_creator":"@ifgtxD2SrQ8r!YuXj","twitter_misc":{"Written by":"Clemens Bleile","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbi-services.com\/blog\/cleanup-a-failed-oracle-xe-installation-on-linux-mint\/#article","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/cleanup-a-failed-oracle-xe-installation-on-linux-mint\/"},"author":{"name":"Clemens Bleile","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/0ac04011f60f2e93c115358d0789c2da"},"headline":"Cleanup a failed Oracle XE installation on Linux Mint","datePublished":"2020-04-08T12:36:20+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/cleanup-a-failed-oracle-xe-installation-on-linux-mint\/"},"wordCount":217,"commentCount":0,"keywords":["cleanup","linux mint","oracle xe"],"articleSection":["Oracle"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbi-services.com\/blog\/cleanup-a-failed-oracle-xe-installation-on-linux-mint\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbi-services.com\/blog\/cleanup-a-failed-oracle-xe-installation-on-linux-mint\/","url":"https:\/\/www.dbi-services.com\/blog\/cleanup-a-failed-oracle-xe-installation-on-linux-mint\/","name":"Cleanup a failed Oracle XE installation on Linux Mint - dbi Blog","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/#website"},"datePublished":"2020-04-08T12:36:20+00:00","author":{"@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/0ac04011f60f2e93c115358d0789c2da"},"breadcrumb":{"@id":"https:\/\/www.dbi-services.com\/blog\/cleanup-a-failed-oracle-xe-installation-on-linux-mint\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbi-services.com\/blog\/cleanup-a-failed-oracle-xe-installation-on-linux-mint\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbi-services.com\/blog\/cleanup-a-failed-oracle-xe-installation-on-linux-mint\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/www.dbi-services.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Cleanup a failed Oracle XE installation on Linux Mint"}]},{"@type":"WebSite","@id":"https:\/\/www.dbi-services.com\/blog\/#website","url":"https:\/\/www.dbi-services.com\/blog\/","name":"dbi Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/0ac04011f60f2e93c115358d0789c2da","name":"Clemens Bleile","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/1f596609fc67cb28ed714e7bccc81ed4cd73b8582a8148a490c77daeb2fde21a?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/1f596609fc67cb28ed714e7bccc81ed4cd73b8582a8148a490c77daeb2fde21a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1f596609fc67cb28ed714e7bccc81ed4cd73b8582a8148a490c77daeb2fde21a?s=96&d=mm&r=g","caption":"Clemens Bleile"},"description":"Clemens Bleile has more than 30 years of IT experience, thirteen in Oracle Support and fifteen in Oracle Consulting. He is specialized in Oracle Database Performance Tuning (SQL Tuning, DB Tuning) and developing an Oracle DB IT architecture (highly available, low-maintenance, cost efficient storage of data). He is an expert in problem analysis and resolution. Prior to joining dbi services, Clemens Bleile was Manager of the EMEA Database Performance team at the Oracle Global Customer Support Services. Clemens Bleile is Oracle Certified Professional 11g, 12c and Oracle Certified Expert for Performance Management and Tuning and holds a Master Degree, Business Information Systems from the Fachhochschule Furtwangen, Germany.","sameAs":["https:\/\/www.dbi-services.com","https:\/\/x.com\/ifgtxD2SrQ8r!YuXj"],"url":"https:\/\/www.dbi-services.com\/blog\/author\/clemens-bleile\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/13918","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/users\/35"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/comments?post=13918"}],"version-history":[{"count":0,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/13918\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media?parent=13918"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/categories?post=13918"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/tags?post=13918"},{"taxonomy":"type","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/type_dbi?post=13918"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}