How to check my usage (data size) of Oracle XE?

The maximum is 4G, right? How can I know how much there is left, from sqlplus? Thanks so much!
Also, if I use up the space, can I back up my DB and empty it for future use?

Here's a couple dictionary queries to find out the used space and who owns the blocks ...
select a.tablespace_name ts, a.file_id,
sum(b.bytes)/count(*) bytes,
sum(b.bytes)/count(*) - sum(a.bytes) used,
sum(a.bytes) free,
nvl(100-(sum(nvl(a.bytes,0))/(sum(nvl(b.bytes,0))/count(*)))*100,0) pct_used
from sys.dba_free_space a, sys.dba_data_files b
where a.tablespace_name = b.tablespace_name and a.file_id = b.file_id
and a.tablespace_name not in ('SYSTEM', 'SYSAUX','UNDOTBS')
group by a.tablespace_name, a.file_id
order by 1System, sysaux, undo aren't supposed to count toward the 4G. To see the totals by schema ...
select OWNER, TABLESPACE_NAME, sum( BYTES ) from dba_segments
where tablespace_name not in ('SYSTEM', 'SYSAUX','UNDOTBS')
group by OWNER, TABLESPACE_NAME;If you're bumping into the 4G limit and decide one of those OWNERs can be trashed, that will certainly free up space.
drop user [username] cascade;Check the utilities docs on export and datapump, one way to back up a username is to do an OWNER=username dump or just shut down the database and make a backup of the datafiles some place safe-

