What is the difference between alter database and alter tablespace?

Hi
I was searching for the difference between these 2 commands and have gotten not much conclusive result. Can anyone enlighten me on what is the difference if I were to use ALTER DATABASE OPEN READ ONLY compared to ALTER TABLESPACE x READ ONLY?
My objective to is control, such that sometimes users can edit the database, and other times, not possible to do so.
Thanks in advance.
wy

Hi,
A database can be made with more than one tablespace.
You can have a table called A into a tablespace TSA and a table called B into a tablespace TSB, then if you use ALTER DATABASE OPEN READ ONLY any tablespace can be writen, but if you use ALTER TABLESPACE A READ ONLY, you can't write, insert into table A because it is read only, but you can write, insert rows into the table called B because the tablespace B isn't read only.
You need to do ALTER TABLESPACE B READ ONLY to deny the inserts into table B.
You should do this for all tablespace that make the database.
Regards,
Jordi

Similar Messages

  • What is the difference between relational database and NoSql DB

    HI,
    i never work with any nosql db. so i like to know What is the difference between relational database and NoSql DB ?
    in relational db sql server we can create relation between table by PK and FK. so is it possible in NoSql db like Mongo db ?
    sql server db use to in big data for any organization. does Mongo db like nosql db use for same purpose ?
    i like to know in what kind of situation people use Mongo db or any NoSql db. please tell me few sample scenario where people like to use Mongo db or any NoSql. thanks

    Here are some good links that describe the differences:
    http://www.mongodb.com/nosql-explained
    https://blog.udemy.com/nosql-vs-sql-2/
    http://www.thegeekstuff.com/2014/01/sql-vs-nosql-db/
    Mark as answer or vote as helpful if you find it useful | Igor

  • What is the difference between full checkpoint and incremental checkpoint?

    What is the difference between full checkpoint and incremental checkpoint?
    And what is checkpoint queue?
    Can someone clarify these concepts?
    Thanks!

    Hi,
    there are different types of checkpoints:
    - Full checkpoint:
    => DBWR writes all dirty buffers from the Buffer cache to the datafiles and CKPT retrieves a new Checkpoint Change Number from a sys owned sequence and writes this number to all file headers and the controlfile.
    -- can be triggered by different events, like a logswitch, a manual checkpoint (alter system ..), a shutdown and so on
    This is the setup point for SMON for a crash recovery.
    - Partial checkpoint:
    => DBWR writes all dirty buffers of a singel tablespace from the Buffer cache to the datafiles and CKPT retrieves a new Checkpoint Change Number from a sys owned sequence and writes this number to all file headers and the controlfile.
    -- can e triggered by an ALTER TABLESPACE OFFLINE, ALTER TABLESPACE READ ONLY, ALTER TABLESPACE BEGIN BACKUP statement.
    Incremental checkpoint:
    number to all file headers and the controlfile.
    -- can be triggered by different events, like a logswitch, a manual checkpoint (alter system ..), a shutdown and so on
    - Partial checkpoint:
    => DBWR writes all dirty buffers of a single tablespace from the Buffer cache to the datafiles and CKPT retrieves a new Checkpoint Change Number from a sys owned sequence and writes this number to all file headers and the controlfile.
    -- frequency is determined by FAST_START_MTTR_TARGET parameter (new feature to Oracle 9i), with wich you can specify a time in seconds which SMON is allowed to take maximal for a Crash Recovery until the database must be open again.
    Dapending on the system you have SMON must calculate the maximum number of Redolog-blocks which it can manage to recover in the specified number of seconds. It will then create so called incremental checkpoints which will be tracked in the so called checkpoint queue in memory.
    FAST_START_MTTR_TARGET is auto-tuned in Oracle 10g and Oracle tries to manage (incremental) checkpoint in a fashion that a minimum of I/Os are caused and a minimum time for crash recovery is needed.
    If you set LOG_CHECKPOINTS_TO_ALERT to TRUE you will find checkpoint information in the alertSID.log file. You will see FULL and INCREMENTAL checkpoints then.
    Hope this clarifies your question,
    Lutz Hartmann

  • What is the Difference between AQ adpater and JMS adapter??

    What is the Difference between AQ adpater and JMS adapter in BPEL11g??
    In what scenarios we go for AQ and for what scenarios we go for JMS adapter???

    Go for AQ when using Oracle Advanced Queueing (the database stuff).
    Use JMS when using JMS (in memory of file queues)
    hth,
    Peter Paul

  • What's the difference between "controlfile autobackup" and "snapshot contro

    Hi All,
    What's the difference between "controlfile autobackup" and "snapshot controlfile" in RMAN configure ? Both are controlfile backups, what the difference between the controlfiles they backup ? Why there are two of these options ?
    thanks

    RMAN creates a control file snapshot to perform catalog resync operations. Control file autobackup will automatically create a backup of the control file whenever there are database structure changes.

  • What is the difference between FND_CONC_CLONE.setup_clean and target_clean

    What is the difference between fnd_conc_clone.setup_clean and fnd_conc_clone.target_clean?
    I always run setup_clean to wipe out all the information carried from source, and then run adautocfg.sh on dbTier followed by appsTeir. This will give me the clean newly cloned ebs system. But what is target_clean for? What is the difference between setup_clean and target_clean;
    James

    I finally go through the code and actually run the target_clean in our test system. Here is general rule, if you clone the ebs system, you only need to run setup_clean, it will clean out topology information or ebs connection information from the system. Then you run adautocfg.sh on db tier first following by adautocfg.sh on apps tier. All the topology or connection information will be populated again inside the database.
    Once you have cloned the system, you do not want any printer setup info, log/out info or profile info carried from source, then you can run target_clean. For me, I do need preserve printer and profile info, so I need to export following 4 tables before running target_clean.
    FND_PROFILE_OPTION_VALUES,
    FND_PRINTER,
    FND_PRINTER_TL,
    FND_CONCURRENT_PROGRAMS
    Hope this will help.
    James

  • What is the difference between standard,sorted and hash table

    <b>can anyone say what is the difference between standard,sorted and hash tabl</b>

    Hi,
    Standard Tables:
    Standard tables have a linear index. You can access them using either the index or the key. If you use the key, the response time is in linear relationship to the number of table entries. The key of a standard table is always non-unique, and you may not include any specification for the uniqueness in the table definition.
    This table type is particularly appropriate if you want to address individual table entries using the index. This is the quickest way to access table entries. To fill a standard table, append lines using the (APPEND) statement. You should read, modify and delete lines by referring to the index (INDEX option with the relevant ABAP command). The response time for accessing a standard table is in linear relation to the number of table entries. If you need to use key access, standard tables are appropriate if you can fill and process the table in separate steps. For example, you can fill a standard table by appending records and then sort it. If you then use key access with the binary search option (BINARY), the response time is in logarithmic relation to
    the number of table entries.
    Sorted Tables:
    Sorted tables are always saved correctly sorted by key. They also have a linear key, and, like standard tables, you can access them using either the table index or the key. When you use the key, the response time is in logarithmic relationship to the number of table entries, since the system uses a binary search. The key of a sorted table can be either unique, or non-unique, and you must specify either UNIQUE or NON-UNIQUE in the table definition. Standard tables and sorted tables both belong to the generic group index tables.
    This table type is particularly suitable if you want the table to be sorted while you are still adding entries to it. You fill the table using the (INSERT) statement, according to the sort sequence defined in the table key. Table entries that do not fit are recognised before they are inserted. The response time for access using the key is in logarithmic relation to the number of
    table entries, since the system automatically uses a binary search. Sorted tables are appropriate for partially sequential processing in a LOOP, as long as the WHERE condition contains the beginning of the table key.
    Hashed Tables:
    Hashes tables have no internal linear index. You can only access hashed tables by specifying the key. The response time is constant, regardless of the number of table entries, since the search uses a hash algorithm. The key of a hashed table must be unique, and you must specify UNIQUE in the table definition.
    This table type is particularly suitable if you want mainly to use key access for table entries. You cannot access hashed tables using the index. When you use key access, the response time remains constant, regardless of the number of table entries. As with database tables, the key of a hashed table is always unique. Hashed tables are therefore a useful way of constructing and
    using internal tables that are similar to database tables.
    Regards,
    Ferry Lianto

  • What is the difference between HTML DB and HTML DB Studio?

    What is the difference between HTML DB and HTML DB Studio?

    Doug,
    Oracle HTML DB is a feature of the Oracle 10g Database which allows you to quickly & securely create web applications based on your data in Oracle.
    Please see our homepage on OTN for more details: http://otn.oracle.com/htmldb
    Oracle HTML DB Studio is a site where you can download HTML DB applications, utilities & tip and tricks for use with HTML DB.
    Thanks,
    - Scott -

  • (261680070) Q WWO-13 What are the difference between WLS6.1 and WLS7.0 web services?

    Q<WWO-13> What are the difference between WLS6.1 and WLS7.0 web services?
    A<WWO-13> The differences are huge, so different in fact that 6.1 web services cannot
    be deployed in 7.0. WLS7.0 and Workshop have much greater functionality than the
    limited stateless session (RPC-style) and JMS destination (MSG-style) approach of
    6.1. Workshop web services can interact with any type of EJB, any JMS destination
    as well as other web services and directly accessing databases. The framework for
    building the web service is better and more adaptable and Workshop provides a fully
    integrated develop, deploy, test and debug environment. Additionally, WLS7.0 have
    the capacity to be much better at performance since due to XML parser enhancements
    and the addition of XML maps.

    If you want to take existing WLS6.1 web services and convert them to WLS7.0 you can
    do so quite easily. The WLS7.0 Ant still supports wsgen so you do not need to even
    change your build.xml file. The generated web service however will be implemented
    is a manner compliant with the WLS7.0 environment. More details are at:
    http://e-docs.bea.com/wls/docs70/webServices/anttasks.html#1070576
    "Adam FitzGerald" <[email protected]> wrote:
    >
    Q<WWO-13> What are the difference between WLS6.1 and WLS7.0 web services?
    A<WWO-13> The differences are huge, so different in fact that 6.1 web services
    cannot
    be deployed in 7.0. WLS7.0 and Workshop have much greater functionality
    than the
    limited stateless session (RPC-style) and JMS destination (MSG-style) approach
    of
    6.1. Workshop web services can interact with any type of EJB, any JMS destination
    as well as other web services and directly accessing databases. The framework
    for
    building the web service is better and more adaptable and Workshop provides
    a fully
    integrated develop, deploy, test and debug environment. Additionally, WLS7.0
    have
    the capacity to be much better at performance since due to XML parser enhancements
    and the addition of XML maps.

  • What is the difference between Grid computing and Cluster ?

    Heh Friends
    What is the difference between Grid computing and Cluster ?
    /sumit

    You
    can't easily switch a server from being a database
    server into an application server when the load on
    your system changes.
    That's only because you didn't architect your grid that way. :P
    (Mine doesn't do that either)
    >
    I guess people use the bits of the definitions that
    support their marketing claims :)
    Isn't that the truth!
    Oracle marketing speaks of grid as a concept with their technologies enabling the grid. Other companys offer products that turn computers into (their defintion of) a grid - Sun's Grid Engine, Avaki's Grid, and Platform's LSF come to mind.
    Gotta love the marketing folks; especially at Oracle. It seems to me that when a product doesn't succeed, they tend to rebrand and reintroduce.
    Chris

  • What are the difference between 4.6c and 4.7 versions?

    what are the difference between 4.6c and 4.7 versions?
    if any please give me answer
    regards
    ramanji

    Hi,
    Upgrade SAP or Installation of SAP R/3 and ECC
    What is ECC?  Where to find the installation steps of  ECC 5/6.0 with SQL as database and on windows platform with the steps including Solution Manager installation?
    http://service.sap.com/instguides
    ECC means Enterprise Central Component.
    There are all the relevant installation guides. You NEED SAPNet access because without a registered and licensed SolMan installation number you will not be able to generate the SolMan key for the ECC installation.
    Upgrade to 4.7
    Have you gone through an upgrade to 4.7? 
    What are the difference or changes associated with 4.7. 
    If you are currently on 4.6C and are inching forward to upgrading to 4.7 then this information might be useful to you.
    There is very little difference between 4.6 and 4.7, the only "steps" you should need are steps in SU25 ( skip step 1) Then go through all your role and perform a merge old new to bring in the new authorization objects 
    Just to forewarn you of a potential problem which have been encounter at the point of writing.
    After updating/ modifying roles in step 2C, when going back into 2C to make sure all roles are now green, 70% have gone back to red! 
    The maintenance done is ok, but there seems to be a problem while trying to go back into the roles again to re-generate. 
    SAP recognizes them as needing "adjustment", so you cannot pick them up in mass generate in PFCG as they do not come in, even though the authorizations tab is red. 
    This problem is currently with SAP and it is confirmed that nothing have been done wrongly. 
    Generally, the work is quite manageable in the upgrade, but don't be surprised at how big the upgrade is when compared to upgrading from 46b to 46c.
    If we have full software of 46c and 47E is it possible to upgrade 46c to 47E or there is a seperate 47E upgrade software need to be requested from SAP?
    Where I can get the document with upgrade steps on the service market place?
    It is of course possible and supported:
    http://service.sap.com/inguides
    --> SAP Components
    --> SAP R/3 Enterprise
    --> (choose your version)
    at the bottom there is an "Upgrade guide" for Windows and Unix.
    For Upgrades it is recommended to read ALL the notes mentioned in the 
    upgrade guide and to make sure one is using
    - the correct version of the "tp" program
    - the correct version of the "R3trans" program
    - the correct version of the "R3up" program
    All that is explained in the upgrade guide and in the corresponding notes.
    If this is your first upgrade you should take a person, that has some experience on doing that for the first time.
    Installation of SAP R/3
    Currently we are going to install SAP on a new IBM server from the existing COMPAQ server. Where can I get the steps for that. 
    Configuration is :
       OS - windows 2003 server
       DB - Oracle 9i
       SAP 4.7
    http://service.sap.com/instguides
    --> SAP Components
    --> SAP R/3 Enterprise
    --> SAP R/3 Enterprise Core 4.70 / Ext. Set 2.00 (SR1)
    --> Inst. Guide - R/3 Enterprise 4.7 x 2.00 SR1 on Win: Oracle
    The above url is the SAP Service Marketplace with all the information you need to install, configure and run system. You need to be a valid licensed customer with a user ID and PASSWORD to use that.
    Without access you won't be able to successfully run any SAP systems because it has notes, patches etc.

  • What is the difference between Commit, Commit_Form and Post ?

    What is the difference between Commit, Commit_Form and Post ?

    Commit() and commit_form() are exactly the same. The changes done into the databased blocks are made in the database select/insert/update and commited.
    post() does the same, but without the last commit in the database (so that you can rollback).
    Francois

  • What is the difference between quarterly patches and patch sets

    Hello,
    What is the difference between quarterly patches and patch sets?
    Should we always apply the latest quarterly pathches?
    Is it better to apply to the latest patch set if one can afford?

    The quarterly patch sets are generally security fixes, or Critical Patch Updates (CPU). Oracle strongly recommends that the CPU patches are applied. CPU and quarterly patches do not change the release/version of the database.
    The patch sets contain bug fixes and do change the release/version of the database.
    As with all patches you should test them on a test database before deploying in production. If you have vendor supported applications you should contact your vendor before applying any patchsets.

  • What is the differences between Transparent,Pooled and Cluster tables?

    Hello all,
    What is Pool table?What is the differences between Transparent,Pooled and Cluster tables?
    Regards!
    Purna

    Transparent table:
    Tables can be defined independently of the database in the ABAP Dictionary. The fields of the table are defined together with their (database-independent) data types and lengths.
    A table definition in the ABAP Dictionary has the following components:
    Table fields: The field names and the data types of the fields contained in the table are defined here.
    Foreign keys: The foreign keys define the relationships between this table and other tables.
    Technical settings: The technical settings define how the table is created on the database.
    Indexes: Indexes can be defined for the table to speed up data selection from the table.
    There are three categories of database tables in the ABAP Dictionary.
    A physical table definition is created in the database for the table definition stored in the ABAP Dictionary for transparent tables when the table is activated. The table definition is translated from the ABAP Dictionary to a definition of the particular database.
    On the other hand, pooled tables and cluster tables are not created in the database. The data of these tables is stored in the corresponding table pool or table cluster. It is not necessary to create indexes and technical settings for pooled and cluster tables.
    Pooled table
    Pooled tables can be used to store control data (e.g. screen sequences, program parameters or temporary data). Several pooled tables can be combined to form a table pool. The table pool corresponds to a physical table on the database in which all the records of the allocated pooled tables are stored.
    Cluster table
    Cluster tables contain continuous text, for example, documentation. Several cluster tables can be combined to form a table cluster. Several logical lines of different tables are combined to form a physical record in this table type. This permits object-by-object storage or object-by-object access. In order to combine tables in clusters, at least parts of the keys must agree. Several cluster tables are stored in one corresponding table on the database.
    Regds,
    Manohar

  • What is the difference between Topic Keywords and Index File Keywords?

    What is the difference between Topic Keywords and Index File Keywords? Any advantages to using one over the other? Do they appear differently in the generated index?
    RH9.0.2.271
    I'm using Webhelp

    Hi there
    When you create a RoboHelp project you end up with many different ancillary files that are used to store different bits of information. Many of these files bear the name you assigned to the project at the time you created it. The index file has the project name and it ends with a .HHK file extension. (HHK meaning HTML Help Keywords)
    Generally, unless you change RoboHelp's settings, you add keywords to this file and associate topics to the keywords via the Index pod. At the time you compile a CHM or generate other types of output, the file is consulted and the index is built.
    As I said earlier, the default is to add keywords to the Index file until you configure RoboHelp to add the keywords to the topics themselves. Once you change this, any keyword added will become a META tag in the topic code. If your keyword is BOFFO, the META tag would look like this:
    <meta name="MS-HKWD" content="BOFFO" />
    When the help is compiled or generated, the Index (.HHK) file is consulted as normal, but any topics containing keywords added in this manner are also added to the Index you end up with. From the appearance perspective, the end user woudn't know the difference or be able to tell. Heck, if all you ever did was interact with the Index pod, you, as an author wouldn't know either. Well, other than the fact that the icons appear differently.
    Operationally, keywords added to the topics themselves may hold an advantage in that if you were to import these topics into other projects, the Index keywords would already be present.
    Hopefully this helps... Rick

  • What is the difference between Video-out and mirroring?

    What is the difference between Video-out and mirroring? I can't get iPhone 4 video to work on my TV screen
    I have just bought an MD098ZM/A (Apple 30-pin Digital AV Adapter). I am struggling to get it to show a picture on my TV. I know I'm doing something right because the audio is coming out of my TV speakers but no picture on the TV screen.
    I have used the same HDMI channel (on the TV side) with the same cable and my thunderbolt port (MacBook Air) without any trouble - and on the same app (BBC iPlayer download then full-screen mode).
    Now I note that the packaging for the MD098ZM/A says video-out on iPhone 4 but mirroring only on iPhone 4S. I only have an iPhone 4 (not the 4S). Now if the lack of iPhone 4 support for mirroring means that I can't play video material out to my TV, then in what sense is there any video-out capability at all?
    There is only safety and warranty paperwork in the Apple adapter packaging - no help information. And I haven't found further guidance online either.
    I do note somewhere online that it suggests that basic non-mirroring video-out (for this adapter) only works with some external TV sets. Any way of finding out which? I'm using a Sanyo CE32LD90-B LCD TV if it helps.
    So far not doing very well.

    Now found these but have had to give up on this adapter!
    http://manuals.info.apple.com/en_US/iphone_user_guide.pdf
    http://support.apple.com/kb/HT4108

Maybe you are looking for