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

The maximum is 4G, right? How will I know how much there is to the left of sqlplus? Thank you very much!

Also, if I use the space, can I backup my DB and empty for later use?

Here are a few queries dictionary to find the space used 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 1

System, sysaux cancellation are not supposed to count towards 4G. To display 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 are bumping into the limit of 4G and you decide one of these owners can be trashed, which will certainly free up space.

drop user [username] cascade;

Check the export and datapump utilities docs, save a username is to do an OWNER = user name of dump or simply close the database and make a backup of data files some safe place.

Tags: Database

Similar Questions

  • What ever the data that we are loading in HFM, how to check if the data are correct or not?

    Hello!

    This is SANDEEP, I loaded data using FDM in HFM. How to check if the data is correct or not, what ever the data I was responsible in HFM.

    Please tell me how to recover the data and what format, clearly can you me the data verification process step by step.

    It would be useful for me...

    Thanks in advance...

    Kind regards

    SANDEEP

    Hi Sandeep,

    I think the best way is to extract data from HFM for the same POV that you have loaded FDM and check if it is the same.

    If you then use HFM 11.1.2.x version

    1. login to the application and go to the menu Administration / extract / data.

    2. set the POV that you have loaded the data, then unzip it. You can open the file unzipped in a notebook

    3. you can compare the file with the data file generated by FDMEE under Outbox folder.

    But what would you give all the data corresponding to the POV that you set. So please ensure that you have the correct POV, defined according to the export FDMEE.

    Thank you

    Chandra

  • How to check if my data is synchronized in firefox 4 beta 7 because now sync is included in firefox button

    How to check if my data is synchronized in firefox 4 beta 7 because now sync is included in firefox button.

    And also when the status bar has instead addon bar is added. What is the purpose of the bar addon?

    All fixed in Firefox 4 Final.

  • How to check the use of the ram?

    I have 3 GB of ram on my pc, and I want to know how to check the use of the ram in xp pro? is the use of FP in taskmanager? or (k) of the kernel memory?

    I have 3 GB of ram on my pc, and I want to know how to check the use of the ram in xp pro? is the use of FP in taskmanager? or (k) of the kernel memory?

    Yes, Yes... and no. All applications on your computer uses RAM, not only the pagefile or system (kernel).

    What are you really trying to do?

    See http://www.petri.co.il/pagefile_optimization.htm , especially the part under "How Pagefile your system use?"

  • How to check the manufacturing date of the Z3 Compact?

    How to check the manufacturing date of the Z3 Compact?

    @HerrOdin

    Simple, pull on the flap of the IMEI and search for 14W__

    The first 2 digits are for the year and the last 2 digits are the week

    http://support.sonymobile.com/global-en/xperiaz3compact/Userguide/IMEI-number/

  • How to check the manufacturing date of the Z2?

    Hello, so the title sums up pretty much everything this. On the previous xperia phones, you can check under the battery, with xperia Z, that it was written on the back at the bottom but on Z2? How to check the date of manufacture?

    Hello and welcome to the community! Since you are new, please make sure that you have checked our Forum.

    This label can be found in the MicroSD slot, click on the following link:
    http://Userguide.sonymobile.com/referrer.php?region=en&product=Xperia-Z2#IMEI-number.html

  • How to exclude statistics using Data Pump API?

    How to exclude all statistics when exporting data by using the data pump API Oracle (package DBMS_DATAPUMP)?

    You would call the api metadata filter as follows:

    dbms_datapump. () METADATA_FILTER
    manage = your_handle_here,
    name = "EXCLUDE_PATH_LIST"
    value = 'STATISTICS');

    I hope this helps.

    Dean

  • How to check the fix related information in Oracle 7

    As I want to check the patch of an Oracle DB 7 lvl. Could someone tell me how to check or find information.

    Thanks to all the experts here.

    Welcome to the forums!

    What specific version of 7? As a general rule, this statement should provide information

    SQL> select * from V$version;
    

    http://download.Oracle.com/docs/CD/A57673_01/doc/dcommon/oin/index.htm

    HTH
    Srini

  • How do I know the date when an oracle database is improved

    Hello

    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 find these details.

    Thank you

    Delphine

    To be more precise, you can query

    Select to_char (ACTION_TIME,'MON-DD-YYYY ""), the SUBMISSIONS in ACTION, ID, VERSION, BUNDLE_SERIES, of DBA_REGISTRY_HISTORY where ACTION = 'upgrade ';

    Example:

    SQL > select to_char (ACTION_TIME,'MON-DD-YYYY ""), the SUBMISSIONS in ACTION, ID, VERSION, BUNDLE_SERIES, of DBA_REGISTRY_HISTORY where action = 'upgrade ';

    TO_CHAR (BILL ACTION VERSION ID BUNDLE_SERIES COMMENTS

    ----------- ------------------------------ ------------ ---------- ------------------------------ ----------------------------------------

    6 March, 2009 UPDATED 10.2.0.4.0 improved 10.2.0.3.0

  • How to check the activation date of the ipad

    Hello

    I want to see an ipad from a person who said that this is not enabled yet.how so that I can check.

    Please tell me what should I check other important things.

    Thank you

    There is no way to check if it is enabled.

    Do not do this: https://www.icloud.com/activationlock/

  • How to check for the date validation

    Hello

    I have 3 validation of date in order.

    10 - P1_FROM - (type - Item specified is a valid date)
    20 - P1_TO - (type - Item specified is a valid date)

    30 compare dates P1_FROM & P1_TO
    I want to run it only when these 2 dates are field not null not and registered as valid a date.
    HOW to set that State...
    Type - Function returning bollean
    
    Validation Expression1 - 
    if TO_DATE(:P1_TO,'MM/DD/YYYY') <= TO_DATE(:P1FROM,'MM/DD/YYYY') then
         return false;
    else
         return true;
    end if;
    
    Condition- PL\SQL Expression // I want to put a condition here NOT NULL as well as VALID date
    :P1_FROM is not null AND
    :P1_TO is not null
    Thank you
    Deepak

    Try an exception handler. for example

    begin
    if :P1_TO is not null and :P1FROM is not null then
      if TO_DATE(:P1_TO,'MM/DD/YYYY') <= TO_DATE(:P1FROM,'MM/DD/YYYY') then
        RETURN 'From date cannot be after the To date';
      end if;
    else
      if :P1_TO is null and :P1FROM is  null then
        null;
      else
        RETURN 'Both To and From values must be specified';
      end if;
    end if;
    EXCEPTION WHEN OTHERS THEN
      RETURN 'Invalid Date';
    end;
    
  • How to check the use of the channels of port on fabric of interconnection?

    Hi all

    Is there a mechanism to view and export the use of ports or port channel fabric Interconnect 6248.

    I need to export for the last 15 days. Is there a command or options in the GUI I can export it

    Greetings.

    Native statistics are unlikely to give you a historical trend for the period you're looking for.  See the monitoring/stats for the UCSM system section for more information on the rules of collection of statistics.  The default value for the period appears to be 2 hrs to watch statistics table.

    You can look something like manage performance UCSr, which can do a trend and will retain much historical perspective of production like detailed.

    For a short term in UCSM view, click the LAN tab, then a given port channel, in the right pane statistics, chart and "configure chart" to add in the box counters as "total number of bytes.

    Thank you

    Kirk...

  • How did the type of data stored in oracle timestamp

    I want to know how the timestamp is stored in the oracle database.

    If the data type of a colume's timestamp, the number of bytes is busy?

    What is the principle?

    Thank you.

    Mark - it's a DATE, not a TIMESTAMP

    SQL > create table test (a date, timestamp, b);

    Table created.

    SQL > insert into values test (sysdate, systimestamp);

    1 line of creation.

    SQL > select dump (a) test;

    DUMP (A)

    ------------------------------------------------------------------------

    Typ = Len 12 = 7: 120,115,1,14,17,60,3

    SQL > select dump (b) of the test;

    DUMP (B)

    ------------------------------------------------------------------------

    Typ = 180 Len = 11: 120,115,1,14,17,60,3,17,103,145,0

  • How to check the sessions of locking in oracle 10g

    Hello

    I tried to get hang of the sessions. I had the session blocking using v$ lock view.

    Pls help how to get hang of the sessions.

    Kind regards
    Vincent

    >
    SQL > SELECT SID, SQL_ID, name of USER BLOCKING_SESSION FROM v$ session WHERE BLOCKING_SESSION IS NOT NULL;
    SELECT SID, SQL_ID, username, BLOCKING_SESSION FROM v$ session WHERE BLOCKING_SESSION IS NOT NULL
    *
    ERROR on line 1:
    ORA-00904: "BLOCKING_SESSION": invalid identifier
    >

    What is your version of the database? Please show us all the 5 digits of the version (select from version$ v); *

    10.1_

    SQL> select * from v$version;
    
    BANNER
    ----------------------------------------------------------------
    Oracle Database 10g Enterprise Edition Release 10.1.0.4.0 - Prod
    PL/SQL Release 10.1.0.4.0 - Production
    CORE    10.1.0.4.0      Production
    TNS for Linux: Version 10.1.0.4.0 - Production
    NLSRTL Version 10.1.0.4.0 - Production
    
    SQL> SELECT SID, SQL_ID, USERNAME, BLOCKING_SESSION FROM v$session WHERE BLOCKING_SESSION IS NOT NULL;
    
    no rows selected
    

    In 10.2*

    SQL> select * from v$version;
    
    BANNER
    ----------------------------------------------------------------
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bi
    PL/SQL Release 10.2.0.3.0 - Production
    CORE    10.2.0.3.0      Production
    TNS for HPUX: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 - Production
    
    SQL> SELECT SID, SQL_ID, USERNAME, BLOCKING_SESSION FROM v$session WHERE BLOCKING_SESSION IS NOT NULL;
    
    no rows selected
    

    11g _ _ (showing a situation of real lock)

    SQL> select * from v$version;
    
    BANNER
    --------------------------------------------------------------------------------
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE    11.2.0.1.0      Production
    TNS for 32-bit Windows: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    
    5 rows selected.
    
    SQL> SELECT SID, SQL_ID, USERNAME, BLOCKING_SESSION FROM v$session WHERE BLOCKING_SESSION IS NOT NULL;
    
           SID SQL_ID        USERNAME                       BLOCKING_SESSION
    ---------- ------------- ------------------------------ ----------------
           145 62ttrb9xf43zr SCOTT                                      26
    
    1 row selected.
    

    Published by: user12035575 on 10 Sep, 2011 12:42

  • Migration using data pump for Oracle 10 g-&gt; Oracle 11 g

    Hi all

    1)
    At the moment I am using Oracle 11g. I have a plan to import data from Oracle 10 g. I would like to know if its possible to import data that has been exported by datapump on Oracle 10 g?

    Can I convert somehow expdp out of Oracle 10 g Oracle 11 g format?





    2)
    The next question is. If I use expdp to create the dump of the database complete. Can I use *.dmp for import selected users? Or only the complete database can be restored?

    Yes, you can import dump 10g in an 11g database.

    Maybe you should take the time and read the section on datapump in the Oracle thin® [Database Utilities | http://download.oracle.com/docs/cd/B28359_01/server.111/b28319/dp_import.htm#i1007324] Manual.
    : p

Maybe you are looking for