Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Divisor is equal to zero

Re: Divisor is equal to zero

From: DA Morgan <damorgan_at_psoug.org>
Date: Wed, 20 Sep 2006 11:03:55 -0700
Message-ID: <1158775433.354952@bubbleator.drizzle.com>


muddu wrote:
> Hello,
>
> I am running a sql script to determine how much % the tablespaces are
> occupying.
> But I am getting this error:
>
> ERROR at line 3:
> ORA-01476: divisor is equal to zero
>
> line 3: round(100 * (us.usedspace / df.totalspace)) per.
>
> Thanks.

Then don't divide by zero.

The issue is obviously df.totalspace. As you give no indication of your Oracle version number or how it obtains a value no further help is possible.

If this is not enough to point you in the right direction ... please repost with enough information for someone to help you.

-- 
Daniel Morgan
University of Washington
Puget Sound Oracle Users Group
Received on Wed Sep 20 2006 - 13:03:55 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US