Database Information

Alternatives

Reporting Sizes of Alternatives

You can dump information on the size of each alternative using the following. *Joe Burt This example shows data for an ACE view, but any view could be used.

av << gis_program_manager.ace_view 
av.goto_top_alternative() 
usage << av.file_usage() 
av.dump_file_usage(usage)

Tables

Reporting Sizes of Tables

You can display the information on the size of each table using the following. *Joe Burt

_for t _over av.collections.fast_elements() 
_loop 
   (s,d,tnb,bb) << t.ds!info() 
   show(t,"Size",s,"Depth",d,"Total NBLOCKS",tnb) 
   write() 
_endloop

"Defining a_table"

This is shown when there is a data model change when going from one alternative to another or creating the exemplar the first time a table is being defined during database start up. This is displayed in the method gis_ds_view.init_rwo_exemplar(). So if you are seeing this and want to know why, you can put a traceback in/around this call.

DS Files

Get List of Users of DS file

Command Line

There is a way of reporting usage of a DS file from the command line or BAT file. I just don't what it is without more research… If you know, please post…

Magik

You can use Magik to get DS file usage. 1st get the current users through the logical file: message_handler.view.files[1].current_logical_file.users. This will return a vector of numbers, which are useless to me but, if past into message_handler.view.files[1].current_logical_file.user_details() it returns the actual user@computer, which is useful!

_block 
    _local lf << message_handler.view.files[1].current_logical_file
    _for aUser _over lf.users.fast_elements()
    _loop 
        show(lf.user_details(aUser))
    _endloop
_endblock
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License