{"id":198606,"date":"2013-10-23T09:42:03","date_gmt":"2013-10-23T05:42:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=198606"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=198606","title":{"rendered":"<span class=\"post_title\">\u0420\u0430\u0437\u0434\u0443\u0432\u0430\u0435\u043c \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0438 \u043f\u043e\u0436\u0438\u0440\u0430\u0435\u043c tablespaces<\/span>"},"content":{"rendered":"<div class=\"content html_format\"> \t\t\t<img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/b10\/082\/efa\/b10082efadc1f382b4f1f804340901dc.jpg\"\/><br \/>  <s>\u041a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 \u0434\u043b\u044f \u043f\u0440\u0438\u0434\u0430\u043d\u0438\u044f \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f<\/s><\/p>\n<h4>\u0414\u043e\u0431\u0440\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0441\u0443\u0442\u043e\u043a!<\/h4>\n<p>  \u0412 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435 \u0432\u043e\u043e\u0431\u0449\u0435 \u0438 \u043d\u0430 \u0425\u0430\u0431\u0440\u0435 \u0432 \u0447\u0430\u0441\u0442\u043d\u043e\u0441\u0442\u0438 \u043d\u0435\u043c\u0430\u043b\u043e \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0439 \u043e \u0440\u0435\u043c\u043e\u043d\u0442\u0435 \u0431\u0438\u0442\u044b\u0445 \u0431\u043b\u043e\u043a\u043e\u0432. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0437\u0434\u0435\u0441\u044c \u043e \u0432\u044b\u0434\u0435\u0440\u0433\u0438\u0432\u0430\u043d\u0438\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/155075\/\">\u043d\u0435\u043f\u043e\u0432\u0440\u0435\u0436\u0434\u0435\u043d\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445<\/a>, \u0430 \u0442\u0443\u0442 \u0438\u0441\u0442\u043e\u0440\u0438\u044f \u043f\u043e\u0431\u0435\u0434\u044b \u043d\u0430\u0434 \u0431\u0438\u0442\u044b\u043c <a href=\"http:\/\/habrahabr.ru\/post\/162319\/\">LOB \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u043e\u043c<\/a>.<\/p>\n<p>  \u041f\u0440\u0438\u0432\u043e\u0434\u0438\u0442\u044c \u043b\u0435\u0433\u0438\u043e\u043d\u044b \u0441\u0441\u044b\u043b\u043e\u043a \u043d\u0430 \u0438\u043d\u0435\u0442 \u0441 \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u043c\u0438 \u0441\u0442\u0430\u0442\u044c\u044f\u043c\u0438 \u043d\u0435 \u0431\u0443\u0434\u0443. \u041d\u043e \u0435\u0441\u0442\u044c \u0432 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0435 \u044d\u0442\u0438\u0445 \u0441\u0442\u0430\u0442\u0435\u0439 \u043e\u0431\u0449\u0430\u044f \u0447\u0435\u0440\u0442\u0430. \u041a\u043e\u0433\u0434\u0430 \u0434\u0430\u043d\u043d\u044b\u0435 \u0441\u043f\u0430\u0441\u0435\u043d\u044b (\u0438\u043b\u0438 \u0443\u043d\u0438\u0447\u0442\u043e\u0436\u0435\u043d\u044b, \u043a\u0430\u043a \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f), \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0431\u0435\u0434\u0438\u0442\u044c \u043f\u043e\u0432\u0440\u0435\u0436\u0434\u0435\u043d\u043d\u044b\u0439 free block \u0437\u0430\u0445\u0432\u0430\u0442\u043e\u043c \u0432\u0441\u0435\u0433\u043e \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0433\u043e \u043c\u0435\u0441\u0442\u0430 \u0432 tablespace. \u0418 \u043f\u043e\u0447\u0435\u043c\u0443 \u0442\u043e \u044d\u0442\u043e \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043e\u043f\u0438\u0441\u0430\u0442\u0435\u043b\u044c\u043d\u043e. <\/p>\n<p>  \u0422\u0430\u043a \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u0438\u043a\u0438! <br \/>  <a name=\"habracut\"><\/a><br \/>  \u041d\u0430\u043f\u0438\u0448\u0435\u043c \u0441\u043a\u0440\u0438\u043f\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043a\u0443\u0448\u0430\u0435\u0442 (\u043f\u043e\u0447\u0442\u0438 \u043a\u0430\u043a \u0440\u044b\u0431\u043a\u0438 \u043d\u0430 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435), \u0430 \u043f\u043e\u0442\u043e\u043c \u043e\u0441\u0432\u043e\u0431\u043e\u0434\u0438\u0442 \u0432\u0441\u0451 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0435 \u043c\u0435\u0441\u0442\u043e Oracle DB.<\/p>\n<h5>\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u044c.<\/h5>\n<p>  \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u043b\u0438 \u043d\u0430 \u043d\u0430\u0448\u0438 \u0431\u0438\u0442\u044b\u0435 \u0431\u043b\u043e\u043a\u0438:  <\/p>\n<pre><code class=\"sql\">select * from v$database_block_corruption; <\/code><\/pre>\n<p>  \u0423\u0431\u0435\u0434\u0438\u043b\u0438\u0441\u044c, \u0447\u0442\u043e \u043e\u043d\u0438 \u0435\u0441\u0442\u044c.<\/p>\n<p>  \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u043b\u0438 \u0442\u043e\u0447\u043d\u043e \u043b\u0438 \u0432\u0441\u0435 \u043d\u0430\u0448\u0438 \u0431\u043b\u043e\u043a\u0438 \u00abfree\u00bb(\u0432\u0434\u0440\u0443\u0433 \u0435\u0449\u0435 \u043e\u0434\u0438\u043d \u0441\u043b\u043e\u043c\u0430\u043d\u043d\u044b\u0439 \u0441\u0435\u0433\u043c\u0435\u043d\u0442 \u0437\u0430\u0442\u0435\u0440\u044f\u043b\u0441\u044f?):  <\/p>\n<pre><code class=\"sql\">SELECT e.owner, e.segment_type, e.segment_name, e.partition_name, c.file#      , greatest(e.block_id, c.block#) corr_start_block#      , least(e.block_id+e.blocks-1, c.block#+c.blocks-1) corr_end_block#      , least(e.block_id+e.blocks-1, c.block#+c.blocks-1)         - greatest(e.block_id, c.block#) + 1 blocks_corrupted      , null description   FROM dba_extents e, v$database_block_corruption c  WHERE e.file_id = c.file#    AND e.block_id &lt;= c.block# + c.blocks - 1    AND e.block_id + e.blocks - 1 &gt;= c.block# UNION SELECT s.owner, s.segment_type, s.segment_name, s.partition_name, c.file#      , header_block corr_start_block#      , header_block corr_end_block#      , 1 blocks_corrupted      , 'Segment Header' description   FROM dba_segments s, v$database_block_corruption c  WHERE s.header_file = c.file#    AND s.header_block between c.block# and c.block# + c.blocks - 1 UNION SELECT null owner, null segment_type, null segment_name, null partition_name, c.file#      , greatest(f.block_id, c.block#) corr_start_block#      , least(f.block_id+f.blocks-1, c.block#+c.blocks-1) corr_end_block#      , least(f.block_id+f.blocks-1, c.block#+c.blocks-1)         - greatest(f.block_id, c.block#) + 1 blocks_corrupted      , 'Free Block' description   FROM dba_free_space f, v$database_block_corruption c  WHERE f.file_id = c.file#    AND f.block_id &lt;= c.block# + c.blocks - 1    AND f.block_id + f.blocks - 1 &gt;= c.block# order by file#, corr_start_block#; <\/code><\/pre>\n<p>  \u041d\u0435 \u0437\u0430\u0431\u0443\u0434\u0435\u043c \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c autoextend \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \u043d\u0430\u0448\u0435\u0433\u043e TS \u0441 \u0431\u0438\u0442\u044b\u043c\u0438 free \u0431\u043b\u043e\u043a\u0430\u043c\u0438. \u041f\u043e\u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u044f \u0437\u0430\u0431\u044b\u0432\u0447\u0438\u0432\u043e\u0441\u0442\u0438 \u043c\u043e\u0433\u0443\u0442 \u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u0438\u044f\u0442\u043d\u044b\u043c\u0438.<br \/>  \u0414\u0430, \u00ab\u0441\u0436\u0430\u0442\u044c\u00bb \u0444\u0430\u0439\u043b\u044b \u043e\u0431\u0440\u0430\u0442\u043d\u043e \u043c\u043e\u0436\u043d\u043e \u0443\u0441\u043f\u0435\u0442\u044c. \u041d\u043e \u0437\u0430\u0447\u0435\u043c \u043d\u0430\u043c \u043b\u0438\u0448\u043d\u0438\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b?  <\/p>\n<pre><code class=\"sql\">select      'alter database datafile '||     file_name||     ' '||     ' autoextend off;' from      dba_data_files where TABLESPACE_NAME='PSAPSR3'; <\/code><\/pre>\n<p>  \u041f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u0441\u043f\u0438\u0441\u043e\u043a \u043a\u043e\u043c\u0430\u043d\u0434. \u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043b\u0438 \u0438\u0445. \u041f\u043e\u0442\u043e\u043c \u0442\u0430\u043a\u0438\u043c \u0436\u0435 \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u043c \u0441\u043f\u0438\u0441\u043e\u043a \u043a\u043e\u043c\u0430\u043d\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u0435\u0440\u043d\u0443\u0442 autoextend.<br \/>  \u041d\u043e \u0437\u0434\u0435\u0441\u044c \u043d\u0430\u0434\u043e \u0431\u044b\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c. \u041c\u043e\u0436\u0435\u0442 \u0434\u0430\u0442\u0430\u0444\u0430\u0439\u043b\u044b \u0440\u0430\u0441\u043f\u043e\u043b\u0430\u0433\u0430\u044e\u0442\u0441\u044f \u043d\u0430 \u0440\u0430\u0437\u043d\u044b\u0445 \u0434\u0438\u0441\u043a\u0430\u0445? \u0418 \u0443 \u043d\u0438\u0445 \u0440\u0430\u0437\u043d\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f? \u0417\u0434\u0435\u0441\u044c \u0441\u0442\u043e\u0438\u0442 \u0431\u044b\u0442\u044c \u0430\u043a\u043a\u0443\u0440\u0430\u0442\u043d\u0435\u0435.<\/p>\n<p>  (\u0414\u0430, \u043c\u043e\u044f \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u00ab\u0421\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0441\u0442 SAP BASIS\u00bb. \u042d\u0442\u0438\u043c \u0438 \u043e\u0431\u044a\u044f\u0441\u043d\u044f\u0435\u0442\u0441\u044f \u0432\u044b\u0431\u043e\u0440 \u0438\u043c\u0435\u043d\u0438 \u0434\u043b\u044f tablespace. \u0412\u0435\u0434\u044c \u043e\u0448\u0438\u0431\u043a\u0438 \u044f \u0432\u044b\u043d\u0443\u0436\u0434\u0435\u043d \u0447\u0438\u043d\u0438\u0442\u044c \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u0430\u043c.)<\/p>\n<p>  \u0418 \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0435\u043f\u0435\u0440\u044c, \u043a\u043e\u0433\u0434\u0430 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0448\u0430\u0433\u0438 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u044b.<\/p>\n<h5>\u041e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u044c<\/h5>\n<p>  \u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 Oracle \u0432 sqlplus \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e <a href=\"http:\/\/www.oracle.com\/technetwork\/developer-tools\/sql-developer\/downloads\/index.html\">SQL Developer<\/a>. \u0412 \u043d\u0435\u043c \u0435\u0441\u0442\u044c \u0432\u0441\u0435 \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e, \u0438 \u043d\u0435 \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u043d\u0435 \u043d\u0443\u0436\u043d\u043e.<\/p>\n<p>  \u0427\u0435\u0433\u043e \u043c\u044b \u0445\u043e\u0442\u0438\u043c? <br \/>  \u041f\u0435\u0440\u0435\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u044b\u0435 \u0431\u043b\u043e\u043a\u0438 tablespace. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0431\u0443\u0434\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u044b, \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u0438\u043c \u044d\u043a\u0441\u0442\u0435\u043d\u0442\u044b \u043f\u043e\u043a\u0430 \u043c\u0435\u0441\u0442\u043e \u043d\u0435 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u0442\u0441\u044f.<\/p>\n<p>  \u0412\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 \u0441\u043a\u0440\u0438\u043f\u0442\u0438\u043a PL\\SQL \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u0434\u0435\u043b\u0430\u0435\u0442 \u0442\u043e, \u0447\u0442\u043e \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e.  <\/p>\n<pre><code class=\"sql\">SET SERVEROUTPUT ON DECLARE type ARR_TABLE is table of varchar2(13); TBLS ARR_TABLE:=ARR_TABLE(); I number; SPACE_AVAILABLE float; --\u041a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0430 \u0441 \u0446\u0435\u043b\u0435\u0432\u044b\u043c tablespace TABLESPACE_FOR_FULL CONSTANT varchar2(20) := 'PSAPSR3'; --\u041a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0430 \u0441\u043e \u0441\u0445\u0435\u043c\u043e\u0439. \u041f\u043e\u0447\u0435\u043c\u0443 \u0431\u044b \u043d\u0435\u0442? USER_SCHEMA CONSTANT varchar2(20) := 'SAPSR3';  --\u0412\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u043c \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0435 \u043c\u0435\u0441\u0442\u043e \u0432 TS function TABLESPACE_FREESIZE(TN varchar2) return number as si number;  begin   SELECT round(sum(bytes)\/1048576,2) into si from DBA_FREE_SPACE where TABLESPACE_NAME = TN;   return SI; end TABLESPACE_FREESIZE;  --\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0438 \u0440\u0430\u0437\u0434\u0443\u0432\u0430\u043d\u0438\u0435 \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043f\u043e\u043a\u0430 \u043d\u0435 \u0432\u044b\u0441\u043a\u043e\u0447\u0438\u0442 ora-1653 procedure create_new_tables as   N number;   I number;   UNABLE_TO_EXTEND EXCEPTION;   PRAGMA EXCEPTION_INIT(UNABLE_TO_EXTEND,-1653); BEGIN   N:=TBLS.COUNT;   N:=N+1;   TBLS.extend;   TBLS(N):='TESTTABLE'||N;   execute immediate 'create table '||USER_SCHEMA||'.'||TBLS(n)||\\' (id number(10), USER_NAME varchar2(10), CREATE_DATE date) tablespace '||TABLESPACE_FOR_FULL;   commit;    WHILE true LOOP     begin       execute immediate 'alter table '||USER_SCHEMA||'.'||TBLS(n)||' allocate extent';       commit;       EXCEPTION       when UNABLE_TO_EXTEND then       EXIT;     end;   END LOOP;  end create_new_tables;  BEGIN --\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430   DBMS_OUTPUT.PUT_LINE( 'Time start: '||TO_CHAR(sysdate,  'DD-MM-YYYY HH24:MI:SS'));   SPACE_AVAILABLE:=TABLESPACE_FREESIZE(TABLESPACE_FOR_FULL);   DBMS_OUTPUT.PUT_LINE('Space available='||SPACE_AVAILABLE);  --\u0417\u0430\u043f\u0443\u0441\u043a    WHILE SPACE_AVAILABLE&gt;0.001 LOOP     CREATE_NEW_TABLES();     SPACE_AVAILABLE:=TABLESPACE_FREESIZE(TABLESPACE_FOR_FULL); --\u041a\u043e\u0433\u0434\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f TABLESPACE_FREESIZE \u043d\u0430\u0447\u043d\u0435\u0442 \u0432\u044b\u0434\u0430\u0432\u0430\u0442\u044c NULL \u0432\u043c\u0435\u0441\u0442\u043e \u0447\u0438\u0441\u043b\u0430 - \u0446\u0438\u043a\u043b \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f.   end LOOP;  --\u041e\u0447\u0438\u0441\u0442\u043a\u0430 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0430\u0431\u043b\u0438\u0446   for I in 1..TBLS.COUNT LOOP     execute immediate 'drop table '||USER_SCHEMA||\\'.'||TBLS(I);     commit;   end LOOP;   DBMS_OUTPUT.PUT_LINE( 'Time end: '||TO_CHAR(sysdate,  'DD-MM-YYYY HH24:MI:SS')); end; <\/code><\/pre>\n<p>  (\u041f\u0440\u043e\u0448\u0443 \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u0434\u0432\u0430 \u043b\u0438\u0448\u043d\u0438\u0445 \u0441\u043b\u0435\u0448\u0430 &quot;\\&quot;. \u0412 \u0441\u0442\u0440\u043e\u043a\u0430\u0445 \u0441 \u00abcreate table\u00bb \u0438 \u00abdrop table\u00bb. \u041e\u043d\u0438 \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0446\u0432\u0435\u0442\u043e\u043c \u043d\u0435 \u0435\u0445\u0430\u043b\u043e. \u041f\u0435\u0440\u0435\u0434 \u0431\u043e\u0435\u0432\u044b\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0438\u0445 \u043d\u0430\u0434\u043e \u0441\u043d\u0435\u0441\u0442\u0438. \u0410 \u043c\u0435\u043d\u044f\u0442\u044c \u043a\u0430\u0432\u044b\u0447\u043a\u0438 \u043d\u0430 \u0434\u0440\u0443\u0433\u0438\u0435 \u044f \u043d\u0435 \u0445\u043e\u0447\u0443. \u041e\u0447\u0435\u043d\u044c \u0440\u0430\u0437\u0434\u0440\u0430\u0436\u0430\u0435\u0442 \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 \u0432\u044b\u0438\u0441\u043a\u0438\u0432\u0430\u043d\u0438\u0435 \u00ab\u043d\u0435\u0432\u0435\u0440\u043d\u044b\u0445\u00bb.)<\/p>\n<p>  \u041e\u043f\u044f\u0442\u044c \u0436\u0435, \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0435 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b TABLESPACE_FOR_FULL \u0438 USER_SCHEMA \u043a\u0430\u043a \u0431\u044b \u043d\u0430\u043c\u0435\u043a\u0430\u044e\u0442 \u043d\u0430 \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0443 \u043c\u043e\u0438\u0445 \u0431\u0430\u0437.<br \/>  \u041a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0440\u0430\u0431\u043e\u0442\u044b \u043c\u043d\u0435 \u0432\u0438\u0434\u0438\u0442\u0441\u044f \u0438\u0437\u043b\u0438\u0448\u043d\u0438\u043c.<\/p>\n<p>  \u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u044b \u0442\u0430\u043a\u043e\u0439 \u043c\u0435\u0442\u043e\u0434\u044b \u043c\u0435\u043d\u044f \u0443\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442.<\/p>\n<pre><code class=\"dos\">anonymous block completed Time start: 22-10-2013 13:10:10 Space available=827,88 Time end: 22-10-2013 13:10:11  anonymous block completed Time start: 22-10-2013 13:10:27 Space available=10668,75 Time end: 22-10-2013 13:10:46  anonymous block completed Time start: 22-10-2013 13:11:26 Space available=99266,81 Time end: 22-10-2013 13:14:37 <\/code><\/pre>\n<p>  \u0427\u0443\u0442\u044c \u043c\u0435\u043d\u0435\u0435 100Gb \u0437\u0430 3 \u043c\u0438\u043d\u0443\u0442\u044b. \u042f\u0441\u043d\u043e, \u0447\u0442\u043e \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u0438\u0433\u0440\u0430\u0435\u0442 \u043e\u0447\u0435\u043d\u044c \u0431\u043e\u043b\u044c\u0448\u0443\u044e \u0440\u043e\u043b\u044c, \u043d\u043e \u0442\u0430\u043c \u0433\u0434\u0435 \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u043b\u0430\u0431\u043e\u0435 \u0438 \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u0432 \u043e\u0441\u043e\u0431\u044b\u0445 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442. \u0422\u0435\u043c \u0431\u043e\u043b\u0435\u0435 \u0447\u0442\u043e Tb \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0433\u043e \u043c\u0435\u0441\u0442\u0430 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0441\u0442\u0440\u0430\u043d\u043d\u0430\u044f \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f.<\/p>\n<h5>\u0417\u0430\u0432\u0435\u0440\u0448\u0430\u044e\u0449\u0438\u0435 \u0448\u0430\u0433\u0438<\/h5>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0432\u0435\u0440\u043d\u0443\u0432 autoextend \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043d\u044f\u0442\u044c\u0441\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u043e\u0439 \u0431\u0430\u0437\u044b.<\/p>\n<pre><code class=\"bash\">rman target \/ <\/code><\/pre>\n<p>  \u0418   <\/p>\n<pre><code class=\"sql\">BACKUP VALIDATE database; <\/code><\/pre>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 v$database_block_corruption \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0447\u0438\u0441\u0442\u044b\u043c \u043a\u0430\u043a\u2026 \u043d\u0443 \u0432\u044b \u043f\u043e\u043d\u044f\u043b\u0438.<\/p>\n<h5>\u042d\u043f\u0438\u043b\u043e\u0433<\/h5>\n<p>  \u0410 \u0435\u0441\u0442\u044c \u043b\u0438 \u0441\u043f\u043e\u0441\u043e\u0431 \u043a\u043e\u0440\u043e\u0447\u0435 \u0438 \u0431\u044b\u0441\u0442\u0440\u0435\u0435? \u0414\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c. \u041e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e. \u042f \u043d\u0430\u0447\u0430\u043b \u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0430 PL\\SQL \u0442\u0440\u0438 \u043d\u0435\u0434\u0435\u043b\u0438 \u043d\u0430\u0437\u0430\u0434. \u0418 \u0432 \u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u044f \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0441\u0442 SAP BASIS, \u0430 \u043d\u0435 DBA. <br \/>  \u041c\u043d\u0435 \u0432\u043f\u043e\u043b\u043d\u0435 \u0445\u0432\u0430\u0442\u0430\u0435\u0442 \u0438 \u044d\u0442\u043e\u0433\u043e. \u041d\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u044d\u0442\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438 \u043e\u0442 \u043f\u0440\u043e\u0444\u0438. \t\t\t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/198606\/\"> http:\/\/habrahabr.ru\/post\/198606\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\"> \t\t\t<img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/b10\/082\/efa\/b10082efadc1f382b4f1f804340901dc.jpg\"\/><br \/>  <s>\u041a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 \u0434\u043b\u044f \u043f\u0440\u0438\u0434\u0430\u043d\u0438\u044f \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f<\/s><\/p>\n<h4>\u0414\u043e\u0431\u0440\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0441\u0443\u0442\u043e\u043a!<\/h4>\n<p>  \u0412 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435 \u0432\u043e\u043e\u0431\u0449\u0435 \u0438 \u043d\u0430 \u0425\u0430\u0431\u0440\u0435 \u0432 \u0447\u0430\u0441\u0442\u043d\u043e\u0441\u0442\u0438 \u043d\u0435\u043c\u0430\u043b\u043e \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0439 \u043e \u0440\u0435\u043c\u043e\u043d\u0442\u0435 \u0431\u0438\u0442\u044b\u0445 \u0431\u043b\u043e\u043a\u043e\u0432. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0437\u0434\u0435\u0441\u044c \u043e \u0432\u044b\u0434\u0435\u0440\u0433\u0438\u0432\u0430\u043d\u0438\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/155075\/\">\u043d\u0435\u043f\u043e\u0432\u0440\u0435\u0436\u0434\u0435\u043d\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445<\/a>, \u0430 \u0442\u0443\u0442 \u0438\u0441\u0442\u043e\u0440\u0438\u044f \u043f\u043e\u0431\u0435\u0434\u044b \u043d\u0430\u0434 \u0431\u0438\u0442\u044b\u043c <a href=\"http:\/\/habrahabr.ru\/post\/162319\/\">LOB \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u043e\u043c<\/a>.<\/p>\n<p>  \u041f\u0440\u0438\u0432\u043e\u0434\u0438\u0442\u044c \u043b\u0435\u0433\u0438\u043e\u043d\u044b \u0441\u0441\u044b\u043b\u043e\u043a \u043d\u0430 \u0438\u043d\u0435\u0442 \u0441 \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u043c\u0438 \u0441\u0442\u0430\u0442\u044c\u044f\u043c\u0438 \u043d\u0435 \u0431\u0443\u0434\u0443. \u041d\u043e \u0435\u0441\u0442\u044c \u0432 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0435 \u044d\u0442\u0438\u0445 \u0441\u0442\u0430\u0442\u0435\u0439 \u043e\u0431\u0449\u0430\u044f \u0447\u0435\u0440\u0442\u0430. \u041a\u043e\u0433\u0434\u0430 \u0434\u0430\u043d\u043d\u044b\u0435 \u0441\u043f\u0430\u0441\u0435\u043d\u044b (\u0438\u043b\u0438 \u0443\u043d\u0438\u0447\u0442\u043e\u0436\u0435\u043d\u044b, \u043a\u0430\u043a \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f), \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0431\u0435\u0434\u0438\u0442\u044c \u043f\u043e\u0432\u0440\u0435\u0436\u0434\u0435\u043d\u043d\u044b\u0439 free block \u0437\u0430\u0445\u0432\u0430\u0442\u043e\u043c \u0432\u0441\u0435\u0433\u043e \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0433\u043e \u043c\u0435\u0441\u0442\u0430 \u0432 tablespace. \u0418 \u043f\u043e\u0447\u0435\u043c\u0443 \u0442\u043e \u044d\u0442\u043e \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043e\u043f\u0438\u0441\u0430\u0442\u0435\u043b\u044c\u043d\u043e. <\/p>\n<p>  \u0422\u0430\u043a \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u0438\u043a\u0438!   <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-198606","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/198606","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=198606"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/198606\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=198606"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=198606"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=198606"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}