Checking the size of Oracle XE Database

Hi,
I installed oracle 10g express edition on a Linux machine couple of weeks ago.
Installation was successful oracle is running fine. Now I am concious about the limitation of 4 GB data size in XE.
DBConsole is not running, i am working on it. But want to know the existing DB size from sql.
Kindly let me know the query that can give me the exact size of database.
I will be very thankful.
Regards, Imran

Hi,
select sum(bytes)/1024/1024 from dba_data_files;
select sum(bytes)/1024/1024 from dba_SegmentsThe first query would give you total space allocated to your database.
The second query would give you total space used by database objects.
Regards

Similar Messages

  • How to check image size in oracle 9i & 10g database

    hi,
    i have inserted an Image into a table in oracle database & I want to View the Query How to check image size in oracle 9i & 10g database
    thanks
    Edited by: user8920919 on May 30, 2010 1:43 AM

    user8920919 wrote:
    hi,
    How to check image size in oracle 9i & 10g database
    thanksWhat do you mean with "image size"?

  • Check the size of uploaded file in Oracle UCM

    I need to check the size of the uploaded primary file in Oracle UCM during checkin. I tried writing a filter on the event validateStandard and check the value of dFileSize. But the value is null. Any ideas what event should I use and which parameter should I check?

    hi,
    I am new to Oracle UCM. I need same functionailty of checking file size of uploaded content. Could you please elaborate how you achieved it..... thanx in advance.

  • How to check the datfiles from oracle SQL Developer(enterprise Manager)

    hi,
    Iam using Oracle SQL Developer as enterprise manager in my local pc.I want to check the size of datafiles using this enterprise manager.could u pls help me out..
    Thanks in advance ,
    R.Ratheesh

    What?
    Sql developer is not enterprise manager.
    Size of datafiles? Read the documention, and read the concepts and administration manuals for your release.
    I am not going to provide links, because you have not given your database version number and secondly if you found this forum you can find the docs.
    But I will give you a clue....DBA_DATA_FILES...
    Message was edited by:
    bazzza

  • Checking the size of the object

    Hi all , i need to check the size of the Oracle internal table for the text index created .
    dr $r --table
    option 1:
    SELECT S.bytes Bytes, SYSDATE FROM DBA_SEGMENTS S, DBA_LOBS L WHERE l.TABLE_NAME='DR$TEXT_SEARCH$R' AND l.SEGMENT_NAME=S.SEGMENT_NAME;Option 2:
      select bytes from dba_segments where segment_name='DR$TEXT_SEARCH$R'for 1 i got 7670000000
    for 2 i got 655366
    Which i correct to identify the size of this table

    Hello,
    In fact you have one Segment for the TABLE and another one Segment for the LOB related to this Table.
    Your two queries don't return the same value because they don't deal with the same Segment.
    If you execute the query below, you may see the name of the LOB Segment related to the Table:
    SELECT S.bytes Bytes, S.segment_name FROM DBA_SEGMENTS S, DBA_LOBS L
    WHERE L.TABLE_NAME='DR$TEXT_SEARCH$R' AND L.SEGMENT_NAME=S.SEGMENT_NAME;Hope this help.
    Best regards,
    Jean-Valentin
    Edited by: Lubiez Jean-Valentin on Jun 30, 2010 8:56 AM

  • How to check the version of oracle

    Hi,
    Did anyone know the command to check the version of oracle db?
    Thanks
    daron

    also as a normal user (non-dba) if you want to know then during login to the database using sql*plus you get the following.
    SQL*Plus: Release[b] 9.0.1.3.0 - Production on Thu Oct 6 10:43:35 2005
    (c) Copyright 2001 Oracle Corporation.  All rights reserved.
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.4.0 - ProductionThe first bold version if the version of the client(Sql*plus) and the second bold version (9.2.0.4) is the database version to which you are connected to .

  • Report the size of all SharePoint Databases in a text file using PowerShell?

    I am new to Powershell. please help me for following question with step by step process.
    How to report the size of all SharePoint Databases in a text file using PowerShell?

    Hi Paul,
    Here is the changed script, which will also include the size for the Config DB.
    Please let me know if it worked:
    #Get SharePoint Content database sizes
    Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue
    $date = Get-Date -Format "dd-MM-yyyy"
    #Variables that you can change to fit your environment
    $TXTFile = "D:\Reports\SPContentDatabase_$date.txt"
    $SMTPServer = "yourmailserver"
    $emailFrom = "[email protected]"
    $emailTo = "[email protected]"
    $subject = "Content & Config Database size reports"
    $emailBody = "Daily/Weekly/Monthly report on Content & Config databases"
    $webapps = Get-SPWebApplication
    $configDB = Get-SPDatabase | ?{$_.Name -eq ((Get-SPFarm).Name)}
    $ConfigDBSize = [Math]::Round(($configDB.disksizerequired/1GB),2)
    Add-Content -Path $TXTFile -Value "Config Database size: $($ConfigDBSize)GB"
    Add-Content -Path $TXTFile -Value ""
    foreach($webapp in $webapps)
    $ContentDatabases = $webapp.ContentDatabases
    Add-Content -Path $TXTFile -Value "Content databases for $($webapp.url)"
    foreach($ContentDatabase in $ContentDatabases)
    $ContentDatabaseSize = [Math]::Round(($ContentDatabase.disksizerequired/1GB),2)
    Add-Content -Path $TXTFile -Value "- $($ContentDatabase.Name): $($ContentDatabaseSize)GB"
    if(!($SMTPServer) -OR !($emailFrom) -OR !($emailTo))
    Write-Host "No e-mail being sent, if you do want to send an e-mail, please enter the values for the following variables: $SMTPServer, $emailFrom and $emailTo."
    else
    Send-MailMessage -SmtpServer $SMTPServer -From $emailFrom -To $emailTo -Subject $subject -Body $emailBody -Attachment $TXTFile
    Nico Martens - MCTS, MCITP
    SharePoint 2010 Infrastructure Consultant / Trainer

  • HELP !!! How to check the size of an object in Photoshop ?

    Hello,
    I'm using Photoshop CS 3 to design a website. I used several shapes such as rectangle, line or ellipse of different size. Probably it is a stupid question but I don't know how to check the size of an existing rectangle. I tried free transform tool that selects my rectangle but doesn't show its size. Then I made a selection with rectangular marquee tool but I see nowhere the size of the selected area.
    If you know the name of such a tool please help me !
    Have a nice day !

    Web images are all pixels. View at 100% at pixel view. that is your exact size

  • How can I check the version of Oracle in Linux?

    Dear all :
    How can I check the version of Oracle in Linux ?
    Regards
    Terry

    Hi terry;
    How can I check the version of Oracle in Linux ?You mean your db version or something else? If you mean you want to control your version issue is:
    source env file as oramgr
    sqlplus "/as sysdba"
    when u login sqlplus it will give u something as below:
    SQL*Plus: Release 10.2.0.4.0 - Production on
    Regard
    Helios

  • Checking the size of the infocube

    Hi,
    How can we check the size of the infocube with large volume of data? From the SAP standard practice what is the optimal size that an infocube can consist of data with out an impact on the query performance?

    Hi
    When estimating the size of an InfoCube one must consider the size of the fact table and dimension tables. However, the size of the fact table is the most important, since in most cases it will be 80-90% of the total storage requirement for the InfoCube.
    The following shows how to calculate the size of an InfoCube, including the dimension tables and the fact tables.
    Size of a dimension table
    To calculate the size of a dimension table:
    u2022     The size of one record of the dimension table can be calculated by summing the number of characteristics in the dimension table at 4 bytes each. Also, add four bytes for the key of the dimension table.
    u2022     Calculate the number of records in the dimension table
    u2022     Multiply the size of 1 record by the number of records
    Assume that the dimension table indexes will take up as much space as the dimension table itself.
    Size of a Fact Table
    To calculate the size of a fact table:
    u2022     Count the number of key figures the table will contain, assuming a quantity key figure requires 9 bytes, a currency key figure requires 9 bytes, and other numeric fields require 4 bytes (or more).
    u2022     Every dimension table requires a foreign key in the fact table, so add 4 bytes for each key. Donu2018t forget the three standard dimensions.
    u2022     Add these figures together to get the size of 1 record
    u2022     Calculate the number of records in the fact table
    u2022     Multiply the size of 1 record by the number of records
    Assume that the fact table indexes will take up as much space as the fact table itself. This is more index space than is usually required in most OLTP systems. In the fact table, many of the columns will be foreign keys with pointers to dimension tables. Each of them will have an index.
    Add an additional 150% for temporary table space and aggregate tables. An aggregate contains both new dimension and data tables. A rule of thumb is that all the aggregates will be the size of the fact table.
    Hope this Helps
    Regards
    Shilpa

  • How can I check the size of the spool in my system?

    Hi,
    I need to check the size of the spool in my system. How can I check that?
    Let me know please.
    Much Thanks!

    I am not sure if you are looking for this...
    In Sp01 check your spool no and click on 'Request attributes'(a hat kind of icon). and in TemSe Attributes tab you will see the size in bytes.
    Award points if it helps.

  • Error while checking the status of Oracle Cluster ware

    Hi
    I was trying to install the database using dbca after setting up the grid and database software on LINUX x86-64 RHEL 5.7 machine. The database software version is 11.2.0.3. It throwing the error regarding the connectivity of clusterware. So I checked the status of clusterware.
    -bash-3.2$ ./crsctl stat res -t
    CRS-4535: Cannot communicate with Cluster Ready Services
    CRS-4000: Command Status failed, or completed with errors.
    -bash-3.2$
    But when I ran below one:
    -bash-3.2$ ./crsctl stat res -t -init
    NAME TARGET STATE SERVER STATE_DETAILS
    Cluster Resources
    ora.asm
    1 ONLINE ONLINE sfv9699 Started
    ora.cluster_interconnect.haip
    1 ONLINE ONLINE sfv9699
    ora.crf
    1 ONLINE ONLINE sfv9699
    ora.crsd
    1 ONLINE OFFLINE
    ora.cssd
    1 ONLINE ONLINE sfv9699
    ora.cssdmonitor
    1 ONLINE ONLINE sfv9699
    ora.ctssd
    1 ONLINE ONLINE sfv9699 OBSERVER
    ora.diskmon
    1 OFFLINE OFFLINE
    ora.drivers.acfs
    1 ONLINE ONLINE sfv9699
    ora.evmd
    1 ONLINE INTERMEDIATE sfv9699
    ora.gipcd
    1 ONLINE ONLINE sfv9699
    ora.gpnpd
    1 ONLINE ONLINE sfv9699
    ora.mdnsd
    1 ONLINE ONLINE sfv9699
    So i saw that the crsd having some issue. I checked the alert log and crsd log. Below are the output.
    Alert <server_name>.log
    2012-10-20 15:37:51.408
    [ohasd(3694)]CRS-2765:Resource 'ora.crsd' has failed on server 'sfv9699'.
    2012-10-20 15:37:52.968
    [crsd(5188)]CRS-1013:The OCR location in an ASM disk group is inaccessible. Details in /oracle2/app/11.2.0/grid/log/sfv9699/crsd/crsd.log.
    2012-10-20 15:37:52.984
    [crsd(5188)]CRS-0804:Cluster Ready Service aborted due to Oracle Cluster Registry error [PROC-26: Error while accessing the physical storage
    ORA-27140: attach to post/wait facility failed
    ORA-27300: OS system dependent operation:invalid_egid failed with status: 1
    ORA-27301: OS failure message: Operation not permitted
    ORA-27302: failure occurred at: skgpwinit6
    ORA-27303: additional information: startup egid = 1000 (oinstall), current egid = 10002 (dba)
    ]. Details at (:CRSD00111:) in /oracle2/app/11.2.0/grid/log/sfv9699/crsd/crsd.log.
    2012-10-20 15:37:53.471
    [ohasd(3694)]CRS-2765:Resource 'ora.crsd' has failed on server 'sfv9699'.
    2012-10-20 15:37:53.472
    [ohasd(3694)]CRS-2771:Maximum restart attempts reached for resource 'ora.crsd'; will not restart.
    CRSD.log
    2012-10-20 15:37:52.456: [ CRSMAIN][3563381328] Checking the OCR device
    2012-10-20 15:37:52.457: [ CRSMAIN][3563381328] Sync-up with OCR
    2012-10-20 15:37:52.457: [ CRSMAIN][3563381328] Connecting to the CSS Daemon
    2012-10-20 15:37:52.457: [ CRSMAIN][3563381328] Getting local node number
    2012-10-20 15:37:52.459: [ CRSMAIN][3563381328] Initializing OCR
    [   CLWAL][3563381328]clsw_Initialize: OLR initlevel [70000]
    2012-10-20 15:37:52.897: [  OCRASM][3563381328]proprasmo: Error in open/create file in dg [DATA]
    [  OCRASM][3563381328]SLOS : SLOS: cat=7, opn=kgfoAl06, dep=27140, loc=kgfokge
    2012-10-20 15:37:52.898: [  OCRASM][3563381328]ASM Error Stack : ORA-27140: attach to post/wait facility failed
    ORA-27300: OS system dependent operation:invalid_egid failed with status: 1
    ORA-27301: OS failure message: Operation not permitted
    ORA-27302: failure occurred at: skgpwinit6
    ORA-27303: additional information: startup egid = 1000 (oinstall), current egid = 10002 (dba)
    2012-10-20 15:37:52.967: [  OCRASM][3563381328]proprasmo: kgfoCheckMount returned [7]
    2012-10-20 15:37:52.967: [  OCRASM][3563381328]proprasmo: The ASM instance is down
    2012-10-20 15:37:52.968: [  OCRRAW][3563381328]proprioo: Failed to open [+DATA]. Returned proprasmo() with [26]. Marking location as UNAVAILABLE.
    2012-10-20 15:37:52.968: [  OCRRAW][3563381328]proprioo: No OCR/OLR devices are usable
    2012-10-20 15:37:52.968: [  OCRASM][3563381328]proprasmcl: asmhandle is NULL
    2012-10-20 15:37:52.969: [    GIPC][3563381328] gipcCheckInitialization: possible incompatible non-threaded init from [prom.c : 690], original from [clsss.c : 5326]
    2012-10-20 15:37:52.975: [ default][3563381328]clsvactversion:4: Retrieving Active Version from local storage.
    2012-10-20 15:37:52.978: [ CSSCLNT][3563381328]clssgsgrppubdata: group (ocr_SFV9699-cluster) not found
    2012-10-20 15:37:52.978: [  OCRRAW][3563381328]proprio_repairconf: Failed to retrieve the group public data. CSS ret code [20]
    2012-10-20 15:37:52.981: [  OCRRAW][3563381328]proprioo: Failed to auto repair the OCR configuration.
    2012-10-20 15:37:52.981: [  OCRRAW][3563381328]proprinit: Could not open raw device
    2012-10-20 15:37:52.981: [  OCRASM][3563381328]proprasmcl: asmhandle is NULL
    2012-10-20 15:37:52.983: [  OCRAPI][3563381328]a_init:16!: Backend init unsuccessful : [26]
    2012-10-20 15:37:52.984: [  CRSOCR][3563381328] OCR context init failure. Error: PROC-26: Error while accessing the physical storage
    ORA-27140: attach to post/wait facility failed
    ORA-27300: OS system dependent operation:invalid_egid failed with status: 1
    ORA-27301: OS failure message: Operation not permitted
    ORA-27302: failure occurred at: skgpwinit6
    ORA-27303: additional information: startup egid = 1000 (oinstall), current egid = 10002 (dba)
    2012-10-20 15:37:52.984: [ CRSMAIN][3563381328] Created alert : (:CRSD00111:) : Could not init OCR, error: PROC-26: Error while accessing the physical storage
    ORA-27140: attach to post/wait facility failed
    ORA-27300: OS system dependent operation:invalid_egid failed with status: 1
    ORA-27301: OS failure message: Operation not permitted
    ORA-27302: failure occurred at: skgpwinit6
    ORA-27303: additional information: startup egid = 1000 (oinstall), current egid = 10002 (dba)
    2012-10-20 15:37:52.984: [    CRSD][3563381328][PANIC] CRSD exiting: Could not init OCR, code: 26
    2012-10-20 15:37:52.984: [    CRSD][3563381328] Done.
    =======================
    I see in the above log that saying ASM instance is down and failed to open +DATA .
    But the asm instance up and running
    SQL> select instance_name,status from v$instance;
    INSTANCE_NAME STATUS
    +ASM1            STARTED
    And we havent created any disk named DATA before the installation. We have created only below two disks
    SQL> select name,header_status from v$asm_disk;
    NAME HEADER_STATUS
    ASM_DATA MEMBER
    FLASH_RECOVERY MEMBER
    But I am seeing a diskgroup in the v$asm_diskgroup which we havent created.
    SQL> select name,state from v$asm_diskgroup;
    NAME STATE
    DATA MOUNTED
    Ya this is a second time installtion. In the first installtion we created the asmdisk as DATA. But later everything (RAW device ) was formatted and this new disks has been created and installtion again started
    [root@SFV9699 bin]# oracleasm listdisks
    ASM_DATA
    FLASH_RECOVERY
    Seems like its trying to read the old disk DATA.
    we have done asmscanning too with oracleasm scan disks. but no use.
    Where I can remove the old entry of DATA disk.
    It would be a great if a quick response get.
    Thanks
    SHIYAS M

    The permission looks fine. If it was permission issue then y it is trying to read the DATA disk which I havent created this time at all ( But created in the first installation).
    2012-10-20 15:37:52.459: [ CRSMAIN][3563381328] Initializing OCR
    [ CLWAL][3563381328]clsw_Initialize: OLR initlevel [70000]
    2012-10-20 15:37:52.897: [ OCRASM][3563381328]proprasmo: *Error in open/create file in dg [DATA]*[ OCRASM][3563381328]SLOS : SLOS: cat=7, opn=kgfoAl06, dep=27140, loc=kgfokge
    2012-10-20 15:37:52.898: [ OCRASM][3563381328]ASM Error Stack : ORA-27140: attach to post/wait facility failed
    ORA-27300: OS system dependent operation:invalid_egid failed with status: 1
    ORA-27301: OS failure message: Operation not permitted
    ORA-27302: failure occurred at: skgpwinit6
    ORA-27303: additional information: startup egid = 1000 (oinstall), current egid = 10002 (dba)
    2012-10-20 15:37:52.967: [ OCRASM][3563381328]proprasmo: kgfoCheckMount returned [7]
    2012-10-20 15:37:52.967: [ OCRASM][3563381328]proprasmo: The ASM instance is down
    2012-10-20 15:37:52.968: [ OCRRAW][3563381328]proprioo: *Failed to open [+DATA].* Returned proprasmo() with [26]. Marking location as UNAVAILABLE.
    2012-10-20 15:37:52.968: [ OCRRAW][3563381328]proprioo: No OCR/OLR devices are usable
    2012-10-20 15:37:52.968: [ OCRASM][3563381328]proprasmcl: asmhandle is NULL
    The only disks created are
    [root@SFV9699 dev]# oracleasm listdisks
    ASM_DATA
    FLASH_RECOVERY
    And these disks are showing part of that group also.. Not quite sure how this happened..
    what abt dropping this group.. will anything work.

  • Counting the size of tablespaces and database

    hi,
    can any one help me with this..
    to write a shell script that counts the size of the tablespaces (excluding the oracle tablespaces like system,sysaux) and come up with the individual database size of evrey databse and mail to team on every month of 2nd for each database.
    thanks in advance..

    to write a shell script that counts the size of the tablespaces (excluding the oracle tablespaces like system,sysaux)To do so requires one to know which shell you use.
    Since you declined to share that with us, You're On Your Own YOYO)!
    How does script know/decide which DBs exist on any system?
    Handle:      user8884944
    Status Level:      Newbie
    Registered:      Dec 13, 2009
    Total Posts:      23
    Total Questions:      15 (15 unresolved)
    Why are you so challenged to get answers to your posts?
    Edited by: sb92075 on Jan 6, 2010 4:52 PM

  • How to set the environment for Oracle XE-database.

    Hi,
    I have a:- lsnrctl command not found,
    And when I echo oracle host & path I got:-
    [oracle@ddcdevws02 etc]$ echo $ORACLE_HOST
    [oracle@ddcdevws02 etc]$ echo $PATH
    /usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/u02/oracle/bin
    Now I know that my environment is not set, but could anyone please assist me how I can set the environmernt ??? I mean commands or detailed instruction step as to what needs to be set where & how, I mean the SID, port, Path ???, I am new to Linux as well as database .
    When I see the listener process using this:- ps -ef | grep tnslsnr, this is the output:-
    [oracle@ddcdevws02 ~]$ ps -ef | grep tnslsnr
    oracle 14727 1 0 14:25 ? 00:00:00 /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/tnslsnr LISTENER -inherit
    oracle 22618 21569 0 15:59 pts/2 00:00:00 grep tnslsnr
    So does this mean that my Oracle home is "/usr/lib/oracle/xe/app/oracle/product/10.2.0/" ???
    Also In the host file under /etc/ directory I have these settings
    127.0.0.1 localhost.localdomain localhost
    10.201.60.21 ddcdevws02.hddev.healthdialog.com ddcdevws02
    I don't know if this is correct or not ? But I doubt I could make any change in the host file, please suggest me.
    Thanks
    Sam

    user8692703 wrote:
    I am sorry Ed I reliazed that that was Phirir's suggestion to me, & Yes this is XE-Oracle database .... so the sid name would be "XE" ...?? I am sorry for my stupid questions as I am very new to ths .
    I've never worked with XE, but from everything I've seen, that would also be your SID. check the contents of /etc/oratab
    And then what other details required after I run this command ". oraenv", can I run this from any directory or some specific location ?
    Just like any command, you can run it from anywhere as long as the directory is in your PATH.
    But actually, you should be setting this in your profile, so that you just inherit it when you log on to the server. Depending on your OS, that would be either $HOME/.profile or $HOME/.bash_profile. Here are the commands you should have in that file:
    export ORACLE_HOME=pathtoyouroraclehomedirectory
    export ORACLE_SID=nameofyouroraclesid
    export PATH=$ORACLE_HOME/bin:$PATH>
    well I have this infor. with me
    HTTP port ---> 8080
    Port fopr Database ----> 1521
    Anythin else required ?

  • How can we check the data already exists in database

    hi friends
    i am trying create one procedure to add customers in database with customer id as input parameter..but if in the database customer detail already exists than i would like to update that detail and if its not in the database than i would like to add that detail in the databse...how could i do this ...
    any help wpould be appreciate
    thanks
    rommy

    Hi,
    If your requirement is to insert in one table and if the record exists insert into other table the merge statement doesn't work
    Example (please check the column name and parameter names). I don't put commit or rollback because I don't know if you control the transaction inside this procedure or outside it.
    CREATE OR REPLACE PROCEDURE add_cust(I_CUST_ID        IN VARCHAR2,
                                         I_CUST_F_NAME    IN VARCHAR2,
                                         I_CUST_L_NAME    IN VARCHAR2,
                                         I_CUST_ADD       IN VARCHAR2,
                                         I_CUST_CITY      IN VARCHAR2,
                                         I_CUST_STATE     IN VARCHAR2,
                                         I_CUST_ZIP       IN VARCHAR2,
                                         I_CUST_DOB       IN DATE,
                                         I_CUST_          IN VARCHAR2,
                                         I_CUST_ACCT_TYPE IN VARCHAR2,
                                         I_START_BAL      IN NUMBER) IS
    BEGIN
       INSERT INTO CUSTOMERS C
          (CUST_ID,
           CUST_F_NAME,
           CUST_L_NAME,
           CUST_ADD,
           CUST_CITY,
           CUST_STATE,
           CUST_ZIP,
           CUST_DOB,
           CUST_)
       VALUES
          (I_CUST_ID,
           I_CUST_F_NAME,
           I_CUST_L_NAME,
           I_CUST_ADD,
           I_CUST_CITY,
           I_CUST_STATE,
           I_CUST_ZIP,
           I_CUST_DOB,
           I_CUST_);
    EXCEPTION
       WHEN DUP_VAL_ON_INDEX THEN
          INSERT INTO CUSTOMER_ACCT
             (CUST_ID,
              CUST_ACCT_NO,
              cust_acct_type)
          VALUES
             (I_CUST_ID,
              CUST_ACCT_SEQ.NEXTVAL, -- CUST_ACCT_SEQ is a sequence, isn't?
              I_CUST_ACCT_TYPE);
    END add_cust;Regards,

Maybe you are looking for