Similar Messages

  • How to check Internet usage userwise in Active Directory ?

    How to check Internet usage userwise in Active Directory ? Without third party software is it possible ?
    Thanks & Regards, Amol . Amol Dhaygude

    Hi,
    Thanks for your comment. 
    The schema is the Active Directory component that defines all the objects and attributes that the directory service uses to store data. 
    Active Directory stores and retrieves information from a wide variety of applications and services. So that it can store and replicate data from a potentially infinite variety of sources, Active Directory standardizes how data is stored in the directory. By
    standardizing how data is stored, the directory service can retrieve, update, and replicate data while ensuring that the integrity of the data is maintained. 
    The directory service uses objects as units of storage. All objects are defined in the schema. Each time that the directory handles data, the directory queries the schema for an appropriate object definition. Based on the object definition in the schema, the
    directory creates the object and stores the data. 
    Object definitions control the types of data that the objects can store, as well as the syntax of the data. Using this information, the schema ensures that all objects conform to their standard definitions. As a result, Active Directory can store, retrieve,
    and validate the data that it manages, regardless of the application that is the original source of the data. Only data that has an existing object definition in the schema can be stored in the directory. If a new type of data needs to be stored, a new object
    definition for the data must first be created in the schema. 
    You can find more information from below article.
    Active Directory Schema Technical Reference
    http://technet.microsoft.com/en-us/library/cc759402(v=ws.10).aspx
    What's New in Active Directory Domain Services (AD DS)
    http://technet.microsoft.com/en-in/library/hh831477.aspx
    Hope it helps!
    Thanks.
    Dharmesh Solanki

  • How to check the usage of ram and cpu Performance for the particular application like sqlserver ,ms word

    how to check the usage of ram and cpu  Performance for the particular application like sqlserver ,ms word
    ranki

    Hi,
    You can use Performance Monitor and add the required counters.
    Check the below Technet article on Performance Monitor.
    http://technet.microsoft.com/en-us/library/cc749249.aspx
    Below are the steps to monitor the process in Performance Monitor.
    - Go to the Performance Monitor. 
    - Right-click on the graph and select "Add Counters".
    - In the "Available counters" list, open the "Process" section by clicking on the down arrow next to it. Select "% Processor Time" (and any other counter you want).
    - In the "Instances of selected object" list, select the process you want to track. Then click on "Add >>" button. Click on OK.
    Regards,
    Jack
    www.jijitechnologies.com

  • How can i save the data from the Oracle database to my local directory

    How can i save the data from the Oracle database to my local directory instead Of saving the data file to the Directory created on the Oracle Server ?
    I require to design the Procedure which will pull the data from various tables and needs to store the data in the Client's local directory.

    Since SQL*PLUS runs on the client, you can use SQL*PLUS to spool data to your local drive.
    You could also use the database to write a a specified drive where all users have access to (mapped network drive, e.g.). I wouldn't recommend doing it that way, but it is sometimes useful when the files are created in some nightly batch run.

  • How can we do the data migration between Oracle Applications and SAP R/3.

    Hi All,
    How can we do the data migration between Oracle Applications and SAP R/3 system.What are all the possible ways to move bulk data from Oracle Apps to SAP r/3 system.
    Provide any 3rd party tools which supports data migration and also pls rpovide the SAP's own data migration tools with supports the above feature.
    Awaiting for best possible solution.
    Thanks in advance.
    Regards
    Dharmaraju

    the 3rd party tool is ETL , you can use ETL tool and the prepare the load files then you can use LSMW method to upload the data to SAP.

  • How to check Internal, Concurrent Manager status in Oracle Apps R12 from fr

    Step by step how to check Internal, Concurrent Manager status in Oracle Apps R12 from front end and how to start them.

    Richa wrote:
    Step by step how to check Internal, Concurrent Manager status in Oracle Apps R12 from front end Concurrent Processing - Concurrent Manager Generic Platform Questions and Answers [ID 105133.1]
    and how to start them1) Using adcmctl.sh (from the backend)
    2) Using Activate button (from the front-end) -- http://docs.oracle.com/cd/E18727_01/doc.121/e12893/T174296T174302.htm#4334248
    Thanks,
    Hussein

  • How to export sap bi data in to oracle bi

    Hi Experts,
    How to export sap bi data in to oracle bi. what is the connection used for this .
    Plz assist me,
    Thanks & Regards,
    P.Swaroop.

    Hi Swaroopsagar  ,
       When you need to transfer data from SAP BI system to other Target systems,lets say Oracle BI.
    SAP BI would become the source system and Oracle Bi sould be the target system. In this case I would suggest you to use Open hub provided by SAP BI.You have the option of specifying the Open Hub destination as
    1. Database table.
    2. Falt file
    3. Third party tool.
    The onus of extarcting the data from SAP BI ssytem into ORACLE BI system sould vest with the Target system. Open Hub can provide a suitable destination , once this is done it is upto to the target system to extract data by connecting to this destination....
    Regards,
    James Harold.

  • How to check  which column data differs from master table and archive table

    Hi All,
    i have two tables, table a (a1 number,a2 varchar2,a3 varchar2) and table b (b1 number,b2 varchar2,b3 varchar2).
    how to check the data in both the table are same( including all columns).
    data in a.a1 is same as b.b1 and a.a2 is same as b.b2 like that.
    if they not same , i need to know which field differs.
    Kindly Share ur ideas.

    887268 wrote:
    thanks Sven W. ,
    above reply clearly shows what my question is.
    one column must be primary key, based on that key i need to find out which are the fields having different data..
    im strugling with this, i tried the following already, but not able to get.
    select the columns from a MINUS select the columns from b.
    -- from this i can find whether the difference occurred or not.
    but i cant able to get which are the fields value changed.Good. Then you would match the rows using the PK column and need to compare the columns
    Instead of a MINUS + UNION ALL + MINUS we can now use a FULL OUTER JOIN
    It is a little task to write out all column names, but 40 columns can be handled.
    This statement would show you both tables with matching rows on the same line.
    select a.*, b.*
    from a
    FULL OUTER JOIN b on a.id = b.idNow filter/check for mismatches
    select case when a.col1 != b.col1 then 'COL1 value changed'
                    when a.col2 != b.col2 then 'COL2 value changed'
                    when a.col3 != b.col3 then 'COL3 value changed'
             end as compare_result
            ,a.*, b.*
    from a
    FULL OUTER JOIN b on a.id = b.id
    /* return only non matching columns */
    where (a.col1,a.col2,a.col3) != (b.col1,b.col2,b.col3) You might need to add nvls to take care of null values. Test this!
    Another way could be to group upon the primary key
    select *
    from (
      select id 
               ,count(distinct col1)-1 cnt_col1
               ,count(distinct col2)-1 cnt_col2
               ,count(distinct col3)-1 cnt_col3
       from
         select 'A' source, a.*
         from a
         UNION ALL
         select 'B' source, b.*
         from b)
       group by ID
    /* only records with differences */
    where 1 in (cnt_col1, cnt_col2, cnt_col3)
    ;The count columns will hold either 1 or 0. If it is 1 then this column has a difference.

  • After completing MSS PCR, how to check the updated data in R3

    Hi,
    After completing and submitting the MSS PCR, How do I check the updated data in R3?
    Thanks
    Reva

    I got the answer.

  • How to check the master data records in using SE16 transaction?

    Hi,
    Can you please help me to check the master data records using SE16 transaction?
    Loaded master data for Characteristic and want to check the records in the master data tables.
    Thank you for your help!
    Lakshmi

    Hi!
    Welcome to SDN.
    you have to check the master data tables.
    soo in Se16 you have to select the appropriate master data table and view the data.
    following thread explains about masterdata tables
    MasterData table?
    regards
    mohan
    Message was edited by:
            Mohan Krishna

  • How to check the expired date of a public key stored in my keyStore

    Hello,
    I would like to know if there is any possibility to check the expiration date of a public key which is present in my keystore.
    I did read the help of keytool but did not found any explanation about that.
    Thanks in advance for your answers.
    Alain.
    Message was edited by:
    Philipina

    Public key doesn't have an expiration date. Certificate has. Run keytool -list -v and you can read something looks like:
    Valid from: ... until: ...

  • How to delete Diagnostic & Usage Data logs?

    Is there a way to delete the diagnostics and usage data from the iPhone 4S? If so, I don't see it. Seems to me that if these diagnostics and crash logs just continue loading without being deleted, they'd eventually eat up memory? I have it set to NOT automatically send to Apple, since that probably uses up more battery power.
    Even after sync the iPhone with the iTunes, the logs are still there!
    Does anyone know if Apple is trying to fix this or provide users some information about what's going on here?

    just plug in the iphone to your computer that you have used to set up the iphone or ipod touch to clear the Diagnostic & user data logs.  Also make sure you fix why the app crashed either by calling the app maker or email the maker of the app to tell them about it or delete the app because other wise this will eat up battery power on your Iphone.

  • How to find out the date when an oracle database is upgraded

    Hi,
    I would like to know the date when an oracle database is upgraded (for example 10.2.0.4 to 11.2.0.3).
    Can you help me to find out these details.
    Thanks,
    Sarayu

    user13312943 wrote:
    Hi Ed and SB,
    Thanks for your replies. How about this option?
    Let us assume I am interested in checking when my database is upgraded to any 11g version.
    Will this query help?
    select min(first_usage_date)  from  dba_feature_usage_statistics where  version like '11%';
    I understand this may not be a generic solution , but with this idea I may be able to build up a query to get the result.
    Thanks,
    Sarayu
    How is it that you or nobody knows when the DB was upgraded?
    I would have expected a formal testing & upgrade plan.
    Does the organization practice safe software & utilize any source code repository?
    Does everyone suffer from amnesia?
    How could a MAJOR database upgrade slip by everyone who should care about such a detail?

  • Table data size in oracle 11g

    Hi All,
    how to find the data size in particular Table?
    Ex:I need find out the sh.sales table how much data size is loaded
    Thanks,

    USER_SEGMENTS (or DBA_SEGMENTS)
    And if it's a partitioned table, don't forget to sum the sizes.
    You may also want to include any indexes on the table.

  • MAX DATA SIZE IN ORACLE APPLICATION

    WHAT IS MAX DATA SIZE DOES AN ORACLE APPLICATION CAN HANDLE I.E MAX TABLE SIZE

    Oracle Application can easily fill that.
    And can you hit the "Caps Lock" on your keyboard once more to turn it off.
    Daljit Singh

Maybe you are looking for