Is there any performance value to making a tablespace READ ONLY?

In 9i, if I were to set a tablespace which only contains data to be reported over - is there any value in making it READ ONLY other than "safety" of the data? I am particularly interested to know if it can increase performance.
Thanks

When you say safety, you are partly correct, because data cannot be deleted, but it can be dropped, check the below SQL statements.
With regard to performance, yes you will gain some. For better performance while accessing data in a read-only tablespace, you can issue a query that accesses all of the blocks of the tables in the tablespace just before making it read-only. A simple query, such as SELECT COUNT (*), executed against each table ensures that the data blocks in the tablespace can be subsequently accessed most efficiently. This eliminates the need for Oracle to check the status of the transactions that most recently modified the blocks.
http://download-east.oracle.com/docs/cd/B10501_01/server.920/a96521/tspaces.htm#922
SYS@BABU> create tablespace test_ts datafile 'D:\ORACLE\ORADATA\TEST_TS1.DAT' SIZE 15M
  2  EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M;
Tablespace created.
SYS@BABU> CREATE TABLE TAB1 (A NUMBER) tablespace test_ts ;
Table created.
SYS@BABU> BEGIN
  2  FOR A IN 1..10 LOOP
  3  INSERT INTO TAB1 VALUES (A);
  4  END LOOP;
  5  COMMIT;
  6  END;
  7  /
PL/SQL procedure successfully completed.
SYS@BABU> ALTER TABLESPACE test_ts READ ONLY;
Tablespace altered.
SYS@BABU> DELETE FROM TAB1;
DELETE FROM TAB1
ERROR at line 1:
ORA-00372: file 6 cannot be modified at this time
ORA-01110: data file 6: 'D:\ORACLE\ORADATA\TEST_TS1.DAT'
SYS@BABU> truncate table TAB1;
truncate table TAB1
ERROR at line 1:
ORA-00372: file 6 cannot be modified at this time
ORA-01110: data file 6: 'D:\ORACLE\ORADATA\TEST_TS1.DAT'
SYS@BABU> DROP TABLE TAB1 ;
Table dropped.

