Return-Path: <oracle-l-bounce@freelists.org>
Delivered-To: 2-oracle-l@orafaq.com
Received: (qmail 5908 invoked from network); 6 Jun 2008 11:25:59 -0500
Received: from freelists-180.iquest.net (HELO turing.freelists.org) (206.53.239.180)
  by air964.startdedicated.com with SMTP; 6 Jun 2008 11:25:59 -0500
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id BB73585B2B3;
 Fri,  6 Jun 2008 12:21:34 -0400 (EDT)
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 28601-06; Fri, 6 Jun 2008 12:21:34 -0400 (EDT)
Received: from turing (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 32BC485AFF5;
 Fri,  6 Jun 2008 12:21:34 -0400 (EDT)
Received: with ECARTIS (v1.0.0; list oracle-l); Fri, 06 Jun 2008 11:42:40 -0400 (EDT)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 9605285ADBE
 for <oracle-l@freelists.org>; Fri,  6 Jun 2008 11:42:40 -0400 (EDT)
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 23397-10 for <oracle-l@freelists.org>;
 Fri, 6 Jun 2008 11:42:40 -0400 (EDT)
Received: from yw-out-1718.google.com (yw-out-1718.google.com [74.125.46.153])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 5386385AA6D
 for <oracle-l@freelists.org>; Fri,  6 Jun 2008 11:42:40 -0400 (EDT)
Received: by yw-out-1718.google.com with SMTP id 5so598274ywm.46
        for <oracle-l@freelists.org>; Fri, 06 Jun 2008 08:47:04 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:received:received:message-id:date:from:to
         :subject:cc:in-reply-to:mime-version:content-type:references;
        bh=LjReVq5Gt3ZfnvwadGEBk33N/CYlz9NtP0WSXIHpALU=;
        b=Tt6ZKwtl/yHPx6v+G5+wq2lBDgTPvw6bSlo9b6ATiNO4vs5+zish4alHBKtnXPVEIC
         ZyK+CyrsyoAhlVkV0mpKUjSlWVa3IMM9s9+lNn2DsNgJ9yVBOES/PW5Eqqhl5Q/CbE+/
         VQHrH88GqfwUpxD5aCJRfwxRSox/S0Bsv8hx8=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=message-id:date:from:to:subject:cc:in-reply-to:mime-version
         :content-type:references;
        b=eSttvvetjlLT7nE251Gmp3/L6IlFRcCMmwg3OPbaNBRIk2k6gO74VvfXAvvF2Ae+DT
         NbxMN25xTKjuZpE5NNMNU65YmqP7YuntuneZPoaTxEVraTMdKRax73tZq2bSNxi25m15
         vFzbllpck9FZw06Lw7IrpdD+trX49BkqeL7vg=
Received: by 10.150.83.22 with SMTP id g22mr426470ybb.146.1212767223845;
        Fri, 06 Jun 2008 08:47:03 -0700 (PDT)
Received: by 10.151.150.11 with HTTP; Fri, 6 Jun 2008 08:47:03 -0700 (PDT)
Message-ID: <e9569ef30806060847p3e92f089u202788ad4d4aa70c@mail.gmail.com>
Date: Fri, 6 Jun 2008 10:47:03 -0500
From: "Bradd Piontek" <piontekdd@gmail.com>
To: joe_dba@hotmail.com
Subject: Re: dba_tab_partitions
Cc: oracle-l@freelists.org
In-Reply-To: <BLU108-W3432E441BFC25867E4EE1097B70@phx.gbl>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_Part_6527_20312674.1212767223834"
References: <BLU108-W3432E441BFC25867E4EE1097B70@phx.gbl>
X-archive-position: 8653
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: piontekdd@gmail.com
Precedence: normal
Reply-to: piontekdd@gmail.com
List-help: <mailto:ecartis@freelists.org?Subject=help>
List-unsubscribe: <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: <oracle-l-request@freelists.org?Subject=subscribe>
List-owner: <mailto:steve.adams@ixora.com.au>
List-post: <mailto:oracle-l@freelists.org>
List-archive: <http://www.freelists.org/archives/oracle-l>
X-list: oracle-l
X-Virus-Scanned: Debian amavisd-new at localhost.localdomain
------=_Part_6527_20312674.1212767223834
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Why join them at all?

Just look at dba_segments and tab_tab_partitions for segment_type of "TABLE
PARTITION" , joined between partition_name.

I'm not sure where dba_data_files comes in if you want the size of the
partition segments.

On Fri, Jun 6, 2008 at 10:37 AM, Joe Smith <joe_dba@hotmail.com> wrote:

>  What is the most efficient way to join dba_data_files and
> dba_tab_partitions to select num_rows and bytes to display both with a
> single query?
>
>
> thanks.
>
>
> ------------------------------
> Enjoy 5 GB of free, password-protected online storage. Get Windows Live
> SkyDrive.<http://www.windowslive.com/skydrive/overview.html?ocid=TXT_TAGLM_WL_Refresh_skydrive_062008>
>



-- 
Bradd Piontek
Twitter: http://www.twitter.com/piontekdd
Oracle Blog: http://piontekdd.blogspot.com
Linked In: http://www.linkedin.com/in/piontekdd
Last.fm: http://www.last.fm/user/piontekdd/

------=_Part_6527_20312674.1212767223834
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Why join them at all?<br><br>Just look at dba_segments and tab_tab_partitions for segment_type of &quot;TABLE PARTITION&quot; , joined between partition_name.<br><br>I&#39;m not sure where dba_data_files comes in if you want the size of the partition segments.<br>
<br><div class="gmail_quote">On Fri, Jun 6, 2008 at 10:37 AM, Joe Smith &lt;<a href="mailto:joe_dba@hotmail.com">joe_dba@hotmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">




<div>
What is the most efficient way to join dba_data_files and dba_tab_partitions to select num_rows and bytes to display both with a single query?<br>
&nbsp;<br>
&nbsp;<br>
thanks.<br>
&nbsp;<br><br><hr>Enjoy 5 GB of free, password-protected online storage. <a href="http://www.windowslive.com/skydrive/overview.html?ocid=TXT_TAGLM_WL_Refresh_skydrive_062008" target="_blank">Get Windows Live SkyDrive.</a></div>

</blockquote></div><br><br clear="all"><br>-- <br>Bradd Piontek<br>Twitter: <a href="http://www.twitter.com/piontekdd">http://www.twitter.com/piontekdd</a><br>Oracle Blog: <a href="http://piontekdd.blogspot.com">http://piontekdd.blogspot.com</a><br>
Linked In: <a href="http://www.linkedin.com/in/piontekdd">http://www.linkedin.com/in/piontekdd</a><br>Last.fm: <a href="http://www.last.fm/user/piontekdd/">http://www.last.fm/user/piontekdd/</a>

------=_Part_6527_20312674.1212767223834--
--
http://www.freelists.org/webpage/oracle-l


