Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

how to calculate the label 0 backup file size

 
   Database Help (Home) -> Informix RSS
Next:  CREATE TYPE Error  
Author Message
joe

External


Since: Dec 30, 2009
Posts: 3



(Msg. 1) Posted: Sat Oct 15, 2011 11:57 pm
Post subject: how to calculate the label 0 backup file size
Archived from groups: comp>databases>informix (more info?)

How can I know the backup file size after running 'ontape -s -L 0' .

Can it tell from output of 'onstat -d'.

Or select some information from sysmaster .

 >> Stay informed about: how to calculate the label 0 backup file size 
Back to top
Login to vote
Superboer

External


Since: Jan 28, 2008
Posts: 37



(Msg. 2) Posted: Sun Oct 16, 2011 1:39 am
Post subject: Re: how to calculate the label 0 backup file size [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

It will depend also on the activity on your system;

if a backup of a dbspace is running, then before images of pages will
be stored into temp space (which are needed to have
a complete backup) they will be appended to the backup media when the
backup of the dbspace completes.
Also the info in your trx log is needed. This may be big if a
transaction was started long before the backup began...


If there is no activity when the backup runs then you can look at the
npused in sysptnhdr which i think will give you a good
number.
you may have to run a select count(*) from sysextents before you query
syspnthdr (to get things in the cache..) or look at sysextents as
well.
Disadvantage is that the unused pages in tables are in there as well.

Superboer.




On 16 okt, 08:57, joe wrote:
> How can I know the backup file size after running 'ontape -s -L 0' .
>
> Can it tell  from  output of 'onstat -d'.
>
> Or select some information from sysmaster .

 >> Stay informed about: how to calculate the label 0 backup file size 
Back to top
Login to vote
Jack Parker

External


Since: Oct 16, 2011
Posts: 1



(Msg. 3) Posted: Sun Oct 16, 2011 10:11 am
Post subject: Re: how to calculate the label 0 backup file size [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

You want the size of the backup file?

How about: ontape -s -L 0 -t stdio | wc

But then that's silly, if you compress it on the fly, it will be smaller and take less time to write.

ontape -s -L 0 -t stdio | gzip > file.gz

j.


On Oct 16, 2011, at 2:57 AM, joe wrote:

> How can I know the backup file size after running 'ontape -s -L 0' .
>
> Can it tell from output of 'onstat -d'.
>
> Or select some information from sysmaster .
> _______________________________________________
> Informix-list mailing list
> Informix-list RemoveThis @iiug.org
> http://www.iiug.org/mailman/listinfo/informix-list
 >> Stay informed about: how to calculate the label 0 backup file size 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
onbar label 0 backup will backup logical log ? - my box is ids10 with TSM. I issue 'onbar -b -L 0' or 'onbar -b -w -L 0' to backup label 0 archive. It will backup logical log automatically . Why It do this ? Can I backup full system not include logical log file just like 'ontape -s -L 0'?

View contents of backup file - Hi All. I would appreciate all help to my query. I have a set of (presumably) binary files that I believe were generated following a backup of an informix database. I am told the "onunload" command was used. Each file corresponds to a table ...

DBSECADM question with Label-Based Access Control (v11) - IDS 11.10.FC1 on HP-UX 11.23 >From the SQL Reference Guide for v11 under "Granting the Database Security Administrator Role": "You cannot grant DBSECADM to a role or to yourself." >From Carlton Doe's book on IDS 11: "User...

Calculate with today in if clause - Hello list. I'got a small problem with one report. I have to write a report which results is an overview about age distribution in one table I try to use the if statement like if gebdat between (today - 6570) and (today - 10950) Gebdat is a date-type....

Calculate optimal value for DS_POOLSIZE - Version: IDS 10 I am trying to determine the optimal value for DS_POOLSIZE and DS_HASHSIZE. I looked at the onstat -g dsc. I have following question: 1. How do I determine the correct size of DS_POOLSIZE. Should I look at our update stats and see numbe...
   Database Help (Home) -> Informix All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]