Please be aware that the content in SAP SQL Anywhere Forum will be migrated to the SAP Community in June and this forum will be retired.

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
1.2k515782
accept rate: 44%

edited 19 Dec '12, 09:35

Breck%20Carter's gravatar image

Breck Carter
32.5k5417261050


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
24.9k10141297
accept rate: 41%

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:

×108

question asked: 19 Dec '12, 06:22

question was seen: 1,050 times

last updated: 19 Dec '12, 16:12