Return-Path: <oracle-l-bounce@freelists.org>
X-Original-To: oracle-l@orafaq.com
Delivered-To: oracle-l@orafaq.com
Received: from turing.freelists.org (turing.freelists.org [206.53.239.180])
 by malta2546.startdedicated.com (Postfix) with ESMTPS id B766810031450E
 for <oracle-l@orafaq.com>; Tue,  5 May 2020 20:28:18 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id F22F22415A;
 Tue,  5 May 2020 14:28:16 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freelists.org;
 s=turing; t=1588703297;
 bh=4EPyeIqlLWpFsKHtcWLLZokzryh78WQkuf7dZkL4IBc=;
 h=From:Sender:Sender:From;
 b=EZOxVZi9U+egI63CxlYJplJcZ8+H9uWs27bbaoS1N7mLtZ+ZBvAVwwgRJHb6Q8x/4
	 SfRRaGmAY4KGsMBi9SbRR8FZ6CHbuCaGqtQxAbkvwkvGLuTStnZUMPj7xtvKFqI/uf
	 WV7hoEb75b5ikKPXYiBNlC36wLikfv6DF3T515K8=
X-Virus-Scanned: Debian amavisd-new at turing.freelists.org
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id O2JdQMQaH1rI; Tue,  5 May 2020 14:28:16 -0400 (EDT)
Received: from turing.freelists.org (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id E1C3D240DF;
 Tue,  5 May 2020 14:27:28 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freelists.org;
 s=turing; t=1588703293;
 bh=4EPyeIqlLWpFsKHtcWLLZokzryh78WQkuf7dZkL4IBc=;
 h=From:Sender:Sender:From;
 b=Urcc4CHGt73YUCeiXqYX8kb3WQ7lHAhITWyJEHmfXiGQDdYG3X+Q41O9KOQ57+amb
	 QkPHewXYtH3GHdD6xFGoSO8MK/l3e4XhSknHod/Wwq6c/K7as6eGWBdDSfuUglD+V7
	 iaGVahA3R1W+afyVw/vyu8N8C5dEGA9ZIxjfcx4A=
Received: with ECARTIS (v1.0.0; list oracle-l); Tue, 05 May 2020 14:26:44 -0400 (EDT)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id A9B71240D6
 for <oracle-l@freelists.org>; Tue,  5 May 2020 14:26:43 -0400 (EDT)
Authentication-Results: turing.freelists.org;
 dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="VNKKzuVD";
 dkim-atps=neutral
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id qCxXiP2m0OgI for <oracle-l@freelists.org>;
 Tue,  5 May 2020 14:26:43 -0400 (EDT)
Received: from mail-qv1-f43.google.com (mail-qv1-f43.google.com [209.85.219.43])
 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
 (No client certificate requested)
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id 50372240C7
 for <oracle-l@freelists.org>; Tue,  5 May 2020 14:26:43 -0400 (EDT)
Received: by mail-qv1-f43.google.com with SMTP id h6so1511079qvz.8
        for <oracle-l@freelists.org>; Tue, 05 May 2020 11:26:43 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to
         :references:user-agent:mime-version;
        bh=ZNGXdxmf9fQZ+R4XewT32/eA7LTDHl9u+BcrttDGTtY=;
        b=SYRKJbV1DwSbMNwuSCfd9X9axRF3AOMnGrSugP3cMr916HhrhmDTBeDOnQrKPmqbio
         k6Ug+QDy1J/kXwav70Kwd3PZGcZxIb3omrqbcDM48ncgFiEVg6CueiV97yx3Vh1rAyab
         597Sl3BAC5a6c9ZM8rJ77+2wVN9pBECb/fsHETrHV6pLW4avii0GMl43QGmz0vNTsFH0
         3DZSMzQWYGlkhRWibctUXSa2mhVHQJWHfCAL6DQaiYqz0voF7mVLtqNDMLDmoeSKfGcN
         0UuNwo5upT+oZ5d4BEApghNF4fC/Jalzmbz/RBesv8UX7qVoqBCQhmXgl2ooutNdK9Y1
         XXIA==
X-Gm-Message-State: AGi0PuYiPYzp0IvVLOVrxTMXz9oEl6TXBcZEL5IO67gPv9SmJf2mAFy0
 qP6Fbh3lXF/d+HGD7AGonmc=
X-Google-Smtp-Source: APiQypJNeTiODYCjZ6mgv2vuJVURDglnsyJtLjyuluV2t8zYlJUeBATO47G1xv+9iWh6m7Y5eoIVHg==
X-Received: by 2002:a05:6214:593:: with SMTP id bx19mr4214825qvb.238.1588703202154;
        Tue, 05 May 2020 11:26:42 -0700 (PDT)
Received: from [192.168.2.7] (pool-100-8-173-246.nwrknj.fios.verizon.net. [100.8.173.246])
        by smtp.gmail.com with ESMTPSA id g25sm2330219qkl.50.2020.05.05.11.26.41
        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
        Tue, 05 May 2020 11:26:41 -0700 (PDT)
Message-ID: <eface1e6f5917d8100e832231c4dc39578116877.camel@gmail.com>
Subject: Re: Space explanation
From: Mladen Gogala <gogala.mladen@gmail.com>
To: veeeraman@gmail.com, ORACLE-L <oracle-l@freelists.org>
Date: Tue, 05 May 2020 14:26:40 -0400
In-Reply-To: <CAHSa0M3D1GTdwajgBu3MNPRSgxwLtjhtq0vgNVFi8OB7EU4ccg@mail.gmail.com>
References: 
 <CAHSa0M3D1GTdwajgBu3MNPRSgxwLtjhtq0vgNVFi8OB7EU4ccg@mail.gmail.com>
Content-Type: multipart/alternative; boundary="=-9BBybcDDaiNuXA3sPgcA"
User-Agent: Evolution 3.36.1-2
MIME-Version: 1.0
X-archive-position: 76846
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: gogala.mladen@gmail.com
Precedence: normal
Reply-To: gogala.mladen@gmail.com
List-Help: <mailto:ecartis@freelists.org?Subject=help>
List-Unsubscribe: <mailto:oracle-l-request@freelists.org?Subject=unsubscribe>
List-software: Ecartis version 1.0.0
List-Id: oracle-l <oracle-l.freelists.org>
X-List-ID: oracle-l <oracle-l.freelists.org>
List-Subscribe: <mailto:oracle-l-request@freelists.org?Subject=subscribe>
List-Owner: <mailto:>
List-post: <mailto:oracle-l@freelists.org>
List-Archive: <http://www.freelists.org/archives/oracle-l>
X-list: oracle-l
--=-9BBybcDDaiNuXA3sPgcA
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit

Delete or rollback do not free space. There are ways to free space: *
truncate
 * alter table compact
 * alter table move
 * drop table
 * mkfs
It is perfectly possible to have 32GB  table consuming the entire
tablespace. That is known as "agile methodology" because it forces the
DBA to be agile and keep checking space.Regards
On Tue, 2020-05-05 at 11:21 -0500, Ram Raman wrote:
> Hi
> 
> I created a table for testing and inserting rows into it when the
> insert process failed as the tablespace reached maximum limit of 32G
> - that happened couple of days ago. However, there are no rows in the
> table, but space occupied shows as real high with the tablespace
> itself full. Does anyone have an idea? There are couple of other
> tables in the tablespace but they occupy just few 100 blocks. 12c
> 
>   1  select table_name, NUM_ROWS, last_analyzed, blocks from
> dba_tables
>   2* where table_name = upper('wvce')
> 11:14:17 SQL> /
> 
> TABLE_NAME                           NUM_ROWS LAST_ANAL     BLOCKS
> ------------------------ -------------------- --------- ----------
> WVCE                                        0 03-MAY-20    3444463
> 
> Elapsed: 00:00:00.09
> 11:14:17 SQL>
> 11:14:28 SQL> select count(*) from WVCE ;
> 
>             COUNT(*)
> --------------------
>                    0
> 
> Elapsed: 00:00:00.00
> 11:14:35 SQL>
> -- 
>  
> Thanks
> Ram
-- 
Mladen GogalaDatabase ConsultantTel: (347) 321-1217Email:gogala.mladen@gmail.com

--=-9BBybcDDaiNuXA3sPgcA
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

<html dir=3D"ltr"><head></head><body style=3D"text-align:left; direction:lt=
r;" bgcolor=3D"#fcfcfc" text=3D"#3c3c3c" link=3D"#737373" vlink=3D"#3c3c3c"=
><div>Delete or rollback do not free space. There are ways to free space:</=
div><ul><li>truncate</li><li>alter table compact</li><li>alter table move</=
li><li>drop table</li><li>mkfs</li></ul><div>It is perfectly possible to ha=
ve 32GB  table consuming the entire tablespace. That is known as "agile met=
hodology" because it forces the DBA to be agile and keep checking space.</d=
iv><div>Regards</div><div><br></div><div>On Tue, 2020-05-05 at 11:21 -0500,=
 Ram Raman wrote:</div><blockquote type=3D"cite" style=3D"margin:0 0 0 .8ex=
; border-left:2px #729fcf solid;padding-left:1ex"><div dir=3D"ltr"><div>Hi<=
/div><div><br></div><div>I created a table for testing and inserting rows i=
nto it when the insert process failed as the tablespace reached maximum lim=
it of 32G - that happened couple of days ago. However, there are no rows in=
 the table, but space occupied shows as real high with the tablespace itsel=
f full. Does anyone have an idea? There are couple of other tables in the t=
ablespace but they occupy just few 100 blocks. 12c</div><div><br></div><div=
>&nbsp; 1 &nbsp;select table_name, NUM_ROWS, last_analyzed, blocks from dba=
_tables<br>&nbsp; 2* where table_name =3D upper('wvce')<br>11:14:17 SQL&gt;=
 /<br><br>TABLE_NAME &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp=
; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NUM_ROWS LAST_ANAL &nbsp; &nbsp; BLOCK=
S<br>------------------------ -------------------- --------- ----------<br>=
WVCE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0 03-M=
AY-20 &nbsp; &nbsp;3444463<br><br>Elapsed: 00:00:00.09<br>11:14:17 SQL&gt;<=
br>11:14:28 SQL&gt; select count(*) from WVCE ;<br><br>&nbsp; &nbsp; &nbsp;=
 &nbsp; &nbsp; &nbsp; COUNT(*)<br>--------------------<br>&nbsp; &nbsp; &nb=
sp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0<br><br>Elapsed: 00:00=
:00.00<br>11:14:35 SQL&gt;<br></div>-- <br><div dir=3D"ltr" class=3D"gmail_=
signature" data-smartmail=3D"gmail_signature"><div dir=3D"ltr"><div dir=3D"=
ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div>&nbsp;</div><div>Thanks</div><d=
iv>Ram</div></div></div></div></div></div></div>
</blockquote><div><span><pre>-- <br></pre><div>Mladen Gogala</div><div>Data=
base Consultant</div><div>Tel: (347) 321-1217</div><div>Email:gogala.mladen=
@gmail.com</div><div></div></span></div></body></html>

--=-9BBybcDDaiNuXA3sPgcA--

--
http://www.freelists.org/webpage/oracle-l


