473,563 Members | 2,895 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

get_dbsize_info

I'm playing with scripts to gather database size and count information
- can anyone tell me what the capacity output of the get_dbsize_info
procedure includes? It's about 25% larger than the number I get adding
up allocated pages (multiplied by page size, of course), and even if I
include free space in filesystems where temp and data sms tablespaces
reside and the instance home filesystem, I'm still about 10% short. Any
insight?

Thanks,
Ember

Jan 10 '06 #1
4 3048
In article <11************ **********@o13g 2000cwo.googleg roups.com>,
(da****@hotmail .com) says...
I'm playing with scripts to gather database size and count information
- can anyone tell me what the capacity output of the get_dbsize_info
procedure includes? It's about 25% larger than the number I get adding
up allocated pages (multiplied by page size, of course), and even if I
include free space in filesystems where temp and data sms tablespaces
reside and the instance home filesystem, I'm still about 10% short. Any
insight?

Thanks,
Ember


Maybe logfiles are also counted?
Jan 10 '06 #2
Would this not show LOBs space used.
Catalog tables used LOB columns for a lot of reasons and their space does
NOT show in pages allocated per table for SMS. All your catalog tables are
in SMS table spaces by default.
HTH, Pierre.

--
Pierre Saint-Jacques
SES Consultants Inc.
514-737-4515
"Gert van der Kooij" <ge**@invalid.n l> a écrit dans le message de news:
MP************* ***********@new s.xs4all.nl...
In article <11************ **********@o13g 2000cwo.googleg roups.com>,
(da****@hotmail .com) says...
I'm playing with scripts to gather database size and count information
- can anyone tell me what the capacity output of the get_dbsize_info
procedure includes? It's about 25% larger than the number I get adding
up allocated pages (multiplied by page size, of course), and even if I
include free space in filesystems where temp and data sms tablespaces
reside and the instance home filesystem, I'm still about 10% short. Any
insight?

Thanks,
Ember


Maybe logfiles are also counted?


Jan 10 '06 #3
I think it must be the logs - the math works out right for it. I didn't
think that made sense, so I hadn't added it in. Thanks! Thanks for the
idea on LOBs, but the only LOBs in this database are in the catalog
tables, and the database is around 200GB, so catalog LOBs wouldn't make
much of a difference.

Ember

Jan 11 '06 #4
Indeed, and thanks for pointing (finding) out that the oputput includes the
logs.
I hadn't thought of that.
One thing though, do the logs get included because their default log path is
a subdirectory of the database path or is the get_dbsize command smart
enough to figure out the current log path wherever that may be. I think the
latter but I'm not sure. I guess I'd have to test if I had the time!!
HTH, Pierre.

--
Pierre Saint-Jacques
SES Consultants Inc.
514-737-4515
<da****@hotmail .com> a écrit dans le message de news:
11************* *********@g14g2 00...legr oups.com...
I think it must be the logs - the math works out right for it. I didn't
think that made sense, so I hadn't added it in. Thanks! Thanks for the
idea on LOBs, but the only LOBs in this database are in the catalog
tables, and the database is around 200GB, so catalog LOBs wouldn't make
much of a difference.

Ember


Jan 11 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2658
by: Erik Hendrix | last post by:
Hi, I just upgraded a instance from 8.1 FP5 to 8.2 (FP7). Now when I run db2advis I get the following: SQL0805N Package "NULLID.DB2ADVIO 0X5142316D564F4A55" was not found. SQLSTATE=51002 ************************************* * CONTENTS OF SQLCA *
6
6117
by: kaming | last post by:
Dear all, I would like to ask is there any DB2 SQL statement that can be used to show the overall database size? (i.e. display the allocated/used data files or tablespaces (either SMS or DMS) size??) Thanks! Henry
5
3359
by: DeeBee2 | last post by:
is there a view or a table that i can query the total size of my database (including the containers belonging to DMS and SMS tablespaces) Thanks & Regards,
5
4980
by: lennart | last post by:
Here's the scenario. Take backup on production machine Restore backup on development machine OS and fixpak identical, but - and I suspect this has something to do with it - the dbadm user differs between prod and dev. drop explain tables and recreate them for dbadm on dev.
2
2873
by: Tomas | last post by:
Hey all, I'm trying to parse the output from the get_dbsize_info procedure with a Perl script, using the DBI and the DB2 DBD. Below is the relevant part of the code: my $dbsql = "call get_dbsize_info(?,?,?,?)"; my $dbsqlh = $dbh->prepare($dbsql); $dbsqlh->bind_param_inout(1,\$snapshottimestamp,20,{db2_param_type=>SQL_PARAM_OUTPUT});...
0
2236
by: Eil | last post by:
Have 2 databases under the same db2 udb instance (aix 5.3.0.0, db2 udb V8.1, fixpak 9). Able to run the db2advis command successfully against one database. On the other database, always receive the following error. Any ideas/info would be greatly appreciated. Thanks! Using user id as default schema name. Use -n option to...
2
2383
by: Anonymous Sender | last post by:
On Win32, db2 v8.1 FP14 , when I call SYSCAT.GET_DBSIZE_INFO(?,?,?,-1) then after some moments I get a SQL1131N. (A stored procedure terminated abormally). This is on a newly created database, automatic storage. Any suggestions?
2
2254
by: Laurence | last post by:
Hi folks, My database DB03 is circular logging. I called the db2 procedure: get_dbsize_info to get the database size as below: Parameter Name : SNAPSHOTTIMESTAMP Parameter Value : 2008-04-08-06.39.49.518070 Parameter Name : DATABASESIZE Parameter Value : 24666112
1
8488
by: jerry8huang | last post by:
The DB2 runs on Redhat, and when I entered following command, $ db2 call GET_DBSIZE_INFO(?,?,?,0) I got error like this: -bash: syntax error near unexpected token `(' anyone could advise, thanks in advance.
0
7665
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7583
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7888
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7950
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5484
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5213
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3643
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2082
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.