V7.2 Snapshot API in C 
Author Message
 V7.2 Snapshot API in C

I'm trying to make heads or tails of the snapshot API.

I took the dbsnap.c sample program and got it compiled.  When running
it, I get a 'not enough buffer area' error, so I increase the buffer
size until the error goes away.

Now I get no output whatsoever, so I started some research.  In the
dump_snapshot_output() routine, it is setting num_top_lvl_structs
to be a sum of collected.db2 + collected.databases (and so on).
Everyone one of the values are zero.  

I look in the db2ApiDf.h file and see those parts of the structure
have been marked obsolete and that I should use num_top_level_structs.

Well, num_top_level_structs is zero.

I'm obviously getting some data back; hence the buffer too small error,
but can't get to any of it.  The sample program looks to be out of
date and the code snippets in Chapter 5 of the Monitor Guide & Reference
don't work, either.

Anybody got some ideas as to where to look next?

--
Tim.

"Those who give up essential liberties for temporary safety deserve
neither
liberty nor safety." - Benjamin Franklin



Tue, 17 Aug 2004 06:11:48 GMT
 
 [ 1 post ] 

 Relevant Pages 

1. Pdox v7.0 vs CALLING Windows API's

2. Help with Printer API calls in V7 Progress

3. snapshot api questions

4. Discussion: Snapshot Monitor API - new format

5. Upgrade V7 to V7

6. V7 to V7 upgrade

7. V7 Beta -> V7 Standard

8. BAD sig (was: Re: v7.3.1 psql against a v7.2.x database

9. Convert dump v7.1 to v7.2.1

10. Ora v7.1 to v7.3 speed problems (VMS)

11. Export from v7.3 to a v7.2 database

12. GA-ATLANTA-SENIOR ORACLE DBA - TO $90K - PRODUCTION V7.23->V7.32


 
Powered by phpBB® Forum Software