{"id":322,"date":"2013-02-26T14:05:04","date_gmt":"2013-02-26T12:05:04","guid":{"rendered":"http:\/\/www.itgurus.de\/?p=322"},"modified":"2022-05-05T15:09:20","modified_gmt":"2022-05-05T13:09:20","slug":"oracle-tempfile-anpassen","status":"publish","type":"post","link":"https:\/\/www.itgurus-uk.com\/?p=322","title":{"rendered":"Oracle tempfile anpassen"},"content":{"rendered":"<p><em>&#8211; sqlplus<br \/>\nALTER DATABASE TEMPFILE &#8218;\/oracle\/DV1\/sapdata3\/temp_1\/temp.data1&#8216; OFFLINE;<\/em><\/p>\n<p>&#8211; unix<br \/>\ndd if=\/oracle\/DV1\/sapdata3\/temp_1\/temp.data1 of=\/usr\/sap\/export\/SAPTMP\/temp.data1.new bs=64k<\/p>\n<p>check: du -k \/oracle\/DV1\/sapdata3\/temp_1\/temp.data1 du -k \/usr\/sap\/export\/SAPTMP\/temp.data1.new<\/p>\n<p>mv \/usr\/sap\/export\/SAPTMP\/temp.data1.new \/oracle\/DV1\/sapdata3\/temp_1\/temp.data1<\/p>\n<p>-sqlplus<br \/>\nALTER DATABASE TEMPFILE &#8218;\/oracle\/DV1\/sapdata3\/temp_1\/temp.data1&#8216; ONLINE;<\/p>\n<p>&#8211; unix<br \/>\nCheck \u00a0du -sk \/oracle\/DV1\/sapdata3\/temp_1\/<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Mit Script durchf\u00fchren:<\/strong><\/p>\n<ol>\n<li>sh erstellen und script einf\u00fcgen.<br \/>\n# vi x.s<br \/>\n==============================script Anfang<br \/>\n<span style=\"font-size:0.7em\"><em>#!\/usr\/bin\/ksh sqlplus &#8218;\/as sysdba&#8216; &lt;&lt;EOF &gt;\/tmp\/out.sql<br \/>\nset linesize 1024<br \/>\nset head off<br \/>\nselect &#8218;SELECT alter database datafile #&#8216; || FILE_NAME || &#8218;# AUTOEXTEND OFF;&#8216; from dba_data_files;<br \/>\nEOF<br \/>\ncat \/tmp\/out.sql | grep &#8218;SELECT&#8216; | sed &#8217;s\/SELECT\/\/&#8216; | sed &#8222;s\/#\/&#8217;\/g&#8220; | while read line do echo $line<br \/>\ndone<br \/>\nrm \/tmp\/out.sql<br \/>\n<\/em><\/span><br \/>\n==============================Ende<\/li>\n<li>Ausf\u00fchren:<br \/>\n<em># .\/x.sh &gt; change.sql<br \/>\n# sqlplus &#8218;\/as sysdba&#8216;<\/p>\n<p><\/em><em>sql&gt; @change.sql<\/em><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8211; sqlplus ALTER DATABASE TEMPFILE &#8218;\/oracle\/DV1\/sapdata3\/temp_1\/temp.data1&#8216; OFFLINE; &#8211; unix dd if=\/oracle\/DV1\/sapdata3\/temp_1\/temp.data1 of=\/usr\/sap\/export\/SAPTMP\/temp.data1.new bs=64k check: du -k \/oracle\/DV1\/sapdata3\/temp_1\/temp.data1 du -k \/usr\/sap\/export\/SAPTMP\/temp.data1.new mv&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,2],"tags":[],"class_list":["post-322","post","type-post","status-publish","format-standard","hentry","category-allgemein","category-oracle"],"_links":{"self":[{"href":"https:\/\/www.itgurus-uk.com\/index.php?rest_route=\/wp\/v2\/posts\/322","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itgurus-uk.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itgurus-uk.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itgurus-uk.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itgurus-uk.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=322"}],"version-history":[{"count":1,"href":"https:\/\/www.itgurus-uk.com\/index.php?rest_route=\/wp\/v2\/posts\/322\/revisions"}],"predecessor-version":[{"id":2556,"href":"https:\/\/www.itgurus-uk.com\/index.php?rest_route=\/wp\/v2\/posts\/322\/revisions\/2556"}],"wp:attachment":[{"href":"https:\/\/www.itgurus-uk.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=322"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itgurus-uk.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=322"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itgurus-uk.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=322"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}