With regard to the size of the database

Hi all

Sorry for the interruption of you and your time for the clarification.

The size of my database is:
Select sum (bytes) / 1024/1024 of dba_data_files;

SUM (BYTES) / 1024/1024
--------------------
19035.0938

The size used is:
Select sum (bytes) / 1024/1024 in dba_segments;

SUM (BYTES) / 1024/1024
--------------------
5488.22656
Free size is:
Select sum (bytes) / 1024/1024 dba_free_space;
SUM (BYTES) / 1024/1024
--------------------
13890.1016

When I take plenty of RMAN backup I found the size almost 2304 MB (but in dba_segments his ~ 5488), my doubt is how to remove the higherwatermark (HWM) so that I can get exactly space used by database (excluding higher watermark).

Thank you in advance,

The SMALLEST_SIZE_POSS column will be the exact size used in the database.
The column CURRENT_SIZE is allocated size.

SET VERIFY OFF
COL NOM_TABLESPACE FORMAT A20
COL FILE_NAME FORMAT A60 WORD_WRAPPED
COL MORE SMALL FORMAT 999 990 TOPIC "SMALLER | SIZE | POSS."
COL CURRSIZE FORMAT 999 990 HEADING ' CURRENT | SIZE '.
COL OF SAVING FORMAT 999 990 TOPIC "POSS | SAVINGS. "
BREAK THE REPORT
SUM OF CALCULATION OF THE SAVINGS ON THE REPORT
CALCULATE THE SUM OF THE SMALLEST REPORT
CALCULATION AMOUNT REPORT CURRSIZE
VALUE OF COL NEW_VAL BLKSIZE

VALUE SELECT FROM V$ PARAMETER WHERE NAME = 'db_block_size.
/

SELECT A.TABLESPACE_NAME, A.FILE_ID, FILE_NAME,
CEIL ((NVL(HWM,1) * & BLKSIZE) / 1024/1024) SMALLER.
CEIL (BLOCKS * & BLKSIZE/1024/1024) CURRSIZE,.
CEIL (BLOCKS * & BLKSIZE/1024/1024).
CEIL ((NVL(HWM,1) * & BLKSIZE) / 1024/1024) SAVINGS
FROM DBA_DATA_FILES,.
(SELECT FILE_ID, MAX (BLOCK_ID + BLOCKS - 1) LET HIGH WATER
FROM DBA_EXTENTS
FILE_ID GROUP) B
WHERE A.FILE_ID = B.FILE_ID (+)
/

Tags: Database

