Let I run multiple databases on a single database ASA9-server (or SQL Anywhere 12, or 16 ... ) Can I find out how much space in the cache (in pages or in percent) occupy each database?

For example:

sa_eng_properties:
'CurrentCacheSize' * 1024/ 'PageSize' = 262144 pages
'CacheFree'                           = 256654 pages
sa_db_properties:
DB1 = ? pages                                  
DB2 = ? pages
...

asked 19 Dec '12, 06:22

Ilia63's gravatar image

Ilia63
821283452
accept rate: 16%

edited 19 Dec '12, 09:35

Breck%20Carter's gravatar image

Breck Carter
26.9k438609883


The server does not track the number of pages used per database, so this information is not available. (I've added this to the list of enhancement requests for some future release).

permanent link

answered 19 Dec '12, 10:31

Mark%20Culp's gravatar image

Mark Culp
23.3k9132275
accept rate: 40%

Thanks. Regards, Ilia

(19 Dec '12, 10:49) Ilia63

FWIW, are all these pages related to one particular database, or are there also "unused" or "common" pages?

(19 Dec '12, 10:58) Volker Barth
Replies hidden
2

There are definitely times when some pages in cached are unused and hence would not be associated with any database. There are also some pages in cache which hold "common" information - allocated pages not associated with any database - but the number of these pages is tiny compared to the class of pages used to hold database file pages and intermediate query results.

There are also other classes of pages which hold database connection info and materialized information about a database (e.g. procedure definitions, user & table meta info, etc) but obviously each of these are associated with a particular database and therefore could be included in the count of pages for a db.

(19 Dec '12, 16:10) Mark Culp
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×101

question asked: 19 Dec '12, 06:22

question was seen: 542 times

last updated: 19 Dec '12, 16:12