09-07-2001
Hi Optimus,
I think, that it is not good idea to find solution in UNIX side, you can find SQL script for this:
database sysmaster;
select sum(nptotal) npt, sum(npused) npu
,dbsname dbn
from sysptnhdr h, sysptprof p
where h.partnum = p.partnum
-- and dbsname = "ert_refv211c"
and dbsname not like "sys%"
and dbsname not like "tmp%"
group by dbsname
into temp x;
select
npt,npu,dbn[1,9],
round (npt*2/1024,2) mb_total,
round (npu*2/1024,2) mb_used
from x;
select round(sum(npt)*2/1024,2) mbt, round(sum(npu)*2/1024) mb_u from x;
drop table x;
Sincerely,
nailk
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
How do I access Informix from unix? It's been about 2 years since I've last used unix and I've forgotten the command. (2 Replies)
Discussion started by: pbouknight
2 Replies
2. Solaris
hi ,
we are using Veritas netbackup 5 to backup all databases at our site.
i noticed lately that a specific filesystem on the netbackup servers in running critically out of space , after some investigations i found that there are images that are increasing in size everytime a backup is taken .... (6 Replies)
Discussion started by: ppass
6 Replies
3. Shell Programming and Scripting
Hi All
Please let me know if there is command to check the version of the informix database installed..?
Thanks in advance.
Suresh (4 Replies)
Discussion started by: sureshg_sampat
4 Replies
4. HP-UX
Hi all ,
How to know the size of a oracle database running in hp-ux server. (1 Reply)
Discussion started by: megh
1 Replies
5. UNIX and Linux Applications
Can anybody tell me how to look for the size of the database on the solariis servers.
I am using Solaris 5.6 and Solaris 1.1.1
Any help will be appreciated.................. (1 Reply)
Discussion started by: asalman.qazi
1 Replies
6. HP-UX
I just used the dbsize command to find the size, but i guess, it doesn't gets me what i look for. (0 Replies)
Discussion started by: dvah
0 Replies
7. UNIX for Dummies Questions & Answers
Can anyone point me toward information on setting up a Debian server ODBC connection to an Informix server? I have a Windows server set up with the Informix drivers in ODBC and I'd like to do the same thing on Debian so that my Rails apps can query the database beneath our call-logging software. ... (1 Reply)
Discussion started by: badmoon75
1 Replies
8. Shell Programming and Scripting
Hello,
I'm not very good at scripting as my job is an DBA for a small firm, but now I'd like to implement a few cron jobs which access and report on the databases on an automatic basis.
This is my SQL TEXT
# -- Total size of Database Size in GB
set echo off feedback off verify off pause... (2 Replies)
Discussion started by: jnrpeardba
2 Replies
9. UNIX for Dummies Questions & Answers
Hello,
I'm not very good at scripting as my job is an DBA for a small firm, but now I'd like to implement a few cron jobs which access and report on the databases on an automatic basis.
This is my SQL TEXT
# -- Total size of Database Size in GB set echo off feedback off verify off... (4 Replies)
Discussion started by: jnrpeardba
4 Replies
10. Shell Programming and Scripting
Hi,
Below is my input file:
Long list of significant figure
1.757E-4
7.51E-3
5.634E-5
.
.
.
Desired output file:
0.0001757
0.00751
0.00005634
.
.
. (10 Replies)
Discussion started by: perl_beginner
10 Replies
LEARN ABOUT OPENSOLARIS
round
round(3M) Mathematical Library Functions round(3M)
NAME
round, roundf, roundl - round to nearest integer value in floating-point format
SYNOPSIS
c99 [ flag... ] file... -lm [ library... ]
#include <math.h>
double round(double x);
float roundf(float x);
long double roundl(long double x);
DESCRIPTION
These functions round their argument to the nearest integer value in floating-point format, rounding halfway cases away from 0, regardless
of the current rounding direction.
RETURN VALUES
Upon successful completion, these functions return the rounded integer value.
If x is NaN, a NaN is returned.
If x is +-0 or +- Inf, x is returned.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Standard |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO
feclearexcept(3M), fetestexcept(3M), math.h(3HEAD), attributes(5), standards(5)
SunOS 5.11 12 Jul 2006 round(3M)