Similar Questions

  • with regard to the database

    Dear gurus

    I want statatics collects my complete database in 11 GR 2. Guys please tell me a method for collecting statistics of entire database because we have an option for gathering statistics for schema
    through DBMS gather stats

    Please say a similar option.


    Rgds

    user11221081 wrote:
    Thank you all

    I've put together per order
    Start
    DBMS_STATS.gather_database_stats (options =.') AUTOMATIC GROUPING);
    end;
    /

    PL SQL successfully managed

    now, how can I check these stats... the display

    Hello

    you check in way dba_tables or DBA_OBJECT_TABLES, DBA_TAB_STATISTICS, DBA_INDEXES views and other.

    For example

    Select the table table_name, owner, last_analyzed in dba_tables where owner = 'XXXX' and table_name is "XXXXXXX";

    Neeraj-

  • With regard to the update of the locations of cards-oracle

    HII everyone,

    In my application, we using mapviewer, which was installed locally on our server, for map rendering and showing the locations of a client like pinball machines.

    Suppose that some places (address, City) is updated map... How mapviewer (which has been installed on our server locally) will update this site all in rendering...

    Thank you

    learner

    It depends on how you got the map features.  Mapfeatures are usually stored in the cache.  If a change in database may not appear in the card immediately.  If, however, given the characteristics of the map as a vectorlayer, then simple vector update updates map.  You should consider two options with regard to the update database process.  You can store the geometry as a function that is updated on the fly as change attributes of database, or you may use a database trigger to update the geometry when the attributes change.  Thus, using a combination of correct space architecture and mapviewer correct functions.

  • With regard to the application of Nook on the Surface RT. Is there a way to change the way that newspapers appear?

    With regard to the application of Nook on the Surface RT.  Is there a way to change the way that newspapers appear?  Like corners, they give a better way to navigate and get the overview for the different sections.

    Probably not "such what."  Next time you launch the application, make sure that the menu bar to it and see if there is a feedback icon.  You may be able to comment on what features you want and they can do just that.

  • I had Photoshop CS for a while. I use it for one purpose, which is to standardize my bronze products photos, all photos are identical with regard to the composition, lighting, backgrownd, actually, I always place the same scale of assessment pr

    I had Photoshop CS for a while. I use it for one purpose, which is to standardize my bronze products photos, all photos are identical with regard to the composition, lighting, backgrownd, actually, I always place the pillar of satisfaction even scale and then only switch products bronze... a simple task of worm. For this reason I have is no need to upgrade my old version of Photoshop. My problem is that it doesn't work anymore since Windows 10 recently installed in my PC. IO have tried to install it several times but can't. Is anyone out there help me please!

    Activation for CS is closed. Adobe provides you with a free replacement of CS2.

    Uninstall CS

    Go here: Download Adobe Acrobat 7 and Adobe Creative Suite 2 products

    Click English, download Photoshop CS2 and also copy the serial number that comes with it.

    Install CS2 and use this serial number CS2. There no need activation.

    Take your copy of the CS, it is no longer usable.

  • With regard to the previous discussion on the recent settings of the workspace page

    With regard to the post Re: recent files page , when I went back to answer, there is no way to reply to the post.  After trying the settings using the provided screenshots, page of recent files always came every time.  So the answers you have provided are not correct for my particular case.  Finally, I tried without any control in the preferences and that my custom workspace save as I wanted.  Here is how I had to define it.

    Thank you.

    cc-152.jpg

    It is doubly strange.  I just check and that the other thread is not locked and can be answered.  Someone else has a problem, you reply to this thread.

    Secondly, I turn off the settings described works for me and Photoshop opens without MRU and start work space.

    You did _uncheck_ these settings?  I like the new workspaces, so mine are checked, but it clearly says _Show_ at the beginning of each line.

  • With regard to the management of exceptions in coherence

    Hello
    I use c ++ connection of consistency

    try {}
    String::handle gridHandleCache = GridCacheName;

    if(hCommCache == null) {}
    hCommCache = CacheFactory::getCache (gridHandleCache);
    }
    else {}

    "cost < <" Info: "< < GridCacheName < <" Cache already in a State of assets "< < endl;"
    }
    }
    {catch (exception::handle Vex)}

    "' cost < < ' consistency exe;
    }
    {} catch (std::exception (e)
    cost < < e.what ();
    }
    catch (...) {
    cost < < 'unknown exception ';
    }


    When the error occurred (duration or other errors), I still get an exception unname. It will never enter the Exception::Handle part of vex.

    When he calls on Wrestling (Exception::Handle vex) {.} I want to separate the duration and connection error ecpetion sepeartyely.

    Can I know what would cause / or how to handle it separately.

    What are the mistakes is possible to connect / put/get/invoke (touchprocessor). serializable cast?


    -Thank you

    Edited by: 882600 August 31, 2011 05:51

    There are several ways to achieve this. Perhaps the simplest is to simply catch Exception as std::exception const &, or one of its derivatives, then call what(). However, if you want to use the specific exception hierarchy richer consistency, you can get the equivalent of the what() result by calling getDescription()-> getCString(). With regard to the rankings largely what types of exceptions are "fatal", which would be RuntimeException and its derivatives, but the scope which it was caught in general is going to be more telling.

    Mark
    The Oracle coherence

  • With regard to the restoration of the database and recovery (DBPITR)

    Hello

    Today I have a level 0 backup (23/01/2015) and I want to restore and to recover the database up to yesterday (22/01/2015-21:00) by using the backup of level 0 of today.

    Is this possible? If so, please tell me how?

    Thanks in advance.

    Hello

    It is not possible to restore and to recover the database until yesterday with the backup of level 0 of today.

    Your flashback database is active? If it is active, then you can use flashback database.

    to check it out;

    Select flashback_on in the database of v$.

    Talip Hakan Öztürk

  • With regard to the import of database in RPD?

    Hello
    My database is Oracle 9i. I tried to create the ODBC connection to the database to import the tables to RPD, but he met a TNS error.
    Then I used WLAN Type "OIC 10 g / 11g" and gave the TNS name of user and password and I was able to connecet to the database. ""

    Why I'm not able to connecet to the database using the connection Type "ODBC 3.5? I checked the TNSNAMES file. File ORA and its OK coz I use the same thing to connecet for the database through TOAD also.

    Appreciate your help.

    Have you created an ODBC DSN? Otherwise create a DSN (from Control Panel - Administration - Data Sources (ODBC)), then use this to import tables when you use ODBC 3.5.

    -Madan

  • With regard to the Certification of RHEL 5 64-bit.

    We plan our RHEL 5 11.5.10.2 application

    11.5.10.2 is certified on RHEL5 (64-bit).

    Kind regards.

    We plan our RHEL 5 11.5.10.2 application

    11.5.10.2 is certified on RHEL5 (64-bit).

    Oracle Applications 11i (11.5.10.2) is certified on RHEL5/OEL5 (32-bit) for the application tier node. For the database layer node, you can run 10g / 11g on OEL5/RHEL5 (64-bit). Please note that it is NOT certified on Oracle9i RHEL5/OEL5 (which comes with Oracle Applications 11.5.10.2).

    Always consult the matrix (taken from the site of MOS) certification for this type of query.

    Please also see this similar thread - see the docs referenced in the thread.

    EBS 11i for RHEL 5
    EBS 11i for RHEL 5

    Thank you
    Hussein

  • with regard to the concatenation of two entity object.

    Hello

    I created an object entity and a database table display. and in my page jspx I insert a new record into the database.

    Here I've created a table with 3 columns (id, name, username)

    I entered in my page jspx only id and name * and I want column _ usernameshould be inserted automatically as the concatenation of the name and id* IE

    guess my id = 73 and name = helene shetty username must be rs73... _

    How can I achieve this?

    If someone can give an idea, it will be appreciable.

    Hi Helen,

    I think it can work for you

    protected void doDML (int operation, TransactionEvent e) {}
    If (operation == DML_INSERT) {}
    If (this.) GetName()! = null) {}
    String userName = this.getName ();
    String tempVal = userName.substring (0, 1);
    If {(userName.contains(""))
    String tempVal1 = userName.split("") [1];
    tempVal = tempVal + tempVal1.substring (0, 1);
    }
    tempVal = tempVal + this.getUserId ();
    this.setUserName (tempVal);
    }
    }
    super.doDML (operation, e);
    }

    Kind regards
    Suganth.G

  • Element browse file with savings in the database

    Hello

    I am looking for an option of selection/browse file where I can select the file in a folder and find the path to the file. But I don't need to save the file in the "WWV_FILES" or BLOB column. Is there a way we can achieve this?. Baiscally I need to extract the file name of the path and use to other transformations. I need the file to be saved in the database. Can achieve us in Apex?

    I use Apex 4.1.

    Thank you

    Jyo

    JyoInd123 wrote:

    I am looking for an option of selection/browse file where I can select the file in a folder and find the path to the file. But I don't need to save the file in the "WWV_FILES" or BLOB column. Is there a way we can achieve this?. Baiscally I need to extract the file name of the path and use to other transformations. I need the file to be saved in the database. Can achieve us in Apex?

    It looks like a continuation of the previous thread: retrieve indicated in the item browse file full path? I hope that the conditions are now more clear and achievable in practice.

    It is possible to extract the name of the file, rather than the path. An example of a method to do this is provided in the specification HTML for the type of input file.

    In APEX, create dynamic action before this Page with 2 actions. In the first use, an action to run the JavaScript Code to copy the file name of the file search for point to another page using the method in the link above. In the second, apply an action to disable the item browse file to prevent the file downloaded with the subject page.

  • With regard to the process of the writer

    Hi all

    We want to set up the process of the writer to write the results to the database.

    So that we can use these data in the ETL process.

    Thanks for your help.

    Kind regards

    Sandeep


    Hi all

    I found the solution for this.

    Export can help for this funcaionalty.

    Thanks for your help.

    Kind regards

    Sandeep

  • With regard to the mode of transport SYNC

    Version: 11.2.0.3
    Operating system: Unix/Linux platforms

    I'm new to Data guard

    It's that I understood on the SYNC mode after googling and read 11.2 doc. correct me if I'm wrong.

    SYNCHRONIZATION (synchronous Transport Mode)
    ======================

    With the transmission SYNCHRO mode, LGWR is not allowed to recognize that a commit succeeded until the LNS confirms that it again to retrieve the transaction was written to the Redo logs waiting in the standby.
    Until LGWR extracted this confirmation of LNS, the database is suspended and the validation operation is supported. That is to say. In the event of failure of a network between the (primary) production database and the standby database which prevents the
    again to be written in the newspapers waiting to roll forward, then the primary database will block.

    SYNCHRONIZATION method is also referred to as method "Zero data loss.

    But there is an attribute called NET_TIMEOUT for LOG_ARCHIVE_DEST_n parameter; Assigned (in seconds) decides how long LGWR should wait to hear from LNS on scripture to redo in Standby Redo Logs.

    The default value at 11.2 is 30 seconds. After 30 seconds, if LGWR cannot hear the LNS on a succesfull write to redo in Standby Redo Logs, process LGWR disconnects from the LNS and acknowledges the primary VERIFICATION and allow
    DB primary to continue treatment even if he can no longer communicate with the day before.

    This isn't strictly "zero data loss" as a VALIDATION has been recognized in the primary despite the entrance of again as a result of this change is not written for the eve SRL. Right?



    Question2.

    In all our Prod DBs, LOG_ARCHIVE_DEST_2 is set to the value below. No idea what type of protection is this DB in?
        MAXIMUM PROTECTION
        or
        MAXIMUM AVAILABILITY
        or
        MAXIMUM PERFORMANCE ?
    service="HEWRMS_DG", LGWR SYNC AFFIRM delay=0 optional compression=disable max_failure=0 max_connections=1 reopen=300 db_unique_name="HEWRMS_DG" net_timeout=30, valid_for=(all_logfiles,primary_role)

    This isn't strictly "zero data loss" as a VALIDATION has been recognized in the primary despite the entrance of again as a result of this change is not written for the eve SRL. Right?

    You'll only no loss of data if you have maximum protection. If the primary is unable to reach the day before, it stops after a fixed delay. Oracle recommend two standby mode if you want maximum protection.

    In available maximum primary will try to reach the previous day in the net_timeout value and whether it will commit the transaction and move. It will essentially drop down for maximum performance until it can connect to the waiting again.

    Check the mode of protection of data.

    select protection_mode from v$database;
    

    Should read: you only have the guarantee of no data loss with maximum protection. You have no data loss with maximum availability until your watch and network are correct.

    Published by: Freddie Essex on 5 June 2013 11:18

  • With regard to the update of the sequence

    Hello

    We have OGG 11.1.1.1 and 11.2.0.3 DB.

    I have a small question about the improved Support of sequence
    According to the documentation:
    Installing new Oracle sequence support 
    Oracle GoldenGate version 11.1.1.1 contains improved sequence support. To enable this 
    support, you must install some database procedures that support the new FLUSH 
    SEQUENCE command. 
    Follow these instructions on the sourceand targetsystems. 
    1.  On the source and target Oracle systems, connect to SQL*Plus as SYSDBA. 
    2.  If you already assigned a database user to support the Oracle GoldenGate DDL 
    replication feature, you can skip this step. Otherwise, on both systems create a 
    database user that can also be the DDL user. 
    SQL> CREATE USER DDLuser IDENTIFIED BY password; 
    SQL> GRANT CONNECT,RESOURCE,DBA TO DDLuser; 
    3.  In the GLOBALS file on the source and target systems (create one if needed), add 
    the following parameter to designate the DDL schema. (If you already have this 
    parameter, skip this step.) 
    GGSCHEMA <schema> 
    4.  On both systems, run the sequence.sqlscript from the root of the Oracle 
    GoldenGate installation directory. This script creates some procedures for use by 
    Oracle GoldenGate processes. (Do not run them yourself.) You are prompted for 
    the schema information that you created in the first step. 
    SQL> @sequence.sql 
    5.  On the source system, grant EXECUTE privilege on the updateSequence
    procedure to a database user that can be used to issue the DBLOGIN command. 
    Remember or record this user. You use DBLOGIN to log into the database prior to 
    issuing the FLUSH SEQUENCE command, which calls the procedure. 
    SQL> GRANT EXECUTE on DDLuser.updateSequence TO DBLOGINuser; 
    6.  On the target system, grant EXECUTE privilege on the replicateSequence
    procedure to the Replicat database user. 
    SQL> GRANT EXECUTE on DDLuser.replicateSequence TO Replicatuser; 
    Immediately after you start the Oracle GoldenGate processes for the first time, issue the 
    FLUSH SEQUENCE command for each sequence (or with a wildcarded name). This 
    command alters the sequence to generate redo data. Replicat uses this redo to create an 
    initial synchronization point. You are prompted for this command in the upgrade steps.
    He mentions several times that you should have 2 users (e.g., DBLOGIN & DDLUser). But we only use a "GGS" to do anything. We have arrays of heartbeat, we use in the dblogin controls everything. It will be a problem during setup of this? Should we change our Setup to support this? I'm asking is because I have no environment to test it myself, so I'd be happy to have some feedback before you ruin my production environment.

    Thank you
    NACEUR

    It can be even given it required privileges.

    -Koko

Maybe you are looking for