Similar Messages

  • Are there any performance concerns when referencing an image located in a c

    Are there any performance concerns when referencing an image located in a central location (example application server)?

    Hi
    Should not be an issue at all - we are only going to be limited by the network bandwidth
    Regards
    Tim
    http://blogs.oracle.com/xmlpublisher

  • HT201364 Is ther any performance drops once OS X Mavericks is installed on Late 2008 Macbook (Aluminum Unibody)?

    Is ther any performance drops once OS X Mavericks is installed on Late 2008 Macbook (Aluminum Unibody)?

    I just installed it on mine last night and noticed that the fans basically don't stop running when I have any programs running...Pretty disappointed in that, but hoping something will make it go away.

  • Is there any way to get my mac to read an unfinalized dvd

    Is there any way to get my mac to read an unfinalized dvd made from a dvd recorder a few years ago?

    Not that I'm aware of.  I'm curious: is it a DVD-RW type of DVD, by any chance?
    Message was edited by: Radiation Mac

  • Is there any way to get an ipod to display only complete albums in the albums list?

    is there any way to get an ipod to display only complete albums in the albums list (rather than every album represented by every song on the ipod)?

    Sounds like there is some discrepancies in the tagging in iTunes.  See this page for more information.
    Grouping Tracks Into Albums
    B-rock

  • Is there any way to turn off data and use only wi fi

    is there any way to turn off data and use only wi fi, going to a foreign country and do not want to use data but wi fi will be available. I want to be sure to use only wi fi

    Yes there is!
    Simply go into Settings, General, Mobile Data, Turn this off and make sure Data Roaming is also switched off! You can have wifi on and this will no charge your account for the data you use via Wi-Fi!

  • Is there any performance difference in the order of columns referencing index?

    I wish to find out if there is any performance difference or efficiency in specifying those columns referencing index(es) first in the WHERE clause of SQL statements. That is, whether the order of columns referencing the index is important???.
    E.g. id is the column that is indexed
    SELECT * FROM a where a.id='1' and a.name='John';
    SELECT * FROM a where a.name='John' and a.id='1';
    Is there any differences in terms of efficiency of the 2 statements??
    Please advise. Thanks.

    There is no difference between the two statements under either the RBO or the CBO.
    sql>create table a as select * from all_objects;
    Table created.
    sql>create index a_index on a(object_id);
    Index created.
    sql>analyze table a compute statistics;
    Table analyzed.
    sql>select count(*)
      2    from a
      3   where object_id = 1
      4     and object_name = 'x';
    COUNT(*)
            0
    1 row selected.
    Execution Plan
       0      SELECT STATEMENT Optimizer=CHOOSE (Cost=1 Card=1 Bytes=29)
       1    0   SORT (AGGREGATE)
       2    1     TABLE ACCESS (BY INDEX ROWID) OF 'A' (Cost=1 Card=1 Bytes=29)
       3    2       INDEX (RANGE SCAN) OF 'A_INDEX' (NON-UNIQUE) (Cost=1 Card=1)
    sql>select count(*)
      2    from a
      3   where object_name = 'x'   
      4     and object_id = 1;
    COUNT(*)
            0
    1 row selected.
    Execution Plan
       0      SELECT STATEMENT Optimizer=CHOOSE (Cost=1 Card=1 Bytes=29)
       1    0   SORT (AGGREGATE)
       2    1     TABLE ACCESS (BY INDEX ROWID) OF 'A' (Cost=1 Card=1 Bytes=29)
       3    2       INDEX (RANGE SCAN) OF 'A_INDEX' (NON-UNIQUE) (Cost=1 Card=1)

  • Is there any performance monitoring tool to check content db size ?

    Hello,
    I have following scenario :
    Check volume and size of content uploaded onto the SharePoint content DB including some form of resource
    details like content types,docs.
    Questions :
    Can anyone please let me know how can we set alert when SharePoint content DB get increased ? Is there any Free Performance Tool is available which can complete the task in the above
    scenario ?
    Please kindly suggest me.
    Thanks and Regards,
    Dipti
    Dipti Chhatrapati

    This may not be a direct answer to your question but one free tool to analyse BLOBS is the Metalogix BLOBulator.
    This at the least will help you look for large objects within your databases
    https://www.metalogix.com/Downloads/StoragePoint-Downloads/StoragePoint-BLOBulator-Tool.aspx
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • Firefox seems to be very slow today in loading is there any performance test on line?

    Browsing through web pages I see it is much slower than usual-is there any on line application test available?

    Maybe one of the online speed test sites (Google: speed test).
    *http://www.ip-adress.com/speedtest/
    *http://www.speedtest.net/index.php

  • Is there any way to make all the inputComponents readon-only in a page

    Hi All,
    Is there any way by which we can make all the inputComponents belong to a specific iterator as read-only..?
    Depending on some condition I want to make all the editable components which belong to a particular iterator, in page to read-only. I can put an expression in the read-only property of all the inputFields
    and make them read-only depending on a condition. But this is going to be difficult as we have a lot of pagefragments and Task-flows.
    So I think I can do it programmatically. I can add this method as an method binding in the container jsff. So that it will do the job for all the pages [pages may be inside a region also ].
    Can any one give a similar code segment to do this..?
    Is this approach going to impact performance badly..?
    Any comments...
    Thanks

    Hi Chacko
    Have a look at [Advanced View object Techniqies|http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/bcadvvo.htm#sthref3138] at the bottom Example 38-32 Preventing Insert, Update, or Delete Based on Custom Properties
    <pre>
    Example 38-32 Preventing Insert, Update, or Delete Based on Custom Properties
    public class CustomViewRowImpl extends ViewRowImpl {
    public boolean isAttributeUpdateable(int index) {
    if (hasEntities() &&
    ((isNewOrInitialized() && !isInsertAllowed()) ||
    (isModifiedOrUnmodified() && !isUpdateAllowed()))) {
    return false;
    return super.isAttributeUpdateable(index);
    protected void setAttributeInternal(int index, Object val) {
    if (hasEntities()) {
    if (isNewOrInitialized() && !isInsertAllowed())
    throw new JboException("No inserts allowed in this view");
    else if (isModifiedOrUnmodified() && !isUpdateAllowed())
    throw new JboException("No updates allowed in this view");
    super.setAttributeInternal(index, val);
    public void remove() {
    if (!hasEntities() || isDeleteAllowed() || isNewOrInitialized())
    super.remove();
    else
    throw new JboException("Delete not allowed in this view");
    protected void create(AttributeList nvp) {
    if (isInsertAllowed()) {
    super.create(nvp);
    } else {
    throw new JboException("Insert not allowed in this view");
    // private helper methods omitted from this example
    </pre>
    Hope, this will help you :)
    Regards,
    JavaDeVeLoper

  • Is there any way to browse all sales excluding rental only & short films?

    Is there any way to browse all film sales excluding rental only & short films?
    I am finding the laborious process of clicking through page by page in cover view annoying to the extreme to search new additions to the available film sales lists every week or so. The display page is always slightly deeper than my window so it means having to scroll down to view the last row of covers and click next page.
    Apple... Is there any chance of having an auto scrolling (with pause and previous/next feature) film cover flow with description view of each film large enough to view the image, preferably filling the screen, perhaps also a feature in Front Row that will show available films to buy/rent in iTunes or an RSS screen saver that could give you a constant update of the last 10/20 films added?
    Something that will make the task of searching for titles you might like to buy less of a 'task' and more intuitive. I don't really want to browse by Genre and a Cover image only view tells you nothing about the film.
    If the screen in front of me gave me a constantly (controllable when required) changing view, similar to the content displayed in Front Row of a title you have selected i'd be happy.
    Message was edited by: Rob Wilton

    Could you please tell me how to view all the movies I have rented?

  • Using iphone 4s that is still on ios 6.1.3, is there any way i can update to ios 7 only and not ios 8?

    I had to borrow my mom's iphone 4s cause my iphone 5 died on me. this 4s is still on iOS 6.1.3 is there any way i can just upgrade to iOS 7 and not iOS8? I have some apps that won't work on the current ios version installed.

    Afraid not. iOS 8 only.

  • Are there any plugins that allow photoshop elements to read DDS files?

    I have multiple DDS files that I have been trying to open in Photoshop Elements 8, and a window comes up and says that it cannot open it because it is the "wrong type of file".  I would like to know if there are any plugins I can download to fix this problem.  It would also be helpful if the plugin could save the file in a DDS format, too.  I had been using a trial of Photoshop CS6 and I had a plugin for that, and I recently found an old disc that had Photoshop Elements 8 on it that I downloaded.  Back to the point, are there any plugins that can do this?

    The 32 bit version of this plugin should work in pse 8 if you on windows:
    http://developer.nvidia.com/nvidia-texture-tools-adobe-photoshop

  • Is there any OOB algo which can estimate missing reads for one day???

    Hi,
    We have a requirement where we need to calcuate missing reads for previous day before creating usageTransction.
    So is there any OOB batch is there which can do this everday??
    I cam across one algo, but dont know how to use it in batch??
    Thanks
    Amaresh

    Hello all,
    sorry, I don't know whether my 1st message was clear, so I am trying to rewrite it.
    I'm thinking about a software which creates a database objects list report; this report shows all database objects being accessed by the form - for example, it can list all tables being accessed by the form, showing a CRUD (Create, Read, Update and Delete) for each accessed table, or list all packages being executed by the same form, and so on. For example:
    Form: CLI0001.FMB
    Package -> Operation
    PCK_ACCOUNTS -> E (Execute; but that's a suggestion, we can have 'R' instead)
    Table -> Operation
    ACCOUNTS -> CR (Create + Read)
    PAYMENTS -> D (Delete)
    Sequence -> Operation
    SEQ_ACCOUNTS -> R (Read)
    View -> Operation
    VW_CLIENTES -> R (Read)
    If there's any software which can do it, please let me know. Thanks in advance.
    Best regards,
    Franklin
    Edited by: franklinbrasil on 15/10/2008 19:26

  • Making a field read only (and bound) or editable depending on some criteria

    Hi,
    I am using Netweaver 2004s SP15 and Adobe Lifecycle Designer 7.1 with Web Dynpro for Java.
    I am generating a PDF that contains a number of fields that are bound context values attribues.
    Now I know according to certain criteria if any given field will have a value....
    Now if such a given field has a value then it must populate the Adobe form and make that field read-only - so it can not be changed.
    However, if that field has no value.. instead I need to make it editable.
    I am re-implementing the application this will be used within; and the previous version had 8 different interactive forms to cater for the 8 different possible combinations of fields that would not have values.
    I would really really prefer to have one interactive form to maintain with logic in it that determines dynamically if a field should be read-only or editable. (For example I could have a boolean context node that could be used)
    Am I doomed to have to create 8 different forms? Or is there a way of doing this smarter?
    Thanks to anyone who can point me to the light,
    Ilan

    hmmm....
    I did a search through the forum using the phrase "javascript" and it turned out a lot posts that indicate that this should indeed be possible.
    I am boggled, the original application was developed by an Indian outsourcing company that is well respected. The developer who took over maintenance of it told me that it was impossible to change the read only nature of the fields once set at design-time.
    My search through the forum has turned up much to indicate that this design was idiotic and the "facts" I was given completely wrong.
    grrrrrrrrrrrrrrrrr... I am marking this as answered now. I will have to learn some javascript.
    Are there any caveats for using it within WDJ?
    I am assuming I can do something simple in pseudo-code.. (I will need to work out the Javascript version).
    if (hasOption1) {
      field.readonly = true;
      field.style = sunken;
    else if (hasOption2) {
    else if (hasOption3) {
    etc
    (There are only actually 3 options that can change.. but that results in 8 different possible forms)

Maybe you are looking for

  • How to get the MAC address of the additional 10G NIC with ILO command line

    how to get the MAC address of the additional 10G NIC with ILO command line? thanks. This question was solved. View Solution.

  • Out-of-Order Autoflow: How to fix?

    Hello fellow ID users, I have a 210-page document that I created in InDesign CS5.This document is arranged so that single pages are listed in sequence, with right and left alternating master pages (A,B,A,B, etc.). As I was reviewing this document, I

  • Column alias

    Hi, in oracle express, on a report querry region I give this : select 'PINS - # of times an item in the library cache was executed - '|| sum(pins), 'RELOADS - # of library cache misses on execution steps - '|| sum (reloads), 'RELOADS / PINS * 100 = '

  • ICloud sign in: How to un-trust a device?

    Whenever I log into iCloud from a public computer, it rightfully uses two-factor authentication. However, in my list of "trusted devices" iCloud can send a code to, one of them is an old iPhone I no longer have. How do I remove this iPhone from my li

  • Fonts in all CAPS, cant get rid of?

    Im trying to build a new album in PS4, and all my fonts are in CAPS.  My caps button is not stuck because I have typed in "word" and it is fine.  I looked in preferences and couldn't find any related setting.  Can anyone please help???  Thank you, Ka