<?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>topic Re: schema object in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/schema-object/m-p/2860996#M937255</link>
    <description>hi,&lt;BR /&gt;&lt;BR /&gt;Yes, the following piece of SQL will give you the information desired (in MB):&lt;BR /&gt;&lt;BR /&gt;select sum(bytes)/1024/1024 "Free in MB" from user_free_space &lt;BR /&gt;where tablespace_name = 'PROVA_LOCAL'; &lt;BR /&gt;&lt;BR /&gt;You may also wish to get all the free space available in all tablespaces. Run the attached script using an oracle account having "select all tables" role or dba.&lt;BR /&gt;&lt;BR /&gt;Hope this helps!&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Yogeeraj</description>
    <pubDate>Tue, 10 Dec 2002 11:44:02 GMT</pubDate>
    <dc:creator>Yogeeraj_1</dc:creator>
    <dc:date>2002-12-10T11:44:02Z</dc:date>
    <item>
      <title>schema object</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/schema-object/m-p/2860992#M937251</link>
      <description>Hi,&lt;BR /&gt;I tried to create a schema object for ANDREA user with a object ( TABLE):&lt;BR /&gt;&lt;BR /&gt;Is it right?&lt;BR /&gt;&lt;BR /&gt;SQL&amp;gt; create user "ANDREA"profile "DEFAULT" identified by "lazio"&lt;BR /&gt;2 default tablespace "PROVA_LOCAL" temporary tablespace "TEMP";&lt;BR /&gt;&lt;BR /&gt;SQL&amp;gt; grant create session to "ANDREA";&lt;BR /&gt;&lt;BR /&gt;Grant succeeded.&lt;BR /&gt;&lt;BR /&gt;SQL&amp;gt; grant connect to "ANDREA";&lt;BR /&gt;&lt;BR /&gt;Grant succeeded.&lt;BR /&gt;&lt;BR /&gt;SQL&amp;gt; grant unlimited tablespace to "ANDREA";&lt;BR /&gt;&lt;BR /&gt;Grant succeeded.&lt;BR /&gt;&lt;BR /&gt;SQL&amp;gt; grant resource to "ANDREA";&lt;BR /&gt;&lt;BR /&gt;Grant succeeded.&lt;BR /&gt;&lt;BR /&gt;SQL&amp;gt; grant create any view to "ANDREA";&lt;BR /&gt;&lt;BR /&gt;Grant succeeded.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Creazione tabella:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;SQL&amp;gt; create table STRANO(&lt;BR /&gt;  2  citta varchar2(13) not null,&lt;BR /&gt;  3  datacampione date not null,&lt;BR /&gt;  4  precipitazione number&lt;BR /&gt;  5  );&lt;BR /&gt;&lt;BR /&gt;Table created.&lt;BR /&gt;&lt;BR /&gt;SQL&amp;gt; commit;&lt;BR /&gt;&lt;BR /&gt;Commit complete.&lt;BR /&gt;&lt;BR /&gt;SQL&amp;gt;  select object_name, object_type from all_objects where owner = 'ANDREA';&lt;BR /&gt;&lt;BR /&gt;OBJECT_NAME                    OBJECT_TYPE&lt;BR /&gt;------------------------------ ------------------&lt;BR /&gt;STRANO                         TABLE&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I created the TABLE STRANO in the PROVA_LOCAL tablespace, how can I see the free space in that tablespace?&lt;BR /&gt;&lt;BR /&gt;thank you</description>
      <pubDate>Tue, 10 Dec 2002 11:08:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/schema-object/m-p/2860992#M937251</guid>
      <dc:creator>HPADM</dc:creator>
      <dc:date>2002-12-10T11:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: schema object</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/schema-object/m-p/2860993#M937252</link>
      <description>log on to sqlplus as system and execute ...&lt;BR /&gt;select sum(bytes) from dba_free_Space where tablespace_name = 'PROVA_LOCAL';</description>
      <pubDate>Tue, 10 Dec 2002 11:20:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/schema-object/m-p/2860993#M937252</guid>
      <dc:creator>Ian Lochray</dc:creator>
      <dc:date>2002-12-10T11:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: schema object</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/schema-object/m-p/2860994#M937253</link>
      <description>select sum(bytes) from user_free_space &lt;BR /&gt;where tablespace_name = 'PROVA_LOCAL';&lt;BR /&gt;&lt;BR /&gt;will give you the total number of free bytes in that tablespace.&lt;BR /&gt;&lt;BR /&gt;select bytes from user_free_space &lt;BR /&gt;where tablespace_name = 'PROVA_LOCAL';&lt;BR /&gt;&lt;BR /&gt;will give you a list of the size of each free extent.&lt;BR /&gt;&lt;BR /&gt;Is this what you want?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Dec 2002 11:26:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/schema-object/m-p/2860994#M937253</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2002-12-10T11:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: schema object</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/schema-object/m-p/2860995#M937254</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;TABLESPACE USAGE NOTES:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Tablespace Name - Name of the tablespace &lt;BR /&gt;Bytes Used - Size of the file in bytes &lt;BR /&gt;Bytes Free - Size of free space in bytes &lt;BR /&gt;Largest - Largest free space in bytes &lt;BR /&gt;Percent Used - Percentage of tablespace that is being used - Careful if it is more than 85% &lt;BR /&gt;&lt;BR /&gt;select a.TABLESPACE_NAME,&lt;BR /&gt; a.BYTES bytes_used,&lt;BR /&gt; b.BYTES bytes_free,&lt;BR /&gt; b.largest,&lt;BR /&gt; round(((a.BYTES-b.BYTES)/a.BYTES)*100,2) percent_used&lt;BR /&gt;from  &lt;BR /&gt; (&lt;BR /&gt;  select  TABLESPACE_NAME,&lt;BR /&gt;   sum(BYTES) BYTES &lt;BR /&gt;  from  dba_data_files &lt;BR /&gt;  group  by TABLESPACE_NAME&lt;BR /&gt; )&lt;BR /&gt; a,&lt;BR /&gt; (&lt;BR /&gt;  select  TABLESPACE_NAME,&lt;BR /&gt;   sum(BYTES) BYTES ,&lt;BR /&gt;   max(BYTES) largest &lt;BR /&gt;  from  dba_free_space &lt;BR /&gt;  group  by TABLESPACE_NAME&lt;BR /&gt; )&lt;BR /&gt; b&lt;BR /&gt;where  a.TABLESPACE_NAME=b.TABLESPACE_NAME&lt;BR /&gt;order  by ((a.BYTES-b.BYTES)/a.BYTES) desc&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Dec 2002 11:40:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/schema-object/m-p/2860995#M937254</guid>
      <dc:creator>Ravi_8</dc:creator>
      <dc:date>2002-12-10T11:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: schema object</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/schema-object/m-p/2860996#M937255</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;Yes, the following piece of SQL will give you the information desired (in MB):&lt;BR /&gt;&lt;BR /&gt;select sum(bytes)/1024/1024 "Free in MB" from user_free_space &lt;BR /&gt;where tablespace_name = 'PROVA_LOCAL'; &lt;BR /&gt;&lt;BR /&gt;You may also wish to get all the free space available in all tablespaces. Run the attached script using an oracle account having "select all tables" role or dba.&lt;BR /&gt;&lt;BR /&gt;Hope this helps!&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Yogeeraj</description>
      <pubDate>Tue, 10 Dec 2002 11:44:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/schema-object/m-p/2860996#M937255</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2002-12-10T11:44:02Z</dc:date>
    </item>
  </channel>
</rss>

