Clob temporary table space is not released

In our java web application, it uses datasource to call oralce stored procedure and get back data in Clob data type. The oracle version is 8.1.7.4. After the database call, the database connection is closed. But I found that the tablespace for Clob data is not released. Right now it becomes a critical issue of our production database. Anybody has any clue? Really appreciate.

Team,
We have a table of size 550gigs in size and we truncated the table , truncated sucessfully but space is not released in os level, what action we can take to release the space and this table has only one row and contains the binary data.
Thanks
PGR
Hello,
Yes space wont be released immediately .If large extents are in picture which I assume is your case it goes into deferred drop a background process which will execute after some time( time may vary).See below link for details.
As per BOL if extents are more than 128 it goes in deferred drop.
http://msdn.microsoft.com/en-us/library/ms177495.aspx
You should wait for some time .keep checking the free space
Below discussion will surely help you in understanding.See Jonathan's reply
http://social.msdn.microsoft.com/Forums/en-US/4aa2537e-246b-4bfe-818d-3482531d9149/sql-server-2005-massive-400gb-table-dropped-space-not-released
Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

Similar Messages

  • Space is not released after truncating the table

    Team,
    We have a table of size 550gigs in size and we truncated the table , truncated sucessfully but space is not released in os level, what action we can take to release the space and this table has only one row and contains the binary data.
    Thanks
    PGR

    Team,
    We have a table of size 550gigs in size and we truncated the table , truncated sucessfully but space is not released in os level, what action we can take to release the space and this table has only one row and contains the binary data.
    Thanks
    PGR
    Hello,
    Yes space wont be released immediately .If large extents are in picture which I assume is your case it goes into deferred drop a background process which will execute after some time( time may vary).See below link for details.
    As per BOL if extents are more than 128 it goes in deferred drop.
    http://msdn.microsoft.com/en-us/library/ms177495.aspx
    You should wait for some time .keep checking the free space
    Below discussion will surely help you in understanding.See Jonathan's reply
    http://social.msdn.microsoft.com/Forums/en-US/4aa2537e-246b-4bfe-818d-3482531d9149/sql-server-2005-massive-400gb-table-dropped-space-not-released
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • Deleted photos space is not released

    Delete all photos, delete also recently eliminated. But when I enter phone information photographs still occupy almost a gig and says I have 680 photos on the device. If I look at using iTunes tells me the same. How can I do to free that memory space?
    Thank You.

    Team,
    We have a table of size 550gigs in size and we truncated the table , truncated sucessfully but space is not released in os level, what action we can take to release the space and this table has only one row and contains the binary data.
    Thanks
    PGR
    Hello,
    Yes space wont be released immediately .If large extents are in picture which I assume is your case it goes into deferred drop a background process which will execute after some time( time may vary).See below link for details.
    As per BOL if extents are more than 128 it goes in deferred drop.
    http://msdn.microsoft.com/en-us/library/ms177495.aspx
    You should wait for some time .keep checking the free space
    Below discussion will surely help you in understanding.See Jonathan's reply
    http://social.msdn.microsoft.com/Forums/en-US/4aa2537e-246b-4bfe-818d-3482531d9149/sql-server-2005-massive-400gb-table-dropped-space-not-released
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • [Solved]The space is not released when delete xbmc-wiiremote.log( 9GB)

    I met some problem after a system update.
    My wii-remote doesn't work well when i try to reconnect it with xbmc-wiiremote.
    It will keep writing some error message to /var/log/xbmc-wiiremote.log until the disk get full (file size >9GB ).
    The worst thing is when i try to delete this file by "rm", no error reported but the disk space is not released!
    And the disk space can be release by the fsck during next boot time.
    My system info:
    uname -a
    Linux htpc 3.0-ARCH #1 SMP PREEMPT Tue Aug 30 08:53:25 CEST 2011 x86_64 AMD E-350 Processor AuthenticAMD GNU/Linux
    And i am using ext4.
    sudo fsck -n
    fsck from util-linux 2.19.1
    e2fsck 1.41.14 (22-Dec-2010)
    Warning! /dev/sda1 is mounted.
    Warning: skipping journal recovery because doing a read-only filesystem check.
    Superblock last mount time is in the future.
    (by less than a day, probably due to the hardware clock being incorrectly set) Fix? no
    /dev/sda1 contains a file system with errors, check forced.
    Pass 1: Checking inodes, blocks, and sizes
    Deleted inode 261147 has zero dtime. Fix? no
    Pass 2: Checking directory structure
    Pass 3: Checking directory connectivity
    Pass 4: Checking reference counts
    Unattached zero-length inode 1044678. Clear? no
    Unattached inode 1044678
    Connect to /lost+found? no
    Pass 5: Checking group summary information
    Block bitmap differences: -(1205248--1205759) -(1738695--1740230) -(1742848--1748991) -(1751040--1785856) -(1787904--2097151) -(2209792--2621439) -(2727936--2729983) -(2732032--2736127) -(2744320--3145727) -(3207168--3211263) -(3219456--3670015) -(3708928--3760750)
    Fix? no
    Free blocks count wrong (2668547, counted=2667883).
    Fix? no
    Inode bitmap differences: -261147 +1044678
    Fix? no
    Free inodes count wrong for group #128 (7926, counted=7927).
    Fix? no
    Free inodes count wrong (1173865, counted=1173864).
    Fix? no
    /dev/sda1: ********** WARNING: Filesystem still has errors **********
    /dev/sda1: 107255/1281120 files (0.2% non-contiguous), 2451453/5120000 blocks
    I also tried to dd a big file(9Gb) and delete it then. Everything works fine.
    Any more information should i collect?
    Last edited by beeender (2011-09-03 14:54:41)

    If the log file is still in use, it doesn't get physically deleted until the last program using it, closes it.  Using "truncate" instead of "rm" should work to free some space.

  • Temporary table space usage

    Hi could someone help me ...
    for the following query...
    SELECT returnflag
    , linestatus
    , sum(quantity) as sum_qty
    , sum(extendedprice) as sum_base_price
    , sum(extendedprice * (1 - iscount)) as sum_disc_price
    , sum(extendedprice * (1 - iscount) * (1 + l_tax)) as sum_charge
    , avg(quantity) as avg_qty, avg(extendedprice) as avg_price
    , avg(iscount) as avg_disc, count(*) as count_order
    FROM lineitem
    WHERE shipdate <= date '1998-12-01'
    GROUP BY returnflag, linestatus
    ORDER BY returnflag, linestatus;
    Explain Plan :
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | 5 | 135 | 299K (2)| 01:00:00 |
    | 1 | SORT GROUP BY | | 5 | 135 | 299K (2)| 01:00:00 |
    |* 2 | TABLE ACCESS FULL| LINEITEM | 57M| 1493M| 297K (1)| 00:59:35 |
    Predicate Information (identified by operation id):
    2 - filter("L_SHIPDATE"<=TO_DATE(' 1998-09-02 00:00:00',
    'syyyy-mm-dd hh24:mi:ss'))
    would any parts of this query be carried out on the temporary table space (sums and averages? / sort group by?) ... or what impact would the temp table space have when running this query?
    any help would be appriciated

    im using 11g r2,
    what about usage of temporary table space (approximatly) with the following ..
    ============================================
    create view revenue (supplier_no, total_revenue) as
    select
    suppkey, sum(extendedprice * (1 - iscount))
    from
    lineitem
    where
    shipdate >= date '1994-12-01'
    group by
    suppkey;
    select suppkey, name, address, phone, total_revenue
    from supplier, revenue
    where suppkey = supplier_no and total_revenue = (select max(total_revenue)from revenue)
    order by suppkey;
    ==========================================================
    View created.
    Execution Plan
    Plan hash value: 2790460729
    | Id | Operation | Name | Rows | Bytes |TempSpc| Cost (%CPU)|
    Time |
    | 0 | SELECT STATEMENT | | 50000 | 5126K| | 381K (1)|
    01:16:23 |
    | 1 | MERGE JOIN | | 50000 | 5126K| | 381K (1)|
    01:16:23 |
    | 2 | SORT JOIN | | 100K| 3027K| | 380K (1)|
    01:16:09 |
    |* 3 | VIEW | REVENUE | 100K| 3027K| | 380K (1)|
    01:16:09 |
    | 4 | WINDOW BUFFER | | 100K| 2148K| | 380K (1)|
    01:16:09 |
    | 5 | HASH GROUP BY | | 100K| 2148K| 1207M| 380K (1)|
    01:16:09 |
    |* 6 | TABLE ACCESS FULL| LINEITEM | 34M| 733M| | 297K (1)|
    00:59:35 |
    |* 7 | SORT JOIN | | 50000 | 3613K| 8712K| 1182 (1)|
    00:00:15 |
    | 8 | TABLE ACCESS FULL | SUPPLIER | 50000 | 3613K| | 308 (1)|
    00:00:04 |
    Predicate Information (identified by operation id):
    3 - filter("TOTAL_REVENUE"="ITEM_1")
    6 - filter("L_SHIPDATE">=TO_DATE(' 1994-12-01 00:00:00', 'syyyy-mm-dd
    hh24:mi:ss'))
    7 - access("S_SUPPKEY"="SUPPLIER_NO")
    filter("S_SUPPKEY"="SUPPLIER_NO")
    Statistics
    =========================================================
    presumably temp table space will be used for sort and merge joins? .. but how does temp table space work with the view?

  • Compressed table using oracle advanced compression but space is not release

    Dear Experts,
    I am using oracle 11.2.0.2 with sap as application
    I have compressed one of my largest indetified table "SWWCNTP0" as per below statement
    Alter table sapsr3.SWWCNTP0 compress for oltp;
    After this i have performed reorg for the above table but it doesnt released the space
    before reorg 39gb
    after reorg 39g
    Please advice
    Regards
    Navin Somal

    906078 wrote:
    Dear Experts,
    I am using oracle 11.2.0.2 with sap as application
    I have compressed one of my largest indetified table "SWWCNTP0" as per below statement
    Alter table sapsr3.SWWCNTP0 compress for oltp;
    After this i have performed reorg for the above table but it doesnt released the space
    before reorg 39gb
    after reorg 39g
    Please advice
    Regards
    Navin SomalHow did you go about doing the reorg?
    He's a simple working example ...
    ME_ORCL?create table to_compress as
      2  select * from all_objects
      3  union all
      4  select * from all_objects
      5  union all
      6  select * from all_objects
      7  union all
      8  select * from all_objects
      9  union all
    10  select * from all_objects;
    Table created.
    Elapsed: 00:00:16.74
    ME_ORCL?select bytes
      2  from dba_segments
      3  where segment_name = 'TO_COMPRESS';
                 BYTES
              44040192
    1 row selected.
    Elapsed: 00:00:00.06
    ME_ORCL?alter table to_compress compress for oltp;
    Table altered.
    Elapsed: 00:00:00.09
    --we don't expect any change here, because this only affects subsequent operations on the table, we need to MOVE the table to see any benefits in the existing data
    ME_ORCL?select bytes
      2  from dba_segments
      3  where segment_name = 'TO_COMPRESS';
                 BYTES
              44040192
    1 row selected.
    Elapsed: 00:00:00.08
    ME_ORCL?alter table to_compress move compress for oltp;
    Table altered.
    Elapsed: 00:00:01.08
    ME_ORCL?select bytes
      2  from dba_segments
      3  where segment_name = 'TO_COMPRESS';
                 BYTES
              14680064
    1 row selected.
    Elapsed: 00:00:00.02
    ME_ORCL?

  • XML,CLOB  AND MEMORY : CONSUMED BUT NOT RELEASED !!!

    Hi,
    I'm working with XMLGEN Package and XSLT Processor to produce XML Document on Oracle 8.1.7.3 server, I use 9i XML and Java packages.
    I'm facing the following BIG MEMORY problem :
    Environment : I must generate an XML parsed with an XSL document of 80Mo (nearly 22 000 rows),
    as XMLGEN is on DOM parsing method, I extract my XML by 500 Rows and I loop until 22 000 rows. I use DBMS_JOB with jobs who read and execute export each minute.
    The algorithme is :
    keeprow=22000
    while keeprow>0
    Create 3 clob (DBMS_LOB Package) : one for XSL Sheet, one for XML and one for result
    GetXML (XMLGEN Package)
    Transform in XSL (XSL Processor)
    Write to disk (UTL_FILE Package)
    Free the 3 Clob ((DBMS_LOB Package))
    keeprow =keeprow-500
    loop
    The problem : The process start at 250Mo ot total memory and END at 1000 Mo of used memory and NEVER RELEASE 1 ko of memory.
    So often I get a JavaOutOfMemoryError (I've allocated 1Go Ram to my JAVA process).
    Any help will be very very appreciated !
    My derived problem is 22 000 rows is not enough I've some export of 200 000 rows to do (And I cannot allocate 10 Go of RAM !!!)
    Following My PL/SQL Code.
    Regards
    Fred
         PROCEDURE DO_EXPORT_XML(
                   P_JOB_ID JOB_PARAMETRE.JOB_ID%TYPE,
                   P_JOB_ID_ORDRE JOB_PARAMETRE.JOB_ID_ORDRE%TYPE,
                   P_CLE_UP UPLOADREQ_TEMP.ID%TYPE,
                   P_LOAD_OR_DELOAD VARCHAR2)
              IS
              L_FILE_NAME JOB_PARAMETRE.JOB_FILE_NAME_DEST%TYPE;
              L_REP_NAME JOB_PARAMETRE.JOB_REP_NAME_DEST%TYPE;
              L_FILE_STYLESHEET JOB_PARAMETRE.JOB_STYLESHEET%TYPE;
              L_VERSION_PDM JOB_PARAMETRE.JOB_VPDM%TYPE;
              P_SELECT varchar2(4000):='';
              P_CURSOR varchar2(4000):='';
         l_filehandler_out UTL_FILE.FILE_TYPE;
              --Variable pour le traitement par lot de 500
              L_NBROW_TODO_ATONCE number := 500;
              L_NBROW_MIN number := 1;
              L_NBROW_MAX number := -1;
              L_NBROWKEEPTODO number := -1;
              xslString CLOB := null;
              res number default -1;
              xmlString CLOB := null;
              li_ret number := 0;
              li_faitle number := 0;
              amount integer:= 255;
              li_loop integer := 0;
              charString varchar2(255);
              ls_deload varchar2(255) default '';
              ls_SQL varchar2(4000) default '';
              ls_temp_file varchar2(255) default '';
              text_file_dir varchar2(32) := 'e:\temporarydir';
              l_par xmlparser.parser;
         l_xml xmldom.domdocument;
         l_pro xslprocessor.processor;
         l_xsl xslprocessor.stylesheet;
              docfragnode xmldom.DOMNode;
              docfrag xmldom.DOMDocumentFragment;
              l_parsedclob clob := null;
              l_amount binary_integer := 32767;
              l_ligne varchar2(32767);
              l_offset number default 1;
              l_pos number default null;
              l_pos2 number default null;
              l_lobsize number default null;
              l_memsize number default 1073741824; --1024 Mo
              l_mempipo number default 0;
              type rc is ref cursor;
              l_cursor rc;
              cursor TEMPLATE is select UNSPSC,1 as NB from UPLOADREQ_TEMP where 1=2;
              c1rec TEMPLATE%rowtype;          
              BEGIN
              l_mempipo:=setmaxmemorysize(l_memsize);
              dbms_lob.createtemporary(l_parsedclob, true, dbms_lob.session);
              dbms_lob.createtemporary(xmlstring, true, dbms_lob.session);
              --return the good select
              GET_SELECT_TO_EXPORT_XML(P_JOB_ID , P_JOB_ID_ORDRE , P_CLE_UP , P_SELECT,P_CURSOR, P_LOAD_OR_DELOAD);
                        SELECT JOB_FILE_NAME_DEST,JOB_REP_NAME_DEST,JOB_STYLESHEET
                        INTO L_FILE_NAME,L_REP_NAME,L_FILE_STYLESHEET
                        FROM JOB_PARAMETRE
                        WHERE JOB_ID =P_JOB_ID AND JOB_ID_ORDRE=P_JOB_ID_ORDRE;
                        l_filehandler_out := UTL_FILE.FOPEN(text_file_dir, L_FILE_NAME, 'w',l_amount);
                        --Return XSL Sheet in a clob : cause of memory consumed  but not released
                   xslString := METACAT.load_a_file( 1,L_FILE_STYLESHEET);     
                        open l_cursor for P_CURSOR;
    LOOP
                   fetch l_cursor into c1rec;
                   exit when l_cursor%notfound;
                             L_NBROW_MIN := 1;
                             L_NBROW_MAX := 0;
                             L_NBROWKEEPTODO:=c1rec.NB;
                             LOOP
                             begin
                                  if(L_NBROWKEEPTODO > L_NBROW_TODO_ATONCE) THEN
                                       begin
                                       L_NBROW_MAX:= L_NBROW_TODO_ATONCE + L_NBROW_MAX;
                                       L_NBROWKEEPTODO:= L_NBROWKEEPTODO - L_NBROW_TODO_ATONCE;
                                       end;
                                  else
                                       begin
                                       L_NBROW_MAX:= L_NBROW_MAX + L_NBROWKEEPTODO;
                                       L_NBROWKEEPTODO:=0;
                                       end;
                                  end if;
                                  --on ouvre le fichier de risultats
                                  ls_SQL:= P_SELECT || ' AND ( ROWNUM BETWEEN ' || L_NBROW_MIN || ' AND ' || L_NBROW_MAX || ' ) and UNSPSC=''' || c1rec.UNSPSC || '''';
                                  ls_temp_file := c1rec.UNSPSC || '_' || L_FILE_NAME;
                                  L_NBROW_MIN:=L_NBROW_TODO_ATONCE + L_NBROW_MIN;
                                  --CAT_AUTOLOAD.JOB_ADD_TRACE (P_JOB_ID,'UPLOAD REQUISITE : Export donnies REQUETE ' || to_char(li_loop), ls_SQL,'',0,0);
                                  xmlgen.resetOptions;
                                  xmlgen.setErrorTag('ERROR_RESULT');
                                  xmlgen.setRowIdAttrName('NAH');
                                  xmlgen.setRowIdColumn('NAH');
                                  xmlgen.setEncodingTag('ISO-8859-1');
                                  xmlgen.useNullAttributeIndicator(false);
                                  if(xmlString is not null) then
                                       dbms_lob.open(xmlString,dbms_lob.lob_readwrite);
                                       l_lobsize:= dbms_lob.Getlength(xmlString);
                                       if(l_lobsize>0) then
                                       dbms_lob.erase(xmlString,l_lobsize,1);
                                       end if;
                                       dbms_lob.close(xmlString);
                                  dbms_lob.freetemporary(xmlString);
                                       dbms_lob.createtemporary(xmlstring, true, dbms_lob.session);
                                  end if;
    --Return XML in a clob : cause of memory consumed  but not released
                                  xmlString := xmlgen.getXML(ls_SQL,0);
                                  l_par := xmlparser.newparser;
                                  xmlparser.parseclob(l_par, xslString);
                                  l_xsl := xslprocessor.newstylesheet(xmlparser.getdocument(l_par),null);
                                  xmlparser.parseclob(l_par, xmlString);
                                  l_xml := xmlparser.getdocument(l_par);
                                  l_pro := xslprocessor.newprocessor;
                                       xslprocessor.showWarnings(l_pro, true);
                                       xslprocessor.setErrorLog(l_pro, text_file_dir || substr(ls_temp_file,0,length(ls_temp_file)-4) || '_logerreur.XML');
                                       if(l_parsedclob is not null) then
                                                 dbms_lob.open(l_parsedclob,dbms_lob.lob_readwrite);
                                                 l_lobsize:= dbms_lob.Getlength(l_parsedclob);
                                                 if(l_lobsize>0) then
                                                 dbms_lob.erase(l_parsedclob,l_lobsize,1);
                                                 end if;
                                                 dbms_lob.close(l_parsedclob);
                                            dbms_lob.freetemporary(l_parsedclob);
                                                 dbms_lob.createtemporary(l_parsedclob, true, dbms_lob.session);
                                       end if;
                        --Return XML Processed with XSL in a clob : cause of memory consumed  but not released
                                  xslprocessor.processxsl(l_pro,l_xsl,l_xml,l_parsedclob);
                                       --release NOTHING
                                  xmlparser.freeparser(l_par);
                                  xslprocessor.freeprocessor(l_pro);
                                                      l_ligne:='';
                                                      l_offset :=1;
                                                      l_pos := null;
                                                      l_pos2 := null;
                                                      if(li_loop=0) then
                                                           begin
                                                                --on ouvre le fichier et on sauve l'entete + les donnies dedans.
                                                                     l_pos:=dbms_lob.instr(l_parsedclob,'</DATA>');
                                                      if ( nvl(l_pos,0) > 0 ) then
                                                                          loop
                                                                          if(l_pos-1>l_amount + l_offset ) then
                                                                                    l_ligne:=dbms_lob.SUBSTR(l_parsedclob,l_amount,l_offset);
                                                                                    UTL_FILE.PUT(l_filehandler_out,l_ligne);
                                                                                    UTL_FILE.fflush(l_filehandler_out);
                                                                                    l_offset:=l_offset+l_amount;
                                                                               else
                                                                                    l_ligne:=dbms_lob.SUBSTR(l_parsedclob,l_pos-1 -l_offset ,l_offset);
                                                                                    UTL_FILE.PUT(l_filehandler_out,l_ligne);
                                                                                    UTL_FILE.fflush(l_filehandler_out);
                                                                                    exit;
                                                                               end if;
                                                                          end loop;
                                                                     else
                                                                          EXIT;
                                                                     end if;
                                                           end;
                                                      else
                                                           --on met les donnies donc on ne repete pas le debut
                                                           begin
                                                                     l_pos:=dbms_lob.instr(l_parsedclob,'<ITEM');
                                                      if ( nvl(l_pos,0) > 0 ) then
                                                                     l_pos2:=dbms_lob.instr(l_parsedclob,'</DATA>');
                                                      if ( nvl(l_pos2,0) > 0 ) then
                                                                          loop
                                                                          if(l_pos + l_amount <= l_pos2 -1 ) then
                                                                                    l_ligne:=dbms_lob.SUBSTR(l_parsedclob,l_amount,l_pos);
                                                                                    UTL_FILE.PUT(l_filehandler_out,l_ligne);
                                                                                    UTL_FILE.fflush(l_filehandler_out);
                                                                                    l_pos:=l_pos +l_amount;
                                                                               else
                                                                                    l_ligne:=dbms_lob.SUBSTR(l_parsedclob,l_pos2 -1 -l_pos,l_pos);
                                                                                    UTL_FILE.PUT(l_filehandler_out,l_ligne);
                                                                                    UTL_FILE.fflush(l_filehandler_out);
                                                                                    exit;
                                                                               end if;
                                                                          end loop;
                                                                          else
                                                                          exit;                                                                      
                                                                          end if;
                                                                     end if;
                                                           end;
                                                      end if;
                                                 li_loop:=li_loop + 1 ;
                                                 --UTL_FILE.FCLOSE(l_filehandler_in);
                                                 JAVA_GC();
                                                 EXIT WHEN L_NBROWKEEPTODO=0;
                                                 Exception
                                                 when others then
                                                      begin
                                                      -- IF(utl_file.is_open(l_filehandler_in)) THEN
                                                      --               utl_file.fclose( l_filehandler_in);
                                                      -- END IF;
                                                      IF(utl_file.is_open(l_filehandler_out)) THEN
                                                                     utl_file.fclose( l_filehandler_out);
                                                      END IF;
                                                      RAISE_APPLICATION_ERROR(-20001,'File with errors');
                                                      end;
                             END;
                             END LOOP;
    END LOOP;
    CLOSE l_cursor;
                        if ( xmlString is not null ) then
                                  dbms_lob.open(xmlString,dbms_lob.lob_readwrite);
                                  l_lobsize:= dbms_lob.Getlength(xmlString);
                                  if(l_lobsize>0) then
                                  dbms_lob.erase(xmlString,l_lobsize,1);
                                  end if;
                                  dbms_lob.close(xmlString);
                                  dbms_lob.freeTemporary( xmlString);
                        end if;
                        if(l_parsedclob is not null) then
                                  dbms_lob.open(l_parsedclob,dbms_lob.lob_readwrite);
                                  l_lobsize:= dbms_lob.Getlength(l_parsedclob);
                                  if(l_lobsize>0) then
                                       dbms_lob.erase(l_parsedclob,l_lobsize,1);
                                  end if;
                                  dbms_lob.close(l_parsedclob);
                                  dbms_lob.freetemporary(l_parsedclob);
                        end if;
                        UTL_FILE.NEW_LINE(l_filehandler_out);
                        l_ligne:='</DATA></CATALOG>';
                        UTL_FILE.PUT(l_filehandler_out,l_ligne);
                        UTL_FILE.FCLOSE(l_filehandler_out);                    
                   EXCEPTION
                   when others then
                             begin
                             IF(utl_file.is_open(l_filehandler_out)) THEN
                                       utl_file.fclose( l_filehandler_out);
                                  END IF;
                             end;     
              END;
    ******************************

    Thank you for the info - I had no idea I was puing myself in danger by cutting it so close.  Since your post I have moved my iphoto library to an external drive and now have 165 GB of space on my HD.  Following this I have 2 questions.
    1.  Since my available HD space was reduced by the size of the photo download it seems logical that the download is somewhere on my HD still.  Is there a place where these photos might be hiding on my HD even though they are not available on the iphoto library?
    2.  I was able to recover the .jpg files which are fine.  I also recovered the .mov files but they have been compromised.  I am hoping I can find the originals still on the HD somewhere.  If not, do you have any suggestions for recovery methods or programs?  I have not used the SD card since the incident so I should be able to attempt another recovery to salvage the .mov files if there is an alternative method/program available.
    Thanks again!

  • Space is not released from tablespaces even after purging recycbin

    Hi,
    I had 168GB of space occupied by recyclebin objects (BIN$...) when i queried on dba_segments, after purging the recyclebin it is showing 0.
    But i didn't find any difference in the free space dba_free_space in tablespaces before and after purging.
    Is it the thing that even after purging recycbin, it is not released the space for respective Tablespaces?
    Also wanted to know how to release the space.
    Thanks,
    Mahi

    If you have a table X, with segments in tablespace TS, and you drop the table, you now have a recycle bin object BIN$X that owns those same segments in that same tablespace TS. That's why the segments still appear in DBA_SEGMENTS. But Oracle knows that it is free to reuse the segments associated with BIN$X if it runs out of other space to use (and Oracle knows to reuse segments from recycle bin objects in the order they were dropped) so the segments are free in DBA_FREE_SPACE. Just like deleting a file on the file system is just updating a pointer to some sort of file allocation table but not actually removing the bits from the hard drive, dropping an object when the recycle bin is just marking the segments as no longer associated with a real object.
    I have no idea whether 11g has changes to recover index names-- you might take a look at the 11g documentation (either the New Features guide or the Flashback Drop docs).
    Justin

  • Table for Invoices not release

    Is there any table to find the list of invoices which are not released for accounting
    if yes please let me know
    Regards,
    KK

    Hi,
    I think you could check table VBRK for the field: RFBSK(Status for transfer to accounting).
    The different value of this field means like following:
         Error in Accounting Interface
    A     Billing document blocked for forwarding to FI
    B     Posting document not created (account determ.error)
    C     Posting document has been created
    D     Billing document is not relevant for accounting
    E     Billing Document Canceled
    F     Posting document not created (pricing error)
    G     Posting document not created (export data missing)
    H     Posted via invoice list
    I     Posted via invoice list (account determination error)
    Regards,
    Alex

  • Free space showing in Table space but not updated on os file system.

    Hi Support,
    I am using oracle 10.2.0.4.0 in ECC6.0. OS is Solaris 10 (Linux).
    We deleted all xml messages from my PI/XI server. its successfully deleted even table space showing free space almost 400GB in DB02 and from brtools also. But from OS side OS file system not showing free space,
    Is any body know about this issue????  do i need to reboot system or any other solution.
    Thanks,
    Kazi Faizan.

    Try to set it up as new device and restore again from the backup:
    How to erase your iOS device and then set it up as a new device or restore it from backups

  • Global Temporary Table Space

    Hi
    Can any one give me some information about GLOBAL TEMPORARY TABLE.
    Thnx & Regards
    Sunil

    http://download-uk.oracle.com/docs/cd/B10501_01/appdev.920/a96590/adg03sch.htm#7794

  • Table Re-org using OEM - Space did not released

    All,
    I'm in the process of doing online table re-org using oem segment advisor.
    But even after the i re-organized the table it is showing the same space that means the recommended was not reclaimed.
    Any one having idea about table re-org using OEM
    Version : 10.2.0.3
    OEM Version : 10.2.0.5

    select 'alter table '||table_name||' move tablespace YOUR_TS'||chr(10)||
    'LOB ('||column_name||') store as '||segment_name||chr(10)||
    '(tablespace YOUR_TS);'
    from user_lobs
    /

  • Permanent tablesspace as temporary table space

    Hi friends
    I am having a database(8i) which uses normal(permanent) tablesspace as temporary tablespace(TEMPORARY_TABLESPACE). Is it compulsory that we have to create temporary ( I mean 'create temporary tablespace') tablespace for tempoarary tablespace . Is there any performance issue if i am using perment tablespace as temp tablespace.

    As mentioned previously, a tablespace of type temporary should be defined for temporary tablespace (for each and every user.)
    The purpose of the tablespace is for sorting WHEN THE SORT DOES NOT FIT IN MEMORY (sort_area_size) - and after the sort, the space is released.
    It is entirely possible that all activity requiring sorting fits into memory for your system, so you would not see a performance hit. (btw - an index build is usually a sort.) I would recommend checking to see which objects may be in that tablespace.
    Either way, I would create a new temporary tablespace of type temporary (new_temp).
    Then I would 'alter user ' username temporary tablespace new_temp for each and every user in DBA_USERS.
    As for the brevity of responses, I certainly can't blame Hans. After a fair amount of lurking on these boards, I get somewhat discouraged myself. Posts like 'Please Help me do my homework' , 'where can I download Oracle', and my absolute favorite 'What is one the Oracle Certification Test' actually make me chuckle, and mutter RTFM to my display.
    What does seem to make me wonder, is how many of these people are 'learners' and how many actually hold a DBA title?

  • Database Configuration: Table space does not exist error

    Hi all,
    while running Database configuration wizard in Siebel 8.0 installation process I receive the following error:
    C103: The table\\index space siebelts entered does not exist in your database.Please ensure you entered the correct table\\
    index space.
    I have verified the following things:
    1) Verified in database that, SIEBELTS tablespace is created but not online.
    2) grantusr.sql is executed successfully.SADMIN user and SIEBEL table owner accounts are created.
    3) SIEBELTS tablespace is assigned as default tablespace for SADMIN and LDAPUSER. There were no problems running the grantusr.sql.
    How can it be that the Wizard shows up this error when the grantusr.sql didn't show it?. The problem is the SIEBELTS. The wizard doesn't find it, but it does find the SIEBELINDEXTS tablespace. Checking the last one, it appears online.

    this is what I checked as DBA:
    SQL> select * from dba_tablespaces where tablespace_name='SIEBELTS';
    TABLESPACE_NAME BLOCK_SIZE INITIAL_EXTENT NEXT_EXTENT MIN_EXTENTS
    MAX_EXTENTS PCT_INCREASE MIN_EXTLEN STATUS CONTENTS LOGGING FOR EXTENT_MAN
    ALLOCATIO PLU SEGMEN DEF_TAB_ RETENTION BIG
    SIEBELTS 8192 65536 1
    2147483645 65536 ONLINE PERMANENT LOGGING NO LOCAL
    SYSTEM NO AUTO DISABLED NOT APPLY NO
    SQL> select * from dba_tablespaces where tablespace_name='SIEBELINDEXTS';
    TABLESPACE_NAME BLOCK_SIZE INITIAL_EXTENT NEXT_EXTENT MIN_EXTENTS
    MAX_EXTENTS PCT_INCREASE MIN_EXTLEN STATUS CONTENTS LOGGING FOR EXTENT_MAN
    ALLOCATIO PLU SEGMEN DEF_TAB_ RETENTION BIG
    SIEBELINDEXTS 8192 65536 1
    2147483645 65536 ONLINE PERMANENT LOGGING NO LOCAL
    SYSTEM NO AUTO DISABLED NOT APPLY NO

  • When to use PGA_AGGREGATE_TARGET and when to use temporary table space?

    Hi, all.
    I am a little confused with regard to when to use pga work area, and
    when to use temporary tablespace?
    Is there any one who could give me an advice or a document?
    Thanks in advance.
    Best Regards.
    Message was edited by:
    user507290

    You are more than a little confused... What has one to do with the other, do you think?
    All Oracle documentation is at http://tahiti.oracle.com - I suggest you start with the Concepts manual of your version

Maybe you are looking for