<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Find remaining database space in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/find-remaining-database-space/qaa-p/13843177#M4874020</link>
    <description>&lt;P&gt;How do I address the command exactly within the OSX (10.13) terminal ?&lt;/P&gt;
&lt;P&gt;./dbinfo -u /Applications/SQLAnywhere17/System/demo.db&lt;/P&gt;
&lt;P&gt;Whats wrong with that?&lt;/P&gt;
&lt;P&gt;thx for your help, guys!&lt;/P&gt;</description>
    <pubDate>Thu, 20 Sep 2018 11:26:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2018-09-20T11:26:30Z</dc:date>
    <item>
      <title>Find remaining database space</title>
      <link>https://community.sap.com/t5/technology-q-a/find-remaining-database-space/qaq-p/13843174</link>
      <description>&lt;P&gt;How can I run a command to find the total database space and the remaining database space? The dbinfo command doesn't seem to have the information I am looking for.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2017 16:27:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/find-remaining-database-space/qaq-p/13843174</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-09-11T16:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: Find remaining database space</title>
      <link>https://community.sap.com/t5/technology-q-a/find-remaining-database-space/qaa-p/13843175#M4874018</link>
      <description>&lt;P&gt;Are you using dbinfo -u.&lt;/P&gt;
&lt;P&gt;That output is very detailed about number of pages - used and free, usage percentages by table for table and index pages.&lt;/P&gt;
&lt;P&gt;Here is an example dbinfo -u output. If it is not sufficient for your needs, can you describe what other information is needed:&lt;/P&gt;
&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;&lt;/SPAN&gt;SQL Anywhere Information Utility Version 17.0.8.4003
Database  : c:\\sa\\sa17\\samples\\demo.db
Log file  : c:\\sa\\sa17\\samples\\demo.log
Free pages: 565275
Page size : 4096

     Table   Table            Index           Percent  Name
      id     Pages    %used   Pages    %used  of File
     -----  --------  -----  --------  -----  -------  ----
         1        11  ( 84)        10  ( 44)      0    ISYSTAB
...
      3008         1  (  3)         2  (  9)      0    Departments
            ========         ========
Total:           355 table +      496 index + 565275 free + 0 bit map + 162 other = 566288 pages
&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 11 Sep 2017 20:58:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/find-remaining-database-space/qaa-p/13843175#M4874018</guid>
      <dc:creator>chris_keating</dc:creator>
      <dc:date>2017-09-11T20:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Find remaining database space</title>
      <link>https://community.sap.com/t5/technology-q-a/find-remaining-database-space/qaa-p/13843176#M4874019</link>
      <description>&lt;P&gt;You can &lt;B&gt;do-it-yourself&lt;/B&gt;...&lt;/P&gt;
&lt;PRE&gt;SELECT
CAST ( DB_PROPERTY ( 'PageSize'  ) AS INTEGER ) AS PageSize,
CAST ( DB_PROPERTY ( 'FileSize'  ) AS BIGINT ) AS FileSize,
CAST ( DB_PROPERTY ( 'FreePages' ) AS INTEGER ) AS FreePages,
CAST ( ( PageSize * FileSize ) / 1024.0 / 1024.0 AS DECIMAL ( 11, 1 ) ) AS FileMB,
CAST ( ( PageSize * FreePages ) / 1024.0 / 1024.0 AS DECIMAL ( 11, 1 ) )  AS FreeMB,
CAST ( ( ( FileSize - FreePages ) * 100.0 ) / FileSize AS DECIMAL ( 11, 1 ) )  AS UsedPercent;

   PageSize             FileSize   FreePages        FileMB        FreeMB   UsedPercent 
----------- -------------------- ----------- ------------- ------------- ------------- 
       4096              1650235      235264        6446.2         919.0          85.7 
&lt;/PRE&gt;

&lt;P&gt;or let &lt;B&gt;&lt;A href="http://www.risingroad.com/foxhound/index.html"&gt;Foxhound&lt;/A&gt; monitor the numbers&lt;/B&gt;...&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://risingroad.com/foxhound/images/database_log_temp_sizes.jpg" alt="alt text" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2017 16:55:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/find-remaining-database-space/qaa-p/13843176#M4874019</guid>
      <dc:creator>Breck_Carter</dc:creator>
      <dc:date>2017-09-12T16:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: Find remaining database space</title>
      <link>https://community.sap.com/t5/technology-q-a/find-remaining-database-space/qaa-p/13843177#M4874020</link>
      <description>&lt;P&gt;How do I address the command exactly within the OSX (10.13) terminal ?&lt;/P&gt;
&lt;P&gt;./dbinfo -u /Applications/SQLAnywhere17/System/demo.db&lt;/P&gt;
&lt;P&gt;Whats wrong with that?&lt;/P&gt;
&lt;P&gt;thx for your help, guys!&lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2018 11:26:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/find-remaining-database-space/qaa-p/13843177#M4874020</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-09-20T11:26:30Z</dc:date>
    </item>
  </channel>
</rss>

