{"id":216,"date":"2017-08-22T23:05:41","date_gmt":"2017-08-22T23:05:41","guid":{"rendered":"http:\/\/www.mrmarkyoung.com\/oracle\/?p=216"},"modified":"2018-06-05T17:04:39","modified_gmt":"2018-06-05T07:04:39","slug":"what-is-using-temp","status":"publish","type":"post","link":"http:\/\/www.mrmarkyoung.com\/oracle\/2017\/08\/22\/what-is-using-temp\/","title":{"rendered":"What is using TEMP"},"content":{"rendered":"<p>We need to resize temp, but trying to resize hangs. Lets see what is using TEMP <\/p>\n<pre class=\"lang:default decode:true \" >SELECT tu.username,\r\n       s.sid,\r\n       s.serial#,\r\n       S.MACHINE,\r\n       s.inst_id,\r\n       tu.tablespace\r\n  FROM gv$tempseg_usage tu, gv$session s\r\n WHERE tu.session_addr = s.saddr;\r\n<\/pre>\n<p>DBSNMP\t1715\t99\tmyhost\t1\tTEMP2<\/p>\n<p>You can either wait for the sessions to complete or in my case, it was the agent that was accessing it so we can kill it.<\/p>\n<pre class=\"lang:default decode:true \" >alter system kill session '1715,99' immediate;<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>We need to resize temp, but trying to resize hangs. Lets see what is using TEMP SELECT tu.username, s.sid, s.serial#, S.MACHINE, s.inst_id, tu.tablespace FROM gv$tempseg_usage tu, gv$session s WHERE tu.session_addr = s.saddr; DBSNMP 1715 99 myhost 1 TEMP2 You can either wait for the sessions to complete or in my case, it was the agent &#8230; <a title=\"What is using TEMP\" class=\"read-more\" href=\"http:\/\/www.mrmarkyoung.com\/oracle\/2017\/08\/22\/what-is-using-temp\/\" aria-label=\"Read more about What is using TEMP\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[55],"class_list":["post-216","post","type-post","status-publish","format-standard","hentry","category-oracle-database","tag-temp"],"_links":{"self":[{"href":"http:\/\/www.mrmarkyoung.com\/oracle\/wp-json\/wp\/v2\/posts\/216","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.mrmarkyoung.com\/oracle\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.mrmarkyoung.com\/oracle\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.mrmarkyoung.com\/oracle\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.mrmarkyoung.com\/oracle\/wp-json\/wp\/v2\/comments?post=216"}],"version-history":[{"count":3,"href":"http:\/\/www.mrmarkyoung.com\/oracle\/wp-json\/wp\/v2\/posts\/216\/revisions"}],"predecessor-version":[{"id":219,"href":"http:\/\/www.mrmarkyoung.com\/oracle\/wp-json\/wp\/v2\/posts\/216\/revisions\/219"}],"wp:attachment":[{"href":"http:\/\/www.mrmarkyoung.com\/oracle\/wp-json\/wp\/v2\/media?parent=216"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.mrmarkyoung.com\/oracle\/wp-json\/wp\/v2\/categories?post=216"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.mrmarkyoung.com\/oracle\/wp-json\/wp\/v2\/tags?post=216"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}