<?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: How to know DATABASE size??? in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/how-to-know-database-size/qaa-p/13832839#M4863682</link>
    <description>&lt;P&gt;I don't know whether this is the easiest way for a running database, but you can calculate that with the &lt;A href="http://dcx.sybase.com/index.html#1201/en/dbadmin/database-properties-perfapp.html"&gt;database properties&lt;/A&gt; &lt;STRONG&gt;FileSize&lt;/STRONG&gt; (number of database pages) and &lt;STRONG&gt;PageSize&lt;/STRONG&gt; (size of a database page), say in MB - for the system dbspace (i.e. the database .db file):&lt;/P&gt;
&lt;DIV class="codehilite"&gt;&lt;PRE&gt;&lt;SPAN class="k"&gt;select&lt;/SPAN&gt; &lt;SPAN class="n"&gt;db_property&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;'FileSize'&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt; &lt;SPAN class="o"&gt;*&lt;/SPAN&gt; &lt;SPAN class="n"&gt;db_property&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;'PageSize'&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt; &lt;SPAN class="o"&gt;/&lt;/SPAN&gt; &lt;SPAN class="mi"&gt;1024&lt;/SPAN&gt; &lt;SPAN class="o"&gt;/&lt;/SPAN&gt; &lt;SPAN class="mi"&gt;1024&lt;/SPAN&gt;&lt;SPAN class="p"&gt;;&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;/DIV&gt;


&lt;P&gt;and accordingly for other dbspaces like the transaction log (.log):&lt;/P&gt;
&lt;DIV class="codehilite"&gt;&lt;PRE&gt;&lt;SPAN class="k"&gt;select&lt;/SPAN&gt; &lt;SPAN class="n"&gt;db_extended_property&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;'FileSize'&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;'TransLog'&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt; &lt;SPAN class="o"&gt;*&lt;/SPAN&gt; &lt;SPAN class="n"&gt;db_property&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;'PageSize'&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt; &lt;SPAN class="o"&gt;/&lt;/SPAN&gt; &lt;SPAN class="mi"&gt;1024&lt;/SPAN&gt; &lt;SPAN class="o"&gt;/&lt;/SPAN&gt; &lt;SPAN class="mi"&gt;1024&lt;/SPAN&gt;&lt;SPAN class="p"&gt;;&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;/DIV&gt;


&lt;P&gt;Note: This tells the whole size of these files, not the "used space" vs. free space. There are other properties for that, or the DBINFO utility.&lt;/P&gt;</description>
    <pubDate>Thu, 23 Jan 2014 12:35:55 GMT</pubDate>
    <dc:creator>VolkerBarth</dc:creator>
    <dc:date>2014-01-23T12:35:55Z</dc:date>
    <item>
      <title>How to know DATABASE size???</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-know-database-size/qaq-p/13832838</link>
      <description>&lt;P&gt;Hi folks,&lt;/P&gt;
&lt;P&gt;I would like to know which command I use to know database physical size.
In SQL Server I can use sp_helpdb ou sp_spaceused. Is there any command like these?&lt;/P&gt;
&lt;P&gt;Also, any command to know the dbpsace allocated size and the file size.&lt;/P&gt;
&lt;P&gt;Thanks!
Roger&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2014 12:02:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-know-database-size/qaq-p/13832838</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-23T12:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to know DATABASE size???</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-know-database-size/qaa-p/13832839#M4863682</link>
      <description>&lt;P&gt;I don't know whether this is the easiest way for a running database, but you can calculate that with the &lt;A href="http://dcx.sybase.com/index.html#1201/en/dbadmin/database-properties-perfapp.html"&gt;database properties&lt;/A&gt; &lt;STRONG&gt;FileSize&lt;/STRONG&gt; (number of database pages) and &lt;STRONG&gt;PageSize&lt;/STRONG&gt; (size of a database page), say in MB - for the system dbspace (i.e. the database .db file):&lt;/P&gt;
&lt;DIV class="codehilite"&gt;&lt;PRE&gt;&lt;SPAN class="k"&gt;select&lt;/SPAN&gt; &lt;SPAN class="n"&gt;db_property&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;'FileSize'&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt; &lt;SPAN class="o"&gt;*&lt;/SPAN&gt; &lt;SPAN class="n"&gt;db_property&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;'PageSize'&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt; &lt;SPAN class="o"&gt;/&lt;/SPAN&gt; &lt;SPAN class="mi"&gt;1024&lt;/SPAN&gt; &lt;SPAN class="o"&gt;/&lt;/SPAN&gt; &lt;SPAN class="mi"&gt;1024&lt;/SPAN&gt;&lt;SPAN class="p"&gt;;&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;/DIV&gt;


&lt;P&gt;and accordingly for other dbspaces like the transaction log (.log):&lt;/P&gt;
&lt;DIV class="codehilite"&gt;&lt;PRE&gt;&lt;SPAN class="k"&gt;select&lt;/SPAN&gt; &lt;SPAN class="n"&gt;db_extended_property&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;'FileSize'&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;'TransLog'&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt; &lt;SPAN class="o"&gt;*&lt;/SPAN&gt; &lt;SPAN class="n"&gt;db_property&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;'PageSize'&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt; &lt;SPAN class="o"&gt;/&lt;/SPAN&gt; &lt;SPAN class="mi"&gt;1024&lt;/SPAN&gt; &lt;SPAN class="o"&gt;/&lt;/SPAN&gt; &lt;SPAN class="mi"&gt;1024&lt;/SPAN&gt;&lt;SPAN class="p"&gt;;&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;/DIV&gt;


&lt;P&gt;Note: This tells the whole size of these files, not the "used space" vs. free space. There are other properties for that, or the DBINFO utility.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2014 12:35:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-know-database-size/qaa-p/13832839#M4863682</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2014-01-23T12:35:55Z</dc:date>
    </item>
  </channel>
</rss>

