{"id":6887,"date":"2014-02-01T18:04:33","date_gmt":"2014-02-01T22:04:33","guid":{"rendered":"http:\/\/onlineappsdba.com\/?p=6887"},"modified":"2014-02-01T19:33:12","modified_gmt":"2014-02-01T23:33:12","slug":"adding-temp-file-in-temporary-tablespace-ora-01652-unable-to-extend-temp-segment-by-128-in-tablespace","status":"publish","type":"post","link":"https:\/\/onlineappsdba.com\/index.php\/2014\/02\/01\/adding-temp-file-in-temporary-tablespace-ora-01652-unable-to-extend-temp-segment-by-128-in-tablespace\/","title":{"rendered":"Adding Temp File in Temporary tablespace  ORA-01652: unable to extend temp segment by 128 in tablespace"},"content":{"rendered":"<p>.<\/p>\n<p>I recently encountered issue <strong>ORA-01652 unable to extend temp segment\u00a0by 128 in tablespace\u00a0DEV_IAS_TEMP<\/strong> while upgrade of application which is self explanatory.<\/p>\n<p>If you hit above error then check <strong>v$sort_segment<\/strong><\/p>\n<p>_______<\/p>\n<p>SQL&gt; SELECT TABLESPACE_NAME,TOTAL_BLOCKS,USED_BLOCKS,FREE_BLOCKS FROM V$SORT_SEGMENT;<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Output in my case\u00a0<\/strong><\/p>\n<p><span style=\"color: #ff0000;\">TABLESPACE_NAME\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 TOTAL_BLOCKS USED_BLOCKS FREE_BLOCKS <\/span><\/p>\n<p><span style=\"color: #ff0000;\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8211; <\/span><\/p>\n<p><span style=\"color: #ff0000;\">TEMP\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 3584\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 3584<\/span><br \/>\n<span style=\"color: #ff0000;\">DEV_IAS_TEMP\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 12672\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 12672<\/span><\/p>\n<p>_________<\/p>\n<p>&nbsp;<\/p>\n<p>To fix this issue, I added additional <strong>1GB<\/strong> temp file in temporary tablespace reported in error (<strong>DEV_IAS_TEMP<\/strong>)<\/p>\n<p>&nbsp;<\/p>\n<p><strong>1.<\/strong> Identity <strong>name<\/strong> &amp; <strong>location<\/strong> of temp file in tablespace<\/p>\n<p><strong>SQL&gt; select * from dba_temp_files where tablespace_name like &#8216;DEV_IAS_TEMP&#8217;;<\/strong><\/p>\n<p><strong>\/u01\/app\/oracle\/oradata\/iamdb\/dev_iastemp.dbf<\/strong> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 13 DEV_IAS_TEMP\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 104857600\u00a0\u00a0\u00a0\u00a0\u00a0 12800 ONLINE \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1 NO\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0\u00a0 103809024\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 12672<\/p>\n<p><strong>2.<\/strong> Add additional temp file in temporary tablespace<\/p>\n<p><strong>SQL&gt; ALTER TABLESPACE DEV_IAS_TEMP ADD TEMPFILE &#8216;\/u01\/ app\/oracle\/ oradata\/ iamdb\/ dev_iastemp02.dbf&#8217; size 1024m;<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"text-decoration: underline;\"><strong>Related\/References<\/strong><\/span><\/p>\n<ul>\n<li>793380.1 \u00a0ORA-1652 Error Troubleshooting<\/li>\n<li><a href=\"http:\/\/docs.oracle.com\/cd\/B28359_01\/server.111\/b28318\/logical.htm#CNCPT004\">Data Blocks, Extents, Segments<\/a><\/li>\n<li>161357.1 \u00a0ORA-1652 Out of Space Errors in the Databases TEMPORARY Tablespace<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>. I recently encountered issue ORA-01652 unable to extend temp segment\u00a0by 128 in tablespace\u00a0DEV_IAS_TEMP while upgrade of application which is [&hellip;]<\/p>\n","protected":false},"author":115,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[424],"tags":[],"class_list":["post-6887","post","type-post","status-publish","format-standard","hentry","category-database"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Adding Temp File in Temporary tablespace ORA-01652: unable to extend temp segment by 128 in tablespace -<\/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:\/\/onlineappsdba.com\/index.php\/2014\/02\/01\/adding-temp-file-in-temporary-tablespace-ora-01652-unable-to-extend-temp-segment-by-128-in-tablespace\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Adding Temp File in Temporary tablespace ORA-01652: unable to extend temp segment by 128 in tablespace -\" \/>\n<meta property=\"og:description\" content=\". I recently encountered issue ORA-01652 unable to extend temp segment\u00a0by 128 in tablespace\u00a0DEV_IAS_TEMP while upgrade of application which is [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/onlineappsdba.com\/index.php\/2014\/02\/01\/adding-temp-file-in-temporary-tablespace-ora-01652-unable-to-extend-temp-segment-by-128-in-tablespace\/\" \/>\n<meta property=\"article:published_time\" content=\"2014-02-01T22:04:33+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2014-02-01T23:33:12+00:00\" \/>\n<meta name=\"author\" content=\"Masroof Ahmad\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Masroof Ahmad\" \/>\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\":\"WebPage\",\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2014\/02\/01\/adding-temp-file-in-temporary-tablespace-ora-01652-unable-to-extend-temp-segment-by-128-in-tablespace\/\",\"url\":\"https:\/\/onlineappsdba.com\/index.php\/2014\/02\/01\/adding-temp-file-in-temporary-tablespace-ora-01652-unable-to-extend-temp-segment-by-128-in-tablespace\/\",\"name\":\"Adding Temp File in Temporary tablespace ORA-01652: unable to extend temp segment by 128 in tablespace -\",\"isPartOf\":{\"@id\":\"https:\/\/onlineappsdba.com\/#website\"},\"datePublished\":\"2014-02-01T22:04:33+00:00\",\"dateModified\":\"2014-02-01T23:33:12+00:00\",\"author\":{\"@id\":\"https:\/\/onlineappsdba.com\/#\/schema\/person\/909a876ed58d400faf82caf81d61bfdb\"},\"breadcrumb\":{\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2014\/02\/01\/adding-temp-file-in-temporary-tablespace-ora-01652-unable-to-extend-temp-segment-by-128-in-tablespace\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/onlineappsdba.com\/index.php\/2014\/02\/01\/adding-temp-file-in-temporary-tablespace-ora-01652-unable-to-extend-temp-segment-by-128-in-tablespace\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2014\/02\/01\/adding-temp-file-in-temporary-tablespace-ora-01652-unable-to-extend-temp-segment-by-128-in-tablespace\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/onlineappsdba.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Adding Temp File in Temporary tablespace ORA-01652: unable to extend temp segment by 128 in tablespace\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/onlineappsdba.com\/#website\",\"url\":\"https:\/\/onlineappsdba.com\/\",\"name\":\"\",\"description\":\"Oracle Implementation &amp; Training Experts\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/onlineappsdba.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/onlineappsdba.com\/#\/schema\/person\/909a876ed58d400faf82caf81d61bfdb\",\"name\":\"Masroof Ahmad\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/onlineappsdba.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/10f9db7bdbbd7f9ccfbe9b2d208e5978fc28315e9c704383e639a926ea0fce5f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/10f9db7bdbbd7f9ccfbe9b2d208e5978fc28315e9c704383e639a926ea0fce5f?s=96&d=mm&r=g\",\"caption\":\"Masroof Ahmad\"},\"url\":\"https:\/\/onlineappsdba.com\/index.php\/author\/masroof\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Adding Temp File in Temporary tablespace ORA-01652: unable to extend temp segment by 128 in tablespace -","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:\/\/onlineappsdba.com\/index.php\/2014\/02\/01\/adding-temp-file-in-temporary-tablespace-ora-01652-unable-to-extend-temp-segment-by-128-in-tablespace\/","og_locale":"en_US","og_type":"article","og_title":"Adding Temp File in Temporary tablespace ORA-01652: unable to extend temp segment by 128 in tablespace -","og_description":". I recently encountered issue ORA-01652 unable to extend temp segment\u00a0by 128 in tablespace\u00a0DEV_IAS_TEMP while upgrade of application which is [&hellip;]","og_url":"https:\/\/onlineappsdba.com\/index.php\/2014\/02\/01\/adding-temp-file-in-temporary-tablespace-ora-01652-unable-to-extend-temp-segment-by-128-in-tablespace\/","article_published_time":"2014-02-01T22:04:33+00:00","article_modified_time":"2014-02-01T23:33:12+00:00","author":"Masroof Ahmad","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Masroof Ahmad","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/onlineappsdba.com\/index.php\/2014\/02\/01\/adding-temp-file-in-temporary-tablespace-ora-01652-unable-to-extend-temp-segment-by-128-in-tablespace\/","url":"https:\/\/onlineappsdba.com\/index.php\/2014\/02\/01\/adding-temp-file-in-temporary-tablespace-ora-01652-unable-to-extend-temp-segment-by-128-in-tablespace\/","name":"Adding Temp File in Temporary tablespace ORA-01652: unable to extend temp segment by 128 in tablespace -","isPartOf":{"@id":"https:\/\/onlineappsdba.com\/#website"},"datePublished":"2014-02-01T22:04:33+00:00","dateModified":"2014-02-01T23:33:12+00:00","author":{"@id":"https:\/\/onlineappsdba.com\/#\/schema\/person\/909a876ed58d400faf82caf81d61bfdb"},"breadcrumb":{"@id":"https:\/\/onlineappsdba.com\/index.php\/2014\/02\/01\/adding-temp-file-in-temporary-tablespace-ora-01652-unable-to-extend-temp-segment-by-128-in-tablespace\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/onlineappsdba.com\/index.php\/2014\/02\/01\/adding-temp-file-in-temporary-tablespace-ora-01652-unable-to-extend-temp-segment-by-128-in-tablespace\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/onlineappsdba.com\/index.php\/2014\/02\/01\/adding-temp-file-in-temporary-tablespace-ora-01652-unable-to-extend-temp-segment-by-128-in-tablespace\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/onlineappsdba.com\/"},{"@type":"ListItem","position":2,"name":"Adding Temp File in Temporary tablespace ORA-01652: unable to extend temp segment by 128 in tablespace"}]},{"@type":"WebSite","@id":"https:\/\/onlineappsdba.com\/#website","url":"https:\/\/onlineappsdba.com\/","name":"","description":"Oracle Implementation &amp; Training Experts","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/onlineappsdba.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/onlineappsdba.com\/#\/schema\/person\/909a876ed58d400faf82caf81d61bfdb","name":"Masroof Ahmad","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/onlineappsdba.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/10f9db7bdbbd7f9ccfbe9b2d208e5978fc28315e9c704383e639a926ea0fce5f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/10f9db7bdbbd7f9ccfbe9b2d208e5978fc28315e9c704383e639a926ea0fce5f?s=96&d=mm&r=g","caption":"Masroof Ahmad"},"url":"https:\/\/onlineappsdba.com\/index.php\/author\/masroof\/"}]}},"_links":{"self":[{"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/posts\/6887","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/users\/115"}],"replies":[{"embeddable":true,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/comments?post=6887"}],"version-history":[{"count":0,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/posts\/6887\/revisions"}],"wp:attachment":[{"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/media?parent=6887"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/categories?post=6887"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/tags?post=6887"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}